API Reference
Complete documentation for all ANT API endpoints.
Base URL
https://antbase.aiOpenAI SDK
https://antbase.ai/v1Anthropic SDK
https://antbase.ai(no /v1 suffix)Authentication
API keys, session tokens, and device auth flow
Chat Completions (OpenAI)
OpenAI-compatible /v1/chat/completions endpoint
Messages (Anthropic)
Anthropic-compatible /v1/messages endpoint
Models
List available virtual and real models
Workspaces
Balance, usage, API keys, and preferences
Errors
Error codes and handling
Quick Reference
POST
/v1/chat/completionsSend chat messages (OpenAI)POST
/v1/messagesSend messages (Anthropic)GET
/v1/modelsList available modelsGET
/healthzService health checkPOST
/auth/registerCreate accountPOST
/auth/loginLog inGET
/auth/meGet current userGET
/workspaces/:id/balanceGet balanceGET
/workspaces/:id/usageGet usage logsGET
/workspaces/:id/api-keysList API keysPOST
/workspaces/:id/api-keysCreate API key