# KOTO by MUTOWA

KOTO is MUTOWA's AI workspace. Choose KOTO Flash 1.2, KOTO Super 1.2 or KOTO Super Heavy 2 for conversation, creative work and agent workflows.

## 1. How KOTO works

KOTO combines a selected product tier with tools for the task: conversation, research, files, builds, images, video or agent workflows. Availability depends on the surface, account and connected services.

Your selected KOTO model name stays consistent throughout the conversation, including when a service fallback is needed. Public model names describe the KOTO experience; they do not establish hardware or model-training specifications.

## 2. Product tiers and verified work

- **KOTO Flash 1.2** (`KOTO-flash-1.2`, alias `KOTO-lite-1.2`): quick everyday work.
- **KOTO Super 1.2** (`KOTO-super-1.2`): deeper analysis and multi-step tasks.
- **KOTO Super Heavy 2** (`KOTO-super-heavy-2`): the highest reasoning tier.

These are KOTO product labels. Limits depend on the serving model and the account. See [the current model catalog](https://api.mutowa.com/v1/models) and account settings for current availability.

Generated builds receive static checks and, when a browser is available, rendered inspection and behavior checks. A saved file is not proof of a working result. Incomplete reviews and failed checks remain visible; only a passing review is described as passed. Generated answers and artifacts can still contain mistakes.

### 2.1 Public software architecture

KOTO separates conversation context, memory, orchestration, tool execution and review. The BCA-AI names describe these software responsibilities. A typed message protocol carries task context and feedback with trace IDs and bounded payloads.

Conversation context holds the current thread. Working memory supplies a task scratchpad. When enabled, stored facts can be recalled across chats using compact text vectors and similarity matching, with keyword fallback. Guest history is limited to the current visit.

Sunlight Agent is a software reviewer used for selected substantive work. Builds can receive static checks, browser renders and behavior checks when those facilities are available. A review can identify defects and request revisions; it does not guarantee every answer is correct or establish that every reply was reviewed. See [the public architecture](https://api.mutowa.com/docs/architecture).

### 2.2 Sunlight Node and Private Edge Compute

MUTOWA's [Private Edge Compute page](https://mutowa.com/ventures/edge) describes Sunlight Node as a mini-node software license for routing, relay and network access. Each license provides a connection slot; it does not ship physical hardware or include GPU compute. Sunlight Node is separate from the Sunlight Agent reviewer.

MUTOWA describes the wider Private Edge Compute infrastructure as solar-powered and regionally distributed across Canada, the United States and Japan. This is the published infrastructure design. It does not identify the physical machine or energy mix used to generate a particular KOTO reply.

## 3. API quick start

The KOTO API is served at `https://api.mutowa.com`. Endpoints are drop-in compatible with the two most common chat-API wire shapes, so most existing tooling connects by pointing it at the KOTO base URL with a KOTO key.

### 3.1 List models

```bash
curl https://api.mutowa.com/v1/models
```

### 3.2 Chat-completions endpoint (curl)

```bash
curl https://api.mutowa.com/v1/chat/completions \
  -H "Authorization: Bearer mk_…" \
  -H "content-type: application/json" \
  -d '{
    "model": "KOTO-super-1.2",
    "messages": [
      {"role": "system", "content": "You are a precise research assistant."},
      {"role": "user", "content": "Summarize the state of fault-tolerant quantum error correction."}
    ]
  }'
```

### 3.3 Messages endpoint (curl)

```bash
curl https://api.mutowa.com/v1/messages \
  -H "x-api-key: mk_…" \
  -H "content-type: application/json" \
  -d '{
    "model": "KOTO-super-heavy-1.0",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Design a rate limiter for a multi-region API."}]
  }'
```

### 3.4 Streaming (SSE)

Set `"stream": true` on either wire format. Deltas arrive as server-sent events; streams are unbuffered end to end, so first-token latency reflects model generation rather than proxy buffering.

### 3.5 Authentication

All completion endpoints require a Bearer key — `Authorization: Bearer mk_…` (the messages shape also accepts `x-api-key`). Keys are issued by MUTOWA and can carry per-key rate limits (requests per minute, tokens per minute) and output caps.

## 4. API reference

### 4.1 Endpoints

| Endpoint | Shape | Description |
|---|---|---|
| `GET /v1/models` | — | List the KOTO tiers |
| `GET /api/health` | — | Service health and dependency status |
| `GET /docs` | — | This documentation (HTML) |
| `GET /docs/download` | — | This documentation (Markdown download) |
| `POST /v1/chat/completions` | Chat | Chat completions; supports `stream`, `temperature`, `top_p`, `max_tokens` |
| `POST /v1/completions` | Chat | Legacy text completions |
| `POST /v1/messages` | Messages | Messages API; supports `stream`, `max_tokens`, `system` |
| SDK base-URL alias of `POST /v1/messages` | Messages | Alias route for SDKs that pin a fixed base URL (exact spelling in the `GET /v1` index) |

### 4.2 Request parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `model` | string | `KOTO-flash-1.2` | Tier id. Unknown or omitted ids ride the flash tier — never an error. The retired `KOTO-lite-1.2` and `-contributor` spellings are accepted as aliases. |
| `messages` | array | required | Conversation turns. Over-long conversations are compacted automatically rather than rejected. |
| `temperature` | number | `0` | Sampling temperature. The API defaults to deterministic output for reliability. |
| `top_p` | number | — | Nucleus sampling. |
| `max_tokens` | integer | platform default | Output cap per run: tier ceilings lite 8K · super 1M · super-heavy 2M (per-key caps only lower). Thinking headroom is added on top automatically on thinking tiers; a single engine call is clamped to the engine maximum and longer answers extend across automatic continuations. |
| `stream` | boolean | `false` | Stream deltas over SSE. |

### 4.3 Errors

Errors return structured JSON — never internal traces.

| Status | Meaning |
|---|---|
| `400` | Malformed request (missing `messages`, invalid parameter) |
| `401` | Invalid or missing API key |
| `429` | Per-key rate limit or token budget exceeded (JSON body gives details) |
| `502` | Service momentarily saturated — safe to retry |

## 5. Identity, privacy and behavior

KOTO introduces itself as KOTO by MUTOWA. When asked its model or what powers it, it gives the selected KOTO model name in a brief, natural sentence. Identity naming does not alter company names in code, research or the user's work. Credentials, private instructions, other users' information and hidden reasoning remain private.

KOTO uses a concise, conversational voice with occasional dry humor. It should not invent facts, claim tests it did not run or celebrate unfinished work. Current facts need current evidence; the current date is not a guarantee of complete knowledge.

## 6. Links

- [KOTO](https://koto.mutowa.com)
- [API documentation](https://api.mutowa.com/docs)
- [MUTOWA](https://mutowa.com)
