XPlor3
Model reference

Grok Imagine Image

Lightweight xAI visual model for rapid text-to-image rendering with optional single image reference.

PropertyValue
modelSluggrok-imagine-image
KindImage
MakerxAI
Copies per request (variations)1 to 5
How the cost is countedper copy
Over MCPyes, with the generate tool

Credit amounts are left out because they change. The lowest price is creditCost on GET /v1/models, and POST /v1/jobs answers with the exact creditCost of a request.

input fields

Send the fields below inside the input object. A field you leave out takes its Default. Unknown field names are dropped without an error, so check the spelling if a setting seems to have no effect.

FieldTypeRequiredDefaultRules
promptstring––Up to 390,000 characters
reference_imagesstring[] (image upload ids)––Reference images. One file at most
aspect_ratiostring (one of)–1:11:1, 2:3, 3:2, 16:9, 9:16

Rules by setting

This model runs a different version depending on what you send. The rules below are checked before any credits move; a request that breaks one is refused with 400 and a message naming the field.

Without a reference file

  • Takes no files in reference_images; a request that fills one is refused.
  • prompt 1 to 5,000 characters.

With a reference file

  • aspect_ratio is not used; any value sent is ignored.
  • reference_images: required; one file at most; at most 10 MB per file.

Example request

POST /v1/jobs
{
  "modelSlug": "grok-imagine-image",
  "input": {
    "prompt": "Product photo of white running shoes on a river stone, soft side light in the morning"
  }
}

On this page