curl --request POST \
--url https://api.comfy.org/proxy/freepik/v1/ai/image-style-transfer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"image": "<string>",
"reference_image": "<string>",
"engine": "balanced",
"fixed_generation": false,
"flavor": "faithful",
"is_portrait": false,
"portrait_beautifier": "beautify_face",
"portrait_style": "standard",
"prompt": "<string>",
"structure_strength": 50,
"style_strength": 100,
"webhook_url": "https://www.example.com/webhook"
}
'{
"generated": [
"<string>"
],
"status": "CREATED",
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}Style transfer an image using AI.
curl --request POST \
--url https://api.comfy.org/proxy/freepik/v1/ai/image-style-transfer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"image": "<string>",
"reference_image": "<string>",
"engine": "balanced",
"fixed_generation": false,
"flavor": "faithful",
"is_portrait": false,
"portrait_beautifier": "beautify_face",
"portrait_style": "standard",
"prompt": "<string>",
"structure_strength": 50,
"style_strength": 100,
"webhook_url": "https://www.example.com/webhook"
}
'{
"generated": [
"<string>"
],
"status": "CREATED",
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Base64 or URL of the image to do the style transfer
Base64 or URL of the reference image for style transfer
Engine preset for style transfer
balanced, definio, illusio, 3d_cartoon, colorful_anime, caricature, real, super_real, softy When enabled, using the same settings will consistently produce the same image.
Flavor of the transferring style
faithful, gen_z, psychedelia, detaily, clear, donotstyle, donotstyle_sharp Indicates whether the image should be processed as a portrait.
Facial beautification on portrait images. Only used if is_portrait is true.
beautify_face, beautify_face_max Visual style applied to portrait images. Only used if is_portrait is true.
standard, pop, super_pop Prompt for the AI model
Allows to maintain the structure of the original image
0 <= x <= 100Percentage of style strength
0 <= x <= 100Optional callback URL for async notifications.
"https://www.example.com/webhook"
Was this page helpful?