Authorizations
Your Freepik API key. Required for authentication. Learn how to obtain an API key
Body
The prompt to be used while generating the image
"A beautiful sunset over a calm ocean"
Optional callback URL that will receive asynchronous notifications whenever the task changes status. The payload sent to this URL is the same as the corresponding GET endpoint response, but without the data field.
"https://www.example.com/webhook"
Specifies the number of images to generate in a single request.
Valid values range [1, 4]
, default 1
.
1 <= x <= 4
1
The aspect ratio of the image
square_1_1
, social_story_9_16
, widescreen_16_9
, traditional_3_4
, classic_4_3
"square_1_1"
Allow person generation
dont_allow
, allow_adult
, allow_all
Safety settings options
block_low_and_above
, block_medium_and_above
, block_only_high
, block_none
Response
OK - The request has succeeded and the Imagen3 process has started.
{
"generated": [
"https://openapi-generator.tech",
"https://openapi-generator.tech"
],
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "CREATED"
}