Write a haiku about API gateways.
One key, many minds —
requests fan out through the dark,
tokens flow like rain.
↳ 388ms first token41 tokenscost $0.00037✓ served by official Anthropic API
Python
JavaScript
cURL
Cline
Cursor
Chatbox
# pip install openai — nothing flatkey-specific
from openai import OpenAI
client = OpenAI(
base_url="https://api.flatkey.ai/v1",
api_key="fk-live-…", # your key auto-fills here after sign-in
)
r = client.chat.completions.create(
model="claude-opus-4-8",
messages=[{"role":"user","content":"Hello"}],
)