Skip to main content
POST
cURL

Authorizations

TT-API-KEY
string
header
required

You can obtain your API key from the TTAPI Dashboard.

Body

multipart/form-data
image
file
required

Reference images, supports multiple

mode
enum<string>
required

Model version

Available options:
flux1-dev,
flux1-schnell,
flux1-pro,
flux-kontext-pro,
flux-kontext-max,
flux-2-pro,
flux-2-flex,
flux-2-max,
flux-2-klein-4b,
flux-2-klein-9b
Example:

"flux1-dev"

prompt
string

Image description. Note: Flux supports multilingual understanding, but English performs best in testing.

aspect_ratio
enum<string>

Aspect ratio

Available options:
21:9,
16:9,
4:3,
3:2,
1:1,
2:3,
3:4,
9:16,
9:21
Example:

"1:1"

hookUrl
string

Callback notification URL

Response

Request successful

status
string
required
Example:

"SUCCESS"

message
string
required
Example:

"success"

data
object
required
Example:
Last modified on March 21, 2026