grok-imagine-image
About grok-imagine-image
Grok-Imagine-Image is a multimodal AI model from X, capable of generating high-quality images from text descriptions.
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 |
|---|---|---|---|---|
Azure-Grok-1 | … | ×0.1243 | $0.0258 | |
Cli-Grok-1 | … | ×0.1243 | $0.0258 | |
Cli-Grok-2 | … | ×0.174 | $0.0362 | |
Azure-Grok-2 | … | ×0.1864 | $0.0388 | |
Xai-Grok-1 | … | ×0.7456 | $0.1551 |
USD per call
Supported endpoints
dall-e-3
Call grok-imagine-image 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", "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", 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", prompt: 'A lighthouse at dawn, watercolor', size: '1024x1024' });
console.log(img.data[0].url);Questions about grok-imagine-image
How much does grok-imagine-image cost on NixAPI?
From $0.0258 per call in the Azure-Grok-1 group. Billing is pay-as-you-go in USD with no monthly minimum.
How do I call grok-imagine-image?
Point any OpenAI-compatible client at https://api.nixapi.com/v1, use your NixAPI key and set the model to "grok-imagine-image".
Which routing groups serve grok-imagine-image?
grok-imagine-image is available in 5 routing groups: Azure-Grok-1, Cli-Grok-1, Cli-Grok-2, Azure-Grok-2, Xai-Grok-1. The lowest price is in Azure-Grok-1.