Ming Image 0.1
Generate images with Ming Image 0.1, and compare every CFG, steps, sampler and scheduler on one prompt.
Скачать рабочий процессПопробовать в Cloud Документация API
Loading the grid…
Explore more grids
Your output will appear here.
Внутри рабочего процесса
Предварительный просмотр исходного шаблона только для чтения. Откройте его в Cloud, чтобы изучить ноды и внести изменения.
Loading the graph
Open full-size workflow preview- Comfy Cloud
- Да
- Выход
- Изображение
- Автор
- Автор недоступен
Вызовите эту модель из своего кода
Приведённый ниже запрос использует тот же подготовленный граф и настройки, что и Playground. Каждая отправка может запустить платный запуск; не повторяйте автоматически отправку, результат которой неизвестен.
1 Получить API-ключ ↗
What you need
- Runs on
- Comfy Cloud
- Ключ
- COMFY_API_KEY
Требуются платный тариф Cloud и кредиты.
Скачать API JSONДокументация API ↗
# Python 3.10+: pip install comfy-sdk==0.4.0
import os
from comfy_sdk import Comfy
api_key = os.environ.get("COMFY_API_KEY", "").strip()
if not api_key: raise RuntimeError("Set COMFY_API_KEY")
os.environ.setdefault("COMFY_BASE_URL", "https://cloud.comfy.org")
client = Comfy(api_key=api_key)
workflow = client.workflows.from_json({
"75": {
"class_type": "ResolutionSelector",
"inputs": {
"aspect_ratio": "16:9 (Widescreen)",
"megapixels": 1,
"multiple": 8,
"preview": ""
},
"_meta": {
"title": "Resolution Selector"
}
},
"90": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 1
},
"_meta": {
"title": "CFG (sweep)"
}
},
"91": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 12
},
"_meta": {
"title": "Steps (sweep)"
}
},
"92": {
"class_type": "KSamplerSelect",
"inputs": {
"sampler_name": "euler"
},
"_meta": {
"title": "Sampler (sweep)"
}
},
"93": {
"class_type": "CFGGuider",
"inputs": {
"cfg": [
"90",
0
],
"model": [
"606",
0
],
"negative": [
"95",
0
],
"positive": [
"604",
0
]
},
"_meta": {
"title": "CFG Guider (added; template uses Basic Guider)"
}
},
"95": {
"class_type": "ConditioningZeroOut",
"inputs": {
"conditioning": [
"604",
0
]
},
"_meta": {
"title": "Empty negative (added for CFG sweep)"
}
},
"100": {
"class_type": "BasicScheduler",
"inputs": {
"denoise": 1,
"model": [
"606",
0
],
"scheduler": "simple",
"steps": [
"91",
0
]
},
"_meta": {
"title": "Scheduler simple"
}
},
"200": {
"class_type": "SamplerCustomAdvanced",
"inputs": {
"guider": [
"93",
0
],
"latent_image": [
"605",
0
],
"noise": [
"603",
0
],
"sampler": [
"92",
0
],
"sigmas": [
"100",
0
]
},
"_meta": {
"title": "Sample simple"
}
},
"400": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"200",
0
],
"vae": [
"601",
0
]
},
"_meta": {
"title": "Decode simple"
}
},
"599": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ming_strip",
"images": [
"400",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"600": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "ming_image_0.1_design_int8_convrot.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"601": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "ming_image_vae_bf16.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"602": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "ming_image_0.1_ling_mini_2.0_int8_convrot.safetensors",
"device": "default",
"type": "qwen_image"
},
"_meta": {
"title": "Load CLIP"
}
},
"603": {
"class_type": "RandomNoise",
"inputs": {
"noise_seed": 42
},
"_meta": {
"title": "RandomNoise"
}
},
"604": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"602",
0
],
"text": [
"611",
0
]
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"605": {
"class_type": "EmptyLatentImage",
"inputs": {
"batch_size": 1,
"height": [
"608",
0
],
"width": [
"607",
0
]
},
"_meta": {
"title": "Empty Latent Image"
}
},
"606": {
"class_type": "ModelSamplingFlux",
"inputs": {
"base_shift": 0.5,
"height": [
"608",
0
],
"max_shift": 1.15,
"model": [
"609",
0
],
"width": [
"607",
0
]
},
"_meta": {
"title": "ModelSamplingFlux"
}
},
"607": {
"class_type": "PrimitiveInt",
"inputs": {
"value": [
"75",
0
]
},
"_meta": {
"title": "width"
}
},
"608": {
"class_type": "PrimitiveInt",
"inputs": {
"value": [
"75",
1
]
},
"_meta": {
"title": "height"
}
},
"609": {
"class_type": "ModelAttentionBackend",
"inputs": {
"attention": "comfy kitchen attention",
"model": [
"600",
0
]
},
"_meta": {
"title": "Model Attention Backend"
}
},
"610": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "Epic wide landscape photograph of a vast African savanna in the dry season at golden hour: endless golden grass plains dotted with flat-topped acacia trees, a massive snow-capped volcano rising above the haze on the horizon, dust glowing in warm low sunlight, a scattered herd of elephants tiny in the distance for scale, immense scale, ultra-detailed, large format landscape photography, no text."
},
"_meta": {
"title": "Text (User Input)"
}
},
"611": {
"class_type": "PreviewAny",
"inputs": {
"source": [
"610",
0
]
},
"_meta": {
"title": "Preview as Text"
}
}
})
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)
for output in job.get_outputs("599"):
output.to_file(output.name)