GPT-Image Generation [Unofficial]
Generate images based on text prompts and image resources
Authorizations
You can obtain your API key from the TTAPI Dashboard.
Body
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-image-1.5, gpt-image-2, gpt-image-2-plus Reference image array
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