aimlapi-sandbox
Installation
SKILL.md
Test for free in sandbox mode
Sandbox mode runs the real request path (key, model id, body validation against the model's schema) and answers in the live format, but calls no model and charges nothing, even at a zero balance. It tests your code, not a model: answers are fixed.
When to use
- Write or run tests, CI, or a demo against AI/ML API without spending credits
- Check parsing of text, streams, tool calls, JSON, images, async jobs, and handling of
403,429,500,503
Steps
1. Turn it on
| Method | How | Best for |
|---|---|---|
| Model prefix | "model": "sandbox/openai/gpt-4o-mini" |
one string to change, works in any SDK |
| Header | X-AIMLAPI-Sandbox: 1 with the usual model id |
set once as an SDK default header |
| Sandbox key | a key created with "mode": "sandbox" |
CI and test environments: it can never start a paid request |