# Synap Qwen3-Coder-30B Chat Completions

> Synap Qwen3-Coder-30B Chat Completions is a paid API for AI agents from synap.linkrra.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-21).

Runs the Qwen3-Coder-30B open model for chat completions via an OpenAI-compatible API, billed per call via x402/USDC

## Facts

- Endpoint: POST https://synap.linkrra.com/api/billing/x402/models/qwen3-coder-30b/chat/completions?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/synap-qwen3-coder-30b-chat-completions-55dd9f24
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cwAnzxuwTtwLfuv2QeJY2

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 synap-qwen3-coder-30b-chat-completions-55dd9f24 -d '<json body>'
```

Example prompt: Using the Qwen3-Coder-30B model, write me a Python function that parses a JSON file and extracts all keys with null values — keep the response under 4096 tokens.

## When to prefer this

Choose this endpoint when you need a coding-specialized open model (Qwen3-Coder-30B) with OpenAI-compatible chat completions, want pay-per-call billing in USDC via x402 with no subscription, and want to avoid proprietary model lock-in. Ideal for agents that need to dynamically call a capable 30B-parameter code model without maintaining API keys or monthly commitments.

## Known failure modes

- Exceeds max_tokens limit of 4096 — reduce requested length
- Invalid message role — must be system, user, assistant, or tool
- Payment failure — insufficient USDC balance or x402 payment not accepted
- Empty messages array — at least one message is required
- Model enum mismatch — only qwen3-coder-30b is accepted at this endpoint
- Rate limiting or quota exceeded on the free tier

## How this service works

Explore open models with Synap's OpenAI-compatible API. Start with a free API key or try a model in chat. Compare models, pricing and free-tier limits.

## Output

An OpenAI-format chat completion JSON object containing the assistant's generated message (typically code or explanation), token usage breakdown (prompt, completion, total), model identifier, and a payment field confirming the USDC transaction hash and amount paid on Base (EIP-155:8453).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "enum": [
    "qwen3-coder-30b"
   ],
   "type": "string",
   "description": "Optional: this endpoint always runs qwen3-coder-30b."
  },
  "stream": {
   "type": "boolean",
   "default": false,
   "description": "true = stream OpenAI-format Server-Sent Events."
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "enum": [
       "system",
       "user",
       "assistant",
       "tool"
      ],
      "type": "string"
     },
     "content": {
      "description": "Text, or an array of OpenAI content parts."
     }
    }
   },
   "examples": [
    [
     {
      "role": "user",
      "content": ""
     }
    ]
   ],
   "minItems": 1,
   "description": "OpenAI-format chat history, oldest first: [{role, content}]."
  },
  "max_tokens": {
   "type": "integer",
   "default": 4096,
   "maximum": 4096,
   "minimum": 1,
   "description": "Completion token cap. The price is quoted for the prompt plus this cap."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-...",
  "model": "qwen3-coder-30b",
  "usage": {
   "total_tokens": 28,
   "prompt_tokens": 16,
   "completion_tokens": 12
  },
  "object": "chat.completion",
  "choices": [
   {
    "message": {
     "role": "assistant",
     "content": "def reverse(s):\n    return s[::-1]"
    }
   }
  ],
  "payment": {
   "network": "eip155:8453",
   "paidUsd": 0.001,
   "transaction": "0x..."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/synap-qwen3-coder-30b-chat-completions-55dd9f24/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from synap.linkrra.com](https://www.zero.xyz/host/synap.linkrra.com/llms.txt)
