More modelsGoogleGemini 2.5 flash image text to image
Generate image with google/gemini-2.5-flash-image/text-to-image
Generates an image using the google/gemini-2.5-flash-image/text-to-image model.
AuthorizationBearer <token>
API key is required to authorize requests. Obtain a key from your AtlasCloud dashboard.
In: header
modelstring
model name
promptstring
The positive prompt for image generation.
enable_base64_output?boolean
If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.
Default
false
Response Body
curl -X POST "https://api.atlascloud.ai/api/v1/model/generateImage" \ -H "Content-Type: application/json" \ -d '{ "model": "google/gemini-2.5-flash-image/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
]
}