RunComfy API로 qwen/qwen-image-2.1/text-to-image을(를) 실행합니다. 허용되는 입력·출력은 모델 스키마.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/qwen/qwen-image-2.1/text-to-image \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A linen tote on a sunlit marble ledge, oversized navy serif type reading \"HARBOR LINEN\", a small caption \"Washed canvas · Est. 2012\", soft contact shadow, catalog still, no extra logos."
}'환경 변수 YOUR_API_TOKEN 에 API 키를 설정하세요( 프로필에서 키 관리). 모든 요청에 Authorization 헤더로 Bearer 토큰을 포함: Authorization: Bearer $YOUR_API_TOKEN.
비동기 생성 작업을 제출하면 즉시 request_id와 상태 확인·결과 조회·취소용 URL을 받습니다.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/qwen/qwen-image-2.1/text-to-image \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A linen tote on a sunlit marble ledge, oversized navy serif type reading \"HARBOR LINEN\", a small caption \"Washed canvas · Est. 2012\", soft contact shadow, catalog still, no extra logos."
}'request_id의 현재 상태를 가져옵니다("in_queue", "in_progress", "completed", "cancelled").
curl --request GET \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/status \
--header "Authorization: Bearer <token>"지정한 request_id의 최종 출력과 메타데이터를 가져옵니다. 작업이 완료되지 않았으면 현재 상태가 반환되어 폴링을 계속할 수 있습니다.
curl --request GET \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/result \
--header "Authorization: Bearer <token>"request_id로 대기 중인 작업을 취소합니다. 진행 중인 작업은 취소할 수 없습니다.
curl --request POST \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/cancel \
--header "Authorization: Bearer <token>"공개적으로 접근 가능한 HTTPS URL을 제공하세요. 서버 측 페치가 가능하고(로그인/쿠키 불필요) 속도 제한이나 봇 차단이 없어야 합니다. 권장: 이미지 ≤ 50MB(약 4K), 동영상 ≤ 100MB(720p 기준 약 2–5분). 비공개 자산은 안정적이거나 사전 서명 URL을 권장합니다.
{
"type": "object",
"title": "입력 스키마",
"required": [
"prompt"
],
"properties": {
"prompt": {
"title": "프롬프트",
"description": "주제, 배경, 스타일 및 정확히 표현하고 싶은 텍스트를 설명하세요. 텍스트를 그대로 표현하고 싶으면 따옴표 안에 넣으세요.",
"type": "string",
"default": "A linen tote on a sunlit marble ledge, oversized navy serif type reading \"HARBOR LINEN\", a small caption \"Washed canvas · Est. 2012\", soft contact shadow, catalog still, no extra logos."
},
"aspect_ratio": {
"title": "화면비(가로:세로)",
"description": "출력 종횡비. 픽셀 크기는 해상도 등급에도 따라 다릅니다.",
"type": "string",
"enum": [
"1:1",
"4:3",
"3:4",
"3:2",
"2:3",
"16:9",
"9:16",
"21:9",
"9:21"
],
"default": "1:1"
},
"resolution": {
"title": "해상도",
"description": "출력 상세 수준. 1K이 더 빠르고, 2K은 픽셀이 약 네 배이고 비용이 더 많이 듭니다.",
"type": "string",
"enum": [
"1K",
"2K"
],
"default": "1K"
},
"background": {
"title": "배경",
"description": "일반 사진에는 불투명합니다. 투명은 실제 알파 채널을 작성합니다 — 피사체만 설명하고 JPEG를 사용하지 마세요.",
"type": "string",
"enum": [
"opaque",
"transparent"
],
"default": "opaque"
},
"output_format": {
"title": "출력 형식",
"description": "PNG와 WebP는 알파 채널을 가질 수 있습니다. JPEG는 그렇지 않아서, 투명한 배경과 결합할 수 없습니다.",
"type": "string",
"enum": [
"png",
"webp",
"jpeg"
],
"default": "png"
},
"enhance_prompt": {
"title": "프롬프트 개선",
"description": "생성하기 전에 짧은 프롬프트를 더 완전한 장면으로 다시 작성하세요. 프롬프트가 이미 정확할 경우에는 끄세요.",
"type": "boolean",
"default": true
},
"seed": {
"title": "시드",
"description": "재현성을 위한 랜덤 시드. 실행할 때마다 랜덤 시드를 원하면 -1을 사용하세요.",
"type": "integer",
"default": -1
}
}
}{
"output": {
"type": "object",
"properties": {
"image": {
"type": "string",
"format": "uri",
"description": "단일 이미지 URL"
},
"video": {
"type": "string",
"format": "uri",
"description": "단일 동영상 URL"
},
"images": {
"type": "array",
"description": "여러 이미지 URL",
"items": {
"type": "string",
"format": "uri"
}
},
"videos": {
"type": "array",
"description": "여러 동영상 URL",
"items": {
"type": "string",
"format": "uri"
}
}
}
}
}RunComfy는 최고의 ComfyUI 플랫폼으로서 ComfyUI 온라인 환경과 서비스를 제공하며 ComfyUI 워크플로우 멋진 비주얼을 제공합니다. RunComfy는 또한 제공합니다 AI Models, 예술가들이 최신 AI 도구를 활용하여 놀라운 예술을 창조할 수 있도록 지원합니다.