Grok 4.5 API
grok-4-5Grok 4.5 — frontier reasoning and generation through one API.
by Grok
Pricing: Input 75 credits / 1M tokens (≈ $0.75), Output 225 credits / 1M tokens (≈ $2.25). Cached Input 10.7 credits / 1M tokens (≈ $0.107) — applied automatically when the upstream reports cached tokens for your prompt; there is no field to request them.
Save up to 68%with the $1,250 top-up pack (+10% bonus) — 64% lower than direct rates even without itTop up24H Status Monitor
OperationalAffordable Grok 4.5 API on you.bot
Grok 4.5 — Grok's frontier reasoning model with tunable thinking depth and real-time web access.
Grok 4.5 API pricing & guide (2026)
Grok 4.5 — frontier reasoning and generation through one API. Through you.bot you call the Grok 4.5 API by Grok on the same unified endpoint as every other model — one key, one integration.
On you.bot, the Grok 4.5 API costs about $0.75 per 1M tokens — roughly 63% cheaper than the official Grok price of $2. You only pay for successful generations; failed tasks are never charged.
Billing is pay-as-you-go in credits (1 credit = $0.01 USD) — no subscription, no monthly minimum, and credits never expire. So Grok 4.5 API pricing in 2026 is easy to predict: you pay per successful call and nothing for failures.
Core capabilities of the Grok 4.5 API
Tunable reasoning depth
Dial reasoning_effort up for rigorous, step-by-step problem solving or down for faster, lighter replies.
Live web access
Enable web_search so answers draw on current, real-world information instead of stale training data.
Structured outputs
Constrain responses to your schema for clean, parseable JSON that drops straight into your app or pipeline.
Grok 4.5 API compared with the rest of its family
The same prices this page charges, side by side — so you can see what a version step costs before you switch.
How to access and deploy the Grok 4.5 API on you.bot
Get your API key
Create a key in the dashboard — one key works across every model on the platform.
Call the Grok 4.5 endpoint
POST your prompt and parameters to /api/v1/generate with your key in the Authorization header.
Read the response
Completions are returned synchronously in the JSON response — no polling needed.
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer sk-live-..." \
-H "Content-Type: application/json" \
-d '{
"modelId": "grok-4-5",
"input": { "prompt": "..." }
}'Grok 4.5 API on you.bot vs going direct
| Feature | you.bot | Going direct |
|---|---|---|
| Price per 1M tokens | $0.75 | $2 |
| Failed-task billing | Free (auto-refund) | Charged |
| Integration | One unified API | Per-vendor SDKs |
| Credit expiry | Never | Varies |
4.9
Based on 1,200+ developer reviews
Why choose you.bot for the Grok 4.5 API
63% cheaper
Lower rates than going direct to Grok — and you only pay for successful runs.
Production-grade reliability
Monitored availability with automatic credit refunds on failed jobs.
One API for everything
Swap models freely without touching your integration or juggling vendors.
FAQs about the Grok 4.5 API
Grok 4.5 is billed per 1M tokens at about $0.75 on you.bot — and you only pay for successful generations.
Yes — output can be used in commercial projects, subject to the upstream provider's usage policy.
Completions are returned synchronously in the API response.
Yes — it's the same Grok model, accessed through you.bot's unified API at better rates.
Yes — set `reasoning_effort` to Low, Medium, High. Higher effort uses more output tokens. The default is High.
Yes — set `stream` to true to receive the answer token by token as it is generated.
Yes — turn on `web_search` and the model can look up current information before it answers.
Grok
Grok 4.5 API code example
/api/v1/generateGrok 4.5 — frontier reasoning and generation through one API.
Overview
Grok 4.5 is a single synchronous call: POST /api/v1/generate and the generated text is returned inline in the response — no polling step.
Authentication
All requests require a Bearer Token in the header:
Authorization: Bearer YOUR_API_KEYRequest parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| modelId | string | Yes | Model id: `grok-4-5` |
| input | object | Yes | Input parameters object (see below) |
input object parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | Text value · default: Explain quantum entanglement to a 10-year-old using a pair of magic gloves as the example. Keep it under 120 words. |
| structured_outputs | boolean | No | Generate structured outputs (true/false) · default: false |
| web_search | boolean | No | Web search feeds the results back as input tokens, so a searched turn typically costs many times a normal turn (measured: 6–87×). Billed per token as usual — nothing extra per search. (true/false) · default: false |
| reasoning_effort | string | No | Control reasoning depth: Low for faster responses, High for deeper analysis (options: Low, Medium, High) · default: High |
| stream | boolean | No | Send true to receive the reply as an event stream (Content-Type: text/event-stream). Omit it and you get a single JSON response — streaming is opt-in on this endpoint. (true/false) · default: true |
| max_tokens | number | No | Maximum response length in tokens, reasoning included. Leave empty for the default of 4,096. (range 1–128000) |
Response
The result is returned inline in the POST /api/v1/generate response (no polling):
{ "model": "…", "text": "…", "creditsCharged": …, "usage": { … } } // returned directly by /api/v1/generateError codes
| Code | Description |
|---|---|
| 200 | Request successful |
| 400 | Invalid request parameters |
| 401 | Authentication failed — check API Key |
| 402 | Insufficient account balance |
| 403 | IP not allowed for this key, or the key is restricted to other models |
| 404 | Task not found, or it has expired |
| 409 | Duplicate request — an identical submit arrived moments ago. Nothing was charged; retry is safe |
| 413 | Payload too large — see the character and file-size limits for this model |
| 429 | Rate limit exceeded — retry after the Retry-After header |
| 500 | Internal server error |
| 504 | Upstream timed out — nothing was delivered; retry is safe |
| 400 · capability_not_supported | A capability was requested (e.g. `web_search: true`) that this model does not offer — refused, nothing charged |
| 400 · unknown_image_field | Images were sent under a key this model has no parameter for (input_urls, image_urls, imageUrl …) — refused rather than answered without them |
| 400 · image_input_not_supported | This model accepts text only — a request with an image is refused, not answered without it |
curl --location 'https://you.bot/api/v1/generate' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"modelId": "grok-4-5",
"input": {
"prompt": "Explain quantum entanglement to a 10-year-old using a pair of magic gloves as the example. Keep it under 120 words.",
"structured_outputs": false,
"web_search": false,
"reasoning_effort": "High",
"stream": false,
"max_tokens": 4096
}
}'{
"model": "grok-4-5",
"text": "…",
"creditsCharged": 0.06,
"usage": {
"inputTokens": 1400,
"outputTokens": 120,
"cachedInputTokens": 1024,
"cacheWriteTokens": 0
}
}



