xAI
LLMGrok 4.6 at 85.6% off official list plus Grok 4.5 and Grok 4.7 with 500K context windows.
xAI Model Matrix
Pricing, context/resolution specs, and input-output modalities.
Quickstart with xAI
Call grok-4.6 (or any xAI model ID above) with one OpenDesign Go key.
curl https://amr-link.open-design.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $COROUTER_API_KEY" \
-d '{
"model": "grok-4.6",
"max_tokens": 1024,
"messages": [
{ "role": "user", "content": "Refactor this API handler for streaming responses." }
]
}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://amr-link.open-design.ai/v1",
api_key=os.environ["COROUTER_API_KEY"],
)
response = client.chat.completions.create(
model="grok-4.6",
max_tokens=1024,
messages=[
{"role": "user", "content": "Refactor this API handler for streaming responses."}
],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://amr-link.open-design.ai/v1",
apiKey: process.env.COROUTER_API_KEY,
});
const response = await client.chat.completions.create({
model: "grok-4.6",
max_tokens: 1024,
messages: [
{ role: "user", content: "Refactor this API handler for streaming responses." },
],
});
console.log(response.choices[0].message.content);import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://amr-link.open-design.ai",
apiKey: process.env.COROUTER_API_KEY,
});
const message = await client.messages.create({
model: "grok-4.6",
max_tokens: 1024,
messages: [
{ role: "user", content: "Refactor this API handler for streaming responses." },
],
});
console.log(message.content);xAI FAQ
OpenDesign Go lists 3 xAI models (LLM), all accessible through one OpenDesign Go API key.
xAI pricing starts at $0.28886/1M (-85.6% / $2). Eligible xAI models receive up to -85.6% off official list rates directly on OpenDesign Go.
Use Grok 4.6 (grok-4.6) for flagship reasoning and complex multi-file coding, or Grok 4.5 (grok-4.5) for high-volume, lower-cost workloads.
Send requests to https://amr-link.open-design.ai/v1 with Authorization: Bearer $COROUTER_API_KEY and pass the exact model ID shown in the matrix (such as grok-4.6) without adding a provider prefix.
xAI models offer up to -75% off input pricing on cached prompt reads. Long-context tier pricing applies to 1 model above their input threshold.
Yes. All 88 models across 17 providers share one API key and unified credit balance, with Zero Data Retention (no prompt, response, or media storage).