Generate image with google/nano-banana/text-to-image
Generates an image using the google/nano-banana/text-to-image model.
API key is required to authorize requests. Obtain a key from your Atlas Cloud dashboard.
In: header
model name
The aspect ratio of the generated media.
"1:1" | "3:2" | "2:3" | "3:4" | "4:3" | "4:5" | "5:4" | "9:16" | "16:9" | "21:9"The positive prompt for image generation.
If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.
falseIf set to true, the function will wait for the result to be generated and uploaded before returning the response. It allows you to get the result directly in the response. This property is only available through the API.
falseThe format of the output image.
"png" | "jpeg"Controls how input media is processed. LOW reduces tokens per image/video, possibly losing detail but allowing longer videos in context. Supported values: HIGH, MEDIUM, LOW.
"default" | "low" | "medium" | "high"Response Body
curl -X POST "https://api.atlascloud.ai/api/v1/model/generateImage" \ -H "Content-Type: application/json" \ -d '{ "model": "google/nano-banana/text-to-image", "prompt": "string" }'{
"id": "string",
"urls": {},
"model": "string",
"status": "string",
"outputs": [
"string"
],
"created_at": "2019-08-24T14:15:22Z",
"has_nsfw_contents": [
true
]
}