# ChatCompletions格式 (/docs/api/ai-model/chat/openai/createchatcompletion)



{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

根据对话历史创建模型响应。支持流式和非流式响应。

兼容 OpenAI Chat Completions API。

<APIPage document="&#x22;openapi/generated/ai-model/聊天（Chat）/原生OpenAI格式/post-v1-chat-completions-createchatcompletion-383826473.json&#x22;" operations="[{&#x22;path&#x22;:&#x22;/v1/chat/completions&#x22;,&#x22;method&#x22;:&#x22;post&#x22;}]" />
