Grok Imagine Image Pro API

x-ai/grok-imagine-image-pro
Grok Imagine Image Pro is xAI's flagship image generation and editing model, delivering photorealistic quality, precise multi-image understanding, and Pareto-optimal cost efficiency for professional creative workflows.
Output
$0.091 / gen
Released
Mar 3, 2026

Overview

Core Capabilities

Professional Image Generation & Editing at Scale

Grok Imagine Image Pro extends the base image model with enhanced instruction-following, multi-image context understanding, and production-ready API features designed for creative teams and developer workflows alike.

Text-to-Image Generation

Transform natural language prompts into high-fidelity images across any visual style — photorealistic portraits, oil paintings, anime illustrations, pencil sketches, and beyond. Instruction following is class-leading, ensuring your creative intent is precisely rendered.

Style Transformation

Reinvent any existing image with a new visual aesthetic using a single descriptive prompt. Convert a photograph into a pencil sketch, morph a portrait into retro anime, or apply stenciled street-art treatment to architectural photos with consistent, high-fidelity results.

Custom Aspect Ratios

Generate images at any aspect ratio required by your platform — square social media assets, widescreen banners, portrait product shots, or cinematic stills. The model maintains compositional coherence across all dimensions without cropping artifacts.

Base64 & URL Output Formats

Receive generated images as direct URLs for quick previews, or as base64-encoded data for seamless embedding in applications without additional storage infrastructure. Both modes support the full resolution output from the Pro model.

API Pricing

  • $0.091 per image

From Solo Creators to Enterprise Workflows

Grok Imagine Image Pro is engineered for speed and iteration, letting creative teams explore multiple visual directions in parallel without sacrificing quality or burning budget.

Product Showcases & E-commerce

Edit product colors, swap backgrounds, remove props, and generate lifestyle imagery at scale, reducing photoshoot costs while maintaining brand consistency across thousands of SKUs.

Marketing & Ad Creative

Generate on-brand visuals for social media, display ads, and email campaigns in seconds. A/B test visual directions rapidly without waiting for design iteration cycles or external agencies.

Game & Entertainment Design

Produce character concept art, environment moodboards, prop references, and storyboard panels. Retro anime and cyberpunk aesthetics are a particular strength noted by the ComfyUI community.

Architecture & Interior Design

Visualize spatial concepts, test material palettes, and generate client-ready renders from rough sketches, collapsing the concept-to-presentation timeline from days to minutes.

Ranked Among the World's Best

Arena.ai's Image Arena benchmark evaluates models through human side-by-side comparisons across diverse generation and editing tasks. Both Grok Imagine Image and Grok Imagine Image Pro sit on the Pareto frontier — the highest quality achievable at their respective price points.

__wf_reserved_inherit

Uptime and performance

  • Uptime (24h): 100%
  • Uptime (7d): 73.0%
  • Availability (24h): 67.0%
  • Error rate (24h): 33.0%

Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.

Use cases

A useful reference label is not supported from the gathered sources. The only exact-model result appears to be a migration/deprecation page for grok-imagine-image-pro, and it does not provide enough direct model-type detail to safely derive distinct use cases without risking inference.

How to use Grok Imagine Image Pro API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to x-ai/grok-imagine-image-pro.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/images/generations",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "x-ai/grok-imagine-image-pro",
      "prompt": "A cat holding a sign that says hello"
    },
)
print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/images/generations", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "x-ai/grok-imagine-image-pro",
    "prompt": "A cat holding a sign that says hello"
  }),
});
console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/images/generations \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"x-ai/grok-imagine-image-pro","prompt":"A cat holding a sign that says hello"}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Grok Imagine Image Pro API Pricing

TypePrice
Input
Output
$0.091 / gen

Grok Imagine Image Pro vs other models

ModelInputOutputContextBest for
$0.091 / gen
Image generation at scale
$0.325 / 1M tokens
$78 / 1M tokens
128K tokens
Image generation at scale
$6.5 / 1M tokens
$39 / 1M tokens
Image generation at scale
$0.325 / gen
Image generation at scale
$0.0195 / MP (variable)
Image generation at scale

Frequently asked questions

Grok Imagine Image Pro takes image, text as input and returns image.

Grok Imagine Image Pro is priced at $0.091 / gen.

Grok Imagine Image Pro is billed per generation — a fixed charge per output rather than by prompt length.

Yes, Grok Imagine Image Pro accepts image input as well as a text prompt.

Grok Imagine Image Pro was built by xAI .

Send a request to https://api.aimlapi.com/v1/images/generations with x-ai/grok-imagine-image-pro as the model id.

Yes. Grok Imagine Image Pro is served through AI/ML API, so the same key and endpoint format used for other models applies.

It is a text-to-image model designed for high-quality image generation with improved detail and prompt fidelity.

Start building with Grok Imagine Image Pro

Get API Key
1000+ models, one API.