{"uid":"cap_kjhLcP7zJdZsyCLbwwyxN","slug":"cortexcloud-ai-gateway-x402-v1-responses-d9b06cbe","name":"CortexCloud AI Gateway (x402/v1/responses)","description":"OpenAI-compatible AI and data API for agents. Pay per call in USDC on Base via x402 — no API keys, no subscriptions, no lock-in.","url":"https://api.cortexcloud.org/x402/v1/responses","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string"},"model":{"type":"string"},"stream":{"type":"boolean"},"instructions":{"type":"string"}}},"responseSchema":{"type":"object","format":"application/json","example":{"id":"resp_abc","object":"response","output":[]}},"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_pHNKjFyc4OHFshvfa1uQS","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":"OpenAI-compatible AI responses endpoint that routes calls to any model or data source, billed per-call in USDC on Base via x402 micropayments — no API keys or subscriptions required.","exampleAgentPrompt":"Send this prompt to CortexCloud using gpt-4o and pay per-call in USDC — no keys needed: 'Summarize the following product reviews in three bullet points: [reviews text]'.","exampleUseCases":[{"title":"Keyless LLM calls for autonomous agents","prompt":"My agent needs to call an LLM to summarize incoming support tickets — use CortexCloud so it can pay per call in USDC without me managing API keys or subscriptions. Use gpt-4o and have it condense each ticket into one sentence."},{"title":"Multi-model AI pipeline with crypto billing","prompt":"I'm building a data pipeline that needs to classify customer feedback using Claude 3 Haiku — route it through CortexCloud so each inference is billed in USDC on Base automatically, and give me the sentiment label and a one-sentence explanation for each entry."},{"title":"Prototyping AI features without subscription overhead","prompt":"I want to quickly test a few different system prompts for a coding assistant using GPT-4o-mini — can you hit the CortexCloud gateway so I only pay a fraction of a cent per call instead of committing to a monthly plan?"}],"resultDescription":"An OpenAI-compatible response object containing the model's generated text completion, including fields like choices, message content, finish_reason, and usage token counts — identical in structure to OpenAI's /v1/responses or /v1/chat/completions output.","failureModes":["Insufficient USDC balance — payment rejected before inference runs","Invalid or unsupported model name — returns 400 or model-not-found error","Malformed messages array — OpenAI-compatible validation error","x402 payment protocol not implemented by caller — payment handshake fails","Rate limiting or quota exceeded — 429 response","Model provider downstream outage — 502 or 503 from upstream LLM"],"whenToPreferThis":"Choose CortexCloud when building AI agents that need to call LLMs without managing API keys, rotating credentials, or paying for subscriptions — especially when the agent should autonomously pay for its own inference using USDC on Base via the x402 protocol. Ideal for multi-tenant agent fleets, serverless AI pipelines, or prototyping scenarios where per-call crypto billing is preferable to flat-rate subscriptions. Prefer this over direct OpenAI/Anthropic APIs when you need a single OpenAI-compatible endpoint that abstracts across multiple models and handles billing via stablecoin micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:42:46.663Z","isFirstParty":false}