News icon

Batch Inference is now generally available on Runpod Serverless

Build your own holiday photo-to-cartoon app with MiniMax H3 on Runpod

Build an app that turns any holiday photo into a cartoon in under a minute: a GPU Pod running MiniMax H3-Image in ComfyUI and a small web app you run on your laptop.

Build your own holiday photo-to-cartoon app with MiniMax H3 on Runpod
The Holiday Cartoon Booth, the app you'll build in this post
The Holiday Cartoon Booth, the app you'll build in this post

The holidays mean a camera roll full of trees, lights, pets in sweaters, and ornaments that only come out once a year. A cartoon version of one of those photos makes a fun card, a profile picture, or a group chat reply. With an open-weight image editing model and a GPU you rent by the hour, you can build your own tool for making them. This example was originally created as something fun to show my niece over the Thanksgiving holiday break.

In this post, you'll build the Holiday Cartoon Booth. Upload a photo, choose Classic cartoon, Claymation, Storybook, Retro card, Cozy anime, or Pixel art, and get back a cartoon you can download or share from your phone. By the end, you'll have it running, know how each piece works, and be able to add your own style or turn it into something else entirely.

The full code is on GitHub if you want to follow along with the finished version. For more background on the model, see our guide to running MiniMax H3-Image on Runpod with ComfyUI.

What you'll need to get started

  • A Runpod account with credits
  • Python 3.9 or later and Git
  • Basic familiarity with the command line
  • A holiday photo to try it on
  • Optional: a coding agent such as Claude Code or Codex, if you'd rather have an agent build your version

How the app fits together

Before you build anything, here's the shape of it. The app has two parts:

  1. ComfyUI on a Runpod Pod does the image generation. It needs a GPU with 80 GB of VRAM or more.
  2. A small Flask app on your laptop takes your photo and style choice and talks to ComfyUI over its HTTP API.

The image generation runs through ComfyUI's official MiniMax H3-Image edit template, saved in API format as workflow_api.json. For each photo, the workflow:

  1. Resizes the photo to about 4 megapixels.
  2. Uses a small Qwen3.5 9B model, which ComfyUI calls the prompt expander, to rewrite your short style instruction into a full description of the target image.
  3. Has MiniMax H3-Image redraw the photo in 6 sampling steps.

You'll set these up in order: the Pod, the styles, the app, then your first cartoon.

Step 1: Set up the GPU Pod

In the Runpod console, deploy the ComfyUI template, version 0.45.0 or newer, which is what the H3-Image workflow needs. Pick a GPU with at least 80 GB of VRAM and set the disk to 150 GB. We used an RTX PRO 6000 with 96 GB, which cost $2.69 an hour at the time of writing.

The template requires a password before it can be deployed. Click Set overrides and add an environment variable named COMFYUI_PASSWORD. Your app will use that password to call ComfyUI's API.

Once the Pod is running, open its web terminal from the Connect tab and download the four model files. They come to about 50 GB, and the download took us a few minutes:

cd /workspace/runpod-slim/ComfyUI/models
hf download Comfy-Org/MiniMax-H3-Image diffusion_models/minimax_h3_image_pruned_int8_convrot.safetensors vae/minimax_h3_image_vae_fp16.safetensors --local-dir .
hf download Comfy-Org/MiniMax-H3 text_encoders/qwen3vl_32b_minimax_h3_int8_convrot.safetensors --local-dir .
hf download Comfy-Org/Qwen3.5 text_encoders/qwen3.5_9b_w4a8_gptq.safetensors --local-dir .

These are the INT8 builds of the model and text encoder, which fit on a single 80 GB card.

Step 2: Define your styles

Each style in the app is a single instruction stored in styles.json. Keeping styles as data rather than code means you can add or change one without touching the app. Here's the Claymation style:

"claymation": {
  "label": "Claymation",
  "emoji": "🧸",
  "instruction": "Turn <Picture 1> into a still from a stop-motion claymation holiday special: everything sculpted from smooth modeling clay and felt, with visible fingerprints, rounded chunky shapes, and warm miniature-set lighting with a shallow depth of field. Keep the same composition, subjects, and main colors."
}

<Picture 1> refers to the uploaded photo. The last sentence matters most. Without it, the model is free to invent a new scene, and the result stops looking like your photo.

Step 3: Connect the app to ComfyUI

The core of the app is a few lines in app.py. When someone clicks Make my cartoon, it uploads the photo to ComfyUI, fills in the workflow with the photo, the style and a fresh seed, and queues the job:

wf = copy.deepcopy(WORKFLOW)
wf["45"]["inputs"]["image"] = name                      # your photo
wf["43"]["inputs"]["value"] = style["instruction"]      # the style
wf["56"]["inputs"]["resize_type.megapixels"] = MEGAPIXELS
wf["38"]["inputs"]["seed"] = random.randint(0, 2**48)   # new result each run

job = comfy("POST", "/prompt", json={"prompt": wf, "client_id": "holiday-booth"}).json()

The numbers are node IDs from workflow_api.json. If you build on a different ComfyUI workflow, open its API-format JSON and find the nodes that hold the input image, the prompt and the seed.

The browser then polls the app every two seconds. When ComfyUI finishes, the app downloads the PNG and saves a 2048 px JPEG, which is small enough to send in a chat or post on social media.

Step 4: Run the app

On your laptop, clone the repo and point the app at your Pod. Replace <POD_ID> with the ID shown in the console and use the password you set in Step 1:

git clone https://github.com/JessicaGarson/turn-your-holiday-photo-into-a-cartoon.git
cd turn-your-holiday-photo-into-a-cartoon
pip install -r requirements.txt
export COMFYUI_URL=https://<POD_ID>-8188.proxy.runpod.net
export COMFYUI_PASSWORD=your_password
python app.py

Open http://localhost:7860 and you'll see the booth.

Step 5: Make your first cartoon

Upload a photo, pick a style and click Make my cartoon. On the RTX PRO 6000, each cartoon took between 30 and 65 seconds. The first one takes longer because the models load into GPU memory.

Picking the Claymation style, finished in 52 seconds
Picking the Claymation style, finished in 52 seconds

The result shows up next to your original. Download saves the JPEG. On a phone, Share opens the system share sheet so you can send it straight to a chat or a social app.

The original ornament photo next to the Claymation version
The original ornament photo next to the Claymation version

Here's the same ornament in the other five styles. Each one kept the shape of the ornament, the gold cap and the snowflake pattern, while the materials, lighting and background changed with the style.

Classic cartoon version of the ornament photo
Classic cartoon
Storybook version of the ornament photo
Storybook
Retro card version of the ornament photo
Retro card
Cozy anime version of the ornament photo
Cozy anime
Pixel art version of the ornament photo
Pixel art

The default is 4 megapixels because it's fast and plenty for sharing. MiniMax H3-Image works natively at about 16 megapixels, so for a print or a card, start the app with H3_MEGAPIXELS=16 python app.py.

Step 6: Make it yours with a new style

This is where your version starts to differ from ours. To add a style, add an entry to styles.json and restart the app. The button appears automatically. A few things we learned writing the six instructions:

  • Start with what to turn the photo into, then list the materials, line quality, palette and lighting you want.
  • End with "Keep the same composition, subjects, and main colors" so the result still looks like your photo.
  • Describe what you want rather than what to avoid. MiniMax H3-Image doesn't use negative prompts.
  • Describe a look instead of naming a studio or artist.

Build it with your coding agent

If you'd rather describe the app than write it, a coding agent can build its own version of the booth for you. Connect the Runpod MCP server so your agent can work with your Pods:

npx @runpod/mcp-server@latest add

Then give it a prompt like this one, and change it to describe the app you want:

Build a small web app that turns a photo into a cartoon using MiniMax H3-Image
in ComfyUI running on a Runpod Pod.

- Deploy the ComfyUI template (0.45.0 or newer) on a GPU with at least 80 GB of VRAM
- Download the INT8 MiniMax H3-Image model files listed in the ComfyUI MiniMax H3-Image edit template
- Use the image_minimax_h3_image_edit workflow in API format
- Let the user upload a photo and pick a style; keep each style as a short instruction in a JSON file
- Send requests to ComfyUI's /upload/image, /prompt, /history and /view endpoints with a Bearer token
- Show the original and the result side by side with Download and Share buttons
- Terminate the Pod when I say I'm done

Clean up and keep building

When you're finished, terminate the Pod from the console. A stopped Pod still bills for its disk. Before you use the model, read the MiniMax-H3-Image Community License. It doesn't currently cover the US, EU, UK, or South Korea without written authorization from MiniMax.

From here, you could build on what you have: add a style for your family's traditions, batch-convert an entire album, or put the app on a Pod with its own port so friends can try it on their phones. If you build your own version or make a holiday cartoon, share it with us on Discord in the #built-on-runpod channel. 🎄

Build what’s next.

Build, train, and scale AI workloads on Runpod with cloud GPUs, Serverless, and Clusters.

Star field background