Models
GET /v1/models and GET /v1/models/{model_id} — the models the API serves, their limits and prices.
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.
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). It searches the web on its own when an answer needs it; "web_search": false turns that off (see Web search).
It writes in a business, academic or creative mode, which it picks itself unless you send mode (see 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_tokenscan be higher thanmax_tokens. - Streaming. Reasoning, text and tool calls stream live; web search results arrive as whole blocks between rounds. See Streaming.
List models
GET https://api.strokes.ink/v1/modelscurl https://api.strokes.ink/v1/models \
-H "x-api-key: $STROKES_API_KEY"{
"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
GET https://api.strokes.ink/v1/models/{model_id}curl https://api.strokes.ink/v1/models/swim-1.0 \
-H "x-api-key: $STROKES_API_KEY"{
"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 |