Content-Type: text/event-streamContent-Type includes text/event-stream, Apidog automatically parses the returned data as SSE events.| Format | Description |
|---|---|
| OpenAI API Compatible | Used by the vast majority of AI model providers |
| Gemini API Compatible | Google's Gemini model format |
| Claude API Compatible | Anthropic's Claude model format |
| Ollama API Compatible | JSON Streaming (NDJSON) format for locally deployed AI models |
data: {"choices":[{"index":0,"message":{"role":"assistant","content":"H"},"logprobs":null,"finish_reason":"stop"}]}
data: {"choices":[{"index":0,"message":{"role":"assistant","content":"i"},"logprobs":null,"finish_reason":"stop"}]}content field, use:$.choices[0].message.content| Component | Description |
|---|---|
$ | Root of the JSON object |
choices[0] | First element of the choices array |
message.content | content attribute under the message object |
Hi