321AI Model MarketplaceLive marketplace →

Grok API on 321AI

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.

Grok model prices

ModelMarket floor priceChannels
grok-4.7$0.0027 in · $0.0081 out / 1M tok438
grok-4.6$0.002973 in · $0.008921 out / 1M tok71
grok-4.5$0.00165 in · $0.004952 out / 1M tok53
grok-4.7-build-fast$0.008427 in · $0.025283 out / 1M tok25
grok-4.3$0.015 in · $0.03 out / 1M tok18
grok-imagine-image$0.0117 / call13
grok-4.20-0309-reasoning$0.198288 in · $0.396576 out / 1M tok10
grok-4.20-multi-agent-0309$0.015 in · $0.03 out / 1M tok10
grok-imagine-image-lite$0.0072 / call9
grok-imagine-video-1.5$0.081 / call8
grok-4.20-0309-non-reasoning$0.012558 in · $0.025118 out / 1M tok7
grok-imagine-image-pro$0.009288 / call5
grok-imagine-image-2.0$0.092786 / call4
grok-imagine-image-edit$0.0162 / call3
grok-build-0.1$0.015 in · $0.03 out / 1M tok2

Floor across suppliers; per-supplier quotes on the marketplace. Every model page has a .md machine-readable twin.

Quickstart

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)

FAQ

How much does the Grok API cost on 321AI?

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.

How do I call the Grok API here?

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.

What about reliability?

Multiple suppliers quote every model, so smart routing avoids failing channels automatically; merchants publish upstream self-check samples, and failed requests are never billed.

Can I try before paying?

Registration includes free trial credit — call real models before you top up. Sign up: https://321ai.cc/ui/new/#/register

Other brands (English)

Claude OpenAI GPT Gemini DeepSeek Qwen 通义千问 GLM 智谱 Kimi MiniMax
All model pricesFeatured · 321AI communityFeatured · Open-source toolsFeatured · Advertise with usFeatured