curl --location --request POST 'http://dev-cn.your-api-server.com/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-image-2",
"messages": [
{
"role": "user",
"content": "一位韩系女生站在街头,电影级光影,竖版海报"
}
],
"size": "1024x1536",
"quality": "high",
"n": 1,
"stream": false
}'{
"id": "chatcmpl-xxxxxxxx",
"object": "chat.completion",
"created": 1777408165,
"model": "gpt-image-2",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": ""
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0
}
}