Sign inGet API key ↗
API reference

Streaming responses

Receive incremental output using server-sent events.

Documentation preview. Existing API behavior remains authoritative. Orbis route activation and retail pricing are still pending.

Enable streaming

For supported Chat Completions models, set stream to true. Consume incremental delta content rather than assuming each chunk contains a complete message.

const stream = await client.chat.completions.create({
  model: "ENABLED_MODEL_ID",
  messages: [{ role: "user", content: "Hello" }],
  stream: true,
});
for await (const chunk of stream) {
  process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}

Disconnects and usage

A connection closing does not necessarily mean the upstream did no work. Avoid automatically replaying a partially completed generation. Use dashboard usage and wallet history to investigate charges.


Browse the model catalog →