RuntokenDocs

Authentication & Keys

Revision 1 · Updated 2026-11-12 · 2 min read

Create a model API key and manage its scope, limits and lifecycle.

Choose a key type#

The console has two credential pages.

  • API Keys creates platform keys for model requests.
  • Management API creates keys for read-only wallet and API key queries.

Use a platform key when connecting a model or coding tool. Do not put a management key in its place.

Create and restrict a platform key#

Open API Keys and choose Create API key. Enter a name, check the options, then choose Create and show key.

Create API key dialog showing the Name field and Expires options
Enter a name and choose an expiry in the Create API key dialog.

Set the following options for the key's intended use.

SettingWhat it controls
NameIdentifies the key in the list and request records.
ExpiresSets when the key expires.
Daily budgetSets a daily spend limit that resets at 00:00.
Lifetime spend capSets a cumulative spend limit that does not reset.
Model scopeAllows all models available to the account or only selected models.
Requests per minuteAdds a request rate limit for the key.
Max concurrencyLimits simultaneous requests.
IP allowlistRestricts accepted source IP addresses.

Open Rate & security to configure request rate, concurrency and IP restrictions. Empty spend-limit fields add no key-level spend limit. Account and model limits still apply.

When either spend limit is reached, new requests are rejected. Requests already running finish and are billed.

Store and use the key#

The full key is shown only once, when it is created. Save it in a secret store before closing the result.

Keep the key in the server or tool execution environment. Do not put it in frontend code, shared configuration, screenshots or prompts.

Authentication headers depend on the protocol.

ProtocolCredential header
Chat Completions, Responses, embeddings, image and audio APIsAuthorization: Bearer
Anthropic Messagesx-api-key
Gemini v1betax-goog-api-key

Use the selected protocol's integration guide for the complete request. Keep your address and key in the same console environment.

Replace and revoke keys#

Review keys in API Keys. Check their owner, status, last use, expiry and spend.

To replace a key, create the replacement and update the applications that use it. Confirm their requests work before revoking the old key.

If a key is exposed, revoke it promptly and replace it in the affected applications. Revocation cannot be undone. Historical usage remains available.

Use a separate key for each application to make usage easier to trace and access easier to remove.

Check authentication failures#

For 401 errors, confirm that the key is complete, unexpired and not revoked. Check that the application reads the intended credential variable.

If a model request is rejected, also check the model scope, spend limits, rate limits and IP allowlist.

For 429 errors, read the response to identify the limit that was reached. Changing a credential does not remove account or model limits.

Continue with Quickstart to send a request and check its record.

Was this page helpful?