ZBStream

Multimodal & Embedding Interfaces

Beyond chat, ZBStream exposes image generation, audio transcription, text-to-speech, embedding, and rerank routes. Results depend on the selected channel having a matching model configured.

Available Routes

MethodPathPurpose
POST/v1/images/generationsImage generation
POST/v1/audio/transcriptionsSpeech-to-text
POST/v1/audio/speechText-to-speech
POST/v1/embeddingsText embeddings
POST/v1/rerankResult reranking

Request Requirements

  • Build request bodies, file uploads, and response parsing per each endpoint's protocol.
  • The model passed must be accessible to the API key and configured on a channel.
  • File size, audio formats, embedding dimensions, and image parameters follow the actual limits of the model and channel.

Troubleshooting

First confirm the model via GET /v1/models, then check the path, Content-Type, request body, and key scope. If the failure persists, investigate with the returned HTTP status code and the request records in the usage console.