Agent Quickstart
Get your headless agent calling ASG tools. Time to first call: ~2 minutes.Prerequisites
- ASG API key (create in Console)
- For paid tools: Solana wallet with USDC (mainnet)
Step 1: Create API Key
- Open Console
- Connect wallet → API Keys → Create Key
- Copy key (starts with
sk-agent-...)
Step 2: Verify Setup (Free)
Test connectivity and auth with the freeget_status tool — no payment needed:
"ok": true, your API key works. Move to the next step.
Step 3: Echo Test (Free)
Validate payload format with the freeecho tool — no payment needed:
Step 4: Discover Available Tools
List all tools and their billing status:Step 5: Make a Paid Call
Call a billable tool. If you have pre-funded balance, this returns200 with the result immediately. If no balance, you get 402 with a quote.
data.result.content.
If 402 — Payment Required:
Step 6: Pay and Retry
Send USDC on-chain, then retry with proof:Available Tools
See Tool Availability for the full catalog.
MCP Integration
For agents using the Model Context Protocol, connect directly:Error Codes
What’s Next?
SDK Examples
TypeScript and Python code examples
Payment Flow
Complete payment lifecycle guide
Pricing
Service pricing details
Architecture
How ASG works under the hood