A I Gateway
OpenAI-compatible AI endpoints
Chat Completions (OpenAI-compatible)
OpenAI-compatible chat completions endpoint with automatic X402 payments. Just change your base URL and use your AgnicPay token!
Authorization
X-Agnic-Token<token>API token from your dashboard
In: header
AuthorizationRequired
Bearer <token>OAuth2 access token
In: header
Request Body
application/jsonRequiredmodelRequired
stringModel identifier (e.g., openai/gpt-4o, anthropic/claude-3.5-sonnet)
messagesRequired
array<object>temperaturenumberDefault:
0.7Minimum: 0Maximum: 2max_tokensintegerstreambooleanDefault:
falseChat completion response
List Available Models
List all available AI models through the gateway.
Authorization
X-Agnic-Token<token>API token from your dashboard
In: header
AuthorizationRequired
Bearer <token>OAuth2 access token
In: header
Models listed successfully