技能 设计创意 AI视频与图像生成工作流

AI视频与图像生成工作流

v20260423
runway-core-workflow-b
此工作流是专业的创意AI工具,专注于视频和图像的生成与处理。它支持图像动画化(Image-to-Video),能将静态图片赋予运动感;并支持视频到视频的风格转换(Video-to-Video),为现有视频添加艺术风格。适用于影视制作、数字艺术和所有需要高质量创意素材的场景。
获取技能
122 次下载
概览

Runway Core Workflow B

Overview

Image-to-video and video-to-video generation: animate still images and transform existing videos.

Prerequisites

  • Completed runway-core-workflow-a

Instructions

Step 1: Image-to-Video

from runwayml import RunwayML
client = RunwayML()

# Animate a still image
task = client.image_to_video.create(
    model='gen3a_turbo',
    prompt_image='https://your-cdn.com/landscape.jpg',  # URL to source image
    prompt_text='Camera slowly pans right revealing mountains, gentle wind in trees',
    duration=5,
)
result = task.wait_for_task_output()
print(f"Animated video: {result.output[0]}")

Step 2: Image-to-Video with Data URI

import base64

# Load local image as data URI
with open('photo.jpg', 'rb') as f:
    image_data = base64.b64encode(f.read()).decode()
    data_uri = f"data:image/jpeg;base64,{image_data}"

task = client.image_to_video.create(
    model='gen3a_turbo',
    prompt_image=data_uri,
    prompt_text='Subtle motion, gentle camera push in, atmospheric lighting',
    duration=5,
)

Step 3: Video-to-Video (Style Transfer)

# Transform an existing video with a new style
task = client.video_to_video.create(
    model='gen3a_turbo',
    prompt_video='https://your-cdn.com/input-video.mp4',
    prompt_text='Transform to watercolor painting style, soft colors, artistic brushstrokes',
)
result = task.wait_for_task_output()
print(f"Styled video: {result.output[0]}")

Step 4: Image Specifications

Supported formats: JPEG, PNG, WebP
Supported resolutions:
  - Gen-3 Alpha Turbo: 1280x768 or 768x1280
  - Input images are automatically resized
Max file size: 16MB (URL), varies for data URI

Output

  • Still images animated with motion prompts
  • Local images encoded as data URIs
  • Videos restyled with text prompts
  • Proper image format handling

Error Handling

Error Cause Solution
400 Invalid image Unsupported format Use JPEG, PNG, or WebP
413 Image too large File exceeds limit Resize to under 16MB
Poor animation quality Prompt doesn't describe motion Add camera/motion keywords
Style transfer too subtle Weak prompt Be more specific about target style

Resources

Next Steps

Error handling: runway-common-errors

信息
Category 设计创意
Name runway-core-workflow-b
版本 v20260423
大小 3.02KB
更新时间 2026-04-28
语言