← 返回
AI智能 Key 中文

AgentFuel API

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...
使用 AgentFuel 通过单一加密资金密钥调用 Replicate、Anthropic 和 ElevenLabs API。生成免费 af_ 密钥,创建发票以获取唯一...
openclawb17-stack
AI智能 clawhub v1.3.1 2 版本 100000 Key: 需要
★ 0
Stars
📥 558
下载
💾 9
安装
2
版本
#latest

概述

AgentFuel API

AgentFuel 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.

Base URL: https://agentfuel.dev/v1

Auth: Authorization: Bearer $AGENTFUEL_KEY header, OR ?key=$AGENTFUEL_KEY query param

Pricing: 1,000 credits = $1 USD


Check Balance

With header auth (curl/exec):

curl https://agentfuel.dev/v1/balance \
  -H "Authorization: Bearer $AGENTFUEL_KEY"

With query param (web_fetch — no custom headers needed):

web_fetch: https://agentfuel.dev/v1/balance?key=YOUR_AF_KEY

Returns: { "credits": 12500, "key": "af_..." }


Get Credits (USDT Invoice)

With query param (web_fetch):

Use web_fetch with POST isn't supported — use the invoice endpoint via query param:

web_fetch: https://agentfuel.dev/v1/invoice?key=YOUR_AF_KEY&amount_usd=10

With header auth (curl/exec):

curl -X POST https://agentfuel.dev/v1/invoice \
  -H "Authorization: Bearer $AGENTFUEL_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount_usd": 10}'

Returns: { "invoice_id": 1, "address": "0x...", "amount_usd": 10, "expires_at": "..." }

Send exact USDT amount to the address (ERC-20, Ethereum). Credits applied after ~6 confirmations (~2 min).


Transfer Credits Between Keys

curl -X POST https://agentfuel.dev/v1/transfer \
  -H "Authorization: Bearer $AGENTFUEL_KEY" \
  -H "Content-Type: application/json" \
  -d '{"to": "af_recipient_key_here", "amount": 1000}'

Auth is the SENDER's key. Returns 402 if insufficient credits.


Calling Anthropic (Claude)

curl -X POST https://agentfuel.dev/v1/anthropic/messages \
  -H "Authorization: Bearer $AGENTFUEL_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "claude-sonnet-4-6", "max_tokens": 1024, "messages": [{"role": "user", "content": "Hello"}]}'

Available models: claude-sonnet-4-6, claude-haiku-4-5-20251001, claude-opus-4-6

Calling Replicate

curl -X POST https://agentfuel.dev/v1/replicate/predictions \
  -H "Authorization: Bearer $AGENTFUEL_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "black-forest-labs/flux-schnell", "input": {"prompt": "..."}}'

Calling ElevenLabs

curl -X POST "https://agentfuel.dev/v1/elevenlabs/text-to-speech/VOICE_ID" \
  -H "Authorization: Bearer $AGENTFUEL_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "Hello", "model_id": "eleven_turbo_v2_5"}' \
  --output speech.mp3

Error Codes

CodeMeaningAction
-----------------------
401Invalid keyCheck af_ prefix, use header or ?key= param
402Insufficient creditsCreate invoice, deposit USDT
429Rate limitedWait 60s
502Upstream errorRetry after 10s

版本历史

共 2 个版本

  • v1.3.1 当前
    2026-03-29 22:02 安全 安全
  • v1.2.0
    2026-03-19 19:15

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 710 📥 243,597
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,352 📥 317,827
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 834 📥 212,872