{"uid":"cap_Z1hoWJDHKm-rB7Cfu68_D","slug":"agent-toolbox-credits-purchase-1-usdc-696622ad","name":"Agent Toolbox Credits Purchase ($1 USDC)","description":"Buy $1.00 of Agent Toolbox credits for $1: returns an API key (shown once) that pays for every tool over HTTP and MCP with no per-call payment. Send an existing key in X-API-Key to top it up instead.","url":"https://agent-toolbox.zafermemon87.workers.dev/v1/credits/1?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"key":"atb_6f1c0e9a4b2d7c8e5f3a1b0c9d8e7f6a5b4c3d2e1f0a9b8c","plain":"New API key with $5.50 of credits. Send it as Authorization: Bearer atb_... on any tool or MCP call.","key_id":"3f2a91c07d5e","balance":"GET /account with the key","paid_usd":5,"bonus_usd":0.5,"credits_added_usd":5.5}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_m5X0APM0UWknXKiREYdAF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchase $1 USDC worth of API credits for the Agent Toolbox service, receiving an API key with a credit balance usable across all Agent Toolbox tools.","exampleAgentPrompt":"Buy $1 of Agent Toolbox credits using my x402 wallet so I can start calling their image generation, web-to-Markdown, and translation tools — I'll need the API key it returns.","exampleUseCases":[{"title":"Bootstrap agent with tool credits","prompt":"I want to get started with Agent Toolbox — purchase $1 of credits via x402 and give me the API key so my agent can start making tool calls for things like web scraping and speech-to-text."},{"title":"Replenish depleted agent wallet","prompt":"My Agent Toolbox credits ran out and my agent can't make tool calls anymore — buy another $1 of credits with x402 and give me the new key so I can get it back online."},{"title":"Provision key for new agent pipeline","prompt":"I'm setting up a new AI pipeline that needs to call Agent Toolbox for embeddings and translation — purchase $1 of credits now and return the API key so I can plug it into the pipeline config."}],"resultDescription":"Returns a newly generated API key (prefixed `atb_`), a key ID, the total credits added in USD (base amount plus any bonus), and instructions on how to use the key as a Bearer token on subsequent Agent Toolbox API calls. Example response includes fields: key, plain (human-readable summary), key_id, balance (endpoint to check), paid_usd, bonus_usd, credits_added_usd.","failureModes":["Payment not received or x402 payment header missing/invalid — returns 402 Payment Required","Insufficient USDC balance in wallet — payment fails before key is issued","Duplicate or replayed payment token — may be rejected to prevent double-spend","Network or worker error — returns 5xx with no key issued","Malformed request body — returns 400 Bad Request"],"whenToPreferThis":"Use this endpoint when an agent needs to obtain or top up an Agent Toolbox API key funded with USDC via the x402 micropayment protocol. This is the entry point for all Agent Toolbox capabilities (image generation, web-to-Markdown, speech-to-text, embeddings, translation, summaries, email checks, exchange rates, DNS lookups). Prefer this over other credit systems when you need a pay-per-call, no-subscription model with instant key provisioning and crypto payment support.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-22T06:39:51.298Z","isFirstParty":false,"canonicalSlug":"agent-toolbox-credits-purchase-1-usdc-696622ad"}