{"uid":"cap_sc3XiudqTFGFz7P5TQcKD","slug":"citiview-qwq-32b-chat-completions-openai-compatible-98a124dd","name":"Citiview QwQ 32B Chat Completions (OpenAI-Compatible)","description":"OpenAI-compatible chat completions on Alibaba QwQ 32B, step-by-step reasoning for math and logic. Set your OpenAI SDK base URL to https://agents.citiviewgroup.com/v1/qwq and pay per token with x402 instead of an API key: $1.32 per million input and $2 per million output tokens, minimum $0.002 a call, at most $0.0335. The 402 quotes your request's maximum; \"upto\" payers are charged only the tokens used. Same request/response shape as OpenAI (reasoning, streaming supported), up","url":"https://agents.citiviewgroup.com/v1/qwq/chat/completions?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","description":"User message"},"system":{"type":"string","description":"Optional system message"},"max_tokens":{"type":"integer"},"temperature":{"type":"number"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-...","model":"qwq-32b","usage":{"total_tokens":18,"prompt_tokens":14,"completion_tokens":4},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Bonjour !"},"finish_reason":"stop"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006123","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.006123/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006123","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006123","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xR4fChWbxe4Qxf3_cRY92","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006123","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs Alibaba QwQ 32B inference for step-by-step math and logic reasoning via an OpenAI-compatible chat completions endpoint, billed per token via x402.","exampleAgentPrompt":"Use the QwQ 32B reasoning model to solve this step by step: if a train travels 120 miles in 1.5 hours and then 80 miles in 45 minutes, what is its average speed across the whole trip?","exampleUseCases":[{"title":"Multi-step math problem solving","prompt":"I need you to work through this algebra problem carefully, showing each step: solve for x where 3x² - 7x + 2 = 0. Use the QwQ reasoning model so I can see the full chain of thought."},{"title":"Logic puzzle with chain-of-thought","prompt":"There are five houses in a row, each a different color, with owners of different nationalities, pets, drinks, and hobbies. Use QwQ 32B to solve this Einstein-style riddle step by step: the Brit lives in the red house, the Swede has a dog..."},{"title":"Code debugging with reasoning trace","prompt":"Here's a Python function that's supposed to compute Fibonacci numbers but returns wrong results for large inputs — can you use the QwQ model to reason through exactly why it's broken and propose a fix? `def fib(n): return fib(n-1) + fib(n-2) if n > 1 else n`"}],"resultDescription":"Returns an OpenAI-format chat completion JSON object containing the assistant's message (with full reasoning trace), finish reason, model name, completion ID, and token usage breakdown (prompt tokens, completion tokens, total tokens). Streaming responses are also supported.","failureModes":["Insufficient x402 payment or balance below $0.002 minimum returns 402 Payment Required","Prompt too long exceeding model context window returns an error","Invalid or missing prompt query parameter returns a 400 Bad Request","Network timeout on very long reasoning chains for complex problems","Temperature or max_tokens outside valid range may cause parameter rejection"],"whenToPreferThis":"Choose this endpoint when you need step-by-step chain-of-thought reasoning for math, logic, or code problems and want to pay per token via x402 micropayments rather than maintaining an OpenAI API key subscription. It is ideal for agents that need OpenAI SDK compatibility with a reasoning-specialized model (QwQ 32B) at predictable per-call costs capped at $0.0335.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T06:33:57.451Z","isFirstParty":false,"canonicalSlug":"citiview-qwq-32b-chat-completions-openai-compatible-98a124dd"}