Skip to main content

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 the Key authorization scheme for the native apisale REST API:
Set APISALE_API_KEY in your server environment.

OpenAI / Gemini SDK clients

Official SDKs send Bearer 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

  1. Open a model page under Image / Video / Audio
  2. Click Try it
  3. Paste your key (sk-…) — Mintlify adds the Key prefix
  4. 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