Grok Imagine Image 2.0 returns up to 10 images: n on Sume
xAI's docs say up to 10 images per request at a flat per-image price. On Sume, the Grok row has its own n ceiling, so read it before you batch.

xAI's Imagine API docs say grok-imagine-image-2.0 can return up to 10 images per request and prices them flat per image regardless of prompt length. Sume lists the Grok image model as x-ai/grok-image; n is capped by the catalog row, not by xAI's figure, so check supported_parameters.n.max before you ask for 10.
xAI's limits are from its image generation guide, read 2026-10-03. Sume's rules are from the Image API docs.
What xAI documents
The guide names grok-imagine-image-2.0 for image generation and editing and grok-imagine-video-1.5 for video. It lets you edit one image from a URL or base64 data URI, or combine up to 5 source images in one request, and says generated media is subject to content policy review and is not used for training.
| Limit | xAI docs | Sume |
|---|---|---|
| Images per request | Up to 10 | n 1 to 10 on the route; model ceiling in the catalog |
| Source images in an edit | Up to 5 | input_references; check the descriptor for x-ai/grok-image |
| Price shape | Flat per image | One output_image line in endpoint pricing |
Read the Sume ceiling
The catalog lists each row's n and input_references range. Run this and find the x-ai/grok-image line.
import os
import requests
key = os.environ["SUME_API_KEY"]
url = "https://api.sume.com/v1/images/models"
resp = requests.get(url, headers={"Authorization": f"Bearer {key}"}, timeout=30)
resp.raise_for_status()
for model in resp.json()["data"]:
params = model["supported_parameters"]
refs = params.get("input_references", {}).get("max", 0)
n_max = params.get("n", {}).get("max", 1)
print(model["id"], "refs:", refs, "n:", n_max)
Limits
A request that exceeds the model's range is rejected with 400 unsupported_parameter, not trimmed. Billing follows the docs: completed generations are billed in full and failed ones are not, so a batch that fails costs nothing, but a batch that completes costs cost_usd times n.
Sources
Related posts
More in Models
- Design an episode's opening frame with Grok Imagine, then animate it
Make the first frame with x-ai/grok-image (9:16, about $0.025 a still on Sume), approve it, then pass it as first_frame to a video model. Costs and code.
- Hebrew and Georgian text to speech API: he and ka on Sume TTS
Cartesia lists Hebrew (he) and Georgian (ka) on Sonic 3.6, 3.5 and 3. What to send to Sume TTS, why the library has no voice for them, and what a script costs.
- Higgsfield Soul 2 custom_reference_id is not a Sume parameter
Higgsfield's Soul 2 API takes custom_reference_id for a saved character. Sume's Soul is text-only; for a consistent character use a model that takes references.
- Soul 2 lookbook batch of 4: Higgsfield Soul on Sume
Generate a four-image lookbook set per request with Higgsfield Soul 2: batch_size 1 or 4, 720p or 1080p, seven ratios, text-to-image only.
Written by Sume