{
"model": "gpt-image-1",
"prompt": "A diverse group of Vietnamese teenagers (middle/high school age) standing together outdoors on a sunny summer day (perhaps near a modern school building or park), holding laptops/tablets. They are smiling, looking confidently towards the viewer or slightly upwards towards the future. Sense of camaraderie, achievement, and readiness for the digital world. Bright, cheerful, optimistic vibe. Natural lighting, vibrant colors. Photorealistic. --ar 16:9"
}
curl --location --request POST '/v1/images/generations' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-image-1",
"prompt": "A diverse group of Vietnamese teenagers (middle/high school age) standing together outdoors on a sunny summer day (perhaps near a modern school building or park), holding laptops/tablets. They are smiling, looking confidently towards the viewer or slightly upwards towards the future. Sense of camaraderie, achievement, and readiness for the digital world. Bright, cheerful, optimistic vibe. Natural lighting, vibrant colors. Photorealistic. --ar 16:9"
}'
{
"created": 1748231162,
"data": [
{
"b64_json": "xxxxx"
}
],
"usage": {
"input_tokens": 95,
"input_tokens_details": {
"image_tokens": 0,
"text_tokens": 95
},
"output_tokens": 4160,
"total_tokens": 4255
}
}