Token Types
Eden AI supports two token types:
When you use a sandbox token, Eden AI returns mock responses that match the real response structure. This means your code works the same way in development and production — you just swap the token.
Creating a Sandbox Token
You can create sandbox tokens from the Eden AI dashboard under API Keys, or programmatically via the API:Using a Sandbox Token
Usage is identical to a production token — just use the sandbox token in theAuthorization header:
Multi-Environment Setup
A common pattern is to create one sandbox token per environment and swap to a production token when you go live:name values.
When to Use Sandbox Tokens
Development
Build and iterate on your integration without spending credits.
CI/CD Pipelines
Run automated tests against the API without incurring costs.
Demos
Show your integration to stakeholders with predictable responses.
Prototyping
Validate your architecture and request flow before going live.
Sandbox tokens return simulated data. The response structure matches production responses, but the actual content is mock data. Do not use sandbox tokens to evaluate model quality or accuracy.