Ideogram P-Image: 텍스트 → 이미지
Ideogram의 빠른 P-Image 모델로 텍스트 설명에서 이미지를 생성합니다. 선도적인 이미지 모델과 비슷한 품질을 훨씬 낮은 비용과 지연 시간으로 제공합니다. 텍스트 프롬프트 1개를 입력받아 이미지 1개를 출력하며, 품질 수준 및 해상도를 제어할 수 있습니다. 디자인 워크플로에서 빠른 반복, 대량 콘텐츠 제작, 비용에 민감한 시각 컨셉 A/B 테스트에 적합합니다.
정보
이 워크플로는 ComfyUI를 통해 Ideogram의 P-Image 모델을 호출해 단일 텍스트 프롬프트를 완성된 이미지로 변환합니다. BuildJsonPromptIdeogram으로 요청을 구조화해 구성한 뒤 IdeogramPImage 노드(P-Image 모델의 API 호출기)로 전송하고, 생성된 이미지를 즉시 보기 및 내보내기할 수 있도록 반환합니다. 품질 수준과 해상도를 간단히 제어해 선명도, 속도, 렌더당 비용의 균형을 맞출 수 있습니다.
PreviewAny는 두 지점에서 실시간 피드백을 제공합니다. 전송 전 구조화된 JSON 페이로드를 확인할 수 있고, 반환된 이미지도 검토할 수 있습니다. CreateBoundingBoxes는 미리보기에서 구도 가이드(옵션)를 추가해 프레이밍이나 안전 영역을 계획하는 데 도움을 줍니다. 레이아웃을 반복할 때 유용하지만 실제 생성에는 제약을 걸지 않습니다. 출력이 만족스러우면 SaveImageAdvanced가 유연한 파일 이름 지정으로 이미지를 디스크에 저장해 버전을 보관하고, 디자인 리뷰나 A/B 테스트용 배치 반복을 쉽게 진행할 수 있습니다.
제공할 항목
- 워크플로 읽는 중
ComfyUI에서 실행됩니다. 이 워크플로는 이 페이지에서 실행할 수 없습니다. 모든 항목이 로드된 Comfy Cloud에서 열거나, 자체 ComfyUI에서 사용하려면 다운로드하세요.
Cloud에서 사용해 보기워크플로 내부
노드 그래프의 읽기 전용 미리보기입니다. 노드를 편집하려면 Comfy Cloud에서 열거나 다운로드하세요.
Loading the graph
Open full-size workflow preview- 작성자
- ComfyUI
사용자 지정 노드 필요
- 워크플로 읽는 중
코드에서 이 워크플로 사용하기
가능한 경우 워크플로 그래프와 입력을 기반으로 생성되며, 그렇지 않은 경우 저장된 예시가 표시됩니다. 비용이 발생할 수 있으므로 코드를 실행하기 전에 자격 증명과 엔드포인트를 검토하세요.
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({
"4": {
"class_type": "PreviewAny",
"inputs": {
"source": [
"12",
0
]
},
"_meta": {
"title": "Preview as Text"
}
},
"9": {
"class_type": "CreateBoundingBoxes",
"inputs": {
"editor_state": {
"__value__": []
},
"height": 1024,
"last_incoming": {
"__value__": [
{
"height": 124,
"metadata": {
"desc": "Large elegant white display serif title at the top center of the cover. Decorative swash flourishes extend from the letters. Bold upright letterforms with high contrast against the dark background.",
"palette": [
"#ffffff"
],
"text": "Ideogram P-Image",
"type": "text"
},
"width": 824,
"x": 128,
"y": 32
},
{
"height": 928,
"metadata": {
"desc": "Figure in theatrical Renaissance-inspired high-fashion costume, waist-up. Smooth matte white porcelain mask with small dark circular eye holes and neutral melancholy expression. Antique-gold sculpted floral crown headpiece with off-white draped veil flowing over the shoulders. Dark black textured bodice with intricate gold embroidery and a large gold tassel pendant at the chest center. Extremely voluminous deep red silk ruffled sleeves. One gloved hand raised near the face in a delicate theatrical gesture.",
"palette": [
"#ffffff",
"#8b0000",
"#c9a227",
"#1a1a1a"
],
"text": "",
"type": "obj"
},
"width": 992,
"x": 32,
"y": 96
},
{
"height": 300,
"metadata": {
"desc": "Small white sans-serif side label stacked vertically along the left margin. Section header in medium weight with a short editorial quote beneath in lighter weight, left-aligned.",
"palette": [
"#ffffff"
],
"text": "CUSTOM\nNODES\n\"Extend what\nyou can build.\"",
"type": "text"
},
"width": 88,
"x": 22,
"y": 300
},
{
"height": 300,
"metadata": {
"desc": "Small white sans-serif side label stacked vertically along the right margin. Section header in medium weight with a short editorial quote beneath in lighter weight, right-aligned.",
"palette": [
"#ffffff"
],
"text": "WORKFLOW\n\"Drag. Connect.\nGenerate.\"",
"type": "text"
},
"width": 88,
"x": 914,
"y": 300
},
{
"height": 192,
"metadata": {
"desc": "Wide white sans-serif editorial quote in all capitals spanning the bottom of the cover. Medium weight, centered, with generous letter-spacing across two lines.",
"palette": [
"#ffffff"
],
"text": "CONNECT NODES. BUILD WORLDS. COMFYUI MAKES IT FLOW.",
"type": "text"
},
"width": 928,
"x": 64,
"y": 800
}
]
},
"width": 1024
},
"_meta": {
"title": "Create Bounding Boxes"
}
},
"11": {
"class_type": "IdeogramPImage",
"inputs": {
"aspect_ratio": "1:1",
"prompt": [
"4",
0
],
"prompt_upsampling": "AUTO",
"quality": "MEDIUM",
"resolution": "1K",
"seed": 1290088285
},
"_meta": {
"title": "Ideogram & Pruna P-Image"
}
},
"12": {
"class_type": "BuildJsonPromptIdeogram",
"inputs": {
"aesthetics": "High-fashion avant-garde editorial aesthetic with dramatic contrast and ornate costume details.",
"background": "dark",
"color_palette": {
"__value__": []
},
"element": [
"9",
2
],
"high_level_description": "An avant-garde high-fashion magazine cover titled 'Ideogram P-Image' featuring a masked figure in ornate Renaissance-inspired costume with voluminous red silk sleeves against a dark navy backdrop with subtle concentric graphic lines.",
"lighting": "Dramatic directional chiaroscuro lighting highlighting red silk and gold embroidery with deep shadows across the backdrop.",
"medium": "",
"style": "photo",
"style.photo": "editorial"
},
"_meta": {
"title": "Build JSON Prompt (Ideogram)"
}
},
"13": {
"class_type": "SaveImageAdvanced",
"inputs": {
"filename_prefix": "Ideogram_P-Image",
"format": "png",
"format.bit_depth": "8-bit",
"format.input_color_space": "sRGB",
"images": [
"11",
0
]
},
"_meta": {
"title": "Save Image (Advanced)"
}
}
})
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)질문과 답변
아니오. 이미지는 API를 통해 Ideogram의 P-Image 모델에서 생성됩니다. ComfyUI는 요청을 처리하고 결과를 표시하므로 강력한 GPU가 없는 일반 PC에서도 실행됩니다.
시각적 디테일, 렌더 시간, API 비용에 영향을 줍니다. 더 높은 품질과 더 큰 해상도는 보통 선명도를 높이지만 지연 시간과 사용 크레딧이 증가합니다. 빠른 초안은 중간 설정으로 시작한 뒤 필요할 때만 올리세요.
아니오. CreateBoundingBoxes는 구도 계획을 돕기 위해 PreviewAny에서 시각 가이드로만 사용됩니다. Ideogram API로 전송되지 않으며 모델 출력에 제약을 주지 않습니다.
렌더 간 프롬프트 문구, 품질, 해상도를 동일하게 유지하세요. 노드에 시드 파라미터가 있다면 고정해 재현성을 확보하세요. 그렇지 않다면 여러 번 실행해 가장 가까운 결과를 선택한 다음, 작고 통제된 프롬프트 편집으로 반복하세요.