grok-imagine-image-2.0
About grok-imagine-image-2.0
xAI's next-generation universal image generation model, supporting text-to-image and image-to-image editing, with a maximum output resolution of 2K, adjustable quality levels, and self-balancing speed and image quality Replicate.
Price by routing group
Pick a group in the console when you create a key. Status is live from the router. Live status by group →
| Group | Group status | Model status | Multiplier | Price |
|---|---|---|---|---|
Xai-Grok-1 | … | ×0.7456 | $0.005592 |
USD per call
Supported endpoints
Call grok-imagine-image-2.0 in one request
Works with the OpenAI SDK and any OpenAI-compatible client. Replace the key with your own.
curl https://api.nixapi.com/v1/images/generations \
-H "Authorization: Bearer $NIXAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "grok-imagine-image-2.0", "prompt": "A lighthouse at dawn, watercolor", "size": "1024x1024"}'from openai import OpenAI
client = OpenAI(base_url="https://api.nixapi.com/v1", api_key="sk-…")
img = client.images.generate(model="grok-imagine-image-2.0", prompt="A lighthouse at dawn, watercolor", size="1024x1024")
print(img.data[0].url or img.data[0].b64_json[:40])import OpenAI from 'openai';
const client = new OpenAI({ baseURL: 'https://api.nixapi.com/v1', apiKey: process.env.NIXAPI_KEY });
const img = await client.images.generate({ model: "grok-imagine-image-2.0", prompt: 'A lighthouse at dawn, watercolor', size: '1024x1024' });
console.log(img.data[0].url);Questions about grok-imagine-image-2.0
How much does grok-imagine-image-2.0 cost on NixAPI?
From $0.005592 per call in the Xai-Grok-1 group. Billing is pay-as-you-go in USD with no monthly minimum.
How do I call grok-imagine-image-2.0?
Point any OpenAI-compatible client at https://api.nixapi.com/v1, use your NixAPI key and set the model to "grok-imagine-image-2.0".
Which routing groups serve grok-imagine-image-2.0?
grok-imagine-image-2.0 is available in 1 routing groups: Xai-Grok-1. The lowest price is in Xai-Grok-1.