# Synap Chat Completions — OpenAI-compatible Inference API

> Synap Chat Completions — OpenAI-compatible Inference API is a paid API for AI agents from synap.linkrra.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-23).

Runs LLM chat completions using Qwen3-Coder-30B via an OpenAI-compatible endpoint with zero data retention and per-call micropayment via x402

## Facts

- Endpoint: POST https://synap.linkrra.com/v1/chat/completions?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/synap-chat-completions-openai-compatible-inference-api-4bbaf4a2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f8OWgdiON_hrm3mIGYkpY

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-chat-completions-openai-compatible-inference-api-4bbaf4a2 -d '<json body>'
```

Example prompt: Send this conversation to the Synap community inference API using Qwen3-Coder-30B and get a response — my system prompt is 'You are a helpful coding assistant' and the user message is 'Write a Python function to parse JSON from a string.'

## When to prefer this

Choose this endpoint when you need a low-cost, OpenAI-compatible LLM inference API with strict zero data retention guarantees, are comfortable with micropayment-per-call billing via x402 on Base, and want to leverage a community GPU network running Qwen3-Coder-30B — particularly suited for code generation, reasoning tasks, or privacy-sensitive workloads where retaining user data on a provider's servers is unacceptable.

## Known failure modes

- Payment failure if insufficient USDC balance — returns 402 Payment Required
- Model overload or GPU unavailability from community network — may return 503 or timeout
- Malformed request body not matching OpenAI schema — returns 400 with validation error
- Network latency spikes due to distributed GPU sourcing
- Rate limiting if too many concurrent requests

## How this service works

AI powered by the people, for the people. OpenAI-compatible inference API with zero data retention — qwen3-coder-30b at $0.0675/1M in, $0.27/1M out. Contribute your GPU, earn credits.

## Output

Returns an OpenAI-style chat.completion JSON object including the assistant's reply message, token usage breakdown (prompt, completion, total), and a payment confirmation object with the Base network transaction hash and amount paid in USD.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "enum": [
    "auto",
    "qwen/qwen3-vl-30b-a3b-instruct",
    "qwen/qwen3-30b-a3b",
    "qwen3-coder-30b",
    "gpt-oss-20b",
    "gemma-4-26b-a4b-it"
   ],
   "type": "string",
   "description": "\"auto\" = cheapest of our self-hosted models that fits, or name one."
  },
  "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": "Write a Python function that reverses a string"
     }
    ]
   ],
   "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-...",
  "usage": {
   "total_tokens": 0,
   "prompt_tokens": 0,
   "completion_tokens": 0
  },
  "object": "chat.completion",
  "choices": [
   {
    "message": {
     "role": "assistant",
     "content": "..."
    }
   }
  ],
  "payment": {
   "network": "eip155:8453",
   "paidUsd": 0,
   "transaction": "0x..."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/synap-chat-completions-openai-compatible-inference-api-4bbaf4a2/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)
