跳转到主要内容
POST
/
grok
/
image
/
fetch
cURL
curl --request POST \
  --url https://api.ttapi.io/grok/image/fetch \
  --header 'TT-API-KEY: <api-key>'
{
  "status": "SUCCESS",
  "message": "success",
  "jobId": "9e73af91-6fe4-4833-9005-b63cb741619d",
  "data": {
    "prompt": "一只可爱的小猫",
    "n": 1,
    "aspectRatio": "1:1",
    "images": [
      "https://cdn.ttapi.io/grok/2026-03-23/27790f48a54240ad8a1b5ca28a7c94a3.jpg"
    ],
    "quota": "0",
    "finishTime": "2026-03-23 07:23:50",
    "hookUrl": null
  }
}

授权

TT-API-KEY
string
header
必填

请前往 TTAPI 控制台 获取 API 密钥。

查询参数

jobId
string
必填

生成的图片的jobId

响应

请求成功

status
enum<string>
必填

任务状态:待排队/排队中/成功/失败

可用选项:
PENDING_QUEUE,
ON_QUEUE,
SUCCESS,
FAILED
message
string
必填

响应信息

jobId
string

任务id

data
object

任务结果

Last modified on March 26, 2026