Перейти к основному содержанию
POST
Style transfer an image

Авторизации

Authorization
string
header
обязательно

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).

Тело

application/json
image
string
обязательно

Base64 or URL of the image to do the style transfer

reference_image
string
обязательно

Base64 or URL of the reference image for style transfer

engine
enum<string>
по умолчанию:balanced

Engine preset for style transfer

Доступные опции:
balanced,
definio,
illusio,
3d_cartoon,
colorful_anime,
caricature,
real,
super_real,
softy
fixed_generation
boolean
по умолчанию:false

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

flavor
enum<string>
по умолчанию:faithful

Flavor of the transferring style

Доступные опции:
faithful,
gen_z,
psychedelia,
detaily,
clear,
donotstyle,
donotstyle_sharp
is_portrait
boolean
по умолчанию: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.

Доступные опции:
beautify_face,
beautify_face_max
portrait_style
enum<string>
по умолчанию:standard

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

Доступные опции:
standard,
pop,
super_pop
prompt
string

Prompt for the AI model

structure_strength
integer
по умолчанию:50

Allows to maintain the structure of the original image

Требуемый диапазон: 0 <= x <= 100
style_strength
integer
по умолчанию:100

Percentage of style strength

Требуемый диапазон: 0 <= x <= 100
webhook_url
string<uri>

Optional callback URL for async notifications.

Пример:

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

Ответ

OK - The style transfer process has started

generated
string<uri>[]

URLs to the generated images.

status
enum<string>
Доступные опции:
CREATED,
IN_PROGRESS,
COMPLETED,
FAILED
task_id
string<uuid>
Пример:

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