OpenAI SDK Compatible
Drop-in OpenAI SDK replacement with transparent crypto payments. Generate text, code, and images—all with one API.
Providers
Why AgnicPay
Pay only for tokens. We're waiving platform fees to help developers get started.
No subscriptions, no monthly minimums. Pay only for the tokens you actually use.
USDC on Base. Instant settlement. No chargebacks. No credit card processing fees.
Standard OpenAI SDK. Switch providers with one line of code. Your code, your choice.
Access OpenAI, Anthropic, Google, Meta, DeepSeek, Mistral, and 30+ more providers.
No credit card required. Pay with crypto. Available to developers worldwide.
Pricing
No platform fees. Just token costs. Pay only what you use.
Our prices are 20% less than OpenRouter on every model
Integration
import OpenAI from 'openai'; const client = new OpenAI({ baseURL: 'https://api.agnicpay.xyz/v1', apiKey: process.env.AGNIC_API_KEY, }); const response = await client.chat.completions.create({ model: 'openai/gpt-4o-mini', messages: [{ role: 'user', content: 'Hello!' }], }); console.log(response.choices[0].message.content);
baseURL: 'https://api.agnicpay.xyz/v1'
Features
Generate images with Gemini and GPT-5. Just add modalities to your request.
Real-time token streaming with Server-Sent Events.
Full support for tools and function definitions.
Multi-turn conversations with system prompts.
FAQ
340+ models from OpenAI, Anthropic, Google, Meta, DeepSeek, Mistral, Qwen, xAI, and 30+ other providers, plus 5 image generation models. Use GET /v1/models to see the full list.
Use an image generation model like google/gemini-2.5-flash-image and add modalities: ["image", "text"] to your request. The response will include both text and base64-encoded images.
Models use the format provider/model-name. For example: openai/gpt-4o, anthropic/claude-3.5-sonnet, google/gemini-2.5-pro, google/gemini-2.5-flash-image.
Sign up, fund your wallet with USDC, get an API key, and set baseURL to https://api.agnicpay.xyz/v1. That's it.
Yes. Full compatibility with OpenAI SDK features including streaming, function calling, system messages, and image generation.
Yes. 30+ models are completely free including google/gemini-2.0-flash-exp:free, meta-llama/llama-3.3-70b-instruct:free, and more.
Create an account and get your API key in seconds. No credit card required.