{"uid":"cap_d6yb3RfvjUO6FevCY-XvA","slug":"withzero-openrouter-chat-completions-metered-via-zeroclick-e795b991","name":"WithZero OpenRouter Chat Completions (Metered via ZeroClick)","description":"Create media, research companies and people, publish to the web, remember context, deploy apps, and schedule work—on demand, without vendor accounts or API keys. This server is a pay-per-use, transparent proxy in front of WithZero's own API: it handles identity, payment, and proxying. Agents can purchase autonomously or with their human's approval. Operations whose x-payment-info.access is \"plan\" are sold on plans, not per call: they answer an unidentified call with 401 and an identified call with no covering plan with 403, never a 402. The complete verified paid surface is listed at /openapi.json, the source of truth for available operations. Each operation here carries its pricing in x-payment-info. Use the operations and details here when they meet your needs. Filtered specs contain only matching operations; if you cannot find what you need here, use search or the service catalog. The live catalog at /manifest.json is authoritative for prices and any free included units (prices[].includedUnits) - some meters include free usage per account before any charge, reserved for agents claimed by a human with a verified email.","url":"https://agents.withzero.xyz/api/v1/openrouter/chat/completions/metered?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["id","object","created","model","choices","billing"],"properties":{"id":{"type":"string"},"model":{"type":"string"},"usage":{"type":"object","required":["prompt_tokens","completion_tokens","total_tokens"],"properties":{"cost":{"type":"number"},"total_tokens":{"type":"number"},"prompt_tokens":{"type":"number"},"completion_tokens":{"type":"number"}},"additionalProperties":false},"object":{"type":"string"},"billing":{"type":"object","required":["promptTokens","completionTokens","reservedUsdcMicro","settledUsdcMicro","actualUsdcMicro","costBasis"],"properties":{"costBasis":{"enum":["openrouter","rates","estimated"],"type":"string","description":"Where actualUsdcMicro came from: OpenRouter usage accounting > cached per-token rates > character estimate"},"promptTokens":{"type":"number","description":"Actual input tokens consumed"},"actualUsdcMicro":{"type":"string","description":"Best-known actual cost of the call in micro-USDC. On the fixed route this is informational — the charge is settledUsdcMicro."},"completionTokens":{"type":"number","description":"Actual output tokens generated"},"settledUsdcMicro":{"type":"string","description":"Micro-USDC actually charged to the buyer. Fixed route: the up-front worst-case estimate (= reservedUsdcMicro). Metered route: actual usage (= actualUsdcMicro)."},"reservedUsdcMicro":{"type":"string","description":"Worst-case micro-USDC committed before the call"}},"additionalProperties":false},"choices":{"type":"array","items":{"type":"object","required":["index","message","finish_reason"],"properties":{"index":{"type":"number"},"message":{"type":"object","required":["role","content"],"properties":{"role":{"type":"string"},"content":{"anyOf":[{"type":"string"},{"type":"null"}]},"tool_calls":{"type":"array","items":{}}},"additionalProperties":false},"logprobs":{},"finish_reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}},"created":{"type":"number"},"system_fingerprint":{"type":"string"}},"additionalProperties":false},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"5","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":2,"rating":{"score":"0.13","successRate":"0.99","reviews":2,"stars":"1.5","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"5","per":"call","confidence":"exact"},{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SIDHBJ2DVoCgz_ivXsZ9r","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null},{"uid":"pm_fAmixdlnwrpNWpO-i7lzK","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"5","costPer":"request","priority":0,"asset":"usd","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Routes a chat completion request through OpenRouter's multi-model LLM API, billed per-call via ZeroClick's pay-per-use proxy without requiring a vendor account or API key.","exampleAgentPrompt":"Send this conversation to an LLM via OpenRouter — use GPT-4o, and ask it to summarize the following support ticket in three bullet points: 'Customer reports login fails after password reset, error code 403, happened twice today.'","exampleUseCases":[{"title":"On-demand LLM inference without accounts","prompt":"Call an OpenRouter model — use Claude 3.5 Sonnet — and ask it: 'Draft a polite follow-up email to a client who hasn't responded in two weeks about a pending proposal.'"},{"title":"Agent reasoning step via metered LLM","prompt":"I need you to use the OpenRouter chat endpoint to ask GPT-4o: 'Given these five customer reviews, identify the top two recurring complaints and suggest one product change for each.' Then pay for it automatically from my ZeroClick balance."},{"title":"Research synthesis using pay-per-use AI","prompt":"Use the WithZero OpenRouter proxy to send this research brief to Mistral Large and get a structured SWOT analysis back — I don't want to set up my own OpenRouter account, just bill it per call."}],"resultDescription":"Returns the raw OpenRouter chat completion response — typically a JSON object containing the model's generated message, finish reason, token usage statistics, and model metadata — exactly as OpenRouter would return it, proxied transparently through WithZero's metered infrastructure.","failureModes":["Insufficient ZeroClick balance causes payment failure and 402 response","Malformed HTTP body or missing required fields returns 400 validation error","OpenRouter upstream model unavailable or rate-limited returns 503 or 429","Unsupported bodyType value (not json/form-data/text) causes schema validation rejection","Model specified in body not available on OpenRouter returns upstream error","Network timeout to OpenRouter backend results in 504 gateway timeout"],"whenToPreferThis":"Choose this endpoint when you need access to OpenRouter's multi-model LLM catalog without setting up a vendor account or managing API keys, and want per-call billing in USDC via ZeroClick's autonomous payment flow. Ideal for AI agents that need occasional or unpredictable LLM inference volume, want to avoid monthly subscription overhead, or operate in a crypto-native payment context. Not ideal if you already have an OpenRouter account with volume discounts, or need streaming responses that may not be supported by the proxy layer.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":304,"lastUsedAt":"2026-07-22T19:11:06.916Z","lastSuccessfullyRanAt":"2026-07-22T19:11:06.916Z","lastHealthCheckAt":"2026-10-22T07:52:35.875Z","isFirstParty":true,"canonicalSlug":"withzero-openrouter-chat-completions-metered-via-zeroclick-e795b991"}