Skip to main content
  • OpenAI Chat: Set stream: true in the request body.
  • Anthropic: Set stream: true in the request body.
  • Gemini: Use streamGenerateContent?alt=sse.
Each protocol has a different event structure. Use the appropriate parser for your protocol. Complete examples: OpenAI Chat · Gemini · Anthropic