Lens: Text to Image
Input a text prompt and select resolution and aspect ratio. Generate a high-quality image using the efficient Lens text-to-image model.
워크플로 다운로드Cloud에서 사용해 보기 API 문서
정보
Input a text prompt and select resolution and aspect ratio. Generate a high-quality image using the efficient Lens text-to-image model.
제공할 항목
- 워크플로 읽는 중
ComfyUI에서 실행됩니다. 이 워크플로는 자체 ComfyUI에서만 실행할 수 있습니다. 다운로드한 후 파일을 캔버스에 끌어다 놓으세요.
워크플로 다운로드아직 이 워크플로의 샘플 출력이 없습니다.
워크플로 내부
노드 그래프의 읽기 전용 미리보기입니다. 노드를 편집하려면 Comfy Cloud에서 열거나 다운로드하세요.
Loading the graph
Open full-size workflow preview이 워크플로의 파일
- Comfy Cloud
- 아니요
- 출력
- 이미지
- 작성자
- 작성자 정보를 사용할 수 없음
사용자 지정 노드 필요
- 워크플로 읽는 중
코드에서 이 워크플로 사용하기
가능한 경우 워크플로 그래프와 입력을 기반으로 생성되며, 그렇지 않은 경우 저장된 예시가 표시됩니다. 비용이 발생할 수 있으므로 코드를 실행하기 전에 자격 증명과 엔드포인트를 검토하세요.
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({
"35": {
"class_type": "ResolutionSelector",
"inputs": {
"aspect_ratio": "1:1 (Square)",
"megapixels": 2,
"multiple": 8
},
"_meta": {
"title": "Resolution Selector"
}
},
"43": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "Lens",
"images": [
"34:5",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"34:10": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "lens_bf16.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"34:14": {
"class_type": "SamplerCustom",
"inputs": {
"add_noise": True,
"cfg": 5,
"latent_image": [
"34:8",
0
],
"model": [
"34:23",
0
],
"negative": [
"34:7",
0
],
"noise_seed": 199454112061500,
"positive": [
"34:3",
0
],
"sampler": [
"34:18",
0
],
"sigmas": [
"34:16",
0
]
},
"_meta": {
"title": "SamplerCustom"
}
},
"34:16": {
"class_type": "BasicScheduler",
"inputs": {
"denoise": 1,
"model": [
"34:21",
0
],
"scheduler": "simple",
"steps": 20
},
"_meta": {
"title": "BasicScheduler"
}
},
"34:18": {
"class_type": "KSamplerSelect",
"inputs": {
"sampler_name": "euler"
},
"_meta": {
"title": "KSamplerSelect"
}
},
"34:2": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "gpt_oss_20b_nvfp4.safetensors",
"device": "default",
"type": "lens"
},
"_meta": {
"title": "Load CLIP"
}
},
"34:21": {
"class_type": "ModelSamplingFlux",
"inputs": {
"base_shift": 0.5,
"height": [
"34:33",
1
],
"max_shift": 1.15,
"model": [
"34:10",
0
],
"width": [
"34:32",
1
]
},
"_meta": {
"title": "ModelSamplingFlux"
}
},
"34:23": {
"class_type": "CFGNorm",
"inputs": {
"model": [
"34:21",
0
],
"pre_cfg": False,
"strength": 1
},
"_meta": {
"title": "CFGNorm"
}
},
"34:3": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"34:2",
0
],
"text": "A cluster of wild cosmos flowers swaying in gentle wind, crinkled soft petals and slender green stems, warm golden hour sunlight, natural field scenery, detailed floral texture, lifelike outdoor atmosphere"
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"34:30": {
"class_type": "PrimitiveInt",
"inputs": {
"value": [
"35",
0
]
},
"_meta": {
"title": "Int (Width)"
}
},
"34:31": {
"class_type": "PrimitiveInt",
"inputs": {
"value": [
"35",
1
]
},
"_meta": {
"title": "Int (Height)"
}
},
"34:32": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "a & -8",
"values.a": [
"34:30",
0
]
},
"_meta": {
"title": "Math Expression"
}
},
"34:33": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "a & -8",
"values.a": [
"34:31",
0
]
},
"_meta": {
"title": "Math Expression"
}
},
"34:5": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"34:14",
0
],
"vae": [
"34:9",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"34:7": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"34:2",
0
],
"text": ""
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"34:8": {
"class_type": "EmptyLatentImage",
"inputs": {
"batch_size": 1,
"height": [
"34:33",
1
],
"width": [
"34:32",
1
]
},
"_meta": {
"title": "Empty Latent Image"
}
},
"34:9": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "flux2-vae.safetensors"
},
"_meta": {
"title": "Load VAE"
}
}
})
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)관련 워크플로
- LLens
Lens Turbo: Text to Image
- ZZ-Image-Turbo
1.1 Starter - Text to Image
- Nano Banana 2 Text-to-Image
3x3 Contact Sheet
- AAnima
Anima Anime 텍스트 기반 이미지 생성
- AAnima
Anima Base v1: 텍스트 → 이미지
- AAnima
Anima Lllite: Any Control to Image
- AAnima
Anima Lllite: Depth Control to Image
- AAnima
Anima Lllite: Image Inpainting
- QQuiver
Arrow 2: Text to SVG
- BBoogu
Boogu Turbo: Text to Image
- BRIA
Bria: FIBO 2.0 Text to Image
- CChroma, Flux
Chroma: 텍스트 기반 이미지 생성