How Grok Image Generation Limits Work on xAI
Generating images with Grok involves two distinct surfaces: the xAI Developer API (which has explicit, documented rate limits and batch caps) and consumer Grok web/app interfaces (where xAI does not publish fixed daily image counts). Understanding both helps explain why you might hit a throttle in code or reach a usage cap in chat.
1. Developer API Rate Limits and Parameters
In the xAI API documentation, image generation is served by models such as grok-imagine-image and grok-imagine-image-2.0. Rather than enforcing a static tokens-per-minute (TPM) cap on image generation, xAI caps image requests by requests per second (RPS) across spend-based tiers:
| API Tier | Cumulative Spend Threshold | Image RPS (grok-imagine-image & grok-imagine-image-2.0) |
|---|---|---|
| Tier 0 | $0 (default) | 6 RPS |
| Tier 1 | $50 | 12 RPS |
| Tier 2 | $250 | 25 RPS |
| Tier 3 | $1,000 | 50 RPS |
| Tier 4 | $5,000 | 100 RPS |
| Enterprise | Custom / on request | Custom |
Key operational limits and behaviors in the API include:
- Batch size (
n): A single generation request acceptsnbetween 1 and 10 images (defaulting to1on REST and OpenAI-compatible SDKs, while the xAI Python SDK separates single outputs viasample()from multi-image batches viasample_batch(n=...)). - Resolution & aspect ratio: Supported resolutions are
1k(default) and2k, with aspect ratios ranging from1:1,16:9, and9:16up to21:9and5:2(orauto). - Quality settings: On
grok-imagine-image-2.0, thequalityparameter acceptslow,medium, orauto(which defaults tolowfor generation andmediumfor editing, with billing tied to the served quality). - Deferred jobs & retention: Setting
deferred: trueon/v1/images/generationsor/v1/images/editsreturns arequest_idfor polling viaGET /v1/images/{request_id}, supportsurloutput only, and retains completed results for 24 hours. - Rate-limit errors & increases: Exceeding your RPS cap returns an HTTP
429 Too Many Requestserror. While standard API tiers scale automatically with cumulative spend since January 1, 2026 (and never downgrade), xAI notes that increases to image and video model limits require contacting[email protected].
(Note: For image inputs/understanding rather than generation, xAI’s API docs specify a maximum file size of 25 MiB per image with no fixed image count limit, whereas consumer Grok web/app file uploads list up to 150 MB per file for most supported files.)
2. Consumer Grok Web and App Usage Limits
On consumer Grok web and mobile apps, xAI does not publish a fixed numerical image-generation quota per day or per plan. In practice, free users have tighter access than paid subscribers, and usage on consumer plans can be governed by rolling or pooled usage windows rather than a publicly documented hard daily counter.
Because consumer quotas are not officially fixed in public documentation, exact numbers vary across accounts, plan tiers, and server load—meaning any fixed daily count cited outside official docs should be treated as an estimate rather than a guarantee.
3. Practical Ways to Work Within Limits
- Use batching or async concurrency thoughtfully: When generating multiple variations of one prompt, pass
n(up to 10) in a single call; when generating distinct prompts in parallel, stay comfortably below your tier’s RPS ceiling to avoid429retries. - Use deferred mode for large jobs: For heavy or asynchronous batch workflows,
deferred: trueprevents holding synchronous connections open and gives you 24 hours to retrieve results. - Check your console and plan tier: Developers can inspect their active tier and per-model limits in the xAI Console’s Models page or reach out to
[email protected]for higher image generation throughput.
Leave a Reply