# Strokes Writing Intelligence

> An API for writing: send a conversation, get text back in the Anthropic Messages format.

Source: https://docs.strokes.ink

Strokes Writing Intelligence is the Strokes writing API. You call it from your own server with an API key; the [console](https://platform.strokes.ink) is where you create keys, buy credits, invite your team, watch usage and try the model in the browser.

The API speaks the [Anthropic Messages](https://docs.anthropic.com/en/api/messages) format — and OpenAI's Chat Completions: text and images, tools, streaming, a reasoning level you choose, and web search the model runs on its own. Point the official Anthropic or OpenAI SDK at the Strokes base URL and your existing code works unchanged.

```bash
curl https://api.strokes.ink/v1/messages \
  -H "x-api-key: $STROKES_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "model": "swim-1.0",
    "messages": [
      {
        "role": "user",
        "content": "Write a two-line opening for a product launch email."
      }
    ]
  }'
```

<Callout title="Preview" type="warn">
The API serves `swim-1.0`, Strokes Writing Intelligence Model 1.0. The request and response formats are final — code you write now keeps working as new models arrive.
</Callout>

## Start here

<Cards>
<Card title="Quickstart" href="/get-started/quickstart">
Create a key and send your first request in five minutes.
</Card>

<Card title="SDKs" href="/get-started/sdks">
Use the Anthropic or OpenAI SDK for TypeScript or Python, or plain HTTP.
</Card>

<Card title="Messages" href="/guides/messages">
Conversations, system prompts, images and the reasoning level.
</Card>

<Card title="Streaming" href="/guides/streaming">
Show the reply as it's written.
</Card>

<Card title="Web search" href="/guides/web-search">
The model searches the web and reads pages on its own while it answers — on by default.
</Card>

<Card title="API reference" href="/api">
Every endpoint, field and error.
</Card>
</Cards>

## At a glance

| | |
| --- | --- |
| Base URL | `https://api.strokes.ink` |
| Authentication | An API key in the `x-api-key` header, or `Authorization: Bearer` |
| Format | Anthropic Messages: `POST /v1/messages`, and OpenAI Chat Completions: `POST /v1/chat/completions` |
| Model | `swim-1.0`: 1,024,000 tokens of context, 32,000 out; web search on by default; reasoning `low` by default |
| Price | $0.50 / $2.50 per million input / output tokens; $2 per 1,000 web searches and page reads |
| Limits | No requests-per-minute limit; prepaid credits and per-key monthly spend limits |
| Console | [platform.strokes.ink](https://platform.strokes.ink) |
