# Models

> GET /v1/models and GET /v1/models/{model_id} — the models the API serves, their limits and prices.

Source: https://docs.strokes.ink/api/models

## Available models

| Model | Name | Context | Max output tokens | Input | Output |
| --- | --- | --- | --- | --- | --- |
| `swim-1.0` | Strokes Writing Intelligence Model 1.0 | 1,024,000 | 32,000 | $0.50 / 1M tokens | $2.50 / 1M tokens |

A request with `max_tokens` above the model's maximum gets a `400`. Web searches and page reads are billed on top of tokens — see [Web search](/guides/web-search#pricing).

### swim-1.0

Strokes Writing Intelligence Model 1.0. Text and images in, text out. It answers in one pass at the reasoning level you set with `output_config.effort` — `low` by default — and returns its reasoning when you ask for it (see [Reasoning](/guides/messages#reasoning-level)). It searches the web on its own when an answer needs it; `"web_search": false` turns that off (see [Web search](/guides/web-search)).

It writes in a business, academic or creative mode, which it picks itself unless you send `mode` (see [Modes](/guides/modes)).

`strokes-wi-1.0`, its earlier name, still works as `model`; replies name `swim-1.0`.

- **Every round is billed.** A reply that searches the web is several requests to the model, so `usage.output_tokens` can be higher than `max_tokens`.
- **Streaming.** Reasoning, text and tool calls stream live; web search results arrive as whole blocks between rounds. See [Streaming](/guides/streaming).

## List models

```http
GET https://api.strokes.ink/v1/models
```

```bash
curl https://api.strokes.ink/v1/models \
  -H "x-api-key: $STROKES_API_KEY"
```

```json
{
  "object": "list",
  "data": [
    {
      "type": "model",
      "id": "swim-1.0",
      "display_name": "Strokes Writing Intelligence Model 1.0",
      "created_at": "2026-11-25T00:00:00Z",
      "object": "model",
      "created": 1795564800,
      "owned_by": "strokes"
    }
  ],
  "has_more": false,
  "first_id": "swim-1.0",
  "last_id": "swim-1.0"
}
```

## Get a model

```http
GET https://api.strokes.ink/v1/models/{model_id}
```

```bash
curl https://api.strokes.ink/v1/models/swim-1.0 \
  -H "x-api-key: $STROKES_API_KEY"
```

```json
{
  "type": "model",
  "id": "swim-1.0",
  "display_name": "Strokes Writing Intelligence Model 1.0",
  "created_at": "2026-11-25T00:00:00Z",
  "object": "model",
  "created": 1795564800,
  "owned_by": "strokes"
}
```

An unknown `model_id` gets a `404` `not_found_error`. Listing and getting models is free.

## The model object

| Field | Type | |
| --- | --- | --- |
| `type` | string | Always `model` |
| `id` | string | What to send as `model` in a request |
| `display_name` | string | A name for people |
| `created_at` | string | When the model was released, in RFC 3339 |
| `object`, `created`, `owned_by` | | The same model in OpenAI's shape: `model`, the release time in Unix seconds, `strokes` |
