{"uid":"cap_GKVwWlFQQPgz4VHVdJxDk","slug":"gedx402-workers-ai-chat-completions-9f3d9685","name":"GEDX402 Workers AI Chat Completions","description":"x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.","url":"https://ged-x402-chat.jvalamis.workers.dev/v1/chat/completions","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string"},"messages":{"type":"array","items":{"type":"object"}},"max_tokens":{"type":"integer"}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-example","object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fgOPqj__eVcNARV57qtpA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs chat completions against Cloudflare Workers AI models, paid per-call with USDC on multiple blockchains via x402, no API key required.","exampleAgentPrompt":"Send this conversation to the 'smart' Workers AI model and get a reply: system says 'You are a helpful assistant', user asks 'What is the capital of France?' — limit the response to 100 tokens and pay with USDC on Base.","exampleUseCases":null,"resultDescription":"Returns an OpenAI-compatible chat completion JSON object containing the assistant's generated reply text, finish reason (e.g. 'stop'), message role, and a completion ID.","failureModes":["Payment not received or insufficient USDC balance — 402 Payment Required response","Invalid or unsupported model ID — model not found error","Messages array missing required role or content fields — validation error","max_tokens out of allowed range (1–4096) — bad request error","Network or Workers runtime error — 5xx server error","Unsupported blockchain network specified for payment — payment failure"],"whenToPreferThis":"Choose this endpoint when you need a permissionless, API-key-free LLM chat completion that accepts USDC micropayments on Base, Polygon, Arbitrum, World, or Solana via the x402 protocol, and when you want OpenAI-compatible response format backed by Cloudflare Workers AI infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:34:26.498Z","isFirstParty":false}