cURL
Grok Image
Edit Image
Edit images
POST
cURL
This is the edit endpoint of the Grok Image API.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.
Authorizations
Please go to TTAPI Console to obtain the API key.
Body
application/json
Prompt
Reference image list, currently only one image is supported
Example:
[
"https://cdn.ttapi.io/grok/2026-03-30/bd61449e07eb46a5ac8870651f374e50.jpg"
]Number of images to generate, range: 1 - 4
Required range:
1 <= x <= 4Callback URL. The system will send a notification to this URL when the task is completed or failed. The notification data structure is consistent with the fetch structure [blocked]. If not set, you need to call the fetch endpoint [blocked] to query the result
Example:
"https://example.com/callback"
Last modified on March 30, 2026