Stream Claude Sonnet 5.5 replies from a FastAPI endpoint
A FastAPI route that streams Claude text chunks to any client using the Anthropic Python SDK's messages.stream helper.
Your keys
0 of 1 ready
Create each key on its own page, paste it below, then copy the finished lines into your project's .env file. What you paste stays in this tab. It is never sent to Wirestack or saved.
- Anthropic API keyANTHROPIC_API_KEYGet key
Click Create key. It starts with sk-ant- and is shown only once
$
npx wirestack add claude-fastapi-streaming-endpoint@12Revision 12, checked Nov 15, 2026. Installs exactly
anthropic 2.8.0, fastapi 0.163.0, uvicorn 0.54.0, creates the files and adds the key names to your .env. It shows everything first and asks before changing anything.Adapt to my stackProShowing the original (FastAPI and Python). Pick your stack to see it rewritten.
Free accounts can open one adapted integration a month. Sign in to try it.
