AI Gateway
Access 340+ AI models through a single, OpenAI-compatible API
AI Gateway
AgnicPay's AI Gateway provides access to 340+ AI models from leading providers through a single, OpenAI-compatible API. Pay-per-use with your AgnicPay balance.
What is the AI Gateway?
The AI Gateway is a unified API that gives you access to models from:
- OpenAI - GPT-4o, GPT-4 Turbo, o1
- Anthropic - Claude 3.5 Sonnet, Claude 3 Opus
- Google - Gemini Pro, Gemini 1.5 Pro, Gemini 2.0 Flash
- Meta - Llama 3.3 70B, Llama 3.1 405B
- Plus 300+ more from Mistral, DeepSeek, Qwen, and others
Key Features
How It Works
- Send requests to
https://api.agnic.ai/v1 - Use your AgnicPay token for authentication
- Choose any model from 340+ available options
- Pay per request - costs deducted from your USDC balance
Quick Example
Base URL
All AI Gateway endpoints use:
Authentication
Use either authentication method:
| Method | Header | Token Format |
|---|---|---|
| API Token | Authorization: Bearer {token} | agnic_tok_... |
| OAuth2 | Authorization: Bearer {token} | agnic_at_... |
| Alternative | X-Agnic-Token: {token} | agnic_tok_... |
Pricing
Costs vary by model and are charged per token. We offer many free models including Llama, Gemma, and Mistral for development and testing.
View the complete list of 340+ models with live pricing at AI Gateway Pricing.
Spending Limits
Control your costs with built-in spending limits:
- Per-transaction limit - Maximum cost per API call
- Daily limit - Total spend allowed per day
- Monthly limit - Total spend allowed per month
Configure limits when creating your API token or during OAuth authorization.