Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.anyone.ai/llms.txt

Use this file to discover all available pages before exploring further.

An API key is your credential for calling the Anyone API. Each API key has its own usage tracking, and you can create different API keys for different projects.

Create an API key

  1. Log in to the anyone.ai dashboard
  2. Click API keys in the left menu
  3. Click Create API key
  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 API key is only shown once when created. Save it securely — if you lose it, you’ll need to create a new one.

Use an API key

Include your API key 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-5.4", "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 API key in the dashboard to see:
  • Credits consumed
  • Remaining quota
  • Request history

Security tips

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