Overview
On this page
ATP is a unified API that gives you access to many AI models through a single endpoint, with provider fallbacks and billing in one place.
Send your first request#
Replace MODEL_ID with a model id from GET /v1/models — that list is exactly what /v1/chat/completions accepts — or pick one from the model menu above the example. You need a project API key in $ATP_API_KEY first; the Quickstart walks through it. Send stream explicitly: on this endpoint it defaults to true.
curl https://api.atptoken.ai/v1/chat/completions \
-H "Authorization: Bearer $ATP_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "MODEL_ID",
"stream": false,
"messages": [{"role": "user", "content": "hi"}]
}'What you get#
- One endpoint, many models.
GET /v1/project/modelslists every model your project allows — chat, media and embeddings. See Model discovery. - Three wire formats. Use the official OpenAI, Anthropic, or Google GenAI SDK unchanged — only the base URL changes. Each model is served on one of them; call it on the wrong one and you get
422naming the right one. - Automatic fallback. Each model is served by a provider pool, so a single model id keeps working when one provider is degraded. See Provider routing.
- One bill. Usage across every model and provider is metered in credits. See How credits work.