Instructions to use Comfy-Org/PAN2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusion Single File
How to use Comfy-Org/PAN2 with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Workflow?
is there any workflow or instruction?
is not on templese
Hi @agapes , thanks for asking!
There isn't a built-in template yet, but the community has shared working T2V and I2V workflows in this thread: https://huggingface.co/Comfy-Org/PAN2/discussions/2. Drag the PNG into ComfyUI to load one.
One thing to know: PAN 2 expects a structured JSON caption rather than free text, and plain prompts will give noise. For the best results, pair it with a strong LLM, such as GPT-6 Astra, Claude or Kimi K3, to write that caption for you. Our prompt rewriter instructions are here: https://github.com/ifm-ai/PAN2/tree/main/inference/pan-prompt-rewriter. In ComfyUI you can run it with the OpenAI node or the OpenRouter nodes using your own API key.
Let us know how it goes.