Getting started
Quickstart
From zero to the first answer in five minutes — with curl, Python or JavaScript.
1. Create an API key
Create a personal key under Settings → API & CLI. It is shown exactly once; afterwards only its hash is stored. Put it in an environment variable:
export FUTUREWAY_API_KEY="sk-fw-api-…"2. Set the base URL
Every OpenAI SDK accepts a base URL. Set https://api.futureway.ai/v1 — nothing else changes.
3. First request
A chat completion with the default model:
curl https://api.futureway.ai/v1/chat/completions \
-H "Authorization: Bearer $FUTUREWAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "futureway-smart",
"messages": [
{
"role": "user",
"content": "Was ist die Hauptstadt von Frankreich?"
}
]
}'4. Streaming
With stream: true the tokens arrive as server-sent events as they are generated — for anything longer than a sentence:
curl https://api.futureway.ai/v1/chat/completions \
-H "Authorization: Bearer $FUTUREWAY_API_KEY" \
-H "Content-Type: application/json" \
-N \
-d '{"model":"futureway-smart","stream":true,"messages":[{"role":"user","content":"Zähle bis drei."}]}'5. Check your key
The App API answers what your key is — kind, scopes, expiry, organisation:
curl https://api.futureway.ai/v1/me \
-H "Authorization: Bearer $FUTUREWAY_API_KEY"