Skip to main content
POST
cURL

Authorizations

TT-API-KEY
string
header
required

You can obtain your API key from the TTAPI Dashboard.

Body

application/json
prompt
string
required

Text prompt for image generation. Since this is a reverse-engineered model, it's recommended to include keywords in your prompt such as: "draw a xxx", "generate a", 'draw a xxx', Language is not restricted; OpenAI itself supports multilingual models with excellent Chinese support.

model
enum<string>
default:gpt-image-2

Supported models

Available options:
gpt-image-1.5,
gpt-image-2,
gpt-image-2-plus
referImages
string[]

Reference image array

Example:
aspect_ratio
enum<string>

Support model: gpt-image-2

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

"1:1"

size
string

Image Size (width ร— height), support model: gpt-image-2-plus

must meet the following constraints:

Both width and height must be multiples of 16 Maximum edge โ‰ค 3840 Aspect ratio โ‰ค 3:1 Total pixels: 655,360 ~ 8,294,400

If the input size is invalid, it will be automatically adjusted to a valid range

Example:

"1024x1024"

hookUrl
string

Callback notification URL. When task completes or fails, this URL will be notified. Notification data structure [blocked] is consistent with fetch structure. If not set, you need to request the fetch endpoint [blocked] for query

Response

Request successful

status
string
required
Example:

"SUCCESS"

message
string
required
Example:

"success"

data
object
required
Example:
Last modified on April 22, 2026