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
From the dashboard. On the API Keys page, create a key and choose the Sandbox type. This is the way to go for individual developers and most teams. Through the Management API. Organizations that provision keys from automation create sandbox keys withPOST /v3/manage/keys/ and "token_type": "sandbox_api_token". This endpoint needs a management key (mgmt-eden-…) with the manage:write scope, not an inference key; see the Management API guide to get one. The response contains the new key’s secret exactly once.
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.