Text model API
Grok 4.6 API
x-ai/grok-4.6 is a next-generation frontier reasoning and general-purpose AI model from xAI, built for demanding tasks across coding, STEM, research, analysis, and knowledge work. It is designed to provide strong reasoning and instruction-following while handling complex, multi-step problems and large amounts of context. For your platform, I’d position it as a premium general-purpose reasoning model suitable for developers, researchers, and professional users. OpenRouter's current xAI catalog highlights Grok's frontier capabilities in coding, knowledge work, and STEM, along with large-context
- Model id
grok-46- Takes
- Text (required)
- Makes
- Text
- Endpoint
POST /api/v1/chat/completions- Made by
- xAI
- Mode
- Synchronous
Call Grok 4.6
https://payload.rentprompts.com/api/v1. Replace the placeholder with your key.Model grok-46
POST /api/v1/chat/completions
curl https://payload.rentprompts.com/api/v1/chat/completions \
-H "Authorization: Bearer rp_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-46",
"messages": [
{
"role": "user",
"content": "Write a haiku about APIs."
}
],
"max_tokens": 256
}'Replace rp_live_YOUR_KEY with your key, ideally via the RENTPROMPTS_API_KEY environment variable. Keys are shown only once, so they are never filled in here. Get your API key →
What a typical call costs
- 1,000 input + 500 output tokens0.8 Joules
- 10,000 input + 2,000 output tokens5.6 Joules
Send requests to POST /api/v1/chat/completions. Grok 4.6 answers synchronously: the result comes back in the response to the same request. Token counts come from the model's own usage report, so a real call may use more or fewer tokens than this example.
Settings
This model has no extra settings. Send the standard fields shown in the example.