{"uid":"cap_fPXEIDQhRrfZhSbkKjIFA","slug":"quantaflow-x402-api-gateway-openai-proxy-f106b66c","name":"QuantaFlow x402 API Gateway – OpenAI Proxy","description":"Every request, a quantum of value. x402 protocol-based payment endpoint for web3/DeFi tools.","url":"https://quanta-roan.vercel.app/api/service/openai?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"body":{"type":"string","description":"Optional JSON body forwarded to POST requests."},"path":{"type":"string","description":"Path below the selected upstream origin."},"query":{"type":"object"},"method":{"enum":["GET","POST"],"type":"string"}}},"responseSchema":{"description":"The upstream response body and content type are passed through after successful payment."},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/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_7yegC6_NiloVAxQ-yd6fC","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":"Proxies requests to OpenAI's API via the x402 micropayment protocol, charging $0.01 USDC per call","exampleAgentPrompt":"Forward a chat completions request to OpenAI through QuantaFlow — send a POST to /v1/chat/completions with the body '{\"model\":\"gpt-4o-mini\",\"messages\":[{\"role\":\"user\",\"content\":\"Hello!\"}]}' and pay the $0.01 USDC x402 fee.","exampleUseCases":[{"title":"Crypto-native AI chatbot backend","prompt":"I want to run a chatbot that calls OpenAI's chat completions API but pays per request in USDC instead of using a monthly subscription — use QuantaFlow to forward my POST to /v1/chat/completions with my messages array and handle the x402 micropayment."},{"title":"On-chain agent calling GPT","prompt":"My DeFi agent needs to query OpenAI to summarize a transaction report — forward a POST to /v1/chat/completions through the QuantaFlow x402 gateway with the body containing the report text and pay the 0.01 USDC fee from the agent's wallet."},{"title":"Pay-per-use OpenAI embedding generation","prompt":"Generate embeddings for a list of product descriptions by forwarding a POST to /v1/embeddings through QuantaFlow with model 'text-embedding-3-small' and the input array, paying $0.01 USDC via x402 per call."}],"resultDescription":"The raw upstream OpenAI response body (e.g. chat completion JSON, embeddings array, model output) is passed through transparently along with the original content type, after the x402 payment is verified and settled.","failureModes":["Payment verification failure: insufficient USDC balance or invalid x402 payment header returns 402 Payment Required","Invalid path: if the specified path does not match a valid OpenAI endpoint, returns upstream 404 or 400","Malformed body: non-JSON string in body field causes upstream parse error","OpenAI API errors (rate limits, invalid model names) are passed through as-is from upstream","Network/gateway timeout: Vercel function timeout if upstream OpenAI is slow"],"whenToPreferThis":"Choose this endpoint when you need pay-per-request access to OpenAI's API using USDC micropayments via the x402 protocol — ideal for crypto-native agents, DeFi workflows, or scenarios where you want to avoid a traditional OpenAI subscription and instead pay $0.01 per call from a web3 wallet. Prefer alternatives (direct OpenAI API) when you need higher throughput, lower latency, or access to OpenAI features beyond what a transparent proxy exposes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T18:49:38.777Z","isFirstParty":false,"canonicalSlug":"quantaflow-x402-api-gateway-openai-proxy-f106b66c"}