Skip to main content
This guide shows you how to use the firstFrameImageUrl field to control the starting frame of an AI-generated video clip. By providing an image URL, the AI model generates a video that begins from your image and transitions into the motion described in your prompt.

What You Will Learn

First Frame Control

Set a specific image as the starting frame of your AI video

Seamless Transitions

Create videos that begin from a known visual state

Creative Control

Combine first frame images with text prompts for precise results

Validation Rules

Understand when and how to use first frame images correctly

Before You Begin

Make sure you have:

How It Works

When you provide firstFrameImageUrl in the aiVisual object:
  1. The AI model receives your image as the starting point
  2. The model generates a video clip that begins from this image
  3. The video transitions from the static image into the motion described by your prompt (or auto-generated prompt from the story text)
  4. The result is a video that feels like a natural extension of the provided image
firstFrameImageUrl is only available when background.type is "video". For image generation, use referenceImageUrl instead.

Configuration

Add firstFrameImageUrl to the aiVisual object with a valid image URL:
firstFrameImageUrl cannot be used together with referenceImageUrls. Use one or the other, not both.

Examples

Example 1: Single Story Without Prompt

One scene with a story paragraph and a first frame image. The system splits the story into multiple scenes and auto-generates prompts. The first frame image controls the starting visual of the video.

Example 2: Single Story with Creative Direction

Same as Example 1, but with a prompt that acts as creative direction for the entire video. Since the story is split into multiple scenes, the prompt guides the overall visual tone rather than describing a specific scene. A good creative direction prompt follows this structure: [Action/Movement] + [Scene/Environment] + [Camera Technique] + [Visual Style].

Example 3: Multiple Scenes with Prompts

Three separate scenes, each with a one-sentence story, a scene-specific prompt, and its own first frame image.

Example 4: Multiple Scenes Without Prompts

Three separate scenes, each with a one-sentence story and its own first frame image. No prompts are provided, so the system auto-generates a visual prompt from each scene’s story text.

Tracking AI Credits Used

When your video includes AI-generated visuals, the job response includes an aiCreditsUsed field that reports the total AI credits consumed across all scenes. This field is present only when at least one scene used aiVisual configuration.
Use this value to track credit consumption and manage your AI credit budget. For detailed job response documentation, refer to the Get Storyboard Preview Job or Get Video Render Job API reference.

Best Practices

  • Use high-quality, well-composed images as your first frame
  • Ensure the image resolution is appropriate for your video’s aspect ratio
  • Avoid images with heavy text overlays, as AI may distort them during animation
  • Use images that have natural elements the AI can animate (for example, clouds, water, people)
Your prompt should describe the motion and transition from the static image, not the image itself:
  • Good: “Camera slowly zooms out revealing the surrounding environment”
  • Poor: “A laptop on a desk” (describes what is already in the image)
The AI already has the image as context. Focus your prompt on what should happen next.
  • The image URL must be publicly accessible (no authentication required)
  • Use direct image URLs (not page URLs that contain images)
  • Supported formats include JPEG, PNG, and WebP

Troubleshooting

Cause: firstFrameImageUrl is used with type: "image".Resolution:
  1. Change type to "video" if you want to generate a video clip starting from your image
  2. For image generation, use referenceImageUrl instead
Cause: Both firstFrameImageUrl and referenceImageUrls are provided in the same scene.Resolution:
  1. Choose one approach: firstFrameImageUrl to control the starting frame, or referenceImageUrls to guide style
  2. Remove the field you do not need
Cause: The AI model may interpret the image differently depending on the prompt and model used.Resolution:
  1. Write a prompt that describes the desired motion from the image, not the image itself
  2. Try a different model for better image-to-video fidelity
  3. Ensure the image URL is accessible and returns a valid image

Next Steps

Visual Continuity

Create seamless transitions between consecutive scenes

Reference Image for Images

Guide AI image generation with a reference image

Reference Images for Videos

Guide AI video generation with reference images

AI-Generated Video Clips

Learn the basics of AI video clip generation

API Reference

Render Storyboard Video

Direct video rendering with AI visuals

Create Storyboard Preview

Create preview before rendering