Given a hint, the model will return one or more predicted completions and can also return the probability of the surrogate marker for each position.Complete creation for the provided prompts and parametersOfficial documentation: https://platform.OpenAI.com/docs/api-reference/chat/create
Request
Header Params
Body Params application/json
Example
{"model":"sora-2","max_tokens":1000,"messages":[{"role":"user","content":[{"type":"text","text":"There is a little bird flying inside"},{"type":"image_url","image_url":{"url":"https://lsky.zhongzhuan.chat/i/2024/10/17/6711068a14527.png"}}]}],"stream":true}
{"id":"chatcmpl-123","object":"chat.completion","created":1677652288,"choices":[{"index":0,"message":{"role":"assistant","content":"\n\nHello there, how may I assist you today?"},"finish_reason":"stop"}],"usage":{"prompt_tokens":9,"completion_tokens":12,"total_tokens":21}}