xAIPaidOperational
Grok Imagine Image 2.0
API model name: grok-imagine-image-2.0
Grok Imagine Image 2.0 is xAI's image generation model, served on the Api.Airforce unified API. Access it through the OpenAI-compatible API with one key, alongside 100+ other models on Api.Airforce.
Pricing
Resolutions: 1:1, 16:9, 9:16
Qualities: standard
Specifications
- Provider
- xAI
- Type
- image generation model
What is Grok Imagine Image 2.0 used for?
- Image generation — marketing visuals, concept art, product shots and illustrations.
Related models
Grok 2 VisionxAI · $3.12 / 1MGrok 3xAI · $2.91 / 1MGrok 3 DeepsearchxAI · $0.57 / 1MGrok 3 FastxAI · $4.74 / 1MGrok 3 MinixAI · $0.51 / 1MGrok 3 Mini FastxAI · $0.93 / 1MGrok 3 ReasonerxAI · $0.57 / 1MGrok 4xAI · $1.64 / 1MGrok 4xAI · $2.07 / 1MGrok 4.20 ReasoningxAI · $0.27 / 1MGrok 4 FastxAI · $0.20 / 1MGrok 4 Fast ReasoningxAI · $0.02 / 1M
Grok Imagine Image 2.0 — frequently asked questions
- How much does Grok Imagine Image 2.0 cost?
- Grok Imagine Image 2.0 is billed per generation rather than per token. See the pricing page for the current rate.
- What can Grok Imagine Image 2.0 do?
- Grok Imagine Image 2.0 is xAI's image generation model, accessible through the Api.Airforce API.
- Is Grok Imagine Image 2.0 free to use?
- Grok Imagine Image 2.0 is a paid, pay-as-you-go model — no subscription, you are only charged for usage.
- How do I use Grok Imagine Image 2.0 via the API?
- Grok Imagine Image 2.0 is OpenAI-compatible. Point any OpenAI SDK at https://api.airforce/v1 and pass the model ID grok-imagine-image-2.0 with your Api.Airforce API key.
- Who makes Grok Imagine Image 2.0?
- Grok Imagine Image 2.0 is xAI's image generation model, served through the unified Api.Airforce gateway alongside 100+ other models.
Loading live metrics…
Loading live metrics…
Loading live metrics…
Use Grok Imagine Image 2.0 via the API
OpenAI-compatible — point any OpenAI SDK at https://api.airforce/v1 and pass grok-imagine-image-2.0 as the model.
cURL
curl https://api.airforce/v1/images/generations \
-H "Authorization: Bearer $AIRFORCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-imagine-image-2.0",
"prompt": "a red panda coding"
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.airforce/v1", api_key="$AIRFORCE_API_KEY")
img = client.images.generate(model="grok-imagine-image-2.0", prompt="a red panda coding")
print(img.data[0].url)JavaScript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.airforce/v1", apiKey: process.env.AIRFORCE_API_KEY });
const img = await client.images.generate({ model: "grok-imagine-image-2.0", prompt: "a red panda coding" });
console.log(img.data[0].url);