Grok Imagine
Base xAI image tier: generate and edit full images from text without masks, and compose from several references. Use it for quick concepts and conversational edits when Pro-level precision is not required.
Cost
2 tokens
ImageProvider: xAI
Run generation
curl -X POST https://api.givon.ai/api/v1/generations \
-H "Authorization: Bearer $GIVON_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type":"image","model":"grok-imagine","input":{"prompt":"studio portrait of a red corgi, soft light","aspectRatio":"9:16","sourceImage":"asset://asset_...","referenceAssetUris":["asset://asset_..."]}}'Input fields
* required| Field | Type | Default | Allowed |
|---|---|---|---|
prompt* promptImage description. | string | — | string |
aspectRatio aspectRatio | string | 9:16 | 9:16, 16:9, 1:1, 2:3, 3:2 |
Source image sourceImageAsset used as the source image for image editing. | string | — | image · asset, https, data |
Reference images referenceAssetUrisOptional reference images as asset:// URIs, HTTPS URLs, or data URIs. | array | — | image · up to 5 · asset, https, data |
prompt*
promptImage description.
- Type
- string
- Default
- —
- Allowed
- string
aspectRatio
aspectRatio- Type
- string
- Default
- 9:16
- Allowed
- 9:16, 16:9, 1:1, 2:3, 3:2
Source image
sourceImageAsset used as the source image for image editing.
- Type
- string
- Default
- —
- Allowed
- image · asset, https, data
Reference images
referenceAssetUrisOptional reference images as asset:// URIs, HTTPS URLs, or data URIs.
- Type
- array
- Default
- —
- Allowed
- image · up to 5 · asset, https, data
Cost
2 tokensCapabilities
Modes
text_to_imageimage_editimage_referenceAsset slots
sourceImage:imagereferenceAssetUris:image[]<=5Run Grok Imagine
Get an API key and the same request shape will work across every model in the catalog.