Skip to main content

Grok 4.7 is xAI's chat model behind an OpenAI-compatible call with SSE streaming. It takes a 500,000-token context and replies up to 450,000 tokens, with reasoning effort from low to xhigh; no filter is added on this platform.

Input $2Output $6per 1 million tokensCached input $0.50Prompts of 200K tokens or moreInput $4Output $12

Workbench

Grok 4.7

What can Grok 4.7 help with?

Related models and next tasks

Missing the model you need?

Tell us what to add and where you would use it. Requests go to the people who decide what gets onboarded next.

Build stable message flows for uncensored roleplay and long-form fiction

Grok 4.7 is xAI's September 2026 flagship — a larger base model at the same price as the generation before it. Most write-ups say Grok blocks restricted content; those describe the consumer app. On this route, nine creative-writing probes at the top of our content ladder, across three prompt styles, returned nine complete scenes, with no filter added by us.

Open the chat playground
Build stable message flows for uncensored roleplay and long-form fiction
Model
Grok 4.7
Good for
uncensored roleplay and long-form fiction
Message shape
System rules → evidence and state → current task → output contract
Fact boundary
Capabilities, controls, and price come from the live schema

Integration principle

Validate with the smallest message set, then add necessary context. Separate facts, assumptions, and constraints, and design interruption, retry, settlement, and review paths.

Build repeatable workflows for uncensored roleplay and long-form fiction

Grok 4.7 is xAI's September 2026 flagship — a larger base model at the same price as the generation before it. Most write-ups say Grok blocks restricted content; those describe the consumer app. On this route, nine creative-writing probes at the top of our content ladder, across three prompt styles, returned nine complete scenes, with no filter added by us.

  • Measured, not assumed

    Nine probes, nine complete scenes

    A blunt request with no story around it, a novel chapter told to keep the scene going to its end, and an uncensored system prompt — three runs each on 2026-09-22. Zero refusals, and even the mildest of the nine carried the scene through to the end.

  • Where the guardrails point

    The safety stack is aimed at weapons

    This generation tops LatchBio's biosafety benchmark at 62.4% and turns away all but 3.3% of dangerous dual-use prompts. Those measure pathogens and intrusion tooling — not creative fiction.

  • The system role works

    Checked on purpose, not assumed

    A model that silently ignored the system role would make every roleplay frame worthless while looking like it worked. A persona set once at the top of a thread changes the register and carries through it.

  • Same price, larger model

    No premium over the previous generation

    Input, cached input and output all bill at the rates the 4.6 generation charges, with the long-context tier starting at 200,000 combined input tokens.

Where Grok 4.7 wins on task cost and interaction shape

Test one real task for quality, verifiability, latency, and sale-price fit instead of relying on a general leaderboard.

  1. Pick this

    When the thread has to survive turn forty

    The failure that ends a roleplay thread is rarely a block on message one — it is a scene that suddenly stops short deep into a thread. The probe that matters most here was the chapter told to keep going to the end, returned complete on all three runs.

  2. Pick 4.3 instead

    When you need a million tokens or the none tier

    4.3 carries a 1,000,000-token window and the only reasoning_effort: none on this family. It is the cheaper, longer-window sibling.

  3. Not the pick

    For long autonomous tool loops

    Terminal-style agentic benchmarks put this generation well behind the leaders. It is a writing and reasoning model, not an agent driver.

Turn Grok 4.7 into concrete work, not generic labels

Every scenario needs input boundaries, verification, and recovery; official capabilities, benchmarks, and tool support are never invented.

  • A scene that does not break in the middle

    Sustained roleplay

    A scene that does not break in the middle

    Keep the earlier turns verbatim rather than summarising them — a summary drops exactly the details the thread was built on. The 500,000-token window is how much history survives intact.

  • Novella length in a single response

    Long-form fiction

    Novella length in a single response

    450,000 output tokens is enough to write the whole thing in one call instead of a chapter loop where each continuation drifts further from the voice. Raise max_tokens deliberately; the 4,096 default truncates silently.

  • A persona that holds for dozens of exchanges

    Character work

    A persona that holds for dozens of exchanges

    Put the character sheet in one system message at the top. Voice, vocabulary and limits govern the whole thread without being restated, and temperature near 0.9 keeps the range.

  • Where this generation is genuinely strongest

    Domain reasoning

    Where this generation is genuinely strongest

    Published benchmarks put it ahead on legal analysis and electrical engineering. Paste a contract or a spec into the window and ask at clause level — the document goes in whole, in one turn.

Organize context into an inspectable Grok 4.7 input

Objective, evidence, state, constraints, and output contract need distinct jobs so requests can be compressed, debugged, and reproduced.

  1. Effort

    Turn the thinking down, not up

    reasoning_effort defaults to high, which is wrong for dialogue: the model spends output tokens deliberating and the prose reads careful instead of alive. Low or medium reads better and costs less, because effort is billed as output.

  2. Frame

    State it once, at the top

    Persona, the fact that the characters are adults, point of view and how far you want the prose to go — one system message. Restating it every turn burns context and makes the model sound like it is negotiating with itself.

  3. Range

    Move temperature, not top_p

    Push temperature toward 0.9 for variety in the prose and leave top_p alone. Drop to 0 only when two runs must differ for a single reason.

  4. Budget

    Watch the 200,000-token line

    Input and cached input are added together, and the whole request prices on the long tier from there — not just the part above the line. The pre-submit estimate says which tier applies.

Prove a repeatable Grok 4.7 case before product integration

Confirm live schema, quote, streaming, and error behavior before reusing the normalized request.

  1. 01 · Baseline

    Validate the smallest request in Playground

    Check message layers, output shape, streaming, and current controls.

  2. 02 · Boundaries

    Exercise failure, cancellation, and retry

    Verify timeouts, interrupted streams, oversized input, regeneration, and duplicate submission.

  3. 03 · Integrate

    Copy the normalized API request

    Use the public model id and messages contract; read model controls from the live schema.

  4. 04 · Operate

    Meter usage and keep evaluating

    Store state, final usage, failure reasons, and quality feedback; quote expensive calls first.

Bring Grok 4.7 into a clear API contract

Playground, API examples, request states, and usage records stay aligned from evaluation through production integration.

  • Unified contract

    One shape for messages, streams, and errors

    Keep request structure, state handling, and error recovery consistent when changing models.

  • Live schema

    Use the current endpoint controls

    Playground and API examples expose available fields, limits, and default behavior together.

  • Observable lifecycle

    Every request has a clear state

    Submission, streaming, failure, cancellation, and usage use inspectable public semantics.

  • Portable integration

    Reduce work when models evolve

    A clear contract keeps product code focused on inputs, results, and user experience.

Grok 4.7 API boundaries to confirm before integration