{"contents":[{"parts":[{"text":"Hi, can you create a 3d rendered image of a pig with wings and a top hat flying over a happy futuristic scifi city with lots of greenery?"}]}],"generationConfig":{"responseModalities":["TEXT","IMAGE"],"imageConfig":{"aspect_ratio":"4:3"}}}
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 'https://api.302.ai/google/v1/models/gemini-3-pro-image-preview?response_format' \
--header'Authorization: Bearer ' \
--header'Content-Type: application/json' \
--data-raw'{
"contents": [
{
"parts": [
{
"text": "Hi, can you create a 3d rendered image of a pig with wings and a top hat flying over a happy futuristic scifi city with lots of greenery?"
}
]
}
],
"generationConfig": {
"responseModalities": [
"TEXT",
"IMAGE"
],
"imageConfig": {
"aspect_ratio": "4:3"
}
}
}'