xAIPaidOperational
Grok Imagine Image
API model name: grok-imagine-image
Grok Imagine Image is xAI's image generation model, served on the Api.Airforce unified API. Access it through the OpenAI-compatible API with one key, alongside 65+ 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 used for?
- Image generation — marketing visuals, concept art, product shots and illustrations.
Related models
Grok 2 VisionxAIGrok 3xAI · $0.63 / 1MGrok 3 DeepsearchxAI · $0.42 / 1MGrok 3 FastxAIGrok 3 MinixAIGrok 3 Mini FastxAIGrok 3 ReasonerxAI · $0.42 / 1MGrok 4xAI · $0.70 / 1MGrok 4 FastxAI · $0.03 / 1MGrok 4 FreexAI · FreeGrok 4 HeavyxAI · FreeGrok 4 ThinkingxAI · $1.80 / 1M
Grok Imagine Image — frequently asked questions
- How much does Grok Imagine Image cost?
- Grok Imagine Image is billed per generation rather than per token. See the pricing page for the current rate.
- What can Grok Imagine Image do?
- Grok Imagine Image is xAI's image generation model, accessible through the Api.Airforce API.
- Is Grok Imagine Image free to use?
- Grok Imagine Image is a paid, pay-as-you-go model — no subscription, you are only charged for usage.
- How do I use Grok Imagine Image via the API?
- Grok Imagine Image is OpenAI-compatible. Point any OpenAI SDK at https://api.airforce/v1 and pass the model ID grok-imagine-image with your Api.Airforce API key.
- Who makes Grok Imagine Image?
- Grok Imagine Image is xAI's image generation model, served through the unified Api.Airforce gateway alongside 65+ other models.
Loading live metrics…
Loading live metrics…
Use Grok Imagine Image via the API
OpenAI-compatible — point any OpenAI SDK at https://api.airforce/v1 and pass grok-imagine-image 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",
"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", 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", prompt: "a red panda coding" });
console.log(img.data[0].url);