🎉 New Year Sale: Get 20% OFF on all plans — Use code NEWYEAR2026.

Upgrade now

更适合东方宝宝的canny

实验型模型

flux引导:20

模型用途声明

1. 你不得将此模型及其衍生版本(如融合模型版本)托管于计划赚取收入或捐赠的网站/应用程序。如果您需要将此模型及其衍生版本用于商业目的(如生成式服务、售卖图片、将图片用于公开发表到短视频平台的文章或出版物等等),请通过站内联系本人

2. 您不得直接售卖由此模型生成的图片,除非您对该图片进行了足够程度的人工修改,使其在法律意义上可以被完全判定为您的个人作品。如果您违反本条,所造成的一切法律后果由您个人承担,请恕本人概不负责。

3. 您不能使用该模型故意制作或共享非法或有害的内容传播和输出,请您遵守公序良德,将此模型用于积极正面的用途。

4. 为了避免不必要的误会,请勿将本模型上传到其他任何模型网站,请勿使用本模型产出的图片训练新模型,并禁止一切形式的融合模型,谢谢!

API PlaygroundAPI Documentation

API Endpoint URL

Base URL for all API requests to this endpoint.

https://modelslab.com/api/v5/controlnet

API Authentication

Authentication requires a valid API key included in the request. Generate and manage your API keys from your developer dashboard. Include the key in the key parameter for all API requests.

Integration Examples

Production-ready code samples for API integration

{
"init_image": "https://assets.modelslab.com/generations/a8572240-3040-4fd8-b9f4-aeaaf4fe287d",
"prompt": "a girl, wearing red bikini, looking at camera, ocean in background",
"controlnet_model": "canny",
"controlnet_type": "canny",
"model_id": "",
"controlnet_conditioning_scale": "0.5",
"auto_hint": true,
"negative_prompt": "(worst quality:2), (low quality:2), (normal quality:2), (jpeg artifacts), (blurry), (duplicate), (morbid), (mutilated), (out of frame), (extra limbs), (bad anatomy), (disfigured), (deformed), (cross-eye), (glitch), (oversaturated), (overexposed), (underexposed), (bad proportions), (bad hands), (bad feet), (cloned face), (long neck), (missing arms), (missing legs), (extra fingers), (fused fingers), (poorly drawn hands), (poorly drawn face), (mutation), (deformed eyes), watermark, text, logo, signature, grainy, tiling, censored, nsfw, ugly, blurry eyes, noisy image, bad lighting, unnatural skin, asymmetry",
"samples": "1",
"guidance_scale": "7.5",
"num_inference_steps": "31",
"base64": "no",
"key": "YOUR_API_KEY"
}

SDKs

Official SDKs

Production-ready SDKs and client libraries for all major programming languages

API Parameters

Technical specifications for API request parameters.

Field NameParameterTechnical Description
init_imageinit_imageImage to upscale/enhance
promptpromptText description of the image you want to generate
controlnet_modelcontrolnet_modelcontrolnet model and conttrolnet type must be same
controlnet_typecontrolnet_typecontrolnet model and conttrolnet type must be same
model_idmodel_idSome controlNet models are not supported by FLUX
image strengthcontrolnet_conditioning_scale0.1 (Creative) takes min refrance from init image and 1.0 takes max refrance from init image
auto_hintauto_hintAutomatically process control input
negative_promptnegative_promptThings you do not want in the generated image
samplessamplesNumber of images to generate (1-4)
guidance_scaleguidance_scaleHow closely to follow the prompt (1-10)
Stepsnum_inference_stepsNumber of inference steps
base64base64Get response as a base64 string. Pass init_image, mask_image, and control_image as base64 strings to get base64 response