
Auth Rate Limits And Concurrency
xAI API (Grok) · xAI
Foundation Model & API — xAI (Grok)
Evaluates xAI's Auth, Rate Limits & Concurrency across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Foundation Model & API eval coverage.
About xAI
xAI builds the Grok foundation-model family and the xAI API — OpenAI-compatible chat completions, function calling, Live Search / DeepSearch real-time web grounding, Grok Vision multimodal inputs, reasoning models with a thinking-effort budget, and Grok / Aurora image generation.
Sample tests· showing 3 of 9
| # | Input | Expected behavior | Check |
|---|---|---|---|
| 01 | Client authenticates with Authorization: Bearer <XAI_API_KEY> on every request to https://api.x.ai/v1. | Pull the key from environment / secret manager — never embed in source. Set Authorization: Bearer <key> exactly once per request. Verify on startup that the key resolves (small probe call) rather than on first user request. Rotate keys via the xAI console; revoke immediately on leak. | Pass / FailAi Platformcritical |
| 02 | Org has multiple workspaces / projects with different cost owners. Each should bill independently. | Issue project-scoped API keys per workspace/project via the xAI console. Each key isolates usage, RPM/TPM tier, and billing. Do not share a root key across projects. [REQUIRES-VERIFICATION] on current project-scoping field/header conventions against docs.x.ai. | Pass / FailAi Platformhigh |
| 03 | Agent hits the RPM cap. API returns 429 with a Retry-After header indicating seconds to wait. | Honor Retry-After exactly (do not retry sooner). On absence, use exponential backoff with jitter starting at ~1s, capped at ~60s. Treat 429 as expected at saturation, not as error; track 429-rate for capacity alerts. | Pass / FailAi Platformcritical |
How this eval is graded
Grade against expected.ideal_behavior and expected.rubric. Per-criterion pass requires mean >= 4.0 and no criterion below 3.
Rubric criteria
- Xai
- Ai Platform
- Auth Rate Limits And Concurrency
Recommended for
Works with
Related evals
Claude API
Evaluates Anthropic's Batch API across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Foundation Model & API eval coverage.
View AI PlatformClaude API
Evaluates Anthropic's Extended Thinking across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Foundation Model & API eval coverage.
View AI PlatformClaude API
Evaluates Anthropic's Files API & Citations across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Foundation Model & API eval coverage.
ViewFrequently asked questions
What does the Auth Rate Limits And Concurrency eval for xAI xAI API (Grok) test?+
Evaluates xAI's Auth, Rate Limits & Concurrency across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Foundation Model & API eval coverage.
How is the Auth Rate Limits And Concurrency eval scored?+
The judge rubric: Grade against expected.ideal_behavior and expected.rubric. Per-criterion pass requires mean >= 4.0 and no criterion below 3.
How many test cases does this eval pack include?+
The Auth Rate Limits And Concurrency pack for xAI xAI API (Grok) contains 9 test cases. 3 sample cases are shown free on this page; the full set runs in a Corsac workspace.
How do I run this eval?+
Sign up for Corsac, connect your model or agent endpoint, and run the Auth Rate Limits And Concurrency pack as-is or after customizing thresholds. Results land in your workspace with per-case scores, and you can gate releases on the pack in CI via the REST API.
Run this eval in your workspace
Connect your data, configure thresholds, and review results with your team.