# Agent Hub – Qwen 2.5 Coder 32B Chat Completions

> Agent Hub – Qwen 2.5 Coder 32B Chat Completions is a paid API for AI agents from agents.torbrooknews.com, paid per call via x402, $0.006/call, status unknown (last checked 2026-10-13).

Runs OpenAI-compatible chat completions using Qwen 2.5 Coder 32B for code generation, review, and fixes, billed at $0.006 USDC per request via x402.

## Facts

- Endpoint: GET https://agents.torbrooknews.com/v1/coder/chat/completions?utm_source=zero.xyz
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-hub-qwen-2-5-coder-32b-chat-completions-135f014c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BhhNEurKRvKCoXewpNJAR

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 agent-hub-qwen-2-5-coder-32b-chat-completions-135f014c
```

Example prompt: Can you write me a Python function that takes a list of dictionaries and groups them by a given key, with max 512 output tokens and a temperature of 0.2?

## When to prefer this

Choose this endpoint when you need strong code-focused completions from Qwen 2.5 Coder 32B and want a pay-per-call model without API key management. It is ideal for coding agents, CI pipelines, or developer tools that need reliable code generation, review, and bug fixing without committing to a monthly subscription. Prefer it over general-purpose LLMs when the task is predominantly code-related.

## Known failure modes

- Payment not processed (x402 error) — request fails if USDC payment of $0.006 is not completed
- Prompt too long — input exceeding context window returns an error
- max_tokens capped at 2048 — requests asking for more output will be truncated
- Temperature or parameter out of range — invalid values may return a 400 error
- Model unavailability — transient 503 if the underlying Qwen model is down

## 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://agents.torbrooknews.com/v1/coder and pay $0.006 per request with x402 instead of an API key. Same request/response shape as OpenAI (streaming supported), up to 2048 output tokens. Also callable as GET with the same fields as query parameters.

## Output

An OpenAI-compatible chat completion response containing the generated or reviewed code in the assistant message field, along with token usage statistics. Streaming is supported for progressive output up to 2048 output tokens.

## 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"
    }
   }
  }
 }
}
```

## More

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