cURL
Grok Image
Текст в изображение
Генерация изображения по тексту
POST
cURL
Это основной endpoint генерации в 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.
Авторизации
Перейдите в TTAPI Console, чтобы получить API-ключ.
Тело
application/json
Промпт
По умолчанию true — режим качества, false — режим скорости
Соотношение сторон изображения
Доступные опции:
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 interface [blocked] to query the result.
Пример:
"https://example.com/callback"
Last modified on March 26, 2026