xAI · 15 models · multi-supplier bidding · get a key
How do I use the Grok API and what does it cost? Create a key in the console: OpenAI protocol sets base_url to https://321ai.cc/v1; Anthropic protocol (Claude Code) sets ANTHROPIC_BASE_URL to https://321ai.cc. This page lists 15 Grok models with live market floor prices from competing suppliers (data date 2026-11-20; machine-readable: https://321ai.cc/api/public/model-prices). Failures never billed, platform fee 0.
xAI Grok family — realtime information and a distinct reasoning style.
| Model | Market floor price | Channels |
|---|---|---|
| grok-4.7 | $0.0027 in · $0.0081 out / 1M tok | 438 |
| grok-4.6 | $0.002973 in · $0.008921 out / 1M tok | 71 |
| grok-4.5 | $0.00165 in · $0.004952 out / 1M tok | 53 |
| grok-4.7-build-fast | $0.008427 in · $0.025283 out / 1M tok | 25 |
| grok-4.3 | $0.015 in · $0.03 out / 1M tok | 18 |
| grok-imagine-image | $0.0117 / call | 13 |
| grok-4.20-0309-reasoning | $0.198288 in · $0.396576 out / 1M tok | 10 |
| grok-4.20-multi-agent-0309 | $0.015 in · $0.03 out / 1M tok | 10 |
| grok-imagine-image-lite | $0.0072 / call | 9 |
| grok-imagine-video-1.5 | $0.081 / call | 8 |
| grok-4.20-0309-non-reasoning | $0.012558 in · $0.025118 out / 1M tok | 7 |
| grok-imagine-image-pro | $0.009288 / call | 5 |
| grok-imagine-image-2.0 | $0.092786 / call | 4 |
| grok-imagine-image-edit | $0.0162 / call | 3 |
| grok-build-0.1 | $0.015 in · $0.03 out / 1M tok | 2 |
Floor across suppliers; per-supplier quotes on the marketplace. Every model page has a .md machine-readable twin.
Set base_url to https://321ai.cc/v1; pick any model above as model.
from openai import OpenAI
client = OpenAI(api_key="YOUR_KEY", base_url="https://321ai.cc/v1")
resp = client.chat.completions.create(
model="grok-4.7",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
All 15 Grok models are quoted by multiple suppliers; this page shows the market floor price per model, refreshed live (data date 2026-11-20). Per-supplier quotes and upstream self-check records are on the marketplace page.
OpenAI protocol: set base_url to https://321ai.cc/v1 and use the key generated in your console; model name is any of the Grok models listed above. Existing SDKs need no code changes.
Multiple suppliers quote every model, so smart routing avoids failing channels automatically; merchants publish upstream self-check samples, and failed requests are never billed.
Registration includes free trial credit — call real models before you top up. Sign up: https://321ai.cc/ui/new/#/register