{"uid":"cap_P3LuY_3fG918_7M_vrCIh","slug":"citiview-deepseek-r1-distill-chat-completions-682e579c","name":"Citiview DeepSeek R1 Distill Chat Completions","description":"OpenAI-compatible chat completions on DeepSeek R1 Distill (Qwen 32B), chain-of-thought reasoning model. Set your OpenAI SDK base URL to https://agents.citiviewgroup.com/v1/r1 and pay per token with x402 instead of an API key: $0.994 per million input and $9.762 per million output tokens, minimum $0.002 a call, at most $0.1084. The 402 quotes your request's maximum; \"upto\" payers are charged only the tokens used. Same request/response shape as OpenAI (reasoning, streaming supp","url":"https://agents.citiviewgroup.com/v1/r1/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":"deepseek-r1-distill-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.022013","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.022013/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.022013","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.022013","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EWqon_bdDJ4eJrC2_Cgqe","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.022013","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs OpenAI-compatible chat completions on DeepSeek R1 Distill (Qwen 32B), a chain-of-thought reasoning model, billed per token via x402 micropayment instead of an API key.","exampleAgentPrompt":"Ask the DeepSeek R1 reasoning model: 'A train leaves Chicago at 9am traveling at 80mph toward New York, 800 miles away. Another train leaves New York at 10am at 100mph. At what time do they meet?' — use chain-of-thought reasoning and return the full explanation.","exampleUseCases":[{"title":"Complex math reasoning with LLM","prompt":"I need you to solve this step-by-step using a reasoning model: if compound interest at 6% per year is applied to $12,000 over 8 years, compounded quarterly, what is the final amount? Show all working."},{"title":"Code logic explanation for debugging","prompt":"Can you use the DeepSeek reasoning model to explain exactly why this Python function might return None unexpectedly? Here's the function: def get_value(d, key): if key in d: return d[key]."},{"title":"Multi-step word problem for agent pipeline","prompt":"Use a chain-of-thought LLM to answer this: a factory produces 240 units per day but shuts down for 3 days every 2 weeks. How many units are produced in a 90-day quarter? Walk me through the reasoning."}],"resultDescription":"Returns an OpenAI-format chat completion JSON object with the assistant's message content (including chain-of-thought reasoning), finish reason, model name ('deepseek-r1-distill-32b'), and token usage breakdown (prompt tokens, completion tokens, total tokens). Streaming is supported.","failureModes":["Insufficient x402 payment leads to 402 Payment Required with a payment quote","Prompt too long for context window returns a token limit error","Invalid or malformed prompt parameter causes a 400 Bad Request","Model overload or timeout may result in 503 or empty completion","temperature or max_tokens out of valid range may cause a parameter validation error"],"whenToPreferThis":"Choose this endpoint when you need OpenAI-SDK-compatible chat completions from a chain-of-thought reasoning model (DeepSeek R1 Distill 32B) without managing a monthly API subscription — especially in agentic pipelines that already use x402 micropayments. It is ideal for pay-as-you-go reasoning tasks, math, logic, and multi-step problems where a smaller, cheaper model is insufficient. Prefer it over standard OpenAI endpoints when cost transparency per call matters or when you want reasoning traces at a competitive per-token rate.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:42:04.420Z","isFirstParty":false,"canonicalSlug":"citiview-deepseek-r1-distill-chat-completions-682e579c"}