{"uid":"cap_1qjnDekOUruQ1_Z8MufiJ","slug":"agentrxi-qwen-2-5-coder-32b-chat-completions-47fa25de","name":"AgentRXI Qwen 2.5 Coder 32B Chat Completions","description":"OpenAI-compatible chat completions on Qwen 2.5 Coder 32B for code generation, review and fixes. Set your OpenAI SDK base URL to https://agentrxi.com/v1/coder and pay per token with x402 instead of an API key: $1.98 per million input and $3 per million output tokens, minimum $0.002 a call, at most $0.0173. The 402 quotes your request's maximum; \"upto\" payers are charged only the tokens used. Same request/response shape as OpenAI (streaming supported), up to 2048 output tokens.","url":"https://agentrxi.com/v1/coder/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":"qwen2.5-coder-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.005112","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.005112/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005112","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005112","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IWHligvZNM0kEMpCy0m1E","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005112","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"OpenAI-compatible chat completions using Qwen 2.5 Coder 32B, optimized for code generation, review, and fixes, billed per token via x402 micropayments","exampleAgentPrompt":"Write a Python function that reads a CSV file, filters rows where the 'status' column equals 'active', and returns a list of dictionaries — keep it clean and well-commented.","exampleUseCases":[{"title":"Automated code review assistant","prompt":"Review this JavaScript function for bugs, performance issues, and style problems, and suggest a corrected version: function fetchData(url) { let res = fetch(url); return res.json(); }"},{"title":"Unit test generation for new code","prompt":"Generate comprehensive pytest unit tests for this Python function that calculates compound interest — cover edge cases like zero principal, negative rate, and zero time periods."},{"title":"Cross-language code conversion","prompt":"Convert this Python pandas data processing script to equivalent TypeScript code using the 'danfojs' library, keeping the logic identical and adding type annotations."}],"resultDescription":"Returns an OpenAI-compatible chat completion JSON object containing the assistant's message (code, explanation, or review), model identifier (qwen2.5-coder-32b), finish reason, and token usage breakdown (prompt, completion, and total tokens). Streaming is supported. Maximum 2048 output tokens per response.","failureModes":["Prompt exceeds model context window — response truncated or error returned","Insufficient x402 payment balance — 402 Payment Required with cost quote","Temperature or max_tokens out of valid range — 400 Bad Request","Network timeout on long code generation — partial or no response","Model may hallucinate syntactically incorrect code for niche or obscure languages"],"whenToPreferThis":"Choose this endpoint when you need a cost-efficient, pay-per-token code-focused LLM with no API key setup — ideal for agentic workflows that need code generation, review, or fixing on demand. Prefer it over general-purpose LLMs when the task is strictly code-centric and you want Qwen 2.5 Coder 32B's specialized coding capabilities at a low per-call cost via x402 micropayments without subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:36:41.713Z","isFirstParty":false,"canonicalSlug":"agentrxi-qwen-2-5-coder-32b-chat-completions-47fa25de"}