Quickstart
Get up and running with AgnicPay in 5 minutes
Quickstart
Get started with AgnicPay and make your first X402 payment in under 5 minutes.
Step 1: Create an Account
Sign up at pay.agnic.ai with your email. We'll automatically create an embedded wallet for you with $5 in free credits.
Step 2: Generate API Token
- Go to your Dashboard
- Click Connect App
- Set your spending limits:
- Per transaction: Maximum amount per API call
- Daily limit: Total spend allowed per day
- Monthly limit: Total spend allowed per month
- Click Generate Token
- Copy your token:
agnic_tok_sk_live_...
Save your token securely! It's only shown once.
Step 3: Make Your First Request
Using the AI Gateway
The easiest way to start is with our OpenAI-compatible AI Gateway:
Using the X402 Fetch Proxy
For any X402-enabled API, use our transparent proxy:
Step 4: Check Your Balance
Response:
Using with OpenAI SDK
Python
JavaScript/TypeScript
Alternative: Use the CLI
If you prefer the command line, install the agnic CLI:
See the CLI reference for all commands.