Models / xAI
XA
Grok 4.20 Multi-Agent (0309)
$0.75 in, $1.50 out per million tokens, 40% under xAI's list price.
grok-4.20-multi-agent-0309managed routeOpenAI SDK
Price · per million tokens, USD
| Tokens | xAI list price | UplinkSwitch | Saving |
|---|---|---|---|
| Input | $1.25 | $0.75 | -40% |
| Cached input | $0.20 | $0.12 | -40% |
| Output | $2.50 | $1.50 | -40% |
List price: xAI's published rate, read Oct 11, 2026. Same price on every host.
Call it · base URL and key
Python · OpenAI SDK
from openai import OpenAI
client = OpenAI(
base_url="https://api.uplinkswitch.com/v1",
api_key="sk-uplink-live-...",
)
completion = client.chat.completions.create(
model="grok-4.20-multi-agent-0309",
messages=[{"role": "user", "content": "Summarize this in one line."}],
)
print(completion.choices[0].message.content)TypeScript · OpenAI SDK
import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.uplinkswitch.com/v1',
apiKey: 'sk-uplink-live-...',
});
const completion = await client.chat.completions.create({
model: 'grok-4.20-multi-agent-0309',
messages: [{ role: 'user', content: 'Summarize this in one line.' }],
});
console.log(completion.choices[0].message.content);curl
curl https://api.uplinkswitch.com/v1/chat/completions \
-H "authorization: Bearer sk-uplink-live-..." \
-H "content-type: application/json" \
-d '{"model":"grok-4.20-multi-agent-0309","messages":[{"role":"user","content":"Hello"}]}'What would it cost? · paste a prompt, priced before you send it
Input is counted at about 4 characters per token.
Cheapest first. A real request is billed on the provider's own token count. Same estimate as JSON: POST https://api.uplinkswitch.com/v1/estimate, no key needed.