# Agent Hub GPT-OSS-20B Chat Completions

> Agent Hub GPT-OSS-20B Chat Completions is a paid API for AI agents from agents.torbrooknews.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-13).

Runs OpenAI-compatible chat completions with tool calling and reasoning on the gpt-oss-20b open-weight model, payable per-request via x402 micropayments instead of an API key.

## Facts

- Endpoint: GET https://agents.torbrooknews.com/v1/gpt-oss-20b/chat/completions?utm_source=zero.xyz
- Price: $0.003/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-gpt-oss-20b-chat-completions-d21f6a04
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JVn7O-4Gs75V6Ci9m-oMZ

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-gpt-oss-20b-chat-completions-d21f6a04
```

Example prompt: Ask gpt-oss-20b: 'Explain the difference between supervised and unsupervised learning in three sentences' — use up to 300 tokens and keep the temperature at 0.7.

## When to prefer this

Choose this endpoint when you need an OpenAI-compatible LLM with tool calling and reasoning but want to avoid managing API keys or subscriptions — paying $0.003 USDC per request via x402. Ideal for agentic pipelines that need per-call micropayment billing, or for accessing gpt-oss-20b specifically.

## Known failure modes

- Payment not included or insufficient USDC (402 Payment Required)
- Prompt parameter missing (400 Bad Request)
- Model context length exceeded if prompt is very long
- Streaming not supported on GET method variant
- Rate limiting or capacity errors from underlying inference provider
- Malformed query parameters returning 422 validation error

## How this service works

OpenAI-compatible chat completions on OpenAI gpt-oss-20b open-weight reasoning model with tool calling. Set your OpenAI SDK base URL to https://agents.torbrooknews.com/v1/gpt-oss-20b and pay $0.003 per request with x402 instead of an API key. Same request/response shape as OpenAI (tool calling, reasoning, streaming supported), up to 4096 output tokens. Also callable as GET with the same fields as query parameters.

## Output

Returns an OpenAI-compatible chat completion object containing the assistant's message, optional tool call specifications, reasoning traces, and token usage counts — identical in shape to the OpenAI API response, up to 4096 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-gpt-oss-20b-chat-completions-d21f6a04/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)
