Midjourney API
TT API's Midjourney API is the most stable and cost-effective Midjourney API
Last updated
TT API's Midjourney API is the most stable and cost-effective Midjourney API
Last updated
The Midjourney service of TT API supports three modes, fast, relax and turbo.
Fast mode response time is within 90 seconds, the overall success rate is over 98%
Relax mode response generally within 10 minutes, depending on the official response, the overall success rate is over 90%
Turbo mode response time is within 60 seconds
POST
https://api.ttapi.io/midjourney/v1/imagine
The imagine endpoint generates up to 4 images from a text prompt.
TT-API-KEY*
String
Your API Key in TT API used for request authorization
Content-Type
String
application-json
prompt*
String
Prompt use to generate image. exp:a cat --ar 1:1
hookUrl
String
mode
String
timeout
int
Request timeout, unit: seconds. If not filled in, the default timeout is 300 seconds
getUImages
boolean
Whether to obtain four small pictures. The optional values are true and false. Default is false. Note: This operation does not actually means U operation on the generated task.
POST
https://api.ttapi.io/midjourney/v1/action
TT-API-KEY*
String
Your API Key in TT API used for request authorization
Content-Type
String
application-json
jobId*
String
The jobId in prev request
action*
String
variation1 means V1
hookUrl
String
timeout
int
Request timeout, unit: seconds. If not filled in, the default timeout is 300 seconds
POST
https://api.ttapi.io/midjourney/v1/seed
TT-API-KEY
String
Your API Key in TT API used for request authorization
Content-Type
String
application-json
jobId*
String
The jobId in prev request
hookUrl
String
timeout
int
Request timeout, unit: seconds. If not filled in, the default timeout is 300 seconds
POST
https://api.ttapi.io/midjourney/v1/blend
Upload 2-5 images and combine them into a new image based on the concept and aesthetic of each image.
TT-API-KEY
String
Your API Key in TT API used for request authorization
Content-Type
String
application-json
imgBase64Array*
Array
Base64 array of images that will be used to generate mixed images
Array length is 2-5
Eg: [
"data:image/png;base64,xxx1", "data:image/png;base64,xxx2"
]
hookUrl
String
timeout
int
Request timeout, unit: seconds. If not filled in, the default timeout is 300 seconds
dimensions
String
Scale of generated image, including PORTRAIT
, SQUARE, LANDSCAPE. If not filled in, SQUARE is used by default.
PORTRAIT corresponds to the ratio 2:3
SQUARE corresponding ratio 1:1
LANDSCAPE corresponds to a ratio of 3:2
mode
String
POST
https://api.ttapi.io/midjourney/v1/describe
Upload an image and generate four prompts based on the image.
TT-API-KEY
String
Your API Key in TT API used for request authorization
Content-Type
String
application-json
base64*
String
base64 encoding of image
Eg: data:image/png;base64,xxx1
hookUrl
String
timeout
int
Request timeout, unit: seconds. If not filled in, the default timeout is 300 seconds
mode
String
POST
https://api.ttapi.io/midjourney/v1/inpaint
Partial modifies of the image.
TT-API-KEY
String
Your API Key in TT API used for request authorization
Content-Type
String
application-json
Jobid*
String
The jobId in prev request
mask*
String
base64 encoding of image
Eg: UklGRrw0AABXRUJQVlA4WAoAAAAgAAAA...
prompt
String
Drawing prompt for selected areas
timeout
int
Request timeout, unit: seconds. If not filled in, the default timeout is 300 seconds
hookUrl
String
GET
https://api.ttapi.io/midjourney/v1/fetch
to fetch the job result
TT-API-KEY
String
Your API Key in TT API used for request authorization
jobId*
String
f5850038-90a3-8a97-0476-107ea4b8dac4
status
PENDING_QUEUE
ON_QUEUE
SUCCESS FAILED
progess
Completeness : 0-100
components
discordImage
Discord cdn image url
images
CDN address of TTAPI, four small pictures generated by the imagine command. This field is only valid with the imagine command, and the address will never be invalid.
Send a request to the address for task completion or failed notification. If not set you need to request to get response
The task mode for generating images, including . If not filled in, the fast mode will be used by default.
If hookUrl is not null, it will be callback to your setting hookUrl
This endpoint contains used in TT Api. Eg: U1~U4, V1~V4 ...
Eg:upsample1 means U1
Send a request to the address for task completion or failed notification. If not set you need to request to get response
If hookUrl is not null, it will be callback to your setting hookUrl
Get the seeds form midjourney image, refer to the for usage
Send a request to the address for task completion or failed notification. If not set you need to request to get response
Send a request to the address for task completion or failed notification. If not set you need to request to get response
The task mode for generating images, including . If not filled in, the fast mode will be used by default.
Send a request to the address for task completion or failed notification. If not set you need to request to get response
The task mode for generating images, including . If not filled in, the fast mode will be used by default.
Send a request to the address for task completion or failed notification. If not set you need to request to get response
the result same as
For specific usage of related operations, you can read in detail.
upsample1
Button UI - U4
Same as upsample2, upsample3, upsample4
variation1
Button V1 - V4
Same as variation2, variation3, variation4
high_variation
Button Vary (Strong) Make drastic changes to your image
low_variation
Button Vary (Subtle) Make small changes to the image
upscale2
Button Upscale(2x)
Image magnification 2 times, only exists in v5 mode
upscale4
Button Upscale(4x)
Image magnification 4 times, only exists in v5 mode
zoom_out_2
Button Zoom Out 2x
The Zoom Out option expands the canvas of the enlarged image without changing the original image, filling the new space based on the prompt and the initial image.
zoom_out_1_5
Button Zoom Out 1.5x
The Zoom Out option expands the canvas of the enlarged image without changing the original image, filling the new space based on the prompt and the initial image.
pan_left
Button ⬅️➡️⬆️⬇️ Same as pan_right, pan_up, pan_down
upscale_creative
Button Upscale(Creative) Only exists in v6 mode
upscale_subtle
Button Upscale(Subtle)
Only exists in v6 mode