xAI's highest-fidelity Grok Imagine image model, served over the direct xAI API. Best output quality in the Grok Imagine family for detailed, polished renders.
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-quality",
"input": {
"prompt": "An ultra-detailed studio photograph of a vintage mechanical watch on dark velvet, macro lens, dramatic side lighting",
"aspect_ratio": "3:2",
"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 |
Ultra-detailed studio product photograph
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-quality",
"input": {
"prompt": "An ultra-detailed studio photograph of a vintage mechanical watch on dark velvet, macro lens, dramatic side lighting",
"aspect_ratio": "3:2",
"resolution": "2k"
}
}'POST /v1/predictions