Quickstart
Create an API key and send your first request to Strokes Writing Intelligence.
Sign in to the console
Open 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 page.
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:
export STROKES_API_KEY="swi_live_…"Send a request
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" }]
}'Read the reply
{
"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 and Reasoning level.
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.
Next
- Use an SDK instead of raw HTTP: SDKs.
- Hold a conversation, set a system prompt and the reasoning level: Messages.
- Every request in curl, TypeScript and Python, ready to copy: the console's Integration page.
- Show the text as it's written: Streaming.
- Let the model look things up: Web search.
- Set the kind of writing — business, academic or creative: Modes.