v1

latestOpenAPI 3.0.22026-07-2610288167.4 KB
Freepik
Proxy

Style transfer an image

Style transfer an image using AI.

post/proxy/freepik/v1/ai/image-style-transfer

Request body

engine'balanced' | 'definio' | 'illusio' | '3d_cartoon' | 'colorful_anime' | 'caricature' | 'real' | 'super_real' | 'softy'

Engine preset for style transfer

fixed_generationboolean

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

imagestring required

Base64 or URL of the image to do the style transfer

is_portraitboolean

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.

promptstring

Prompt for the AI model

reference_imagestring required

Base64 or URL of the reference image for style transfer

structure_strengthinteger

Allows to maintain the structure of the original image

style_strengthinteger

Percentage of style strength

webhook_urlstring uri

Optional callback URL for async notifications.

Example request

{
  "webhook_url": "https://www.example.com/webhook"
}

Response

OK - The style transfer process has started

generatedstring[]

URLs to the generated images.

status'CREATED' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED'
task_idstring uuid

Example response

{
  "task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}