Understanding Grok Image Generation Limits: A Complete Guide
When working with xAI’s image generation and editing capabilities—whether through the consumer interface or integrated programmatically via the xAI API—understanding the technical parameters, rate thresholds, and formatting limits is essential.
xAI structures limits around model tiers, asset resolutions, input file sizes, and request frequencies (grok-imagine-image and grok-imagine-image-2.0).
1. API Rate Limits & Tiers
For developers using xAI’s developer console, image generation rate limits are organized by spending tiers. Your tier scales automatically based on cumulative prepaid credits or fulfilled invoices and never downgrades.
- Requests Per Second (RPS) Caps for Image Models (
grok-imagine-image/grok-imagine-image-2.0):- Tier 0 ($0 default): 6 RPS
- Tier 1 ($50 spend): 12 RPS
- Tier 2 ($250 spend): 25 RPS
- Tier 3 ($1,000 spend): 50 RPS
- Tier 4 ($5,000 spend): 100 RPS
- Exceeding Limits: Pushing past your tier’s designated RPS threshold results in a standard
429 Too Many Requestserror response. For customized enterprise caps or specific video/image model adjustments beyond standard tiers, developer support handles requests directly.
2. Resolution, Quality, and Aspect Ratio Boundaries
When submitting generation or editing tasks, output boundaries dictate how fine or wide your visuals can get:
- Resolutions: Supports 1K (default when omitted) and high-definition 2K outputs.
- Quality Controls (
grok-imagine-image-2.0): Allows parameters forlow,medium, orauto. By default,autoapplieslowfor generation andmediumfor editing tasks. - Aspect Ratios: Supports a broad spectrum of layout configurations tailored to specific use cases, ranging from classic squares (
1:1) and widescreen formats (16:9,21:9) to mobile-optimized options (9:16,20:9) and custom banners (5:2,2:1), alongside anautosetting where the model selects the optimal ratio.
3. Input Constraints for Image Editing & Understanding
If you are passing existing assets into Grok for image-to-image workflows, editing, or multi-image composition (supporting up to 5 source images in a single request), strict file constraints apply:
- Maximum File Size: Up to 25 MiB per individual image.
- Minimum Dimensions: Both width and height must measure at least 8 pixels, with a combined total of at least 512 pixels (
Leave a Reply