1. Docs
  2. Get started
  3. API keys

API keys

One key works with every model, protocol and tool. Create more only when you want separate spend limits or usage records.

Create a key

  1. In the console, open API keys and click Create API key.
  2. Give it a name that tells projects or devices apart, such as cursor-laptop.
  3. Click Create. The full key and both Base URLs are shown right away, each with a copy button. You can copy the full key from the list again later.

Spend limit and expiry

  • Spend limit (USD): the most this key can spend. Leave it blank for no limit beyond your balance. A key over its limit returns 401.
  • Expires: never, 30 days, 90 days or a custom date. An expired key returns 401.
  • All keys draw from the same account balance; the list shows each key’s spend against its limit.

Keep keys safe

  • Keep the key in an environment variable such as AIROUTLY_API_KEY, never in source code or a repository.
  • Use a separate key for each machine or project, so you can disable one without touching the others.
  • If a key leaks, delete it right away and create a new one. A deleted key stops working immediately.