{"uid":"cap_7NjF9BM6HzJcHs2zyBXvN","slug":"x-pay-pay-per-request-utility-api-slug-cf28ab96","name":"X Pay Pay-Per-Request Utility API (Slug)","description":"Pay-per-request utility APIs powered by x402 using USDC on Base.","url":"https://www.api-xpay.com/x402/slug?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"},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"slug":"hello-world","asset":"USDC","network":"base","success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iqXjdzQaBAhVzfaA7aICm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes a pay-per-request HTTP utility API call identified by a slug, settling $0.005 USDC on Base via the x402 payment protocol.","exampleAgentPrompt":"Send a POST request with JSON body to the 'hello-world' slug on X Pay — it charges $0.005 USDC on Base per call — and return whatever the utility API responds with.","exampleUseCases":[{"title":"Micropayment-gated data transformation","prompt":"Run the 'text-to-slug' utility on X Pay with a POST and JSON body containing my article title — it costs a fraction of a cent in USDC on Base — and give me back the generated slug."},{"title":"Automated per-call utility billing","prompt":"My workflow needs to call the 'image-resize' slug on X Pay, sending a JSON body with the image URL and target dimensions. Handle the $0.005 USDC payment on Base automatically and return the result."},{"title":"Testing a new x402 utility endpoint","prompt":"Hit the 'echo-test' slug on X Pay with a POST and a simple JSON body like {\"message\": \"hello\"} — paying the USDC micropayment on Base — and show me the full response."}],"resultDescription":"Returns a JSON object confirming the slug that was called, the payment asset (USDC), the network (Base), and a success boolean indicating whether the utility execution and payment completed successfully.","failureModes":["Payment failure if wallet lacks sufficient USDC balance on Base","Invalid or unknown slug returns error response","Malformed request body or unsupported bodyType causes validation error","Network congestion on Base may delay payment settlement","Missing required fields (type, method, bodyType, body) causes schema validation failure"],"whenToPreferThis":"Choose this endpoint when you need to call a specific utility function identified by a slug that is gated behind a per-call micropayment in USDC on Base via the x402 protocol. Ideal for agentic workflows that must programmatically handle pay-per-request APIs without manual billing setup, especially when cost per call must stay at the $0.005 USDC level.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:19:49.591Z","isFirstParty":false,"canonicalSlug":"x-pay-pay-per-request-utility-api-slug-cf28ab96"}