---
title: "Chat completion"
method: POST
path: "/openai/chat-completion"
tags: ["openai"]
---

# Chat completion

`POST /openai/chat-completion`

## Request body

- OpenAIChatCompletionRequest
  - `prompt` string, required
  - `temperature` number, nullable

## Response `200`

successful operation

- OpenAIChatCompletionResponse
  - `debug_info` object, nullable
  - `finish_reason` string, required
  - `function_call` object, nullable
  - `text` string

---

[API](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server.md) · [All operations](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rxfoodapp/inneranalytics-mnt-server/revisions/0703cbbbefe8/schema)
