askill
veo-reference-video

veo-reference-videoSafety 100Repository

Generate video with consistent subject appearance using reference images via fal.ai Veo 3.1. Use when the user wants to create a video featuring specific people, objects, or characters that should look consistent throughout. Supports multiple reference images for better subject consistency.

1 stars
1.2k downloads
Updated 2/15/2026

Package Files

Loading files...
SKILL.md

Veo 3.1 Reference-to-Video

Generate videos with consistent subject appearance using reference images via Google DeepMind's Veo 3.1 model on fal.ai.

Prerequisites

  • FAL_KEY environment variable must be set (typically in ~/.zshrc)

API Endpoint

POST https://fal.run/fal-ai/veo3.1/reference-to-video

Parameters

Required

  • prompt (string): Text description of the video scene and action
  • image_urls (array of strings): URLs of reference images for consistent subject appearance

Optional

ParameterTypeDefaultOptions
durationstring"8s""8s"
resolutionstring"720p""720p", "1080p"
generate_audiobooleantrueEnable/disable audio generation

Usage

cURL

curl --request POST \
  --url https://fal.run/fal-ai/veo3.1/reference-to-video \
  --header "Authorization: Key $FAL_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "prompt": "The character walks through a sunny park, looking around curiously",
    "image_urls": [
      "https://example.com/character-front.jpg",
      "https://example.com/character-side.jpg"
    ],
    "duration": "8s",
    "resolution": "1080p",
    "generate_audio": true
  }'

Python

import fal_client

result = fal_client.subscribe(
    "fal-ai/veo3.1/reference-to-video",
    arguments={
        "prompt": "The character walks through a sunny park, looking around curiously",
        "image_urls": [
            "https://example.com/character-front.jpg",
            "https://example.com/character-side.jpg"
        ],
        "duration": "8s",
        "resolution": "1080p",
        "generate_audio": True
    }
)

# Access the generated video URL
video_url = result["video"]["url"]
print(f"Generated video: {video_url}")

JavaScript

import { fal } from "@fal-ai/client";

const result = await fal.subscribe("fal-ai/veo3.1/reference-to-video", {
  input: {
    prompt: "The character walks through a sunny park, looking around curiously",
    image_urls: [
      "https://example.com/character-front.jpg",
      "https://example.com/character-side.jpg"
    ],
    duration: "8s",
    resolution: "1080p",
    generate_audio: true
  }
});

console.log("Generated video:", result.video.url);

Response Format

{
  "video": {
    "url": "https://storage.googleapis.com/.../output.mp4"
  }
}

Examples

  1. Character video:

    • References: Multiple angles of a character
    • Prompt: "The character runs through a forest, jumping over fallen logs"
  2. Product showcase:

    • References: Product photos from different angles
    • Prompt: "The product rotates on a display stand with dramatic lighting"
  3. Pet video:

    • References: Photos of a pet from various angles
    • Prompt: "The dog plays fetch in a backyard, running and jumping"
  4. Avatar animation:

    • References: Avatar/character design images
    • Prompt: "The avatar waves hello and then starts dancing"

Tips

  • Provide multiple reference images from different angles for better consistency
  • Use clear, well-lit reference images
  • Describe both the scene and the subject's actions in the prompt
  • More reference images generally lead to better subject consistency
  • Works best with distinct, recognizable subjects

Error Handling

ErrorCauseSolution
401 UnauthorizedInvalid FAL_KEYVerify key at fal.ai dashboard
429 Too Many RequestsRate limit exceededWait 60 seconds, retry
400 Bad RequestInvalid image URLsEnsure all reference URLs are accessible
500 Server ErrorAPI temporary issueRetry after 30 seconds
TimeoutVideo generation taking too longUse 720p or fewer references

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

95/100Analyzed 2/19/2026

High-quality technical reference skill for fal.ai Veo 3.1 reference-to-video API. Provides comprehensive documentation including API endpoint, parameters with defaults, working code examples in 3 languages, response format, practical examples for different use cases, tips, and detailed error handling. Includes 'when to use' guidance in description. Has tags for discoverability. Well-structured and immediately actionable for developers. No internal-only signals - this is a reusable external API skill.

100
95
90
95
95

Metadata

Licenseunknown
Version-
Updated2/15/2026
Publishermajiayu000

Tags

apiprompting