返回控制台

OpenAI聊天格式

POST/v1/chat/completions

OpenAI聊天格式

Gemini 图片生成

请求体 application/json

modelstring必填
streamboolean必填
messagesarray<object>必填
rolestring
contentstring
extra_bodyobject
googleobject必填
image_configobject必填
aspect_ratiostring必填
image_sizestring必填
contentsarray<object>必填
rolestring
partsarray<object>
textstring

响应

200 成功
idstring必填
modelstring必填
objectstring必填
createdinteger必填
choicesarray<object>必填
indexinteger
messageobject
rolestring必填
contentstring必填
finish_reasonstring
usageobject必填
prompt_tokensinteger必填
completion_tokensinteger必填
total_tokensinteger必填
ThinkMaaS 文档 · 内容基于 New API 开源项目文档(QuantumNous/new-api-docs)本地化镜像