Upscale

POST
https://api.genartapi.com/upscale

Parameters

NAMETYPEREQUIREDDESCRIPTION
taskIdstringtrueYou can get taskId from previous tasks eg Imagine
buttonstringtrueValid values are U1, U2, U3, U4, Redo Upscale (Subtle), Redo Upscale (Creative), Upscale (Creative), Upscale (Subtle)

Response Code

RESPONSE CODEDESCRIPTION
200: OK
Successful Response
400: Bad Request
The request data format is incorrect
401: Unauthorized
The API key is incorrect or expired
500: Internal Server Error
Service is experiencing an error

Request Example:

Make sure you also passed servier_id, channel_id, discord_token and (our) apiKey.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 const axios = require("axios") const config = { method: "post", url: "https://api.genartapi.com/upscale?button=U2&taskId=WzMxMTkxNDExNjldXzEyMzY1MTMyNTc1NDQ3NDkwNjZfMF80Nzg0NDJkMy03NTE0LTRjYzUtYTc3Ny1jMTc3ODdlMWVhOWQ=", headers: { "Content-Type": "application/json", "Authorization": "Bearer <your-midjourney-api-key>", "server_id": "<servier_id>", "channel_id": "<channel_id>", "discord_token": "<discord_token>", }, } axios(config) .then(function (response) { console.log(JSON.stringify(response.data)) }) .catch(function (error) { console.log(error) })

Response Example:

you can get generated images by using uri or proxy_url
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 { "content": "[3119141169] 3 girls and 2 boys in Roma arena", "id": "1239435438779797504", "uri": "https://cdn.discordapp.com/attachments/1235070628952805379/1239435438440316960/bytefishstudios_3119141169_3_girls_and_2_boys_in_Roma_arena_114f1eaa-c7ad-42b8-ba57-d195f3b9148c.png?ex=6642e9b4&is=66419834&hm=7b0187c016a2aa58d84a58ab9e2dc1d861c554625e7b25fb6498d710d7245434&", "proxy_url": "https://media.discordapp.net/attachments/1235070628952805379/1239435438440316960/bytefishstudios_3119141169_3_girls_and_2_boys_in_Roma_arena_114f1eaa-c7ad-42b8-ba57-d195f3b9148c.png?ex=6642e9b4&is=66419834&hm=7b0187c016a2aa58d84a58ab9e2dc1d861c554625e7b25fb6498d710d7245434&", "flags": 0, "hash": "114f1eaa-c7ad-42b8-ba57-d195f3b9148c", "progress": "done", "options": [ { "type": 2, "style": 2, "label": "Upscale (Subtle)", "custom": "MJ::JOB::upsample_v6_2x_subtle::1::114f1eaa-c7ad-42b8-ba57-d195f3b9148c::SOLO" }, { "type": 2, "style": 2, "label": "Upscale (Creative)", "custom": "MJ::JOB::upsample_v6_2x_creative::1::114f1eaa-c7ad-42b8-ba57-d195f3b9148c::SOLO" }, { "type": 2, "style": 2, "label": "Vary (Subtle)", "custom": "MJ::JOB::low_variation::1::114f1eaa-c7ad-42b8-ba57-d195f3b9148c::SOLO" }, { "type": 2, "style": 2, "label": "Vary (Strong)", "custom": "MJ::JOB::high_variation::1::114f1eaa-c7ad-42b8-ba57-d195f3b9148c::SOLO" }, { "type": 2, "style": 2, "label": "Vary (Region)", "custom": "MJ::Inpaint::1::114f1eaa-c7ad-42b8-ba57-d195f3b9148c::SOLO" }, { "type": 2, "style": 2, "label": "Zoom Out 2x", "custom": "MJ::Outpaint::50::1::114f1eaa-c7ad-42b8-ba57-d195f3b9148c::SOLO" }, { "type": 2, "style": 2, "label": "Zoom Out 1.5x", "custom": "MJ::Outpaint::75::1::114f1eaa-c7ad-42b8-ba57-d195f3b9148c::SOLO" }, { "type": 2, "style": 2, "label": "Custom Zoom", "custom": "MJ::CustomZoom::114f1eaa-c7ad-42b8-ba57-d195f3b9148c" }, { "type": 2, "style": 2, "label": "⬅️", "custom": "MJ::JOB::pan_left::1::114f1eaa-c7ad-42b8-ba57-d195f3b9148c::SOLO" }, { "type": 2, "style": 2, "label": "➡️", "custom": "MJ::JOB::pan_right::1::114f1eaa-c7ad-42b8-ba57-d195f3b9148c::SOLO" }, { "type": 2, "style": 2, "label": "⬆️", "custom": "MJ::JOB::pan_up::1::114f1eaa-c7ad-42b8-ba57-d195f3b9148c::SOLO" }, { "type": 2, "style": 2, "label": "⬇️", "custom": "MJ::JOB::pan_down::1::114f1eaa-c7ad-42b8-ba57-d195f3b9148c::SOLO" }, { "type": 2, "style": 2, "label": "❤️", "custom": "MJ::BOOKMARK::114f1eaa-c7ad-42b8-ba57-d195f3b9148c" } ], "width": 1024, "height": 1024, "taskId": "WzMxMTkxNDExNjldXzEyMzk0MzU0Mzg3Nzk3OTc1MDRfMF8xMTRmMWVhYS1jN2FkLTQyYjgtYmE1Ny1kMTk1ZjNiOTE0OGM=" }

Email:

bytefishstudios@gmail.com

Discord:

https://discord.gg/H3DJp237

Midjourney API is built with and simplicity is our goal. We've designed it to be straightforward, making it a breeze for you to use.