Create and Manage API Keys
Learn what API keys do, create and copy a key, and configure its quota, expiration, and model restrictions as needed.
An API key is the credential a tool or program uses to call Orbis models. Enter it in your client to let the client make requests under your account. Charges are billed to your account.
1. Understand the Three Settings
| Setting | Purpose |
|---|---|
| API Key | Authenticates the caller and determines the route and permission restrictions. |
| Base URL | Tells the tool where to send requests. |
| Model ID | Specifies the model to use for the request. |
A key can call only models supported by its selected route and authorized for the account. Changing only the model ID does not automatically switch routes.
2. Create and Copy a Key
- Open API Keys in the console and click Create API Key.
- Enter a recognizable name, such as
My Codex, and select the route to use. - Set a quota and expiration as needed, then click Save Changes.
- Open the action menu to the right of the key and click Copy Key.
Already selected a route on a model page? You can also quickly create an API key.
3. Enter the Key in Your Tool
Open the selected route's connection guide. Follow its instructions to enter the complete key, Base URL, and model ID in your tool, then send a short message to verify the connection.
A masked key displayed on the page cannot be used directly. Use the copy button to get the complete value. For Codex, Claude Code, CC Switch, and cURL instructions, see Get Started in 5 Minutes.
Running a verification request yourself may incur charges. No request is sent by this documentation page.
4. Add Restrictions When Needed
Find the key in API Keys, open its action menu, and click Edit.
| Setting | When to Use It |
|---|---|
| Quota | Set a spending allowance for testing or a specific project. Turn off “Unlimited Quota” and enter an amount using the units shown on the page. |
| Expiration | Stop access after temporary testing or a short-term project ends. |
| Model Restrictions | Allow the key to call only specified models. Select the required models in advanced settings. |
| IP Allowlist | Allow requests only from specified IP addresses or network ranges. This is useful for servers with a fixed outbound IP address. |
Unlimited quota does not mean free usage. It means the key has no separate quota limit; the account must still have an available balance. Setting a key quota does not add funds to your account. Multiple keys share the account balance.
Model restrictions can only narrow the available selection. They cannot allow a key to call a model that its current route does not support. If you do not know your outbound IP address, leave the IP allowlist empty initially to avoid blocking your own requests.
5. Manage Keys and Keep Them Secure
Use a separate key for each tool or project, with names such as Everyday Codex or Website Backend. This lets you adjust restrictions or disable access independently.
- Temporarily unused: Disable the key and enable it again when needed. Check its quota and expiration before resuming use.
- No longer needed: Delete the key. Tools that depend on it will no longer be able to make requests with it.
- Suspected exposure: Immediately disable the old key, create a new one, and update your tool configuration. Check Usage History for unusual requests.
Do not post keys in group chats, public screenshots, website frontend code, or code repositories. Copied connection details and tool import links may also contain keys and must be kept private.
Changing a key's route affects every tool that uses that key. Before switching, confirm that the target route supports the models and connection protocols in use. If you only want to test a different route, create a new key instead.