Authorizations
Your Freepik API key. Required for authentication. Learn how to obtain an API key
Body
The text prompt used to generate the image
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"
The aspect ratio of the generated image
square_1_1
, widescreen_16_9
, social_story_9_16
, portrait_2_3
, traditional_3_4
, standard_3_2
, classic_4_3
Controls how closely the output image aligns with the input prompt. Higher values mean stronger prompt correlation.
0 <= x <= 20
Random seed to control the stochasticity of image generation
0 <= x <= 2147483647
Optional array of reference images for image editing. Each image can be provided as a Base64 encoded string or a publicly accessible URL. Maximum of 5 reference images allowed. If provided, the model will use these images as reference for editing or style transfer.
5
Reference image as Base64 encoded string or publicly accessible URL
[
"iVBORw0KGgoAAAANSUhEUgAAASwAAAEsAQAAAABRBrPYAAABrElEQVR4nO3BMQEAAADCoPVPbQ0Po...",
"https://example.com/reference-image.jpg"
]
Response
OK - The request has succeeded and the Seedream v4 edit process has started.
{
"generated": [
"https://openapi-generator.tech",
"https://openapi-generator.tech"
],
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "CREATED"
}