{"uid":"cap_aXIUdW6MNOziF0wUzfhR3","slug":"cortexcloud-chat-completions-gateway-69f54a8f","name":"CortexCloud Chat Completions Gateway","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/chat/completions","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","description":"Model id, e.g. gemini/gemini-2.0-flash"},"stream":{"type":"boolean"},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant","tool"],"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"integer"},"temperature":{"type":"number"}}},"responseSchema":{"type":"object","format":"application/json","example":{"id":"chatcmpl-abc","usage":{"prompt_tokens":0,"completion_tokens":0},"object":"chat.completion","choices":[]}},"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_0dBiWEZXiikSOi7nJ3tap","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":"Provides an OpenAI-compatible chat completions endpoint that routes requests to any supported AI model, with per-call USDC micropayment billing via x402 on Base — no API keys or subscriptions required.","exampleAgentPrompt":"Using CortexCloud, send a chat message to gemini/gemini-2.0-flash asking it to summarize the following paragraph in 3 bullet points — pay per call from my USDC balance, no API key needed: 'Artificial intelligence is transforming industries by automating tasks that previously required human intelligence...'","exampleUseCases":[{"title":"Keyless LLM inference for autonomous agents","prompt":"I'm building an AI agent pipeline that shouldn't hardcode any API keys — use CortexCloud to call gemini/gemini-2.0-flash with this system prompt and user message, paying per call from my USDC wallet on Base."},{"title":"Multi-model comparison without subscriptions","prompt":"I want to compare responses from a few different LLMs on the same prompt without signing up for each provider — run my question through CortexCloud using the model ID 'gemini/gemini-2.0-flash' and let it bill per call in USDC."},{"title":"Streamed chat response for real-time UI","prompt":"Call CortexCloud's chat completions endpoint with stream mode enabled for gemini/gemini-2.0-flash so I can display the AI's answer token by token as it arrives — use my Base USDC for the per-call payment."}],"resultDescription":"Returns an OpenAI-compatible chat completion response object containing: a unique completion ID, an object type identifier, an array of response choices (each with a message and finish reason), and a usage object showing token counts for prompt and completion.","failureModes":["Insufficient USDC balance for x402 payment — payment rejected before inference runs","Invalid or unsupported model ID — model not found or not routable","Malformed messages array — missing required fields causes 400 error","Rate limiting or capacity issues on the underlying model provider","Network timeout if the upstream model provider is slow or unavailable","Stream connection dropped mid-response if client disconnects early"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to call LLM chat completions without managing provider-specific API keys or subscription billing — especially in agentic, multi-model, or trustless environments where paying per-call in USDC on Base is preferable to monthly subscriptions. It is ideal for agent-to-agent commerce, serverless pipelines, or any scenario requiring OpenAI-compatible inference with crypto micropayments and no vendor lock-in.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:43:21.624Z","isFirstParty":false}