Get Started
Get an API Key
Create a key in the console, and the two equivalent authentication styles.
Create a key
- Sign in to the console.
- Open the API Key page and create a new key.
- Copy and store it — the full key is shown only once at creation.
Two authentication headers
All protected /v1 endpoints share the same extraction rule; these two styles are equivalent:
# Style 1: x-api-key (Anthropic convention)
curl https://api.unioapi.com/v1/models -H "x-api-key: $UNIO_API_KEY"
# Style 2: Authorization Bearer (OpenAI convention)
curl https://api.unioapi.com/v1/models -H "Authorization: Bearer $UNIO_API_KEY"When both headers are present, x-api-key wins. See Authentication.
Handling tips
- Inject keys via environment variables; never commit them in plain text.
- Split keys by purpose for easier auditing and rotation.
- Revoke leaked or unused keys in the console; revocation takes effect immediately.