---
title: "Style transfer an image"
method: POST
path: "/proxy/freepik/v1/ai/image-style-transfer"
tags: ["Freepik", "Proxy"]
---

# Style transfer an image

`POST /proxy/freepik/v1/ai/image-style-transfer`

Style transfer an image using AI.

## Request body

- FreepikMagnificStyleTransferRequest
  - `engine` 'balanced' | 'definio' | 'illusio' | '3d_cartoon' | 'colorful_anime' | 'caricature' | 'real' | 'super_real' | 'softy' — Engine preset for style transfer
  - `fixed_generation` boolean — When enabled, using the same settings will consistently produce the same image.
  - `flavor` 'faithful' | 'gen_z' | 'psychedelia' | 'detaily' | 'clear' | 'donotstyle' | 'donotstyle_sharp' — Flavor of the transferring style
  - `image` string, required — Base64 or URL of the image to do the style transfer
  - `is_portrait` boolean — Indicates whether the image should be processed as a portrait.
  - `portrait_beautifier` 'beautify_face' | 'beautify_face_max' — Facial beautification on portrait images. Only used if is_portrait is true.
  - `portrait_style` 'standard' | 'pop' | 'super_pop' — Visual style applied to portrait images. Only used if is_portrait is true.
  - `prompt` string — Prompt for the AI model
  - `reference_image` string, required — Base64 or URL of the reference image for style transfer
  - `structure_strength` integer — Allows to maintain the structure of the original image
  - `style_strength` integer — Percentage of style strength
  - `webhook_url` string, uri — Optional callback URL for async notifications.

## Response `200`

OK - The style transfer process has started

- FreepikTaskData
  - `generated` string[] — URLs to the generated images.
  - `status` 'CREATED' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED'
  - `task_id` string, uuid

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.dev/ac/apis/comfy-api.md) · [All operations](https://skmtc.dev/ac/apis/comfy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ac/comfy-api/revisions/c1893dffe250/schema)
