{"uid":"cap_L4sRXuouSICMh1_59Mehp","slug":"model-access-gateway-gpt-6-astra-chat-completions-x402-7349fbb6","name":"Model Access Gateway – GPT-6 Astra Chat Completions (x402)","description":"LLM inference API: OpenAI-compatible chat completions for 136 AI models (Claude, GPT, Gemini, Grok, DeepSeek, Qwen, Kimi, GLM), paid per call in USDC on Base with x402. No account, no API key, automatic refund if the model fails.","url":"https://agent402-arb.rosariovitale0096.workers.dev/llm/gpt-6-astra?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","description":"Optional: fixed by the route (openai/gpt-6-astra)"},"tools":{"type":"array"},"stream":{"type":"boolean","description":"true: server-sent events after payment"},"messages":{"type":"array","items":{"type":"object","required":["role"],"properties":{"role":{"enum":["system","user","assistant","tool","developer"],"type":"string"},"content":{"type":["string","array","null"]}}},"minItems":1},"max_tokens":{"type":"integer","maximum":16384,"minimum":1,"description":"Optional, default 4096"},"temperature":{"type":"number","maximum":2,"minimum":0},"response_format":{"type":"object"}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-7f3c2a91","model":"openai/gpt-6-astra","usage":{"total_tokens":10,"prompt_tokens":9,"completion_tokens":1},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"OK"},"finish_reason":"stop"}],"created":1791979200}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0019","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.0019/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0019","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0019","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PvUnxkIVxZmXhh8RSU0E5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0019","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Provides OpenAI-compatible chat completions via the GPT-6 Astra model, billed per-request in USDC on Base using the x402 payment protocol — no API key or account required.","exampleAgentPrompt":"Send my conversation history to GPT-6 Astra and get a chat completion back — pay the $0.0019 USDC fee per request using x402 on Base, no API key needed.","exampleUseCases":[{"title":"Autonomous agent LLM calls with crypto billing","prompt":"I'm building an autonomous agent that needs to call a chat LLM for every task step — use the GPT-6 Astra endpoint that charges per request in USDC so I don't have to manage API subscriptions."},{"title":"On-chain AI chatbot for a dApp","prompt":"My dApp needs to answer user questions using an AI model and pay for each inference with USDC on Base — route my chat messages through GPT-6 Astra with x402 micropayments."},{"title":"No-account LLM prototyping","prompt":"I want to try out a GPT-style chat completion model right now without creating an account or getting an API key — just send my prompt to GPT-6 Astra and bill me a tiny USDC amount per call."}],"resultDescription":"Returns an OpenAI-compatible chat.completion JSON object containing the assistant's reply message, finish reason, model name, and token usage breakdown (prompt, completion, and total tokens).","failureModes":["Payment failure or insufficient USDC balance — x402 payment rejected before inference runs","Invalid or malformed request body — missing required fields such as messages array","Model not available or overloaded — upstream provider error propagated through the gateway","Unsupported HTTP method — only POST/PUT/PATCH accepted","Rate limiting or worker capacity errors from the Cloudflare Workers runtime"],"whenToPreferThis":"Choose this endpoint when you need OpenAI-compatible chat completions without creating an account or managing API keys, and you can pay per-request in USDC via the x402 protocol on Base. It is especially well-suited for autonomous AI agents that need to self-fund LLM calls on-chain, or for developers prototyping without a subscription commitment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:47:35.630Z","isFirstParty":false,"canonicalSlug":"model-access-gateway-gpt-6-astra-chat-completions-x402-7349fbb6"}