Authentication
Use an API key to authenticate requests to MIA AI Proxy.
Create a key
Sign in to API Keys, name your key, and create it. A Workspace is a shared space where a team uses individual keys and a shared balance.
API base URL
The OpenAI API base URL is https://mia-ai-proxy.ambr.io/v1. Anthropic, Google, and tool APIs use different URL paths; see Native APIs for SDK setup and authentication. Model-specific examples are available on your account model pages.
Send your key
For the HTTP examples in this documentation, send the key as a Bearer token:
Authorization: Bearer YOUR_API_KEY
Store your key in an environment variable or secret manager. Do not put it in browser code, public repositories, or support messages. If a key may have been exposed, revoke it and create a new one.
Key limits
You can set a total limit and a daily, weekly, or monthly limit in MIA Points. Reaching a limit pauses new requests; requests already in progress can still add usage. Limits include past usage and changing them does not reset it. Periods use UTC; weeks begin on Monday.