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, 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.
curl
curl https://api.atptoken.ai/v1/chat/completions \
-H "Authorization: Bearer $ATP_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "MODEL_ID",
"messages": [{"role": "user", "content": "hi"}]
}'What you get#
- One endpoint, many models. Discover them with GET /v1/models and call any your project allows.
- Three wire formats. Use the OpenAI, Anthropic, or Google GenAI shape unchanged — only the base URL changes.
- 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.
Three ways to integrate#
Articles on AI cost and gateways#
Next steps
Was this page helpful?