Authorizations
Your Freepik API key. Required for authentication. Learn how to obtain an API key
Body
The prompt to use for image generation.
Whether to perform upsampling on the prompt. If active, automatically modifies the prompt for more creative generation.
Optional seed for reproducibility. If not provided, a random seed will be used.
Image size with the aspect ratio. The aspect ratio is the proportional relationship between an image's width and height, expressed as *_width_height (e.g., square_1_1, widescreen_16_9). It is calculated by dividing the width by the height.
If not present, the default is square_1_1
.
square_1_1
, classic_4_3
, traditional_3_4
, widescreen_16_9
, social_story_9_16
, standard_3_2
, portrait_2_3
, horizontal_2_1
, vertical_1_2
, social_post_4_5
"square_1_1"
Tolerance level for input and output moderation. Between 0 and 6, 0 being most strict, 6 being least strict.
0 <= x <= 6
Format of the output image
jpeg
, png
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"
Response
OK - Get the status of the flux-pro 1.1 task
{
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "CREATED"
}