xAI

Grok Imagine — image and video generation with text-to-image, image-to-video, and editing.

3
MODELS
LLM · Image · Video · Utility
MODALITIES
Get API Key

What you get through RunAPI

Full Model Access

Browse every model currently listed for this provider in the RunAPI catalog.

Transparent Pricing

Review each model's published RunAPI price before sending a request.

No Account Required

Use your RunAPI key without creating a separate provider account.

Unified Billing

Keep this provider and other supported models on one RunAPI balance.

HOW IT WORKS

Call xAI models in 3 steps

  1. Get Your Key

    Sign up for free and create a RunAPI key — no xAI account needed.

  2. Send a Request

    POST to /v1/chat/completions with any xAI model slug.

  3. Get Results

    Stream the response or receive a webhook when the task completes.

MODELS

xAI Models on RunAPI

Text

Grok

xAI Grok 4.5 and 4.6 API access through RunAPI Responses and Chat Completions for reasoning, tools, and structured output.

$0.63 / 1M tokens View →
Image

Grok Imagine

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.

$0.04 / call View →
Video

Grok Imagine Video

Use the Grok Imagine Video API via RunAPI with a model skill, unified auth, and pay-as-you-go pricing.

$0.02 / second View →

Why use xAI via RunAPI

Lower Cost

Compare xAI variants and start with transparent per-call pricing for the model you need.

No Account Needed

Use your RunAPI API key for managed xAI access without a separate provider account or credential.

Unified Billing

Keep xAI and every other supported model on one RunAPI balance and monthly USD invoice.

RunAPI vs Direct xAI

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
Playground

Try xAI Models

Estimated: $0.02-$0.03 / second

Sign in to generate with RunAPI.

Sign in to generate

Sign in to start generating with your available language models.

Response will appear here

QUICKSTART

Call xAI Models via RunAPI

Python
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."}]
)

What teams build with xAI models

Conversational AI

Build chatbots and assistants with xAI models.

Content Generation

Generate marketing copy, code, and creative writing at scale.

Image Creation

Create product shots, illustrations, and design assets with xAI models.

Data Analysis

Extract insights from documents, spreadsheets, and structured data.

Provider questions

Do I need a xAI account?

No. Your RunAPI API key is enough to access the xAI models listed in the catalog.

Which xAI models are available?

The model cards above reflect the xAI models currently available through RunAPI.

How does billing work?

Usage is charged to your RunAPI balance using the price shown for the selected model.

Can I switch to another model?

Yes. Choose another supported model and use its model ID in the same RunAPI workflow.

Where can I find request details?

Open a model page to review its current endpoints, parameters, pricing, and examples.

Start building on one key.

Building with a team?

We're here to help with enterprise setup, integrations, and technical questions.

Contact Us