Workspace API Example
TextToImage
{
"requestId": "809208788201671958",
"stages": [
{
"type": "INPUT_INITIALIZE",
"inputInitialize": {
"seed": "-1",
"count": 1
}
},
{
"type": "DIFFUSION",
"diffusion": {
"width": 768,
"height": 1280,
"prompts": [
{
"text": "Close-up shot of a sleek black white cat standing tall in front of a vibrant cityscape at dusk. The feline's paws firmly grasp a weathered neon led board with stark neon lettering reading 'LTX-Video-2b', its confident posture and piercing gaze dominating the frame. Soft, warm neon lighting casts a gentle glow on the scene, illuminating the worn desk and retro-style sign in a nostalgic backdrop."
}
],
"negativePrompts": [
{}
],
"sdModel": "757279507095956705",
"sdVae": "ae.sft",
"sampler": "euler",
"steps": 25,
"cfgScale": 7,
"clipSkip": 2,
"controlnet": {
"args": [
{
"inputImageResourceId": "50d9233f-147f-40f6-bf97-87437f5339bc",
"preprocessor": "none",
"model": "flux/FLUX.1-dev-Controlnet-Union.safetensors",
"weight": 0.6,
"guidanceEnd": 1,
"preprocessorParams": {}
}
]
},
"lora": {
"items": [
{
"loraModel": "765095222041517796",
"weight": 0.8
}
]
},
"embedding": {},
"scheduleName": "beta",
"guidance": 3.5
}
}
]
}
ImageToImage
{
"requestId": "809224606566247165",
"stages": [
{
"type": "INPUT_INITIALIZE",
"inputInitialize": {
"seed": "-1",
"imageResourceId": "9519ae80-8f42-4129-a6aa-5fa7d2b25596",
"count": 1
}
},
{
"type": "DIFFUSION",
"diffusion": {
"width": 768,
"height": 512,
"prompts": [
{
"text": "girl,walking,fire"
}
],
"negativePrompts": [
{}
],
"sdModel": "757279507095956705",
"sdVae": "ae.sft",
"sampler": "euler_ancestral",
"steps": 20,
"cfgScale": 7,
"clipSkip": 2,
"denoisingStrength": 0.5,
"etaNoiseSeedDelta": 31337,
"controlnet": {
"args": [
{
"inputImageResourceId": "50d9233f-147f-40f6-bf97-87437f5339bc",
"preprocessor": "none",
"model": "flux/FLUX.1-dev-Controlnet-Union.safetensors",
"weight": 0.6,
"guidanceEnd": 1,
"preprocessorParams": {}
}
]
},
"lora": {
"items": [
{
"loraModel": "805425527591794871",
"weight": 0.8
}
]
},
"embedding": {},
"scheduleName": "beta",
"guidance": 3.5
}
}
]
}
Upscale
{
"requestId": "809227192136564289",
"stages": [
{
"type": "INPUT_INITIALIZE",
"inputInitialize": {
"seed": "-1",
"count": 1
}
},
{
"type": "DIFFUSION",
"diffusion": {
"width": 768,
"height": 1280,
"prompts": [
{
"text": "1girls, walking, chibi"
}
],
"negativePrompts": [
{
"text": "long neck,username,logo,text,blurry,low quality,bad anatomy,lowres,monochrome,grayscale,worstquality,signature,watermark,bad proportions,bad body,long body,fat,deformed,mutated,missing limb,mutation,malformed limbs,ugly,floating limbs,disconnected limbs,disfigured,poorly drawn face,extra limb,skin blemishes,extra arms,skin spots,poorly drawn hands,bad feet,mutated hands,extra legs,too many fingers,fused fingers,missing fingers,bad hands,mutated hands and fingers,malformed hands,cross-eyed,color disorders,color error,blurry,blurry background,(uncensored:1.2),(nsfw:1.2),wall,bare legs,leaf,forest,building,architecture,desert,fog,window fog,skirt bottom,panties,ass,sun,"
}
],
"sdModel": "765884967742970474",
"sdVae": "sdxl_vae.safetensors",
"sampler": "euler",
"steps": 25,
"cfgScale": 7,
"clipSkip": 2,
"denoisingStrength": 0.5,
"controlnet": {
"args": [
{
"inputImageResourceId": "50d9233f-147f-40f6-bf97-87437f5339bc",
"preprocessor": "none",
"model": "xinsir/controlnet-openpose-sdxl-1.0.safetensors",
"weight": 1,
"guidanceEnd": 1,
"preprocessorParams": {}
}
]
},
"lora": {
"items": [
{
"loraModel": "797848479432006914",
"weight": 0.8
}
]
},
"embedding": {},
"scheduleName": "simple",
"guidance": 3.5
}
},
{
"type": "IMAGE_TO_UPSCALER",
"imageToUpscaler": {
"hrUpscaler": "R-ESRGAN 4x+",
"hrResizeX": 1080,
"hrResizeY": 1920,
"hrSecondPassSteps": 20,
"denoisingStrength": 0.5
}
}
]
}
Adetailer
{
"requestId" : "809229666037730862",
"stages" : [ {
"type" : "INPUT_INITIALIZE",
"inputInitialize" : {
"seed" : "-1",
"count" : 1
}
}, {
"type" : "DIFFUSION",
"diffusion" : {
"width" : 768,
"height" : 1280,
"prompts" : [ {
"text" : "1girls, walking, chibi"
} ],
"negativePrompts" : [ {
"text" : "long neck,username,logo,text,blurry,low quality,bad anatomy,lowres,monochrome,grayscale,worstquality,signature,watermark,bad proportions,bad body,long body,fat,deformed,mutated,missing limb,mutation,malformed limbs,ugly,floating limbs,disconnected limbs,disfigured,poorly drawn face,extra limb,skin blemishes,extra arms,skin spots,poorly drawn hands,bad feet,mutated hands,extra legs,too many fingers,fused fingers,missing fingers,bad hands,mutated hands and fingers,malformed hands,cross-eyed,color disorders,color error,blurry,blurry background,(uncensored:1.2),(nsfw:1.2),wall,bare legs,leaf,forest,building,architecture,desert,fog,window fog,skirt bottom,panties,ass,sun,"
} ],
"sdModel" : "765884967742970474",
"sdVae" : "sdxl_vae.safetensors",
"sampler" : "euler",
"steps" : 25,
"cfgScale" : 7,
"clipSkip" : 2,
"controlnet" : {
"args" : [ {
"inputImageResourceId" : "50d9233f-147f-40f6-bf97-87437f5339bc",
"preprocessor" : "none",
"model" : "xinsir/controlnet-openpose-sdxl-1.0.safetensors",
"weight" : 1,
"guidanceEnd" : 1,
"preprocessorParams" : { }
} ]
},
"lora" : {
"items" : [ {
"loraModel" : "797848479432006914",
"weight" : 0.8
} ]
},
"embedding" : { },
"scheduleName" : "simple",
"guidance" : 3.5
}
}, {
"type" : "IMAGE_TO_ADETAILER",
"imageToAdetailer" : {
"args" : [ {
"adModel" : "face_yolov8s.pt",
"adPrompt" : [ {
"text" : "mask"
} ],
"adNegativePrompt" : [ { } ],
"adConfidence" : 0.5,
"adDilateErode" : 4,
"adMaskMergeInvert" : "None",
"adDenoisingStrength" : 0.25,
"adInpaintOnlyMasked" : true,
"adInpaintOnlyMaskedPadding" : 32,
"adUseInpaintWidthHeight" : false,
"adInpaintWidth" : 512,
"adInpaintHeight" : 512,
"adUseSteps" : false,
"adSteps" : 25,
"adUseCfgScale" : false,
"adCfgScale" : 7,
"lora" : {
"items" : [ {
"loraModel" : "746396600882150969",
"weight" : 0.8,
"loraAccessKey" : "e5af8426-8c81-fac9-87f1-b28cede39c42"
} ]
},
"adUseCheckpoint" : false,
"adCheckpoint" : "",
"adUseSampler" : false,
"adUseNoiseMultiplier" : false,
"adNoiseMultiplier" : 0,
"adUseClipSkip" : false,
"adClipSkip" : 0,
"adSampler" : ""
} ]
}
} ]
}
Inpaint
{
"requestId" : "809232487831247999",
"stages" : [ {
"type" : "INPUT_INITIALIZE",
"inputInitialize" : {
"seed" : "-1",
"imageResourceId" : "1217c95f-9bff-47c5-9ba4-dbd47c96df3f",
"count" : 1
}
}, {
"type" : "IMAGE_TO_INPAINT",
"imageToInpaint" : {
"resizeMode" : "JUST_RESIZE",
"maskImageResourceId" : "2febc644-932f-49eb-a67b-c35ef43e2aff",
"maskBlur" : 4,
"inpaintingFill" : "ORIGINAL",
"inpaintFullRes" : true,
"inpaintFullResPadding" : 32,
"diffusion" : {
"width" : 880,
"height" : 1120,
"prompts" : [ {
"text" : "1girls, walking"
} ],
"negativePrompts" : [ {
"text" : "EasyNegative"
} ],
"sdModel" : "712166372957973938",
"sdVae" : "sdxl_vae.safetensors",
"sampler" : "euler_ancestral",
"steps" : 20,
"cfgScale" : 7,
"clipSkip" : 2,
"denoisingStrength" : 0.75,
"etaNoiseSeedDelta" : 31337,
"lora" : { },
"embedding" : { },
"scheduleName" : "normal",
"guidance" : 3.5
}
}
} ]
}
Controlnet
UseControlImage
{
"args": [
{
"inputImageResourceId": "50d9233f-147f-40f6-bf97-87437f5339bc",
"preprocessor": "none",
"model": "xinsir/controlnet-openpose-sdxl-1.0.safetensors",
"weight": 1,
"guidanceEnd": 1,
"preprocessorParams": {}
}
]
}
UsePreprocessor
{
"args": [
{
"inputImageResourceId": "1f9ac945-5961-40f6-a593-82ab92c77e5f",
"preprocessor": "canny",
"model": "xinsir/controlnet-canny-sdxl-1.0-V2.safetensors",
"weight": 1,
"guidanceEnd": 1,
"preprocessorParams": {}
}
]
}