{"uid":"cap_nE7IgHAILM_Vorb4rumTG","slug":"clarity-x402-chat-completions-qwen3-1-7b-80b2794e","name":"Clarity x402 Chat Completions (Qwen3 1.7B)","description":"Direct pay-per-request AI inference through Clarity using local:qwen3:1.7b. Pay the live x402 challenge and receive an OpenAI-compatible chat completion directly.","url":"https://desktop-o99r0sf.tail935fba.ts.net/v1/x402/chat/completions","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["local:qwen3:1.7b"],"type":"string"},"stream":{"enum":[false],"type":"boolean","default":false},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant"],"type":"string"},"content":{"type":"string"}}},"maxItems":16,"minItems":1},"max_tokens":{"type":"integer","default":128,"maximum":128,"minimum":1},"temperature":{"type":"number","maximum":2,"minimum":0}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-example","model":"qwen3:1.7b","usage":{"total_tokens":15,"prompt_tokens":10,"completion_tokens":5},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Hello from Clarity."},"finish_reason":"stop"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/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_Hok-4BPMpHRIpT76tvcd6","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":"Pay-per-request AI chat inference using Qwen3 1.7B via Clarity's x402 micropayment gateway, returning an OpenAI-compatible chat completion response.","exampleAgentPrompt":"Ask Qwen3 — the local 1.7B model on Clarity — to explain the difference between supervised and unsupervised learning in 2 sentences, using a temperature of 0.7 and up to 128 tokens.","exampleUseCases":[{"title":"Quick factual question answering","prompt":"Use Clarity's Qwen3 model to answer this for me: 'What is the capital of Australia?' — keep it brief, max 50 tokens."},{"title":"Lightweight code explanation","prompt":"Ask the Qwen3 1.7B model on Clarity to explain what this Python snippet does in plain English: 'print([x**2 for x in range(10)])' — temperature 0.3, up to 100 tokens."},{"title":"Creative micro-writing task","prompt":"Have Clarity's local Qwen3 model write a one-sentence tagline for a coffee shop called 'Morning Bloom' — use a temperature of 1.2 for creativity, max 40 tokens."}],"resultDescription":"An OpenAI-compatible JSON chat completion object containing the assistant's reply message, finish reason (e.g. 'stop'), token usage breakdown (prompt, completion, total), model name ('qwen3:1.7b'), and a unique completion ID.","failureModes":["x402 payment challenge not met — returns 402 Payment Required with payment instructions","Invalid or missing messages array — returns 400 Bad Request","max_tokens exceeds 128 — rejected by schema validation","Model field not set to 'local:qwen3:1.7b' — rejected as unsupported model","Stream set to true — rejected since only non-streaming mode is supported","Endpoint unavailable if the host device (Tailscale node) is offline — connection timeout or 503"],"whenToPreferThis":"Choose this endpoint when you need a cheap, pay-as-you-go AI chat completion with no subscription or API key setup, especially for lightweight tasks where a 1.7B parameter model suffices. Ideal for agents that use x402 micropayments and want OpenAI-compatible responses at $0.001 USDC per call. Prefer alternatives for complex reasoning tasks requiring larger models, streaming responses, or more than 128 output tokens.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T19:27:19.087Z","isFirstParty":false}