1. Grok
Max Router
简体中文
  • 简体中文
  • English
  • 模型选择与计费
  • 回调通知与轮询
  • 认证与基础地址
  • 开始使用
  • 聊天模型快速调用
  • 图片、视频与音频任务
  • 错误处理与常见问题
  • 导出规范与 SDK
  • API 参考
    • 模型查询
      • 查询可用模型
    • 生成任务
      • 创建生成任务
      • 查询生成任务
      • 创建音频资源
      • 创建角色资源
    • 对话
      • 创建对话
      • 创建响应
      • 创建 Anthropic 兼容消息
      • 生成 Gemini 内容
  • 模型接口
    • 图片生成
      • OpenAI
        • GPT Image 2.5 文生图
        • 4o Image
        • gpt-image-2-5-flare-image-to-image
        • gpt-image-2-5-sunburst-text-to-image
        • gpt-image-2-5-sunburst-image-to-image
        • gpt-image-2-image-to-image
        • gpt-image-2-text-to-image
        • gpt-image/1.5-image-to-image
        • gpt-image/1.5-text-to-image
      • Google
        • Nano Banana 2
        • google/imagen4
        • google/imagen4-fast
        • google/imagen4-ultra
        • google/nano-banana
        • google/nano-banana-edit
        • nano-banana-2-1
        • nano-banana-2-lite
        • nano-banana-pro
      • Black Forest Labs
        • flux-2/flex-image-to-image
        • flux-2/flex-text-to-image
        • flux-2/pro-image-to-image
        • flux-2/pro-text-to-image
        • flux-3/klein-edit-image
        • flux-3/klein-text-to-image
        • flux1-kontext
      • ByteDance
        • bytedance/seedream
        • bytedance/seedream-v4-edit
        • bytedance/seedream-v4-text-to-image
        • omnihuman-1-5/human-identification
        • omnihuman-1-5/subject-detection
        • seedream/4.5-edit
        • seedream/4.5-text-to-image
        • seedream/5-flash-image-to-image
        • seedream/5-flash-layer-decomposition
        • seedream/5-flash-text-to-image
        • seedream/5-lite-image-to-image
        • seedream/5-lite-text-to-image
        • seedream/5-pro-image-to-image
        • seedream/5-pro-layer-decomposition
        • seedream/5-pro-text-to-image
      • Grok
        • grok-imagine-image-2-0/image-edit
        • grok-imagine-image-2-0/segment-edit
        • grok-imagine-image-2-0/segment-map
        • grok-imagine-image-2-0/text-to-image
        • grok-imagine/image-to-image
        • grok-imagine/text-to-image
      • Ideogram
        • ideogram/character
        • ideogram/character-edit
        • ideogram/character-remix
        • ideogram/v3-edit
        • ideogram/v3-remix
        • ideogram/v3-text-to-image
      • Qwen
        • qwen/image-edit
        • qwen/image-to-image
        • qwen/text-to-image
        • qwen2-1/image-to-image
        • qwen2-1/text-to-image
        • qwen2/image-edit
        • qwen2/text-to-image
        • qwen3/image-to-image
        • qwen3/pro-image-to-image
        • qwen3/pro-text-to-image
        • qwen3/text-to-image
        • z-image
      • Recraft
        • recraft/crisp-upscale
        • recraft/remove-background
      • Suno
        • Suno · Generate Music Cover
      • Wan
        • wan/2-7-image
        • wan/2-7-image-pro
    • 视频生成
      • Alibaba
        • happyhorse-1-1/image-to-video
        • happyhorse-1-1/reference-to-video
        • happyhorse-1-1/text-to-video
        • happyhorse/image-to-video
        • happyhorse/reference-to-video
        • happyhorse/text-to-video
        • happyhorse/video-edit
      • ByteDance
        • bytedance/seedance-2
        • bytedance/seedance-2-5
        • bytedance/seedance-2-5-draft
        • bytedance/seedance-2-fast
        • bytedance/seedance-2-mini
        • bytedance/v1-lite-image-to-video
        • bytedance/v1-lite-text-to-video
        • bytedance/v1-pro-fast-image-to-video
        • bytedance/v1-pro-image-to-video
        • bytedance/v1-pro-text-to-video
        • omnihuman-1-5
        • omnihuman-2-0
        • volcengine/video-to-video-lip-sync
      • Google
        • gemini-omni-character
        • gemini-omni-video
        • google/gemini-omni-flash-1-1
        • veo-3-1
        • veo/extend
        • veo/get-1080p-video
        • veo/get-4k-video
      • Grok
        • grok-imagine-video-1-5-preview
        • grok-imagine/extend
        • grok-imagine/image-to-video
        • grok-imagine/text-to-video
        • grok-imagine/upscale
      • Hailuo
        • hailuo/02-image-to-video-pro
        • hailuo/02-image-to-video-standard
        • hailuo/02-text-to-video-pro
        • hailuo/02-text-to-video-standard
        • hailuo/2-3-image-to-video-pro
        • hailuo/2-3-image-to-video-standard
        • minimax-h3/image-to-video
        • minimax-h3/reference-to-video
        • minimax-h3/text-to-video
      • Kling
        • kling-2.6/image-to-video
        • kling-2.6/motion-control
        • kling-2.6/text-to-video
        • kling-3.0-omni/image-to-video
        • kling-3.0-omni/reference-to-video
        • kling-3.0-omni/text-to-video
        • kling-3.0-omni/transformation
        • kling-3.0/motion-control
        • kling-3.0/video
        • kling-4.0/keyframe-to-video
        • kling-4.0/reference-to-video
        • kling/ai-avatar-pro
        • kling/ai-avatar-standard
        • kling/v2-1-master-image-to-video
        • kling/v2-1-master-text-to-video
        • kling/v2-1-pro
        • kling/v2-1-standard
        • kling/v2-5-turbo-image-to-video-pro
        • kling/v2-5-turbo-text-to-video-pro
        • kling/v3-turbo-image-to-video
        • kling/v3-turbo-text-to-video
      • MeiGen
        • infinitalk/from-audio
      • Pixverse
        • pixverse-v6-max/image-to-video
        • pixverse-v6-max/text-to-video
        • pixverse-v6/extend
        • pixverse-v6/image-to-video
        • pixverse-v6/reference-to-video
        • pixverse-v6/text-to-video
        • pixverse-v6/transition
      • Runway
        • runway
        • runway/extend-ai-video
      • Suno
        • Suno · Create Music Video
      • Vidu
        • vidu-q4/image-to-video
        • vidu-q4/reference-to-video
      • Wan
        • wan/2-2-a14b-speech-to-video-turbo
        • wan/2-2-animate-move
        • wan/2-2-animate-replace
        • wan/2-5-image-to-video
        • wan/2-5-text-to-video
        • wan/2-6-flash-image-to-video
        • wan/2-6-flash-video-to-video
        • wan/2-6-image-to-video
        • wan/2-6-text-to-video
        • wan/2-6-video-to-video
        • wan/2-7-image-to-video
        • wan/2-7-r2v
        • wan/2-7-text-to-video
        • wan/2-7-videoedit
        • wan/3-0-video
        • wan/3-0-video-prime
    • 音频与音乐
      • Elevenlabs
        • elevenlabs/text-to-dialogue-v3
        • elevenlabs/text-to-speech-multilingual-v2
        • elevenlabs/text-to-speech-turbo-2-5
      • Google
        • gemini-omni-audio
      • Suno
        • Suno · Add Instrumental
        • Suno · Add Vocals
        • Suno · Boost Music Style
        • Suno · Check Voice
        • Suno · Convert to WAV
        • Suno · Create Voice
        • Suno · Extend Music
        • Suno · Generate Lyrics
        • Suno · Generate MIDI from Audio
        • Suno · Generate Music
        • Suno · Generate Persona
        • Suno · Generate Sounds
        • Suno · Generate Verification Phrase
        • Suno · Mashup
        • Suno · Recover Audio
        • Suno · Regenerate Verification Phrase
        • Suno · Replace Music Section
        • Suno · Separate Vocals
        • Suno · Timestamped Lyrics
        • Suno · Upload and Cover Audio
        • Suno · Upload and Extend Audio
    • 对话模型
      • Anthropic
        • claude-fable-5
        • claude-haiku-4-5
        • claude-haiku-5-5
        • claude-opus-4-5
        • claude-opus-4-6
        • claude-opus-4-7
        • claude-opus-4-8
        • claude-opus-5
        • claude-opus-5-5
        • claude-sonnet-4-5
        • claude-sonnet-4-6
        • claude-sonnet-5
        • claude-sonnet-5-5
      • DeepSeek
        • deepseek-v4-1-flash
      • Google
        • gemini-3-6-flash
        • gemini-3-8-flash
        • gemini-3-8-flash-openai
        • gemini-3-pro
        • gemini-3.1-pro
        • gemini-4-argon
        • gemini-4-argon-openai
      • Grok
        • grok-4-5
          POST
        • grok-4-6
          POST
        • grok-4-7
          POST
      • Moonshot
        • kimi-k3
      • OpenAI
        • gpt-5-2
        • gpt-5-5
        • gpt-5-6-luna
        • gpt-5-6-sol
        • gpt-5-6-terra
        • gpt-6-1-sol
        • gpt-6-1-terra
        • gpt-6-astra
        • gpt-6-luna
        • gpt-6-sol
  1. Grok

grok-4-7

POST
/v1/chat/completions
模型标识:grok-4-7。该接口使用 Max Router 令牌;请求参数以本页字段及可选值为准。
非流式请求返回 JSON;设置 stream: true 时以事件流返回。模型支持的可选参数可能不同。
示例中的 URL、任务 ID 和资源 ID 均为占位值,请替换。提交前请在模型广场确认价格和权限。

请求参数

Authorization
Bearer Token
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
or
Body 参数application/json必填

示例
{
  "model": "grok-4-7",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ]
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://maxrouterai.com/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
  "model": "grok-4-7",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ]
}'

返回响应

🟢200
application/json
成功
Bodyapplication/json

示例
{
    "id": "chatcmpl_example",
    "object": "chat.completion",
    "created": 1700000000,
    "model": "model_example",
    "choices": [
        {
            "index": 0,
            "message": {
                "role": "assistant",
                "content": "你好!"
            },
            "finish_reason": "stop"
        }
    ],
    "usage": {
        "prompt_tokens": 10,
        "completion_tokens": 3,
        "total_tokens": 13
    }
}
🟠400
🟠401
🟠403
🟠429
🔴500
修改于 2026-11-05 06:22:33
上一页
grok-4-6
下一页
kimi-k3
Built with