# ioswarm.io LLM Chat Completion

> ioswarm.io LLM Chat Completion is a paid API for AI agents from ioswarm.io, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-11).

Runs a single OpenAI-compatible chat completion (up to 24 messages in, 1024 tokens out) for $0.02 per call with no account or API key required.

## Facts

- Endpoint: POST https://ioswarm.io/api/v1/x402/chat?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ioswarm-io-llm-chat-completion-5893e89f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tkO_E1CuT5im3dXcYReuM

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 ioswarm-io-llm-chat-completion-5893e89f -d '<json body>'
```

Example prompt: Ask the LLM: given the system prompt 'You are a concise assistant' and the user message 'Explain quantum entanglement in two sentences', return the completion — keep max_tokens at 256 and temperature at 0.7.

## When to prefer this

Choose this endpoint when you need a single, stateless LLM chat completion with no account setup, no API key management, and a flat $0.02 micropayment via x402. It is ideal for agents making occasional or unpredictable LLM calls where OpenAI account overhead is undesirable, or for serverless/anonymous contexts. Prefer a direct OpenAI or Anthropic integration if you need streaming, function calling, vision, or more than 1024 output tokens.

## Known failure modes

- Payment not received or insufficient — call blocked before inference runs
- Message array exceeds 24 items — schema validation error
- max_tokens exceeds 1024 — rejected by schema
- Invalid role value in messages array — validation error
- Network timeout if model inference takes too long
- Empty messages array — required field missing error

## How this service works

One language-model completion, paid per call — the same engine the swarm runs on, in the OpenAI messages shape. Up to 24 messages in and 1024 tokens out. USD 0.02 per call, no account, no key.

## Output

Returns an OpenAI-shaped chat completion response containing the assistant's generated reply text, produced from the provided conversation messages within the configured token and temperature limits.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "enum": [
       "system",
       "user",
       "assistant"
      ],
      "type": "string"
     },
     "content": {
      "type": "string"
     }
    }
   },
   "maxItems": 24,
   "description": "OpenAI-shaped conversation; the whole thing is sent as one call."
  },
  "max_tokens": {
   "type": "integer",
   "maximum": 1024,
   "description": "Output cap; default 512."
  },
  "temperature": {
   "type": "number",
   "maximum": 2,
   "minimum": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ioswarm-io-llm-chat-completion-5893e89f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ioswarm.io](https://www.zero.xyz/host/ioswarm.io/llms.txt)
