# Quickstart

> Create an API key and send your first request to Strokes Writing Intelligence.

Source: https://docs.strokes.ink/get-started/quickstart

<Steps>
<Step>
### Sign in to the console

Open [platform.strokes.ink](https://platform.strokes.ink) and sign in with Google or an email verification code. You get an organization of your own; keys, credits and usage belong to it.

Requests are paid from the organization's prepaid credits. Your first organization starts with $1 of welcome credits; buy more on the [Billing](/console/billing) page.
</Step>

<Step>
### Create an API key

Go to **API keys**, click **Create key** and give it a name — the place it will run, such as `production server`. Copy the key now: it's shown once.

Keep it in an environment variable:

```bash
export STROKES_API_KEY="swi_live_…"
```
</Step>

<Step>
### Send a request

```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": "Hello" }]
  }'
```
</Step>

<Step>
### Read the reply

```json
{
  "id": "msg_4bJ8wqT2nV9sKx1LmP0aR7cZ",
  "type": "message",
  "role": "assistant",
  "model": "swim-1.0",
  "content": [
    {
      "type": "text",
      "text": "Hello! How can I help with your writing today?"
    }
  ],
  "stop_reason": "end_turn",
  "stop_sequence": null,
  "usage": {
    "input_tokens": 6,
    "cache_creation_input_tokens": 0,
    "cache_read_input_tokens": 0,
    "output_tokens": 48
  }
}
```

The reply's text is in `content`. `usage` counts the tokens the request used, the model's reasoning included — see it, and its cost, on the console's **Activity** page.

The model searches the web on its own when a question needs it, and reasons at `low` unless you ask for more: see [Web search](/guides/web-search) and [Reasoning level](/guides/messages#reasoning-level).
</Step>
</Steps>

<Callout title="Not a developer?">
The console's Home has **Copy for agent**: a ready-made prompt that sets your AI agent up to write with Strokes for you. See [Home](/console/home#copy-for-agent).
</Callout>

## Next

- Use an SDK instead of raw HTTP: [SDKs](/get-started/sdks).
- Hold a conversation, set a system prompt and the reasoning level: [Messages](/guides/messages).
- Every request in curl, TypeScript and Python, ready to copy: the console's [Integration](/console/integration) page.
- Show the text as it's written: [Streaming](/guides/streaming).
- Let the model look things up: [Web search](/guides/web-search).
- Set the kind of writing — business, academic or creative: [Modes](/guides/modes).
