
Predictions Api
Replicate · Replicate
AI Model Hosting — Replicate
Evaluates Replicate's Predictions API across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's AI Model Hosting eval coverage.
About Replicate
Replicate is an AI model-hosting platform — run thousands of community and custom Cog-packaged models (FLUX, SDXL, Llama, Whisper, custom fine-tunes) via a simple HTTP API with predictions, webhooks, streaming, deployments, and per-second billing.
Sample tests· showing 3 of 9
| # | Input | Expected behavior | Check |
|---|---|---|---|
| 01 | Integrator calls POST /v1/predictions with body {version: 'a1b2c3...', input: {...}} for an SDXL prediction. A teammate proposes switching to the model-slug form POST /v1/models/stability-ai/sdxl/predictions to 'always get the la… | Pin version id (immutable) for production traffic so behavior is reproducible. Use the model-slug form only for exploratory work or when you have an explicit auto-upgrade policy — latest_version moves on every upstream push and can silently change input schema, output shape, or safety behavior. | Pass / FailAi Platformcritical |
| 02 | Integrator wants a synchronous response from a fast FLUX-schnell prediction and sends header Prefer: wait=30. | Use Prefer: wait=<seconds> (up to ~60s) for short predictions where a single HTTP response is simpler than polling. If the prediction does not finish within the wait, Replicate returns the prediction in a non-terminal state and the client must fall back to polling /v1/predictions/{id} or webhooks —… | Pass / FailAi Platformhigh |
| 03 | Async prediction created with status=starting. The integrator polls GET /v1/predictions/{id} every 200ms until terminal. | Use exponential backoff (e.g., 1s → 2s → 4s, cap at 10s) and key off status transitions starting → processing → succeeded|failed|canceled. Prefer webhooks for long predictions to eliminate polling cost. Honor any Retry-After header on 429. | Pass / FailAi Platformhigh |
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
- Replicate
- Ai Platform
- Predictions Api
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 Predictions Api eval for Replicate Replicate test?+
Evaluates Replicate's Predictions API across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's AI Model Hosting eval coverage.
How is the Predictions Api 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 Predictions Api pack for Replicate Replicate 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 Predictions Api 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.