{ "model": "gpt-4o-mini", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "这是什么图片?" }, { "type": "image_url", "image_url": { "url": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-908027cd-0849-4303-ae20-d3bed9830e3a/25eaeef6-ccce-4b08-9caa-de04ecef681a.png" } } ] } ], "max_tokens": 300 }
curl --location --request POST 'https://yewu.bcwhkj.cn/v1/chat/completions' \ --header 'Authorization: Bearer token' \ --header 'Content-Type: application/json' \ --data-raw '{ "model": "gpt-4o-mini", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "这是什么图片?" }, { "type": "image_url", "image_url": { "url": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-908027cd-0849-4303-ae20-d3bed9830e3a/25eaeef6-ccce-4b08-9caa-de04ecef681a.png" } } ] } ], "max_tokens": 300 }'
{ "id": "chatcmpl-9p5UcdrmanOLDtFGUQFuX4EOGQCsO", "object": "chat.completion", "created": 1721962870, "model": "gpt-4o-mini-2024-07-18", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "这是一张橙子的图标或插图,橙子上有一片绿色的叶子。整体设计简洁,颜色对比明显。" }, "logprobs": null, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 8511, "completion_tokens": 34, "total_tokens": 8545 }, "system_fingerprint": "fp_611b667b19" }