curl --location -g --request POST '{{base_url}}/v1beta/models/:generateContent' \
--header 'Content-Type: application/json' \
--data-raw '{
"contents": [
{
"parts": [
{
"text": PROMPT
}
]
}
],
"generationConfig": {
"responseModalities": [
"IMAGE"
],
"imageConfig": {
"aspectRatio": "9:16",
"imageSize": "4K",
"numberOfImages": 1
}
}
}'{
"candidates": [
{
"content": {
"parts": [
{
"inlineData": {
"mimeType": "image/jpeg",
"data": "string"
}
}
]
}
}
]
}