🔥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
The max job in progressing is 10, get more job in progress please contact us
'Imagine action' with Midjourney 6.0 will be 1.5 times quota than the normal consumption. --cref operation must be used with the --v 6.0 model
POST
https://api.ttapi.io/midjourney/v1/imagine
The imagine endpoint generates up to 4 images from a text prompt.
Name | Type | Description |
---|---|---|
If hookUrl is not null, it will be callback a json response to your setting hookUrl
POST
https://api.ttapi.io/midjourney/v1/action
This endpoint contains method used in TT Api. Eg: U1~U4, V1~V4 ...
If hookUrl is not null, it will be callback a json response to your setting hookUrl
POST
https://api.ttapi.io/midjourney/v1/seed
Get the seeds form midjourney image, refer to the midjourney's docs for usage
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.
POST
https://api.ttapi.io/midjourney/v1/describe
Upload an image and generate four prompts based on the image.
POST
https://api.ttapi.io/midjourney/v1/inpaint
Partial modifies of the image.
GET
https://api.ttapi.io/midjourney/v1/fetch
to fetch the job result
the result same as hookUrl result
For specific usage of related operations, you can read Midjourney’s official doc in detail.
Starting from December 1, 2023, the cdn image link returned by discord will expire after 24 hours.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
name | description | exp in midjourney |
---|---|---|
name | value |
---|---|
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
Send a request to the address for task completion or failed notification. If not set you need to request fetch endpoint to get response
mode
String
The task mode for generating images, including fast, relax and turbo. If not filled in, the fast mode will be used by default.
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.
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
hookUrl
String
Send a request to the address for task completion or failed notification. If not set you need to request fetch endpoint to get response
timeout
int
Request timeout, unit: seconds. If not filled in, the default timeout is 300 seconds
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
Send a request to the address for task completion or failed notification. If not set you need to request fetch endpoint to get response
timeout
int
Request timeout, unit: seconds. If not filled in, the default timeout is 300 seconds
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
Send a request to the address for task completion or failed notification. If not set you need to request fetch endpoint to get response
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
The task mode for generating images, including fast, relax and turbo. If not filled in, the fast mode will be used by default.
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
Send a request to the address for task completion or failed notification. If not set you need to request fetch endpoint to get response
timeout
int
Request timeout, unit: seconds. If not filled in, the default timeout is 300 seconds
mode
String
The task mode for generating images, including fast, relax and turbo. If not filled in, the fast mode will be used by default.
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
Send a request to the address for task completion or failed notification. If not set you need to request fetch endpoint to get response
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.
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