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/jsonEndpoints
| Method | Path | Description |
|---|---|---|
| GET | /v1/models | List currently available models |
| GET | /v1/models/:model | Retrieve a single model |
| POST | /v1/chat/completions | Create a chat completion (OpenAI-compatible) |
| POST | /v1/messages | Messages request (Anthropic-compatible) |
Chat Completions Fields
| Field | Required | Description |
|---|---|---|
| model | Yes | Model id |
| messages | Yes | Message array |
| stream | No | Enable streaming |
| temperature | No | Sampling 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.