Chat Completions
API Endpoints
Chat Completions
Generate text and responses using Mibyan’s state-of-the-art chat model.
POST
Chat Completions
Creates a model response for the given chat conversation. This endpoint is fully compatible with the OpenAI Chat Completions API.
Request Headers
| Header | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Must be set to Bearer <your-api-key> (starts with mb-). |
Content-Type | string | Yes | Must be set to application/json. |
x-mibyan-api-key | string | No | Alternative way to pass your API key. |
Request Body
The model to use. Currently,
mibyan-4.1 is the primary chat model.A list of messages comprising the conversation so far.
If set to
true, partial message deltas will be sent as Server-Sent Events (SSE).Response Body
A unique identifier for the chat completion.
The object type, always
chat.completion.The Unix timestamp (in seconds) of when the chat completion was created.
The model used for the completion.
A list of chat completion choices.
Usage statistics for the completion request.
