Skip to documentation
MakeInfluencer.ai
v1

xAI · image model

Grok Imagine API

Use the Grok Imagine API for hosted AI image generation with model-aware inputs, asynchronous jobs, and MakeInfluencer credits.

Endpoint overview

POSThttps://www.makeinfluencer.ai/api/v1/models/grok-imagine-image/generations

Model ID

grok-imagine-image

Typical time

~10s

Sample quote

3,509 credits

The displayed price is input-specific

The sample quote is Grok 2 Image - xAI photorealistic image generation. Preview your exact payload before generating; previews do not charge.

Create a generation

Send the model fields inside input. The request returns HTTP 202 with an owned generation ID.

cURL
curl --request POST \
  https://www.makeinfluencer.ai/api/v1/models/grok-imagine-image/generations \
  --header "Authorization: Bearer $MAKEINFLUENCER_API_KEY" \
  --header "Idempotency-Key: grok-imagine-image-001" \
  --header "Content-Type: application/json" \
  --data '{
  "input": {
    "prompt": "Editorial portrait of a fashion creator in a sunlit studio",
    "numOutputs": 1
  }
}'

Model parameters

FieldTypeDefaultAccepted values
promptrequiredtext
numOutputsnumber11 – 10
imageUrlsimageArrayUp to 1 items

The same contract is available fromGET /models/grok-imagine-image for server-side validation and dynamic tooling.

Preview credits

POST · no charge
curl --request POST \
  https://www.makeinfluencer.ai/api/v1/models/grok-imagine-image/preview-credits \
  --header "Authorization: Bearer $MAKEINFLUENCER_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
  "input": {
    "prompt": "Editorial portrait of a fashion creator in a sunlit studio",
    "numOutputs": 1
  }
}'

A valid response returns the exact credit cost and pricing description. The dashboard, REST API, and MCP use one balance at the same model price.

Poll the result

GET · image
curl \
  https://www.makeinfluencer.ai/api/v1/generations/image/GENERATION_ID \
  --header "Authorization: Bearer $MAKEINFLUENCER_API_KEY"

Poll until terminal is true. On success, ready is true. Readurl for video orurls for image output. See the polling guide for statuses and backoff.

Grok Imagine API FAQ

How much does the Grok Imagine API cost?

The documented sample request costs 3,509 MakeInfluencer credits. Final cost depends on the exact model inputs, and the preview-credits endpoint returns an exact quote without charging.

Does the Grok Imagine API use a separate balance?

No. REST, MCP, and the MakeInfluencer dashboard use the same account credit balance.

How do I receive Grok Imagine results?

Creation returns HTTP 202 with a generation ID. Poll the image generation-status endpoint until terminal is true. On success, ready is true and the response contains the output URL.