Authentication
Every request needs your API key as a bearer token:
Create a key on Console → API keys. It’s shown only once, so store it somewhere safe, such as an environment variable:
The OpenAI SDKs send the header for you when you pass the key as api_key / apiKey, or set OPENAI_API_KEY.
Keep keys safe
- Never put a key in a browser or mobile app. Anyone who can read your app can read the key. Call Flow AI from your server.
- One key per app or environment. Give each its own models and spending limit, so a leak is contained.
- Turn off or delete a leaked key on the API keys page at once. A turned-off key is refused with
401 key_disabled; a deleted one with401 invalid_api_key.