---
title: "Create a chat completion"
method: POST
path: "/v1/chat/completions"
tags: ["completions"]
---

# Create a chat completion

`POST /v1/chat/completions`

Create a chat completion using the provided parameters.

Generates a completion response based on the chat messages and model parameters provided.
The response can be either a full completion or streamed chunks depending on the request parameters.

Args:
    params: Parameters for creating the chat completion including messages, model selection,
           and generation settings
    user: The authenticated user making the request

Returns:
    Either a ChatCompletion containing the full response, or ChatCompletionChunk for streaming

Raises:
    HTTPException: If there is an error creating the completion (500)

## Response `200`

The generated chat completion response

- unknown

---

[API](https://skmtc.net/mixedbread/apis/mxbai-omni.md) · [All operations](https://skmtc.net/mixedbread/apis/mxbai-omni/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mixedbread/mxbai-omni/revisions/2eece97b5ae5/schema)
