{ "model": "gemini-2.5-flash-image-preview", "stream": false, "messages": [ { "role": "user", "content": "生成一个格斗猫" } ] }
curl --location -g --request POST '{{BASE_URL}}/v1/chat/completions' \ --header 'Authorization: Bearer {{YOUR_API_KEY}}' \ --header 'Content-Type: application/json' \ --data-raw '{ "model": "gemini-2.5-flash-image-preview", "stream": false, "messages": [ { "role": "user", "content": "生成一个格斗猫" } ] }'
{}