简体中文

Grok 4.7 API

Grok 4.7 · 用于文本问答、代码与多步推理。

Grok 4.7

grok-4.7 · xAI · 可调用状态以模型目录为准

用于文本问答、代码与多步推理。

调用示例

查询文本预扣

curl "https://api.apimodel.store/v1/chat/quotes" \
  -H "Authorization: Bearer $MODELPORT_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{"model":"grok-4.7","messages":[{"role":"user","content":"Reply with one short sentence."}],"max_tokens":128}'

提交文本请求

curl "https://api.apimodel.store/v1/chat/completions" \
  -H "Authorization: Bearer $MODELPORT_API_KEY" \
  -H "Idempotency-Key: model-chat-01" \
  -H "Content-Type: application/json" \
  --data '{"model":"grok-4.7","messages":[{"role":"user","content":"Reply with one short sentence."}],"max_tokens":128}'
查看文本接口

查看模型接口文档