Generate images based on text prompts and image resources
Documentation Index
Fetch the complete documentation index at: https://docs.ttapi.io/llms.txt
Use this file to discover all available pages before exploring further.
You can obtain your API key from the TTAPI Dashboard.
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.
Supported models
gpt-4o-image, gpt-image-1, gpt-image-1.5, gpt-image-2, gpt-image-2-plus Reference image array
[
"https://cdn.ttapi.io/xxx1.png",
"https://cdn.ttapi.io/xxx2.png"
]Support model: gpt-image-2
1:1, 3:4, 4:3, 16:9, 9:16 "1:1"
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
"1024x1024"
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