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:- A Pictory API key (get one here)
- Node.js or Python installed on your machine
- Sufficient AI credits in your account
- A publicly accessible image URL to use as the first frame
- Familiarity with AI-generated background video clips
How It Works
When you providefirstFrameImageUrl in the aiVisual object:
- The AI model receives your image as the starting point
- The model generates a video clip that begins from this image
- The video transitions from the static image into the motion described by your prompt (or auto-generated prompt from the story text)
- 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
AddfirstFrameImageUrl to the aiVisual object with a valid image URL:
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 aprompt 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 anaiCreditsUsed field that reports the total AI credits consumed across all scenes. This field is present only when at least one scene used aiVisual configuration.
Best Practices
Choose the Right Image
Choose the Right Image
- 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)
Write Prompts That Complement the Image
Write Prompts That Complement the Image
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)
Ensure Image Accessibility
Ensure Image Accessibility
- 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
Error: firstFrameImageUrl Is Only Allowed When Type Is Video
Error: firstFrameImageUrl Is Only Allowed When Type Is Video
Cause:
firstFrameImageUrl is used with type: "image".Resolution:- Change
typeto"video"if you want to generate a video clip starting from your image - For image generation, use
referenceImageUrlinstead
Error: firstFrameImageUrl and referenceImageUrls Cannot Be Provided Together
Error: firstFrameImageUrl and referenceImageUrls Cannot Be Provided Together
Cause: Both
firstFrameImageUrl and referenceImageUrls are provided in the same scene.Resolution:- Choose one approach:
firstFrameImageUrlto control the starting frame, orreferenceImageUrlsto guide style - Remove the field you do not need
Generated Video Does Not Match the First Frame
Generated Video Does Not Match the First Frame
Cause: The AI model may interpret the image differently depending on the prompt and model used.Resolution:
- Write a prompt that describes the desired motion from the image, not the image itself
- Try a different model for better image-to-video fidelity
- 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
