Ming Image 0.2 تصميم: نص إلى صورة
أنشئ تركيبات تصميمية غنية بالنصوص من أوامر نصية باستخدام Ming Image 0.2 Design، وهو نموذج بحجم 6B مُحسَّن لواجهات المستخدم والإنفوجرافيك والملصقات. لا...
حول
Generate text-heavy design compositions from text prompts using Ming Image 0.2 Design, a 6B model tuned for UI screens, infographics, and posters. It takes no file inputs and produces one image, supporting transparent backgrounds for easy layering. Ideal for interface mockups, marketing posters, and data-rich infographic drafts.
Graph: 4d166aa4-f08c-43b7-b889-2b43e3b4c535, MarkdownNote, ResolutionSelector, SaveImageAdvanced. Output: image (image_ming_image_01_design_t2i.png).
ما تقدّمه
- جارٍ قراءة سير العمل
يعمل في ComfyUI. لا يمكن تشغيل سير العمل هذا على هذه الصفحة. نزّله وافتحه في ComfyUI.
تنزيل سير العمللا توجد مخرجات نموذجية لسير العمل هذا بعد.
داخل سير العمل
معاينة للقراءة فقط لرسم العقد البياني. افتحه في Comfy Cloud أو نزّله لتعديل العقد.
Loading the graph
Open full-size workflow previewالملفات في سير العمل هذا
- المخرج
- صورة
- المؤلف
- المؤلف غير متاح
يتطلب عُقدًا مخصصة
- جارٍ قراءة سير العمل
استخدم سير العمل هذا من خلال التعليمات البرمجية
يتم إنشاؤه من مخطط سير العمل والمدخلات عندما يكون ذلك ممكنًا؛ وإلا فتُعرض الأمثلة المخزنة. راجع بيانات الاعتماد ونقاط النهاية قبل تشغيل التعليمات البرمجية، إذ قد تترتب عليها رسوم.
What you need
- Runs on
- Comfy Cloud
- المفتاح
- COMFY_API_KEY
يتطلب خطة Cloud مدفوعة ورصيدًا.
# 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": "1:1 (Square)",
"megapixels": 1,
"multiple": 8
},
"_meta": {
"title": "Resolution Selector"
}
},
"84": {
"class_type": "SaveImageAdvanced",
"inputs": {
"filename_prefix": "ComfyUI",
"format": "png",
"format.bit_depth": "8-bit",
"format.input_color_space": "sRGB",
"images": [
"80:15",
0
]
},
"_meta": {
"title": "Save Image (Advanced)"
}
},
"80:1": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "ming_image_0.2_design_int8_convrot.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"80:14": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "ming_image_vae_bf16.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"80:15": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"80:3",
0
],
"vae": [
"80:14",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"80:18": {
"class_type": "KSamplerSelect",
"inputs": {
"sampler_name": "euler"
},
"_meta": {
"title": "KSamplerSelect"
}
},
"80:21": {
"class_type": "BasicScheduler",
"inputs": {
"denoise": 1,
"model": [
"80:42",
0
],
"scheduler": "simple",
"steps": 12
},
"_meta": {
"title": "BasicScheduler"
}
},
"80:23": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "ming_image_0.2_ling_mini_2.0_int8_convrot.safetensors",
"device": "default",
"type": "qwen_image"
},
"_meta": {
"title": "Load CLIP"
}
},
"80:26": {
"class_type": "RandomNoise",
"inputs": {
"noise_seed": 43
},
"_meta": {
"title": "RandomNoise"
}
},
"80:3": {
"class_type": "SamplerCustomAdvanced",
"inputs": {
"guider": [
"80:73",
0
],
"latent_image": [
"80:41",
0
],
"noise": [
"80:26",
0
],
"sampler": [
"80:18",
0
],
"sigmas": [
"80:21",
0
]
},
"_meta": {
"title": "SamplerCustomAdvanced"
}
},
"80:40": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"80:23",
0
],
"text": [
"80:79",
0
]
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"80:41": {
"class_type": "EmptyLatentImage",
"inputs": {
"batch_size": 1,
"height": [
"80:60",
0
],
"width": [
"80:59",
0
]
},
"_meta": {
"title": "Empty Latent Image"
}
},
"80:42": {
"class_type": "ModelSamplingFlux",
"inputs": {
"base_shift": 0.5,
"height": [
"80:60",
0
],
"max_shift": 1.15,
"model": [
"80:68",
0
],
"width": [
"80:59",
0
]
},
"_meta": {
"title": "ModelSamplingFlux"
}
},
"80:45": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "You are a senior visual designer and image-prompt engineer. Expand the user's request into one precise, high-resolution Figma-style caption. Return only one JSON object.\n\nUse exactly two top-level keys. `canvas_settings` contains exactly `aspect_ratio`, `ambient_lighting`, and `image_style`. `layers` lists visible groups from background to topmost overlay. Every layer contains exactly `description`, `coordinates`, `hierarchy_and_relation`, and `color_specs`; `color_specs` is an array of hex colors.\n\n`coordinates` MUST be one string, never an object or array, in exactly this form: `\"cx: 0.500, cy: 0.500, w: 1.000, h: 1.000\"`. Values are normalized; each bbox encloses its complete owned object and stays inside the canvas.\n\nA layer is one selectable visible semantic group: background, full person, coherent object, panel, card, row, or text block. Prefer the fewest groups that preserve the layout. Keep people and objects intact. Never create invisible parents, guides, placeholders, empty layers, duplicate summaries, or multiple owners for one element.\n\nPreserve every user-supplied rendered string character-for-character and as one contiguous string. Unless multiple visible copies are requested, it must occur exactly once across all `description` fields and zero times in `hierarchy_and_relation`. Quote it only where describing its visible rendering; refer to the related subject elsewhere with unquoted semantic wording. Enumerate intended copy, invent extra copy sparingly, and never hide content behind \"other text\", \"remaining labels\", or \"etc.\"\n\nDescribe concrete composition, typography, materials, texture, lighting, pose, and camera treatment without literary filler. Use `hierarchy_and_relation` only for ownership, alignment, containment, stacking, and occlusion.\n\nInfer structured layouts first. Use one complete layer per card and state its row and column. A compact secondary table may be one layer only if every header and cell is listed; otherwise use a visible shared frame when present, one complete header, and one complete layer per body row, binding values to columns and stating blanks. Enumerate sequences, schedules, spans, gaps, and vacant tracks in visual order. Do not mistake ordinary alignment for a table.\n\nSilently verify schema, string coordinates, Z-order, exact-text counts, geometry, bbox validity, and completeness."
},
"_meta": {
"title": "Text (System Prompt)"
}
},
"80:46": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "qwen3.8_27b_w4a8.safetensors",
"device": "default",
"type": "stable_diffusion"
},
"_meta": {
"title": "Load CLIP"
}
},
"80:59": {
"class_type": "PrimitiveInt",
"inputs": {
"value": [
"75",
0
]
},
"_meta": {
"title": "width"
}
},
"80:60": {
"class_type": "PrimitiveInt",
"inputs": {
"value": [
"75",
1
]
},
"_meta": {
"title": "height"
}
},
"80:68": {
"class_type": "ModelAttentionBackend",
"inputs": {
"attention": "comfy kitchen attention",
"model": [
"80:1",
0
]
},
"_meta": {
"title": "Model Attention Backend"
}
},
"80:73": {
"class_type": "BasicGuider",
"inputs": {
"conditioning": [
"80:40",
0
],
"model": [
"80:42",
0
]
},
"_meta": {
"title": "Basic Guider"
}
},
"80:76": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"80:77",
0
],
"on_true": [
"80:85",
0
],
"switch": True
},
"_meta": {
"title": "If/Else Switch"
}
},
"80:77": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "A retro 1950s mid-century e-commerce homepage design, full-page web layout, square canvas, vintage printed-paper aesthetic: aged cream background with fine halftone grain, slightly yellowed edges, thin dark-green hairline rules separating the sections, muted palette of deep pine green, teal, coral red-orange, warm red and off-white.\n\nTop: a full-width muted teal announcement bar with centered small uppercase serif text \"★ FREE SHIPPING ON ORDERS OVER $75 ★\", with a tiny star at each end. Below it the header, laid out on one row: on the left a horizontal menu in small dark-green uppercase condensed type reading \"NEW ARRIVALS WOMEN MEN ACCESSORIES SALE ABOUT\"; centered, the brand block with the tiny line \"EST. ★ 2010\" above a large warm-red hand-painted script wordmark \"Timeless\" with a thin off-white outline, then \"VINTAGE\" in bold dark-green serif capitals beneath it and a small \"CLOTHING CO.\" line with flanking rules; on the right three small dark-green line icons with tiny uppercase labels \"SEARCH\", \"ACCOUNT\", \"CART\", the cart icon in coral red. A horizontal hairline rule runs under the header.\n\nHero: a large rounded rectangle panel in pale mint with a thin dark-green border, containing on the left the small uppercase line \"★ AUTHENTIC STYLES. TIMELESS YOU.\", then the word \"Vintage\" in enormous warm-red hand-painted script with a soft off-white outline and a subtle extruded shadow, then \"NEVER FADES\" in heavy dark-green serif capitals, then two lines of centered grey-green body copy \"Handpicked vintage clothing from every era. Unique pieces with a story to tell.\", then a coral ribbon-shaped button with a notched tail and small star at each end containing the uppercase text \"SHOP NEW ARRIVALS →\". On the right side of the panel: a 1950s woman in a pale yellow cardigan, plaid full skirt, sunglasses and a polka-dot headscarf standing beside a pink 1950s sedan, plus a leaning vintage roadside sign painted in red and dark green with the text \"Timeless\" in script and \"VINTAGE CLOTHING CO.\" in capitals, and a small teal starburst badge to the right reading \"SUSTAINABLE FASHION TIMELESS STYLE\" in tiny stacked uppercase type.\n\nMiddle: a centered section heading \"★ SHOP BY CATEGORY ★\" in bold dark-green uppercase with small coral stars. Beneath it a single row of five circular product medallions, each a vintage photograph inside a cream ring with a thin dark-green outline: a smiling woman in a pink dress, a man in a brown suit, a brown leather handbag, a pair of dark loafers, and a blue denim jacket. Under each medallion sits a coral ribbon banner with a notched tail holding the uppercase label \"★ DRESSES ★\", \"★ MEN ★\", \"★ ACCESSORIES ★\", \"★ SHOES ★\", \"★ OUTERWEAR ★\", each with a small green star below the ribbon.\n\nLower band: a wide pale mint panel with a thin border. Inside on the left, a woman in a green blouse playing a vinyl record on a cream and brown suitcase-style record player. On the right, a warm photograph of a small vintage storefront with a striped awning and signs reading \"Timeless\" and \"VINTAGE FINDS\". Centered between them: \"More Than Clothes,\" in dark-green hand-written script, then \"★ IT'S A LIFESTYLE ★\" in bold dark-green uppercase, then three lines of grey-green body copy \"We believe in quality, individuality, and the charm of the past. Every piece is curated with care and meant to be loved for years to come.\", then a coral ribbon button reading \"READ OUR STORY →\".\n\nFooter: a darker teal band across the bottom with a small envelope icon and the heading \"JOIN OUR MAILING LIST\" beside the line \"Get updates on new arrivals and special offers!\", three small circular social icons in the middle (facebook, instagram, pinterest) under a thin vertical hairline, a heading \"CUSTOMER CARE\" with the items \"Shipping\", \"Returns\", \"FAQ\", \"Contact Us\", and on the right \"© 2024 TIMELESS VINTAGE\" with \"All rights reserved.\" beneath it.\n\nStyle notes: authentic mid-century print advertising look, 1950s American graphic design, hand-painted script paired with condensed serif capitals, halftone photo collages cut out on flat color fields, restrained ornament from stars and thin rules, crisp legible small text, no gradients, no neon, no modern flat-UI look, no watermark, no checkerboard."
},
"_meta": {
"title": "Text (User Input)"
}
},
"80:79": {
"class_type": "PreviewAny",
"inputs": {
"source": [
"80:76",
0
]
},
"_meta": {
"title": "Preview as Text"
}
},
"80:85": {
"class_type": "TextGenerateV2",
"inputs": {
"clip": [
"80:46",
0
],
"max_length": 4096,
"mtp": "auto",
"prompt": [
"80:77",
0
],
"sampling_mode": "on",
"sampling_mode.min_p": 0.05,
"sampling_mode.presence_penalty": 0,
"sampling_mode.repetition_penalty": 1.05,
"sampling_mode.seed": 0,
"sampling_mode.temperature": 0.7,
"sampling_mode.top_k": 64,
"sampling_mode.top_p": 0.95,
"system_prompt": [
"80:45",
0
],
"thinking": False,
"use_default_template": True
},
"_meta": {
"title": "Generate Text"
}
}
})
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)مهام سير عمل ذات صلة
- MMing Image
Ming صورة 0.2 Design: تحرير الصورة
- ZZ-Image-Turbo
1.1 البداية - تحويل النص إلى صورة
- Nano Banana 2 Text-to-Image
3x3 Contact Sheet
Anima Base v1: نص إلى صورة
- QQuiver
Arrow 2: Text to SVG
- BRIA
Bria: FIBO 2.0 Text to Image
- CChroma, Flux
Chroma: نص إلى صورة
- Flux
FLUX 3 Image Klein Distilled: Image Edit
- Flux
FLUX 3 Image Klein Distilled: Text to Image
- Flux
FLUX 3 Image Klein: Image Edit
- Flux
FLUX 3 Image Klein: Text to Image
- Flux, Flux.1 Krea Dev
Flux.1 Krea Dev