# Clarity x402 Chat Completions (Qwen3 1.7B)

> Clarity x402 Chat Completions (Qwen3 1.7B) is a paid API for AI agents from desktop-o99r0sf.tail935fba.ts.net, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Pay-per-request AI chat inference using Qwen3 1.7B via Clarity's x402 micropayment gateway, returning an OpenAI-compatible chat completion response.

## Facts

- Endpoint: GET https://desktop-o99r0sf.tail935fba.ts.net/v1/x402/chat/completions
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/clarity-x402-chat-completions-qwen3-1-7b-80b2794e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nE7IgHAILM_Vorb4rumTG

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 clarity-x402-chat-completions-qwen3-1-7b-80b2794e
```

Example prompt: Ask Qwen3 — the local 1.7B model on Clarity — to explain the difference between supervised and unsupervised learning in 2 sentences, using a temperature of 0.7 and up to 128 tokens.

## When to prefer this

Choose this endpoint when you need a cheap, pay-as-you-go AI chat completion with no subscription or API key setup, especially for lightweight tasks where a 1.7B parameter model suffices. Ideal for agents that use x402 micropayments and want OpenAI-compatible responses at $0.001 USDC per call. Prefer alternatives for complex reasoning tasks requiring larger models, streaming responses, or more than 128 output tokens.

## Known failure modes

- x402 payment challenge not met — returns 402 Payment Required with payment instructions
- Invalid or missing messages array — returns 400 Bad Request
- max_tokens exceeds 128 — rejected by schema validation
- Model field not set to 'local:qwen3:1.7b' — rejected as unsupported model
- Stream set to true — rejected since only non-streaming mode is supported
- Endpoint unavailable if the host device (Tailscale node) is offline — connection timeout or 503

## How this service works

Direct pay-per-request AI inference through Clarity using local:qwen3:1.7b. Pay the live x402 challenge and receive an OpenAI-compatible chat completion directly.

## Output

An OpenAI-compatible JSON chat completion object containing the assistant's reply message, finish reason (e.g. 'stop'), token usage breakdown (prompt, completion, total), model name ('qwen3:1.7b'), and a unique completion ID.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "enum": [
    "local:qwen3:1.7b"
   ],
   "type": "string"
  },
  "stream": {
   "enum": [
    false
   ],
   "type": "boolean",
   "default": false
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "enum": [
       "system",
       "user",
       "assistant"
      ],
      "type": "string"
     },
     "content": {
      "type": "string"
     }
    }
   },
   "maxItems": 16,
   "minItems": 1
  },
  "max_tokens": {
   "type": "integer",
   "default": 128,
   "maximum": 128,
   "minimum": 1
  },
  "temperature": {
   "type": "number",
   "maximum": 2,
   "minimum": 0
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-example",
  "model": "qwen3:1.7b",
  "usage": {
   "total_tokens": 15,
   "prompt_tokens": 10,
   "completion_tokens": 5
  },
  "object": "chat.completion",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "Hello from Clarity."
    },
    "finish_reason": "stop"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/clarity-x402-chat-completions-qwen3-1-7b-80b2794e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from desktop-o99r0sf.tail935fba.ts.net](https://www.zero.xyz/host/desktop-o99r0sf.tail935fba.ts.net/llms.txt)
