Style Transfer - Magnific API
Style transfer an image using AI
POST
Authorizations
Your Freepik API key. Required for authentication. Learn how to obtain an API key
Body
application/json
Base64 Image to style transfer
Base64 Reference image for style transfer
Webhook URL
Prompt for the AI model
Percentage of style strength
Required range:
0 <= x <= 100
Allows to maintain the structure of the original image
Required range:
0 <= x <= 100
Is the image a portrait
Portrait style
Available options:
standard
, pop
, super_pop
Portrait beautifier
Available options:
beautify_face
, beautify_face_max
Flavor of the transferring style
Available options:
faithful
, gen_z
, psychedelia
, detaily
, clear
, donotstyle
, donotstyle_sharp
Available options:
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.
Response
200
application/json
OK - The request has succeeded and the Style Transfer process has started.
Example:
{
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "IN_PROGRESS",
"generated": [
"https://openapi-generator.tech",
"https://openapi-generator.tech"
]
}