xAI's newest Grok Imagine image model, served over the direct xAI API. Strong at precise compositions - infographics, ads, game assets, UI/UX mockups, and storyboards.
Test this model instantly in the Console Playground โ no code required
Copy usage instructions for Claude, ChatGPT, or other AI
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "xai/grok-imagine-image-2.0",
"input": {
"prompt": "A clean isometric infographic of a coffee brewing process, labeled steps, pastel palette, vector-like precision",
"aspect_ratio": "16:9",
"resolution": "2k"
}
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | Yes | - | Text prompt for image generation. |
n | integer | No | 1 | Number of images to generate (1-10). Billed per image. |
aspect_ratio | string | No | auto | Aspect ratio of the generated image. auto1:116:99:164:33:43:22:32:11:219.5:99:19.520:99:20 |
resolution | string | No | - | Output resolution tier. 2k is billed at a higher rate; omitted defaults to 1k. 1k2k |
Common parameters used when calling POST /v1/predictions.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | - | Model identifier |
input | object | Yes | - | Object containing the model-specific parameters from the table above |
output_folder | string | No | - | Folder path for output files (max 256 chars, '..' not allowed) |
webhook_url | string | No | - | Webhook URL to call on completion |
is_public | boolean | No | false | If true, output files are also available via permanent public URLs |
Precise isometric infographic
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "xai/grok-imagine-image-2.0",
"input": {
"prompt": "A clean isometric infographic of a coffee brewing process, labeled steps, pastel palette, vector-like precision",
"aspect_ratio": "16:9",
"resolution": "2k"
}
}'POST /v1/predictions