{"uid":"cap_VOUkseB7hu9LJkmJwZc57","slug":"api-paysponge-com-7c5df9e0","name":"PaySponge AI Chat Completions (x402 Pay-per-Call)","description":"Service: OpenRouter API (https://api.paysponge.com/chat/completions)","url":"https://api.paysponge.com/x402/purchase/svc_d5zgtpg00dvssgj28/chat/completions","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":{},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","additionalProperties":true}},"additionalProperties":false}},"additionalProperties":false},"responseSchema":null,"example":{"request":{"model":"gpt-4o-mini","messages":[{"role":"user","content":"Hello"}]},"response":{"id":"gen-1776386209-gzI8SU5Y8OM2wRaMGoza","model":"openai/gpt-4o-mini","usage":{"cost":0.0000066,"is_byok":false,"cost_details":{"upstream_inference_cost":0.0000066,"upstream_inference_prompt_cost":0.0000012,"upstream_inference_completions_cost":0.0000054},"total_tokens":17,"prompt_tokens":8,"completion_tokens":9,"prompt_tokens_details":{"audio_tokens":0,"video_tokens":0,"cached_tokens":0,"cache_write_tokens":0},"completion_tokens_details":{"audio_tokens":0,"image_tokens":0,"reasoning_tokens":0}},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Hello! How can I assist you today?","refusal":null,"reasoning":null},"logprobs":null,"finish_reason":"stop","native_finish_reason":"stop"}],"created":1776386209,"provider":"OpenAI","system_fingerprint":"fp_4debc47fe0"}},"exampleRequest":{"model":"gpt-4o-mini","messages":[{"role":"user","content":"Hello"}]},"tags":["x402"],"displayCostAmount":"0.010000","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"1.00","reviews":0,"stars":null,"state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.010000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__Mv3UsNLVLQ3JE8R2Wg48","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates AI chat completions (OpenAI-compatible) gated by a micro-payment of $0.01 USDC per call via on-chain crypto payment on Base or Solana.","exampleAgentPrompt":"Ask gpt-4o-mini: 'What are three tips for writing clean Python code?' — pay for this single request with USDC on Base via PaySponge.","exampleUseCases":null,"resultDescription":"Returns an OpenAI-compatible chat completion object including the assistant's response message, finish reason, prompt and completion token counts, upstream inference cost breakdown, model used, and a provider identifier.","failureModes":["Payment not received or insufficient USDC — returns 402 Payment Required","Payment timeout exceeded — request rejected before completion","Invalid or missing 'model' field — returns 400 Bad Request","Malformed messages array (missing role or content) — returns 400 validation error","Upstream LLM provider error — proxied 5xx response","Unsupported model specified — provider may reject with error"],"whenToPreferThis":"Choose this endpoint when you need OpenAI-compatible chat completions without a subscription or API key, and can pay $0.01 USDC per call on-chain via Base (EIP-155:8453) or Solana. Ideal for agents operating in crypto-native environments, anonymous or trustless access patterns, or use cases requiring pay-as-you-go without account registration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":5,"lastUsedAt":"2026-08-10T18:15:13.236Z","lastSuccessfullyRanAt":"2026-08-10T18:15:13.236Z","lastHealthCheckAt":"2026-09-15T00:35:25.785Z","isFirstParty":false}