AI image API · xAI
Grok Imagine Image API pricing per image
Generate images with xAI's Grok Imagine Image through the Cut.Pro API. You see the price before you generate and pay only for what you use.
- Pay as you go, no subscription
- 15 free credits on a new account
- Free quote before every call
From$0.052per imageR$0.17 · 3 credits10 images: $0.52Updated November 07, 2026
Pricing
Grok Imagine Image pricing by mode and resolution
| Mode | Resolution | Price per image | In reais | Credits |
|---|---|---|---|---|
| Text only | 2k | $0.052 | R$0.17 | 3 credits |
| With references | 2k | $0.052 | R$0.17 | 3 credits |
Updated November 07, 2026. Prices use the cheapest credit pack: 1 credit costs $0.0179 (R$0.0599).
Limits
What Grok Imagine Image accepts in each request
- Modes
- Text only and With references
- Resolutions
- 2k
- Aspect ratios
- 16:9, 3:2, 4:3, 1:1, 3:4, 2:3, 9:16
- Reference images
- up to 8
Code
How to call Grok Imagine Image free quote, generation and result
BODY='{"model":"xai/grok-imagine-image","prompt":"product photo of a white sneaker on a studio background"}'
CREDITS=$(curl -s -X POST https://api.cut.pro/api/v1/generations/quote \
-H "X-Api-Key: $CUTPRO_API_KEY" \
-H "Content-Type: application/json" \
-d "$BODY" | jq .credits)
curl -X POST "https://api.cut.pro/api/v1/generations?wait=60" \
-H "X-Api-Key: $CUTPRO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d "$(jq -c --argjson credits "$CREDITS" '. + {credits: $credits}' <<< "$BODY")"const api = "https://api.cut.pro/api/v1";
const headers = { "X-Api-Key": process.env.CUTPRO_API_KEY, "Content-Type": "application/json" };
const body = {
model: "xai/grok-imagine-image",
prompt: "product photo of a white sneaker on a studio background",
};
const quote = await fetch(`${api}/generations/quote`, { method: "POST", headers, body: JSON.stringify(body) }).then((res) => res.json());
let generation = await fetch(`${api}/generations?wait=60`, {
method: "POST",
headers: { ...headers, "Idempotency-Key": crypto.randomUUID() },
body: JSON.stringify({ ...body, credits: quote.credits }),
}).then((res) => res.json());
while (generation.status === "processing") {
generation = await fetch(`${api}/generations/${generation.id}?wait=60`, { headers }).then((res) => res.json());
}
console.log(generation.output?.url ?? generation.error_code);import os, uuid, requests
API = "https://api.cut.pro/api/v1"
headers = {"X-Api-Key": os.environ["CUTPRO_API_KEY"]}
body = {
"model": "xai/grok-imagine-image",
"prompt": "product photo of a white sneaker on a studio background",
}
quote = requests.post(f"{API}/generations/quote", json=body, headers=headers).json()
generation = requests.post(
f"{API}/generations",
params={"wait": 60},
json={**body, "credits": quote["credits"]},
headers={**headers, "Idempotency-Key": str(uuid.uuid4())},
).json()
while generation["status"] == "processing":
generation = requests.get(f"{API}/generations/{generation['id']}", params={"wait": 60}, headers=headers).json()
print(generation["output"]["url"] if generation["status"] == "ready" else generation["error_code"])Read the docsQuestions
API questions before your first call
- At 2k, each image costs $0.052 and 10 images come to $0.52 (R$1.74, 30 credits).
- Create an account, make a key and send the request to the quote, which charges nothing. The 15 free credits cover 5 images with Grok Imagine Image.
- Text only: the prompt describes everything. With references: up to 8 images guide the character, product or style.
- No. Buy a credit pack by card, or in reais with Pix from Brazil, and spend it on Grok Imagine Image and every other model with the same key.
- No. The Cut.Pro key calls Grok Imagine Image without a xAI account, with one balance for every model in the catalog.
- Yes. With a CPF or CNPJ and full address in your billing details, the nota fiscal is issued after each payment is confirmed.
Still missing one? Help center
Compare
Other models of the same kind
- Grok Imagine Image 2.0xAI · from $0.0728 per imageSee price
- Grok Imagine Image QualityxAI · from $0.18 per imageSee price
- Nano Banana ProGoogle · from $0.36 per imageSee price
- Nano Banana 2Google · from $0.11 per imageSee price
- Seedream 5.0 ProByteDance · from $0.0936 per imageSee price
- Nano Banana 2.1Google · from $0.0682 per imageSee price
Generate with Grok Imagine Image today
Create a key, get a free quote and pay only for what you generate.
Create API key