Skip to content

Create a token ​

A token is the key for every API call. The site uses it to identify you, the models you can call, and the remaining quota.

Create one ​

  1. Sign in to the console.
  2. Open Tokens.
  3. Create a token. Set a name, and optionally a quota, expiry, and allowed models.
  4. Copy the full key. After you close the dialog, the full key is usually not shown again.

The key looks like:

text
sk-xxxxxxxx

Do not put it in a frontend page, a public repository, or a chat log. If it leaks, disable or delete it and create another.

How to send it ​

Put it in the Authorization header, with Bearer and one space:

text
Authorization: Bearer sk-your-token

Some compatible clients use x-api-key. Chat and the model list on this site accept the Bearer header above. The Claude API also accepts x-api-key. See Claude-compatible.

Quota and group ​

A token can call only the models enabled for its group. Calls are rejected when the quota is used up, or the token is disabled or expired. Remaining quota is shown in the console.

The site displays quota in US dollars. What one call costs depends on the model's billing rule. See Billing.

Prices are whatever the model catalog shows at request time.