Skip to main content
A token is your credential for calling the Anyone API. Each token has its own usage tracking, and you can create different tokens for different projects.

Create a token

  1. Log in to the anyone.ai dashboard
  2. Click Token in the left menu
  3. Click Create token
  4. Enter a name (to identify its purpose, e.g., “personal project” or “work project”)
  5. Optional: set a quota limit and expiration time
  6. Click Submit and copy the generated token
The token is only shown once when created. Save it securely — if you lose it, you’ll need to create a new one.

Use a token

Include your token in the Authorization header of your API requests:
curl https://api.anyone.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-your-token" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-4o", "messages": [{"role": "user", "content": "hi"}]}'
Or set it in an SDK:
from openai import OpenAI

client = OpenAI(
    base_url="https://api.anyone.ai/v1",
    api_key="sk-your-token",
)

View usage

Click on a specific token in the dashboard to see:
  • Credits consumed
  • Remaining quota
  • Request history

Security tips

  • Don’t put tokens in frontend code — tokens should only be used on the backend
  • Use different tokens for different projects — easier to track usage; if one leaks, only that project is affected
  • Rotate regularly — create new tokens to replace old ones; delete old tokens anytime
  • Delete immediately if leaked — click the delete button next to the token in the dashboard