the real-time terminal for AI news

↗

DOCS xAI Rate Limits changed

xAI Rate Limits → · 2026-09-18T06:38:45.199Z

+ | grok-imagine-image-2.0 | T0T1T2T3T4 | 6122550100 | ————— |
+ | grok-imagine-image-quality | T0T1T2T3T4 | 6122550100 | ————— |
+ import grpc
- from xai_sdk.exceptions import RateLimitError
- except RateLimitError:
+ except grpc.RpcError as e:
+ if e.code() != grpc.StatusCode.RESOURCE_EXHAUSTED:
+ raise
- raise RateLimitError("Max retries exceeded")
+ raise RuntimeError("Max retries exceeded")