Authorizations
Your Freepik API key. Required for authentication. Learn how to obtain an API key
Body
Base64 or URL of the image to do the style transfer
Base64 or URL of the reference image for style transfer
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"
Prompt for the AI model
Percentage of style strength
0 <= x <= 100
Allows to maintain the structure of the original image
0 <= x <= 100
Indicates whether the image should be processed as a portrait. When set to true
, portrait-specific enhancements such as style and beautification can be applied.
Optional setting to define the visual style applied to portrait images. Only used if is_portrait
is true
. The available options adjust the stylization level or aesthetic treatment of the portrait.
standard
, pop
, super_pop
Optional setting to enable facial beautification on portrait images. Only used if is_portrait
is true
. Options control the intensity or type of beautification applied.
beautify_face
, beautify_face_max
Flavor of the transferring style
faithful
, gen_z
, psychedelia
, detaily
, clear
, donotstyle
, donotstyle_sharp
balanced
, definio
, illusio
, 3d_cartoon
, colorful_anime
, caricature
, real
, super_real
, softy
When this option is enabled, using the same settings will consistently produce the same image. Fixed generations are ideal for fine-tuning, as it allows for incremental changes to parameters (such as the prompt) to see subtle variations in the output. When disabled, expect each generation to introduce a degree of randomness, leading to more diverse outcomes.