OpenRouter Streaming Setup Overview OpenRouter supports Server-Sent Events (SSE) streaming via , compatible with the OpenAI SDK. Streaming returns tokens as they're generated, reducing time-to-first-token (TTFT) from seconds to milliseconds. Usage stats are available via in the final chunk. This skill covers Python and TypeScript streaming, SSE forwarding to browsers, and error recovery. Python: Basic Streaming Python: Streaming with Metrics TypeScript: Streaming SSE Forwarding to Browser (FastAPI) Browser Client (JavaScript) Async Streaming (Python) Error Handling | Error | Cause | Fix | |--…