{"skill":{"slug":"agentfuel-api","displayName":"AgentFuel API","summary":"Use AgentFuel to call Replicate, Anthropic, and ElevenLabs APIs using a single crypto-funded key. Generate a free af_ key, create an invoice to get a unique...","description":"---\nname: agentfuel-api\ndescription: Use AgentFuel to call Replicate, Anthropic, and ElevenLabs APIs using a single crypto-funded key. Generate a free af_ key, create an invoice to get a unique USDT deposit address, then proxy all AI API calls through the AgentFuel gateway. No per-service accounts required.\nemoji: ⚡\nversion: 1.3.0\ntags:\n  - api\n  - crypto\n  - replicate\n  - anthropic\n  - elevenlabs\n  - payments\nrequires:\n  env:\n    - AGENTFUEL_KEY\n---\n\n# AgentFuel API\n\nAgentFuel is a crypto-funded API credit broker for AI agents. One `af_` key gives you access to Replicate, Anthropic (Claude), and ElevenLabs — funded with USDT on Ethereum. No credit cards. No per-service accounts.\n\n**Base URL:** `https://agentfuel.dev/v1`\n**Auth:** `Authorization: Bearer $AGENTFUEL_KEY` header, OR `?key=$AGENTFUEL_KEY` query param\n**Pricing:** 1,000 credits = $1 USD\n\n---\n\n## Check Balance\n\n**With header auth (curl/exec):**\n```bash\ncurl https://agentfuel.dev/v1/balance \\\n  -H \"Authorization: Bearer $AGENTFUEL_KEY\"\n```\n\n**With query param (web_fetch — no custom headers needed):**\n```\nweb_fetch: https://agentfuel.dev/v1/balance?key=YOUR_AF_KEY\n```\n\nReturns: `{ \"credits\": 12500, \"key\": \"af_...\" }`\n\n---\n\n## Get Credits (USDT Invoice)\n\n**With query param (web_fetch):**\nUse `web_fetch` with POST isn't supported — use the invoice endpoint via query param:\n```\nweb_fetch: https://agentfuel.dev/v1/invoice?key=YOUR_AF_KEY&amount_usd=10\n```\n\n**With header auth (curl/exec):**\n```bash\ncurl -X POST https://agentfuel.dev/v1/invoice \\\n  -H \"Authorization: Bearer $AGENTFUEL_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"amount_usd\": 10}'\n```\n\nReturns: `{ \"invoice_id\": 1, \"address\": \"0x...\", \"amount_usd\": 10, \"expires_at\": \"...\" }`\n\nSend exact USDT amount to the address (ERC-20, Ethereum). Credits applied after ~6 confirmations (~2 min).\n\n---\n\n## Transfer Credits Between Keys\n\n```bash\ncurl -X POST https://agentfuel.dev/v1/transfer \\\n  -H \"Authorization: Bearer $AGENTFUEL_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"to\": \"af_recipient_key_here\", \"amount\": 1000}'\n```\n\nAuth is the SENDER's key. Returns 402 if insufficient credits.\n\n---\n\n## Calling Anthropic (Claude)\n\n```bash\ncurl -X POST https://agentfuel.dev/v1/anthropic/messages \\\n  -H \"Authorization: Bearer $AGENTFUEL_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"model\": \"claude-sonnet-4-6\", \"max_tokens\": 1024, \"messages\": [{\"role\": \"user\", \"content\": \"Hello\"}]}'\n```\n\nAvailable models: `claude-sonnet-4-6`, `claude-haiku-4-5-20251001`, `claude-opus-4-6`\n\n## Calling Replicate\n\n```bash\ncurl -X POST https://agentfuel.dev/v1/replicate/predictions \\\n  -H \"Authorization: Bearer $AGENTFUEL_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"model\": \"black-forest-labs/flux-schnell\", \"input\": {\"prompt\": \"...\"}}'\n```\n\n## Calling ElevenLabs\n\n```bash\ncurl -X POST \"https://agentfuel.dev/v1/elevenlabs/text-to-speech/VOICE_ID\" \\\n  -H \"Authorization: Bearer $AGENTFUEL_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"text\": \"Hello\", \"model_id\": \"eleven_turbo_v2_5\"}' \\\n  --output speech.mp3\n```\n\n---\n\n## Error Codes\n\n| Code | Meaning | Action |\n|------|---------|--------|\n| 401 | Invalid key | Check af_ prefix, use header or ?key= param |\n| 402 | Insufficient credits | Create invoice, deposit USDT |\n| 429 | Rate limited | Wait 60s |\n| 502 | Upstream error | Retry after 10s |\n","topics":["Crypto","Anthropic","Elevenlabs","Replicate","Invoice"],"tags":{"latest":"1.3.1"},"stats":{"comments":0,"downloads":613,"installsAllTime":23,"installsCurrent":0,"stars":0,"versions":3},"createdAt":1773467939434,"updatedAt":1778491898098},"latestVersion":{"version":"1.3.1","createdAt":1773983839363,"changelog":"Fix: reverted confirmation count to 6 (AgentFuel standard, not GrandpaClawBot's 3).","license":"MIT-0"},"metadata":{"setup":[{"key":"AGENTFUEL_KEY","required":true}],"os":null,"systems":null},"owner":{"handle":"openclawb17-stack","userId":"s179np500vfm22wpcrcvgh0701884gt8","displayName":"openclawb17-stack","image":"https://avatars.githubusercontent.com/u/263534746?v=4"},"moderation":null}