> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-comfy-router-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Cosmos Predict2 Video2World  ComfyUI Official Example

> This guide demonstrates how to complete Cosmos-Predict2 Video2World workflows in ComfyUI

Cosmos-Predict2 is NVIDIA's next-generation physical world foundation model, specifically designed for high-quality visual generation and prediction tasks in physical AI scenarios.
The model features exceptional physical accuracy, environmental interactivity, and detail reproduction capabilities, enabling realistic simulation of complex physical phenomena and dynamic scenes.

Cosmos-Predict2 supports various generation methods including Text-to-Image (Text2Image) and Video-to-World (Video2World),
and is widely used in industrial simulation, autonomous driving, urban planning, scientific research, and other fields.
It serves as a crucial foundational tool for promoting deep integration of intelligent vision and the physical world.

<CardGroup cols={2}>
  <Card title="GitHub" icon="github" href="https://github.com/nvidia-cosmos/cosmos-predict2">
    Cosmos-Predict2 source code and documentation
  </Card>

  <Card title="Hugging Face" icon="cube" href="https://huggingface.co/collections/nvidia/cosmos-predict2-68028efc052239369a0f2959">
    Cosmos-Predict2 model collection
  </Card>
</CardGroup>

This guide will walk you through completing **Video2World** generation in ComfyUI.

For the text-to-image section, please refer to the following part:

<CardGroup cols={2}>
  <Card title="Cosmos Predict2 Text to Image" icon="book" href="/tutorials/image/cosmos/cosmos-predict2-t2i">
    Using Cosmos-Predict2 for text-to-image generation
  </Card>

  <Card title="Run on Comfy Cloud" icon="cloud" href="https://comfy.org/cloud">
    Run Cosmos-Predict2 workflows on Comfy Cloud with powerful GPUs
  </Card>
</CardGroup>

<Tip>
  <Tabs>
    <Tab title="Local users">
      Make sure your ComfyUI is updated.

      * [Download ComfyUI](https://www.comfy.org/download)
      * [Update Guide](/installation/update_comfyui)

      Workflows in this guide can be found in the [Workflow Templates](/interface/features/template).
      If you can't find them in the template, your ComfyUI may be outdated.

      If nodes are missing when loading a workflow, possible reasons:

      1. You are not using the latest ComfyUI version (Nightly version)
      2. Some nodes failed to import at startup
    </Tab>

    <Tab title="Cloud users">
      * [Cloud](https://cloud.comfy.org) will update after ComfyUI stable release.

      So, if you find any core node missing in this document, it might be because the new core nodes have not yet been released in the latest stable version. Please wait for the next stable release.
    </Tab>
  </Tabs>
</Tip>

## Cosmos Predict2 Video2World Workflow

When testing the 2B version, it takes around 16GB VRAM.

### 1. Workflow File

Please download the video below and drag it into ComfyUI to load the workflow. The workflow already has embedded model download links.

<video controls className="w-full aspect-video" src="https://raw.githubusercontent.com/Comfy-Org/example_workflows/refs/heads/main/video/cosmos/predict2/cosmos_predict2_2B_video2world_480p_16fps.mp4" />

<CardGroup cols={2}>
  <Card title="Run on Comfy Cloud" icon="cloud" href="https://comfy.org/cloud">
    Run this workflow on Comfy Cloud with pre-installed models
  </Card>

  <Card title="Download Workflow File" icon="download" href="https://raw.githubusercontent.com/Comfy-Org/example_workflows/refs/heads/main/video/cosmos/predict2/cosmos_predict2_2B_video2world_480p_16fps.json">
    Download the JSON format workflow file
  </Card>
</CardGroup>

Please download the following image as input:

![Input Image](https://raw.githubusercontent.com/Comfy-Org/example_workflows/refs/heads/main/video/cosmos/predict2/input.png)

### 2. Manual Model Installation

If the model download was not successful, you can try to download them manually by yourself in this section.

**Diffusion model**

<Card title="Diffusion Model" icon="download" href="https://huggingface.co/Comfy-Org/Cosmos_Predict2_repackaged/blob/main/cosmos_predict2_2B_video2world_480p_16fps.safetensors">
  cosmos\_predict2\_2B\_video2world\_480p\_16fps.safetensors
</Card>

For other weights, please visit [Cosmos\_Predict2\_repackaged](https://huggingface.co/Comfy-Org/Cosmos_Predict2_repackaged) to download.

**Text encoder**

<Card title="Text Encoder" icon="download" href="https://huggingface.co/comfyanonymous/cosmos_1.0_text_encoder_and_VAE_ComfyUI/blob/main/text_encoders/oldt5_xxl_fp8_e4m3fn_scaled.safetensors">
  oldt5\_xxl\_fp8\_e4m3fn\_scaled.safetensors
</Card>

**VAE**

<Card title="VAE" icon="download" href="https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/blob/main/split_files/vae/wan_2.1_vae.safetensors">
  wan\_2.1\_vae.safetensors
</Card>

File Storage Location

```
📂 ComfyUI/
├──📂 models/
│   ├── 📂 diffusion_models/
│   │   └─── cosmos_predict2_2B_video2world_480p_16fps.safetensors
│   ├── 📂 text_encoders/
│   │   └─── oldt5_xxl_fp8_e4m3fn_scaled.safetensors
│   └── 📂 vae/
│       └──  wan_2.1_vae.safetensors
```

### 3. Complete Workflow  Step by Step

<img src="https://mintcdn.com/dripart-docs-comfy-router-docs/FJuH6pbbJLepu6Ys/images/tutorial/video/cosmos/cosmos_predict2_2B_video2world_480p_16fps_step_guide.jpg?fit=max&auto=format&n=FJuH6pbbJLepu6Ys&q=85&s=aa35cceb5a6257d38d614c3b9a946083" alt="Workflow Step Guide" width="3117" height="1583" data-path="images/tutorial/video/cosmos/cosmos_predict2_2B_video2world_480p_16fps_step_guide.jpg" />

Please follow the steps in the image to run the workflow:

1. Ensure the `Load Diffusion Model` node has loaded `cosmos_predict2_2B_video2world_480p_16fps.safetensors`
2. Ensure the `Load CLIP` node has loaded `oldt5_xxl_fp8_e4m3fn_scaled.safetensors`
3. Ensure the `Load VAE` node has loaded `wan_2.1_vae.safetensors`
4. Upload the provided input image in the `Load Image` node
5. (Optional) If you need first and last frame control, use the shortcut `Ctrl(cmd) + B` to enable last frame input
6. (Optional) You can modify the prompts in the `ClipTextEncode` node
7. (Optional) Modify the size and frame count in the `CosmosPredict2ImageToVideoLatent` node
8. Click the `Run` button or use the shortcut `Ctrl(cmd) + Enter` to run the workflow
9. Once generation is complete, the video will automatically save to the `ComfyUI/output/` directory, you can also preview it in the `save video` node
