Guides

Grok Imagine API: Models, Pricing, and Image 2.0 Status

The Grok Imagine API today: current pricing, rate limits, and how to use Image 2.0 now that it is live.

By Aditya Bawankule8 min readUpdated August 8, 2026

The Grok Imagine Image 2.0 API is live, and the model is available in Dream Pixel Forge now.

This guide covers current pricing, rate limits, and how to use Image 2.0 today. For the release itself, see the Imagine Image 2.0 launch post.

Is the Grok Imagine Image 2.0 API available yet?

Yes. xAI launched Image 2.0 in its apps on August 7, 2026, and API access followed on August 8. The model ID is grok-imagine-image-2.0 on xAI's own API, and xai/grok-imagine-image-2.0 through the Vercel AI Gateway, which is the route Dream Pixel Forge calls it on. Grok Imagine 2.0 is live in Dream Pixel Forge now.

Grok Imagine API pricing, per model

xAI prices images per image and video per second, and bills inputs separately from outputs. That second part is the line item that surprises people running edit-heavy workloads, because an edit pays for both the image you send and the image you get back. Current published rates:

ModelModalitiesInputOutput
grok-imagine-imageText, image to image$0.002 per image$0.02 per image at 1K and 2K
grok-imagine-image-qualityText, image to image$0.01 per image$0.05 at 1K, $0.07 at 2K
grok-imagine-image-2.0Text to image$0.05 at 1K, $0.07 at 2K
grok-imagine-videoText, image, video to video$0.01 per second, $0.002 per image$0.05 per second at 480p, $0.07 at 720p
grok-imagine-video-1.5Text, image to videoNot listed separately$0.080 per second

A few readings of that table that matter more than the numbers themselves.

The standard image model is absurdly cheap for exploration. Two cents per output image, and the API lets you "configure output count (up to 10 images per request)". Ten variations of one prompt costs twenty cents and one round trip. That is the single best argument for the API over the consumer app, where you get a subscription and an unpublished daily cap instead of a meter.

The quality tier is 2.5x the standard tier at 1K and 3.5x at 2K. That gap is large enough that routing every job to quality is a real budget decision, not a rounding error. Use the standard model for iteration and reserve the quality tier for the render you ship.

The two video models are not a simple old-and-new pair. grok-imagine-video-1.5 is the newer and more expensive one at $0.080 per second, and it takes text and image input. But only grok-imagine-video accepts video as an input modality, which is what reference-to-video and video extension need. Picking the higher version number is not automatically picking the more capable model for your job.

Grok Imagine API rate limits and regions

xAI publishes per-model rate limits for its existing models: both image models are capped at 5 requests per second, while both video models allow 10 requests per second. A separate limit for Image 2.0 has not been published.

Regions differ per model, and this is easy to miss. Per xAI's model pages, grok-imagine-image and grok-imagine-video are available in us-east-1, us-west-2, and us-saltlake-2, while grok-imagine-image-quality and grok-imagine-video-1.5 are listed only in us-east-1 and us-west-2. If you have a region pinned for latency or data-residency reasons, check it before you assume a model swap is a one-word change.

What the Grok Imagine API actually exposes

Four endpoints, all under https://api.x.ai/v1:

A live two-source call to /images/edits on Quality Mode. Two things to note before you wire it up: the endpoint types the single-source image field as an object but expects bare data-URI strings once you pass an array, and it does honour aspect_ratio on edits, which is easy to assume it ignores. Omit the ratio and you get the source shape back.

On billing behavior, xAI is explicit that "image edits are billed for both the input image and the generated output image." An edit-heavy loop therefore costs roughly 10 percent more per call than the headline output price on the standard model, and about 20 percent more on the quality tier at 1K. Budget accordingly if your product is an editor rather than a generator.

Getting a Grok Imagine API key

Keys come from the xAI developer console, and the client story is deliberately boring: the API is compatible with the OpenAI SDK, so you point an existing OpenAI client at https://api.x.ai/v1 with your xAI key and most of your code stays put. xAI also ships its own xai_sdk Python package, and Grok models are resold through Azure AI Foundry, Oracle OCI Generative AI, and Google Cloud Vertex AI Model Garden if procurement prefers an existing vendor relationship.

The parts that are genuinely on you: key storage and rotation, retry and backoff against those per-second limits, polling loops for video, moving returned URLs into your own storage before they expire, and validating that what came back matches what you asked for. None of that is hard. All of it is code you write once per integration and then maintain forever.

Using Grok Imagine without wiring the API yourself

If you want to use the model without building and maintaining an API integration, Grok Imagine 2.0 is live in Dream Pixel Forge now, for generation and editing alike.

Two surfaces, one account and one credit balance. The MCP endpoint at /api/mcp gives any MCP-capable client (Claude, Codex, or your own agent) tools like generate_image, edit_image, and generate_video directly. The dpf CLI is a zero-dependency npm package (npx dreampixel-cli login) that wraps the identical calls over HTTPS for anything that would rather shell out than speak MCP. The login flow mints the key on your machine and sends only its SHA-256 hash to the server, so a leaked server log yields a hash rather than a usable credential. The details are in the CLI guide and the agent API post.

Select Grok Imagine 2.0 in the image generator and start creating.

When the raw API is still the right call

Plenty of cases, and it is worth being straight about them. Go direct to xAI when you need the exact per-call cost on your own invoice, when you want the 10-images-per-request batching for a research or evaluation loop, when you need a specific model id and region pinned for compliance, or when generation is your core product and the routing logic is a thing you want to own. Two cents an image is hard to beat when you are prepared to build everything around it.

Go through a routed surface when generation is a feature inside a larger product, when an agent is the caller and you would rather it get a validated result than an image URL and a retry policy, or when you want to A/B Grok against Nano Banana and GPT Image without maintaining three integrations. Model comparisons are in the Grok Imagine prompt guide, which also covers the reference aspect-ratio trap that quietly distorts edit inputs on the standard model, and the Grok image editing guide for the multi-image edit workflow specifically.

The short version

Grok Imagine Image 2.0 is available now, and it is live in Dream Pixel Forge.

Tools for this guide

Frequently asked questions

Is the Grok Imagine Image 2.0 API available?

Yes. Grok Imagine Image 2.0 is available now and live in Dream Pixel Forge.

How much does the Grok Imagine API cost?

Per xAI's pricing page as of August 7, 2026: grok-imagine-image is $0.002 per input image and $0.02 per output image at both 1K and 2K. grok-imagine-image-quality is $0.01 per input image and $0.05 per output at 1K or $0.07 at 2K. grok-imagine-video is $0.01 per second plus $0.002 per input image, with output at $0.05 per second at 480p or $0.07 at 720p. grok-imagine-video-1.5 is listed at $0.080 per second of output. Image edits bill for both the input image and the generated output.

What are the Grok Imagine API rate limits?

xAI publishes limits per model. Both image models, grok-imagine-image and grok-imagine-image-quality, are capped at 5 requests per second. Both video models, grok-imagine-video and grok-imagine-video-1.5, allow 10 requests per second. Video generation is asynchronous, so you POST a job and poll GET /videos/{REQUEST_ID} for the result rather than holding a request open. A single image request can return up to 10 images, which is the cheapest way to explore variations without burning through the per-second limit.

Which Grok Imagine video model should I use?

It depends on your input, not on the version number. grok-imagine-video-1.5 is the newer and more expensive model at $0.080 per second and accepts text and image input. grok-imagine-video is cheaper at $0.05 to $0.07 per second and is the only one that accepts video as an input modality, which is what reference-to-video, video editing, and video extension need. Region availability also differs: grok-imagine-video is listed in us-east-1, us-west-2, and us-saltlake-2, while 1.5 is listed only in us-east-1 and us-west-2.

Do I need an xAI API key to use Grok Imagine?

Only if you call xAI directly. Keys come from the xAI developer console, and the API is compatible with the OpenAI SDK, so you can point an existing client at https://api.x.ai/v1. Grok models are also resold through Azure AI Foundry, Oracle OCI Generative AI, and Google Cloud Vertex AI Model Garden. Studios that route to Grok, including Dream Pixel Forge, remove the key requirement entirely: you call one surface and the router handles the provider relationship, retries, and storage.

How do Dream Pixel Forge credits map to Grok Imagine API pricing?

Grok Imagine 2.0 costs 4 credits per image in Dream Pixel Forge. The same credit balance works across every image and video model in the app.