# AgentRXI Qwen 2.5 Coder 32B Chat Completions

> AgentRXI Qwen 2.5 Coder 32B Chat Completions is a paid API for AI agents from agentrxi.com, paid per call via x402, $0.005112/call, status unknown (last checked 2026-10-15).

OpenAI-compatible chat completions using Qwen 2.5 Coder 32B, optimized for code generation, review, and fixes, billed per token via x402 micropayments

## Facts

- Endpoint: GET https://agentrxi.com/v1/coder/chat/completions?utm_source=zero.xyz
- Price: $0.005112/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentrxi-qwen-2-5-coder-32b-chat-completions-47fa25de
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1qjnDekOUruQ1_Z8MufiJ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentrxi-qwen-2-5-coder-32b-chat-completions-47fa25de
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentrxi-qwen-2-5-coder-32b-chat-completions-47fa25de/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentrxi.com](https://www.zero.xyz/host/agentrxi.com/llms.txt)
