Guides
API authentication
Learn how to pass your Anyone API key in requests, supporting OpenAI, Claude, and Gemini formats.
All API requests require authentication. Include your Anyone API key in the request header.
⌘I
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Anyone — one API key to access all AI models
Learn how to pass your Anyone API key in requests, supporting OpenAI, Claude, and Gemini formats.
curl https://api.anyone.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-5.4", "messages": [{"role": "user", "content": "hi"}]}'
curl https://api.anyone.ai/v1/messages \
-H "x-api-key: YOUR_TOKEN" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{"model": "claude-sonnet-4-20250514", "max_tokens": 1024, "messages": [{"role": "user", "content": "hi"}]}'
# Option 1: Header authentication
curl "https://api.anyone.ai/v1beta/models/gemini-2.5-pro:generateContent" \
-H "x-goog-api-key: YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"contents": [{"parts": [{"text": "hi"}]}]}'
# Option 2: URL parameter
curl "https://api.anyone.ai/v1beta/models/gemini-2.5-pro:generateContent?key=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"contents": [{"parts": [{"text": "hi"}]}]}'
from openai import OpenAI
client = OpenAI(
base_url="https://api.anyone.ai/v1",
api_key="YOUR_TOKEN",
)
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.anyone.ai/v1",
apiKey: "YOUR_TOKEN",
});
import anthropic
client = anthropic.Anthropic(
base_url="https://api.anyone.ai",
api_key="YOUR_TOKEN",
)
