先月Comfyで生成された全動画のうち43.0%はSeedance 2.5によるもので、2位のモデルの4.2倍でした。モデルランキングを見る
Comfy Router
キー1つ・請求1つ
Google- OpenAI
- ByteDance
- Kling
- Black Forest Labs
- fal
- MiniMax
- ElevenLabs
- Wan
- Higgsfield
- Runway
- Luma
- Recraft
Ideogram
- Meshy
Tencent
柔軟
1つのスキーマ、すべてのモデル
IDを1つ変更するだけでモデルを切り替えられます。人気モデルにはバックアップホストがあります。
透明性
数値を公開
公開ランキングと、すべての呼び出しの料金。
信頼性
稼働率99.9%
複数のフェイルオーバー対応プロバイダーによって支えられています。
料金の比較
すべての料金を見るComfy Routerの上乗せ料金は定価の0%です。falおよびRunway MLと比較できます。
| モデル | Comfy Router | モデル提供元 | fal | Runway |
|---|---|---|---|---|
| Seedance 2.5720p | $0.231/秒 | $0.231/秒 | $0.473/秒+105% | $0.30/秒+30% |
| Seedance 2.0720p | $0.151/秒 | $0.151/秒 | $0.3034/秒+101% | $0.30/秒+99% |
| MiniMax H3768p | $0.08/秒 | $0.08/秒 | 掲載なし | $0.10/秒+25% |
| Kling 3.01080p pro, with audio | $0.168/秒 | $0.168/秒 | $0.168/秒 | $0.17/秒+1% |
| $0.134/画像 | $0.134/画像 | $0.15/画像+12% | $0.20/画像+49% | |
| $0.067/画像 | $0.067/画像 | $0.08/画像+19% | $0.04/画像 | |
| Seedream 5.0 Pro1K | $0.045/画像 | $0.045/画像 | $0.0675/画像+50% | $0.05/画像+11% |
| ElevenLabs v3Text to speech | $0.08/1,000文字 | $0.08/1,000文字 | $0.10/1,000文字+25% | $0.20/1,000文字+150% |
スタータープロンプト
作りたいものを説明してください
プロジェクトについて1~2文で説明してください。Comfy Router 上での構築方法をコーディングエージェントに伝えるスタータープロンプトに変換します。その後、コピーするか、エージェントで開くことができます。
Read these pages before you write any code:
https://docs.comfy.org/development/comfy-router/quickstart
https://docs.comfy.org/development/comfy-router/queue
https://docs.comfy.org/development/api-development/sdks
https://docs.comfy.org/development/comfy-router/models
https://github.com/Comfy-Org/comfy-skills/blob/main/claude-code-sdk/skills/comfy-sdk/SKILL.md
I want to build [describe your project in a sentence or two].
If this project already calls another generation API, keep its structure and swap those calls to Comfy Router: same request flow, new base URL, key and model IDs.
Build it locally with the Comfy SDK, 0.4.0 or later: Python (comfy-sdk) or TypeScript (@comfyorg/sdk). Do all generation through Comfy Router. The SDK docs also cover the Comfy Cloud workflow client; do not set that up, this project does not need it.
Setup:
- My API key is COMFY_API_KEY in a .env file in this folder. Create .env.example with COMFY_API_KEY= and add .env to .gitignore. If .env or the key is missing, tell me the exact path to put it at and keep building and testing everything that does not need live generation; wait for the key before any live API call. Never ask me to paste the key into chat.
- .env wins over my shell: load_dotenv(override=True) in Python, dotenv.config({ override: true }) in Node. Do not use node --env-file, it does not override. Keep the key on the server, never in browser JS.
SDK:
- TypeScript: import { comfy } from "@comfyorg/sdk" and use lowercase comfy.models. new Comfy(...) is the Cloud workflow client and has no .models.
- Python: use Comfy().models, or AsyncComfy().models in async code.
- Router is at https://api.comfy.org. On plain HTTP instead of the SDK: send the key as X-API-Key, POST the model's native JSON body to /v2/models/{provider}/{model} (or /v2/models/{provider}/{model}/requests to queue), and send a new Idempotency-Key UUID per generation, reusing it on retries. The SDKs do all of this for you.
- GET /v2/models lists the models this key can call. Use it as a preflight: a 401 there means the key is wrong, not the model.
- Pass input images, video and audio as public https URLs. A small image can be a data: base64 URL, but the request body is capped, so don't inline large media.
- If I have not named a model, pick one from the models page and use the provider/model ID from its table. Either way, read that model's page, or GET /v2/models/{provider}/{model}/openapi.json, for its input and output fields before writing the request.
Long-running generation:
- Router cuts a synchronous run off at 10 minutes. In Python pass timeout=660 to each models.run(...) call; Comfy(timeout=...) does not change models.run's own default. In TypeScript, run takes timeoutMs in milliseconds and its default already covers long runs, so leave it.
- If generation can outlive a web request, use models.submit(), store the model ID and request ID, and poll status() and get(), or rebuild the handle later with models.handle(model, request_id) in Python or models.handle(model, requestId) in TypeScript. A finished result is kept for 24 hours, so download any asset URLs promptly. models.subscribe() submits, polls and collects in one call, but it still waits in the calling process. Neither mode has webhooks.
- Show queued, running and finished states. Do not invent a percentage. A finished request can still carry an error_type, so surface it.
- A 402 insufficient_credits means the workspace needs credits. Tell me that instead of retrying.
When it is ready, start the app locally and walk me through one pass: generate, display the result, download it.貼り付ける前に
- Claude Code などのコーディングエージェントと、Node 22+ または Python 3.10+ をインストールしてください。
- platform.comfy.org でワークスペース API キーを作成し、クレジットを追加してください。Router は従量課金制のため、Cloud サブスクリプションは不要です。
- キーを .env ファイル内で COMFY_API_KEY として設定してください。チャットに貼り付けないでください。
- お困りですか? Router ガイドは docs.comfy.org にあります。