Tchavi
ModelsPricingDocumentationBlog
Tchavi
  • Why Tchavi
  • Models
  • Pricing

Contact us

  • Email: support@tchavi.com
  • Support
  • Frontier AI, paid with mobile money. No card, no KYC.

Resources

  • API Reference
  • Documentation
  • Blog

Legal

  • Privacy
  • Terms of Service

© 2026 Tchavi. All rights reserved.

We use cookies to enhance your experience, provide personalised content, and analyse our traffic; see our Cookie Policy.

Back to models
X

Grok 4.7

xai/grok-4.7

Long answers, with more thinking before them

Grok 4.7 is xAI's model and the successor of Grok 4.6, a newer generation for long-running agents and ambitious work. On Tchavi it reads text, images and documents, with tools and JSON mode, over a 500K-token window.

Modalities
Input / Output
4.4 / 13.2cr / 1K
Context window
500K
Released
Sep 21, 2026
Capabilities
  • Tools
  • JSON mode
  • Vision
  • PDF
  • Streaming
  • Prompt caching· read 1.208 cr / 1K

It reasons at length before it answers: expect a few seconds of thinking, even on a short puzzle. It suits deep work such as turning a product idea into a working first version, reviewing code with full explanations, writing research reports or analysing long documents.

On Tchavi you reach it with mobile money, no international bank card and no KYC, with the same API key as 80+ other models. OpenAI-compatible: swap the base URL, keep your SDK. Your credits never expire.

What this model does well

  • 🤖

    Long-running agents

    Built by xAI for extended agentic tasks

  • 📤

    Up to 450K tokens out

    Very long answers in a single pass

  • 📚

    500K context

    The model’s full window, priced in two tiers above 200K

  • 👁️

    Images and documents

    Reads screenshots, diagrams and attached files with your text

  • 🛠️

    Tools and JSON mode

    Function calling and structured output

Example prompts

  • Read this repository's checkout module and write a review: what could fail under load, why, and the two fixes you would make first.

  • Turn this product idea into a working first version: list the files, write the core code and name the first thing to test.

Good to know

  • Above 200,000 input tokens the provider doubles both sides, and Tchavi bills that tier rather than capping the window — 8.8 credits per 1K in and 26.3 per 1K out, against 4.4 and 13.2 below the line. Output is priced by the prompt's length, so a long prompt with a short answer still pays the higher output rate.
  • It reasons at length before answering: we measured 3.5 to 8 seconds and several hundred reasoning tokens on a short puzzle. The reasoning_effort value "none" returns an error.
  • Parameters: Stop sequences (stop), parallel_tool_calls set to false and verbosity return an error; frequency_penalty and presence_penalty are not supported and are ignored.
  • For a longer prompt, choose DeepSeek V4 Pro or Kimi K3, which open a million tokens.

Technical specifications

Author
xAI
API identifier
grok-4.7
Category
Chat & Text
Context window
500,000 tokens
Max output
450,000 tokens
Rate limit
120 RPM
Billing unit
token
Streaming
Yes

Ideal for

  • From idea to first version
  • Code review with explanations
  • Research write-ups
  • Agentic workflows
  • Long document analysis

Ready to try it?

Test this model in the playground, no setup needed.

Frequently asked questions

Grok 4.7 or Grok 4.6?

Grok 4.7 is the newer generation, with the same 500K window and 450K of output. Grok 4.6 (model: "grok-4.6") remains available. Test both on your own task and compare the cost.

Grok 4.7 or Claude Sonnet 5?

Claude Sonnet 5 (model: "claude-sonnet-5") takes 1M tokens of context and 128K of output; Grok 4.7 takes 500K in but writes up to 450K. Both read images and documents. Choose by the shape of your work: long input or long output.

What changes above a 200K-token prompt?

Nothing is capped — the full 500K window is yours. xAI charges double above 200,000 input tokens, and Tchavi bills that tier rather than raising the rate for everyone: 4.4 credits per 1K in and 13.2 out below the line, 8.8 and 26.3 above it.

Does it read images and PDFs?

Yes: images and documents in, text out.

How do I call Grok 4.7 with my OpenAI SDK?

Swap the base URL for Tchavi's, use your Tchavi key and set model: "grok-4.7" on /v1/chat/completions. The rest of your code stays the same.

Can I pay with mobile money, without a bank card?

Yes. Top up your Tchavi account with Orange Money, MTN MoMo, M-Pesa or another mobile money operator. No bank card is needed. Credits land as soon as the payment is confirmed and are deducted as you use them.

Is the API compatible with OpenAI's?

Yes. Keep your current OpenAI SDK, just change the base URL to Tchavi's (shown in the API tab) and use your Tchavi key. The rest of your code stays the same.

API

import Tchavi from '@tchavi/sdk';

const client = new Tchavi({ apiKey: 'API_KEY' });

const response = await client.chat.completions.create({
  model: 'grok-4.7',
  messages: [
  {
    "role": "user",
    "content": "Hello!"
  }
],
});

console.log(response.choices[0].message.content);
console.log('Credits used:', response.tchavi.credits_used);

API parameters

Every parameter this model accepts on the API. Check the SDK for full typings.

modelRequired
string

ID of the chat model (e.g. `grok-4.7`).

messagesRequired
Array<{ role, content }>

Conversation messages. Each item has a `role` (system/user/assistant) and a `content` that's either a plain string or an array of content blocks (`text`, `image_url`, `document_url`).

temperature
number
Default: 1

Sampling temperature between 0 and 2. Higher values = more random.

max_tokens
integer

Maximum number of tokens to generate in the response.

max_completion_tokens
integer

OpenAI alias for `max_tokens`. Either field works; if both are sent, `max_completion_tokens` wins.

stream
boolean
Default: false

If true, partial message deltas are streamed as Server-Sent Events.

tools
Array<{ type, function }>

Function-calling toolbox. Pass an array of `{ type: "function", function: { name, description, parameters } }`. Returned tool calls land in `choices[].message.tool_calls`. Only models with `supportsTools: true` accept this.

tool_choice
"auto" | "none" | { type, function }

How the model picks among tools: `"auto"` (default), `"none"` to force a plain text reply, or `{ type: "function", function: { name } }` to force a specific tool. Only with `supportsTools: true`.

response_format
{ type: "json_object" | "text" }

Constrain the output. Pass `{ type: "json_object" }` to force valid JSON (the model still needs a JSON instruction in your prompt). Only models with `supportsJsonMode: true` honour this.

Show all parameters (20)
top_p
number
Default: 1

Nucleus sampling: only tokens in the top `top_p` probability mass are considered.

seed
integer

Integer seed for deterministic output. The same seed + identical request yields the same completion when supported by the provider. OpenAI honours it; Anthropic ignores.

n
integer
Default: 1

Number of completions to generate in one call. Defaults to 1; each extra completion is billed.

stream_options
{ include_usage?: boolean }

Streaming options, e.g. `{ "include_usage": true }` to receive a final SSE chunk with usage counts. Effective only when `stream: true`.

stop
string | string[]

Up to 4 sequences where the API will stop generating further tokens.

frequency_penalty
number
Default: 0

Between -2.0 and 2.0. Positive values penalize tokens that have appeared frequently.

presence_penalty
number
Default: 0

Between -2.0 and 2.0. Positive values encourage the model to talk about new topics.

user
string

End-user identifier passed to the upstream provider for abuse / moderation tracking. Should be stable per end-user.

logit_bias
Record<string, number>

Per-token logit bias `{ "<tokenId>": <-100..100>, ... }`. OpenAI-specific; Anthropic ignores silently.

messages[].content[].image_url
string

Attach an image on a user message. Pass a content block `{ "type": "image_url", "image_url": { "url": ... } }`. PNG / JPEG / WebP, up to 4 per request. Only models with `supportsImageInput: true` accept this block (e.g. `gpt-4o`, `claude-opus-4-7`).

messages[].content[].document_url
string

Attach a PDF on a user message. Pass a content block `{ "type": "document_url", "document_url": { "url": ... } }`. Up to 5 PDFs per request. Only models with `supportsDocuments: true` accept this block (e.g. `claude-sonnet-4-6`, `gpt-4.1`).

Pricing

per 1,000 tokens
4.4 credits
Input 4.4 · Output 13.2 cr/1K

How billing works

  • Billed per token used, down to a thousandth of a credit.
  • A typical message (500 in, 150 out) costs about —, or 4.18 credits.
  • Prompt cache reads: — per 1K tokens (1.208 credits).

Long-prompt pricing

This model costs more upstream once a prompt passes a threshold, and we pass that through rather than cap the window or raise the price for everyone. The rate above is the first band.

Prompt lengthInput / 1KOutput / 1K
Under 200K tokens
200K tokens and above

The threshold counts every input token on the request, cached ones included — a 95K cache hit plus 10K of new prompt is a 105K prompt. Output is priced by the prompt’s length, so a long prompt with a short answer still pays the higher output rate.

Real-world scenarios
Per day
Per week
Per month

Estimated over 30 days, for a typical message: ~500 input + ~150 output tokens, billed to the thousandth of a credit.

A 10 000 F CFA top-up gives you about ~7 177 questions. Pay with Orange Money, MTN MoMo or M-Pesa — no Visa card needed.

Ready to use Grok 4.7?

Create your accountAPI Documentation

Bonus credits on your first top-up · No card to sign up