Base URL
All requests are routed through a single base URL:/v1/ path prefix. When configuring an SDK, point base_url at https://api.a2agent.me/v1 (OpenAI-style) or set ANTHROPIC_BASE_URL to https://api.a2agent.me (Anthropic-style). See the Compatibility section below for details.
Compatibility
A2Agent supports both the OpenAI and Anthropic request formats. Choose the one that matches your existing setup.OpenAI format
Setbase_url in the SDK constructor and pass your A2Agent key as api_key. No other changes are required.
OpenAI SDK — set base URL and key
Anthropic format
Set theANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN environment variables. The Anthropic SDK will automatically route all requests through A2Agent.
Anthropic SDK — set environment variables
Available Endpoints
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/chat/completions | Generate a chat response |
GET | /v1/models | List available models |
Rate Limits
If you exceed your request rate, the API returns a429 Too Many Requests response. Build exponential back-off into your retry logic to handle these gracefully. To review your current limits or upgrade your plan, visit your A2Agent dashboard.
Before making your first request, you’ll need an API key. See Authentication for instructions on creating and using your key.