Google Imagen 3
Create image from text - Imagen3
Convert descriptive text input into images using AI. This endpoint accepts a variety of parameters to customize the generated images.
POST
Authorizations
Your Freepik API key. Required for authentication. Learn how to obtain an API key
Body
application/json
The prompt to be used while generating the image
Example:
"A beautiful sunset over a calm ocean"
The webhook URL to be used while generating the image
Example:
"https://www.example.com/webhook"
Specifies the number of images to generate in a single request.
Valid values range [1, 4]
, default 1
.
Required range:
1 <= x <= 4
Example:
1
The aspect ratio of the image
Available options:
square_1_1
, social_story_9_16
, widescreen_16_9
, traditional_3_4
, classic_4_3
Example:
"square_1_1"
Allow person generation
Available options:
dont_allow
, allow_adult
, allow_all
Safety settings options
Available options:
block_low_and_above
, block_medium_and_above
, block_only_high
, block_none
Response
200
application/json
OK - The request has succeeded and the Imagen3 process has started.
Example:
{
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "IN_PROGRESS",
"generated": [
"https://openapi-generator.tech",
"https://openapi-generator.tech"
]
}
Was this page helpful?