{"uid":"cap_eqfEy_7os33KNvGVMNrxj","slug":"yiduochan-api-credits-purchase-4f36874a","name":"YiduoChan API Credits Purchase","description":"Buy $0.10 of prepaid credits for the YiduoChan inference gateway and receive a working API key in the response. The key works with any OpenAI-compatible client against https://yiduochan.com/v1 and covers chat, reasoning, text-to-speech, image and video models. Credits are spent per token at published rates; no account, email or signup is required.","url":"https://yiduochan.com/api/x402/credits/0.10","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":{},"description":"No request body. Payment is carried in the PAYMENT-SIGNATURE header.","additionalProperties":false},"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","required":["api_key","base_url","amount_usd","credited"],"properties":{"wallet":{"type":"string","description":"Buyer address the credits belong to"},"api_key":{"type":"string","description":"Bearer token for the OpenAI-compatible API"},"base_url":{"type":"string","description":"OpenAI-compatible base URL"},"credited":{"type":"boolean","description":"True once the transfer settled and the balance was added"},"amount_usd":{"type":"string","description":"Credits purchased, in USD"},"expires_at":{"type":"integer","description":"Unix time the API key stops working"},"models_url":{"type":"string","description":"Model catalogue endpoint"},"balance_usd":{"type":"string","description":"Account balance after this purchase"},"transaction_hash":{"type":"string","description":"Settlement transaction"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.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":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_enqud814CRutRE01x_PSQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchase $0.10 of prepaid inference credits via crypto payment and receive an OpenAI-compatible API key with no account required.","exampleAgentPrompt":"Buy me $0.10 of YiduoChan inference credits using my crypto wallet so I get a fresh API key I can use right away for chat, image, and TTS models — no account needed.","exampleUseCases":[{"title":"Anonymous LLM API access setup","prompt":"I want to start using an AI inference API without creating an account — can you buy $0.10 of YiduoChan credits with my wallet and give me the API key it returns?"},{"title":"Quick top-up for automated agent pipeline","prompt":"My AI agent pipeline needs a fresh YiduoChan API key funded with 10 cents of USDC so it can call chat and reasoning models — can you purchase those credits and hand me the key?"},{"title":"Test multimodal inference gateway cheaply","prompt":"I want to quickly test YiduoChan's image and text-to-speech models without signing up — buy the minimum $0.10 credit pack via my crypto wallet and give me the base URL and API key."}],"resultDescription":"Returns a JSON object containing: an API key (Bearer token for OpenAI-compatible requests), the base URL (https://yiduochan.com/v1), amount credited in USD, a boolean confirming credit settlement, the buyer wallet address, a Unix expiry timestamp for the key, a link to the model catalogue, updated account balance in USD, and the blockchain transaction hash.","failureModes":["Payment signature invalid or missing — returns 402 or 401 with payment requirement details","Insufficient USDC balance in wallet — payment fails before credits are issued","Transaction not yet settled on-chain — 'credited' field returns false, key may not be active","Network or blockchain congestion causes timeout during settlement","Expired or replayed payment signature rejected by gateway"],"whenToPreferThis":"Choose this endpoint when you need immediate, anonymous access to an OpenAI-compatible inference gateway covering chat, reasoning, TTS, image, and video models — all from a single $0.10 top-up with no email or account registration. Prefer it over traditional API providers when working in a crypto-native or x402 payment context, or when you need a throwaway key for short-lived agent pipelines without committing to a subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T06:34:31.005Z","isFirstParty":false}