Get your API key
Create a key in Console → API Keys. One key works for inference, account, and media upload.
Live keys use the OpenAI-style
sk- prefix (no live_ in the string). Test keys keep a sk_test- prefix so you do not mix environments.
Send REST requests
Use theKey authorization scheme for the native apisale REST API:
APISALE_API_KEY in your server environment.
OpenAI / Gemini SDK clients
Official SDKs sendBearer instead of Key. Paste the same key value:
One credential, two header prefixes:
Key (native REST API) or Bearer (supported vendor SDKs).Try it in the docs
- Open a model page under Image / Video / Audio
- Click Try it
- Paste your key (
sk-…) — Mintlify adds theKeyprefix - Send
Scopes
Security
- Copy the full secret once when created — it is not shown again
- Never commit keys to git or expose them in browser client-side code
- Revoke compromised keys in Console immediately
