Grok logoGrok

    grok-4.7

    grok/grok-4.7

    ChatVisionFilesToolsSystem promptReasoning
    Use this model

    Context

    500K

    Max output

    64K

    Input / 1M

    $2.00

    Output / 1M

    $6.00

    Cached / 1M

    $0.50

    Cutoff

    unknown

    About this model

    Grok 4.7 is xAI's frontier model for coding, agentic tasks, and knowledge work. Accepts text and image input, produces text output, and supports low/medium/high/xhigh reasoning effort with high as the default. Pricing shown is for the base tier (below 200K input tokens); usage at or above 200K tokens is billed at $4 input / $1 cached / $12 output per 1M tokens.

    Best suited for

    • Long-running agentic workflows
    • Agentic coding
    • Visual and interactive tasks
    • General chat and coding tasks

    Built-in tools

    Gtwy web search

    Hosted by the gateway — enable them per request without wiring your own endpoint.

    Capabilities

    Vision

    Accepts images alongside text in the same message.

    Files

    Accepts file attachments — PDFs, transcripts, spreadsheets.

    Tools

    Native function calling, so agents can invoke your endpoints.

    System prompt

    Honours a dedicated system role, separate from the user turn.

    Reasoning

    Emits a separate thinking pass before the answer.

    Supported parameters

    creativity_level

    Controls the creativity of responses. Higher values (e.g., 0.7) increase creativity; lower values (e.g., 0.2) make responses more predictable.

    max_tokensMax Tokens Limit

    Specifies the maximum number of text units (tokens) allowed in a response, limiting its length.

    reasoningReasoning Effort

    Controls the depth of reasoning the model performs before responding.

    Use this model

    OpenAI-SDK compatible, with gateway fallback and routing across providers.

    Other Grok models

    ModelContextMax outputInputOutputCapabilities
    grok-build-0.1

    Chat

    256K64K$1.00$2.00Vision, Tools, System prompt, Reasoning
    grok-4.20-multi-agent-0309

    Chat

    1M64K$1.25$2.50Vision, Tools, System prompt, Reasoning
    grok-4.20-0309-non-reasoning

    Chat

    1M64K$1.25$2.50Vision, Tools, System prompt
    grok-4.6

    Chat

    500K64K$2.00$6.00Vision, Files, Tools, System prompt, Reasoning
    grok-4.20-0309-reasoning

    Chat

    1M64K$1.25$2.50Vision, Tools, System prompt, Reasoning
    grok-4.3

    Chat

    1M64K$1.25$2.50Vision, Tools, System prompt, Reasoning
    grok-4.5

    Chat

    500K64K$2.00$6.00Vision, Tools, System prompt, Reasoning

    Pricing & provider details

    Grok logo

    Grok

    grok/grok-4.7

    Input · per 1M
    $2.00
    Output · per 1M
    $6.00
    Cached input · per 1M
    $0.50
    Context window
    500,000 tokens
    Max output
    64,000 tokens
    Knowledge cutoff
    unknown
    Auto-router
    Not supported

    Start building today

    Route grok-4.7 — and every other model in the catalogue — through one endpoint, with failover built in.