ZBStream

API Reference

ZBStream exposes model listing, Chat Completions, and Messages endpoints. Requests go to the current deployment address and authenticate with a Bearer API key.

Authentication

Authorization: Bearer $ZBSTREAM_API_KEY
Content-Type: application/json

Endpoints

MethodPathDescription
GET/v1/modelsList currently available models
GET/v1/models/:modelRetrieve a single model
POST/v1/chat/completionsCreate a chat completion (OpenAI-compatible)
POST/v1/messagesMessages request (Anthropic-compatible)

Chat Completions Fields

FieldRequiredDescription
modelYesModel id
messagesYesMessage array
streamNoEnable streaming
temperatureNoSampling temperature, model-dependent range

Capability Boundaries

Request fields not listed on this page may still be forwarded, but are not part of the compatibility guarantee. Model capabilities follow the current model and channel configuration.