cURL
Grok Image
Text to Image
Text to image generation
POST
cURL
This is the core generation interface of the Grok Image APIDocumentation Index
Fetch the complete documentation index at: https://docs.ttapi.io/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Please go to TTAPI Console to obtain the API key.
Body
application/json
Prompt word
True is quality mode, false is speed mode
Image aspect ratio
Available options:
2:3, 3:2, 1:1, 9:16, 16:9 Number of generated images (1 - 4)
Callback URL. Notifications will be sent to this address when the task is completed or failed, and the notification data structure is consistent with the fetch structure [blocked]. If not set, you need to request the fetch endpoint [blocked] to query the result.
Example:
"https://example.com/callback"
Last modified on March 26, 2026