{"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"}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
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"
}'