ERNIE-Image RunPod Cloud GPU Deployment Complete Guide: AI Text-to-Image Workflow Without Local Hardware

Jun 29, 2026

ERNIE-Image RunPod Cloud GPU Deployment Complete Guide: AI Text-to-Image Workflow Without Local Hardware

Abstract: No local GPU? Don't want to buy an expensive RTX 4090? The RunPod cloud GPU platform offers a highly cost-effective ERNIE-Image deployment solution. This article covers everything from account registration to ComfyUI configuration, GPU selection to cost optimization, providing a comprehensive guide to deploying ERNIE-Image Base and Turbo models on RunPod for pay-as-you-go AI text-to-image workflows.

Why Deploy ERNIE-Image on RunPod?

The 8B parameter ERNIE-Image model faces hardware barriers when running locally: BF16 precision requires approximately 29.5GB VRAM, exceeding most consumer-grade GPUs (such as the RTX 3090's 24GB or RTX 4070's 12GB). While quantized versions (GGUF, NVFP4) can run with lower VRAM, cloud deployment offers several advantages:

Core Advantages of RunPod

  1. Pay-as-you-go: You only pay while the GPU is running, no charges when paused/stopped
  2. Flexible GPU selection: From RTX 3090 (24GB, ~$0.37/hour) to A100 (80GB, ~$2.09/hour) to H100 (80GB, ~$3.89/hour)
  3. Pre-configured templates: One-click ComfyUI official template deployment, no manual environment setup needed
  4. Community Cloud is cheaper: Shared GPU marketplace offers more competitive pricing
  5. Serverless option: Serverless endpoint mode, pay per request, ideal for intermittent use

Cost Estimation

GPU VRAM Community Cloud Price/Hour Cost for 100 Hours/Month
RTX 3090 24GB ~$0.37 ~$37
RTX 4090 24GB ~$0.49 ~$49
A40 48GB ~$0.69 ~$69
A100 80GB 80GB ~$2.09 ~$209
H100 80GB ~$3.89 ~$389

💡 Cost-saving tip: For the ERNIE-Image Turbo quantized version, RTX 3090 Community Cloud (~$0.37/hour) is the most cost-effective choice.

Step 1: Register a RunPod Account

  1. Visit runpod.io and register an account
  2. Complete email verification
  3. Deposit a minimum of $5 to start using Community Cloud GPUs
  4. Credit card or cryptocurrency accepted for deposits

Step 2: Select GPU and Deploy Pod

GPU Selection Guide

Use Case Recommended GPU Reason
Lowest budget + Turbo quantized RTX 3090 Community Cloud 24GB VRAM, ~$0.37/hour
BF16 precision Base model A40 (48GB) 48GB VRAM, headroom for BF16
Fast inference + batch generation H100 Fastest inference speed, but higher cost
Balanced choice RTX 4090 24GB VRAM, faster than 3090

Deployment Steps

  1. Log into RunPod Console, navigate to "Pods" page
  2. Click "Deploy a Pod"
  3. Select GPU:
    • Set minimum VRAM in the left filter (recommend 24GB+)
    • Choose Community Cloud (cheaper) or Secure Cloud
  4. Select Template:
    • Search for "ComfyUI"
    • Choose official template runpod/comfyui:latest (most stable)
    • Or select community-maintained ComfyUI templates
  5. Configure Storage:
    • Container Disk: At least 50GB (for models)
    • Network Volume: Optional, for persistent storage
  6. Name the Pod and click "Deploy Pod"

Wait for Initialization

  • Pod initialization takes 1-3 minutes
  • Monitor progress in the "Logs" tab
  • Port 8188 shows green "Ready" when ready
  • Click the "ComfyUI" link to open the workspace

Step 3: Download ERNIE-Image Models

Required Model Files

ERNIE-Image requires the following files:

File Type Filename Size Source
Base Model ernie-image.safetensors ~16GB Comfy-Org/ERNIE-Image
Turbo Model ernie-image-turbo.safetensors ~8GB Comfy-Org/ERNIE-Image
PE Model ernie-image-pe.safetensors ~6GB Comfy-Org/ERNIE-Image
VAE flux2-vae.safetensors ~2GB Comfy-Org/ERNIE-Image

Download Methods

Method 1: Via JupyterLab (Recommended)

  1. Click "JupyterLab" on the Pod page to open terminal
  2. Navigate to model directory:
    cd /runpod-volume/models/checkpoints
    
  3. Download using HuggingFace CLI:
    huggingface-cli download Comfy-Org/ERNIE-Image --local-dir .
    

Method 2: Via ComfyUI Manager

  1. Click "Manager" in the ComfyUI interface
  2. Search for "ERNIE-Image"
  3. Click install button for automatic download

Method 3: Using Automated Scripts

Use deploy.promptingpixels.com to generate one-click install commands:

  1. Select ERNIE-Image models
  2. Set target platform to "RunPod"
  3. Copy the generated command
  4. Execute in RunPod terminal (replace API Token)

Step 4: Configure ComfyUI Workflows

ERNIE-Image Base Workflow

Base model (50 steps) for high-quality output:

[Load Checkpoint: ernie-image.safetensors]
    ↓
[CLIP Text Encode] → Input prompt
    ↓
[ERNIE-Image Diffusion Model] → 50 steps, CFG 7.0
    ↓
[VAE Decode: flux2-vae.safetensors]
    ↓
[Save Image] → 1024x1024 output

ERNIE-Image Turbo Workflow

Turbo model (8 steps) for rapid iteration:

[Load Checkpoint: ernie-image-turbo.safetensors]
    ↓
[CLIP Text Encode] → Input prompt
    ↓
[ERNIE-Image-Turbo Diffusion Model] → 8 steps, CFG 1.0-2.0
    ↓
[VAE Decode: flux2-vae.safetensors]
    ↓
[Save Image] → 1024x1024 output

Workflow with PE (Prompt Enhancer)

[Load PE Checkpoint: ernie-image-pe.safetensors]
    ↓
[PE CLIP Text Encode] → Short prompt
    ↓
[PE Output] → Expanded structured prompt
    ↓
[Main Model CLIP Text Encode] → Receives PE output
    ↓
[Diffusion Model] → Generate image
    ↓
[VAE Decode] → [Save Image]

Step 5: Batch Generation and API Integration

ComfyUI Batch Prompt Generation

Use ComfyUI's "Prompt Multi Batch" node for batch generation with different prompts:

  1. Create a text file containing multiple prompts
  2. Use "Load Text" node to read
  3. Connect to "Prompt Multi Batch" node
  4. Each prompt generates independently, output to separate folders

RunPod Serverless API Endpoint

For more automated workflows, deploy an API endpoint using RunPod Serverless:

  1. Create Serverless Endpoint:

    • Select "Serverless" in RunPod console
    • Create new Endpoint
    • Configure Docker image and GPU
  2. Python API Call:

    import requests
    

    ENDPOINT_ID = "your-endpoint-id"
    API_KEY = "your-api-key"

    response = requests.post(
    f"https://api.runpod.io/v1/endpoint/{ENDPOINT_ID}/run",
    headers={"Authorization": f"Bearer {API_KEY}"},
    json={
    "input": {
    "prompt": "a beautiful sunset over the ocean",
    "steps": 8,
    "cfg": 1.5
    }
    }
    )

    job_id = response.json()["id"]

    Check status and retrieve results

  3. Cost Optimization:

    • Set minimum/maximum worker count
    • Configure idle timeout for auto-scaling down
    • Use Spot GPUs for further cost reduction

Step 6: Cost Management and Optimization

Cost Control Strategies

  1. Pause vs Stop:

    • Pause: Preserves state, charges small storage fee (~$0.003/GB/day)
    • Stop & Terminate: Completely stops, zero cost
    • Short break → Pause; Extended absence → Terminate
  2. GPU Selection Optimization:

    • Experimental phase: RTX 3090 Community Cloud (~$0.37/hour)
    • Batch production: A40 or A100 (higher throughput/hour)
    • Occasional use: Serverless (pay per request)
  3. Model Selection Optimization:

    • Turbo quantized (FP8/GGUF) → Runs on 24GB GPU
    • Base BF16 → Requires 48GB+ GPU
    • Choose model version based on quality needs

Real Cost Scenarios

Scenario: Generate 100 product images weekly

  • GPU: RTX 3090 Community Cloud ($0.37/hour)
  • Per image: ~2 minutes (Turbo mode)
  • Total runtime: ~3.3 hours/week
  • Monthly cost: ~$49
  • Cost per image: ~$0.12

Scenario: Occasional design concept generation (20 images/month)

  • GPU: Serverless RTX 3090 (pay per request)
  • Monthly cost: ~$10-15
  • Cost per image: ~$0.50-0.75

Step 7: File Management and Output

Retrieving Generated Images

Method 1: FileBrowser

  • Default credentials: Username: admin / Password: adminadmin12
  • Path: runpod-volume > ComfyUI > output
  • Right-click to download images

Method 2: JupyterLab

  • Access the same directory via the left sidebar
  • Supports batch selection and download

Method 3: SFTP

  • Use FileZilla or WinSCP
  • Get connection config from Pod "Connections" panel

Data Persistence

  • Container Disk: Data lost when Pod terminates
  • Network Volume: Persistent storage across Pods
  • Recommended: Mount Network Volume at Pod creation for models and outputs

Troubleshooting Common Issues

Issue Cause & Resolution
OOM (VRAM insufficient) Upgrade GPU or use quantized model
Model load failure Verify file is in correct checkpoints directory
Port 8188 connection failed Wait for initialization or restart Pod
Cloudflare Bad Gateway Wait 60 seconds and refresh
Disk space full Increase volume size at Pod creation
ComfyUI crash Run kill -9 <pid> in terminal and restart

Summary

RunPod provides a flexible, economical cloud deployment solution for ERNIE-Image. Key takeaways:

  1. RTX 3090 Community Cloud is the most cost-effective entry point (~$0.37/hour)
  2. ComfyUI official template provides the most stable deployment experience
  3. Turbo quantized models run on 24GB VRAM GPUs
  4. Pause/Stop strategies effectively control costs
  5. Network Volume ensures models and outputs persist

Whether or not you own a local GPU, RunPod lets you launch an ERNIE-Image workflow in minutes, paying only for actual usage time.

References

ERNIE-Image Team