Skip to main content
POST
Style transfer an image

Autorizaciones

Authorization
string
header
requerido

Bearer token authentication. Normally a Firebase or Cloud JWT. A 'comfyui-' prefixed API key is also accepted in this header: the prefix classifies the value as an API key and it is validated exactly as if it had been sent in X-API-Key. Accepted on the operations served by the comfyFirebase auth middleware (BE-9720, parity with ingest).

Cuerpo

application/json
image
string
requerido

Base64 or URL of the image to do the style transfer

reference_image
string
requerido

Base64 or URL of the reference image for style transfer

engine
enum<string>
predeterminado:balanced

Engine preset for style transfer

Opciones disponibles:
balanced,
definio,
illusio,
3d_cartoon,
colorful_anime,
caricature,
real,
super_real,
softy
fixed_generation
boolean
predeterminado:false

When enabled, using the same settings will consistently produce the same image.

flavor
enum<string>
predeterminado:faithful

Flavor of the transferring style

Opciones disponibles:
faithful,
gen_z,
psychedelia,
detaily,
clear,
donotstyle,
donotstyle_sharp
is_portrait
boolean
predeterminado:false

Indicates whether the image should be processed as a portrait.

portrait_beautifier
enum<string>

Facial beautification on portrait images. Only used if is_portrait is true.

Opciones disponibles:
beautify_face,
beautify_face_max
portrait_style
enum<string>
predeterminado:standard

Visual style applied to portrait images. Only used if is_portrait is true.

Opciones disponibles:
standard,
pop,
super_pop
prompt
string

Prompt for the AI model

structure_strength
integer
predeterminado:50

Allows to maintain the structure of the original image

Rango requerido: 0 <= x <= 100
style_strength
integer
predeterminado:100

Percentage of style strength

Rango requerido: 0 <= x <= 100
webhook_url
string<uri>

Optional callback URL for async notifications.

Ejemplo:

"https://www.example.com/webhook"

Respuesta

OK - The style transfer process has started

generated
string<uri>[]

URLs to the generated images.

status
enum<string>
Opciones disponibles:
CREATED,
IN_PROGRESS,
COMPLETED,
FAILED
task_id
string<uuid>
Ejemplo:

"046b6c7f-0b8a-43b9-b35d-6489e6daee91"