> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tryorbit.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Streaming

> Receive tokens as server-sent events from any Orbit chat surface.

Pass `"stream": true` to get tokens as they generate. Buffered JSON is the default.

Streaming uses the same auth, model slugs, and credit billing as a non-streamed call. The HTTP timeout on inference routes is long enough for a multi-minute completion.

## OpenAI

```bash theme={"theme":"github-dark"}
curl https://api.tryorbit.cloud/api/v1/chat/completions \
  -H "Authorization: Bearer $ORBIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-5",
    "messages": [{ "role": "user", "content": "Hello!" }],
    "stream": true
  }'
```

The official OpenAI SDK exposes the same flag as `stream=True` / `stream: true`.

## Anthropic

```bash theme={"theme":"github-dark"}
curl https://api.tryorbit.cloud/api/v1/messages \
  -H "x-api-key: $ORBIT_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-5",
    "max_tokens": 1024,
    "messages": [{ "role": "user", "content": "Hello!" }],
    "stream": true
  }'
```

## Native Orbit API

```bash theme={"theme":"github-dark"}
curl https://api.tryorbit.cloud/api/v1/models/claude-sonnet-5/chat \
  -H "Authorization: Bearer $ORBIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [{ "role": "user", "content": "Hello!" }],
    "stream": true
  }'
```

The dashboard [playground](/guides/playground) always streams.
