Full Model Access
Browse every model currently listed for this provider in the RunAPI catalog.
Grok Imagine — image and video generation with text-to-image, image-to-video, and editing.
Browse every model currently listed for this provider in the RunAPI catalog.
Review each model's published RunAPI price before sending a request.
Use your RunAPI key without creating a separate provider account.
Keep this provider and other supported models on one RunAPI balance.
Sign up for free and create a RunAPI key — no xAI account needed.
POST to /v1/chat/completions with any xAI model slug.
Stream the response or receive a webhook when the task completes.
xAI Grok 4.5 and 4.6 API access through RunAPI Responses and Chat Completions for reasoning, tools, and structured output.
Grok Imagine API access for image and video generation from text, including text-to-image, image-to-image, text-to-video, and image-to-video.
Use the Grok Imagine Video API via RunAPI with a model skill, unified auth, and pay-as-you-go pricing.
Compare xAI variants and start with transparent per-call pricing for the model you need.
Use your RunAPI API key for managed xAI access without a separate provider account or credential.
Keep xAI and every other supported model on one RunAPI balance and monthly USD invoice.
| Feature | Direct xAI | Via RunAPI |
|---|---|---|
| Account Required | xAI account + billing | RunAPI account only |
| API Format | xAI SDK | Same xAI SDK (compatible) |
| Pricing | Provider-published rates | Published per-model RunAPI pricing |
| Other Models | xAI only | 249+ models, all providers |
| Billing | Per-provider invoices | One unified credit balance |
| Support | Provider-specific support | RunAPI support |
Response will appear here
from openai import OpenAI
client = OpenAI(
base_url="https://runapi.ai/v1",
api_key="your-runapi-key"
)
response = client.chat.completions.create(
model="grok-4.20-0309-non-reasoning",
messages=[{"role": "user", "content": "Review this rollout plan, identify the three highest-risk assumptions, and return a concise mitigation for each."}]
)
Build chatbots and assistants with xAI models.
Generate marketing copy, code, and creative writing at scale.
Create product shots, illustrations, and design assets with xAI models.
Extract insights from documents, spreadsheets, and structured data.
No. Your RunAPI API key is enough to access the xAI models listed in the catalog.
The model cards above reflect the xAI models currently available through RunAPI.
Usage is charged to your RunAPI balance using the price shown for the selected model.
Yes. Choose another supported model and use its model ID in the same RunAPI workflow.
Open a model page to review its current endpoints, parameters, pricing, and examples.
We're here to help with enterprise setup, integrations, and technical questions.