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

1.5 tokens

ImageProvider: xAI

Try Grok Imagine in Givon AI

Open a working project for regular creation, or use Playground to inspect the model parameters.

Use through API

Request fields, constraints, and ready-to-use examples for developers. The user workflow starts above.

Run generation
IDEMPOTENCY_KEY="${IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.givon.ai/api/v1/generations \
  -H "Authorization: Bearer $GIVON_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_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
prompt*prompt

Image description.

Type
string
Default
Allowed
up to 5000 chars
aspectRatioaspectRatio
Type
string
Default
9:16
Allowed
16:9, 1:1, 2:3, 3:2, 9:16
Source imagesourceImage

Asset used as the source image for image editing.

Type
string
Default
Allowed
image · asset, https, data
Reference imagesreferenceAssetUris

Optional reference images as asset:// URIs, HTTPS URLs, or data URIs.

Type
array
Default
Allowed
image · up to 5 · asset, https, data

Cost

1.5 tokens

Capabilities

Modestext_to_imageimage_edit
Asset slotssourceImage:imagereferenceAssetUris:image[]<=5
Get API key

Where to use this model