Video Models Overview

Create stunning videos from text descriptions, animate images, and process video content with cutting-edge AI video generation models.

Available Models

Kling AI (Kuaishou)

  • Kling AI Pro: Professional-grade video generation with 1080p output
  • Kling AI Standard: Balanced quality and speed for most use cases

Runway ML

  • Gen-3 Alpha: Latest generation with improved motion and consistency
  • Gen-2: Reliable video generation with good quality

Luma AI

  • Dream Machine: High-quality video generation from text and images
  • Dream Machine Turbo: Faster generation with reduced quality

Pika Labs

  • Pika 1.5: Creative video generation with artistic styles
  • Pika Base: Standard video generation model

Model Capabilities

Text-to-Video

Generate videos from text descriptions

Image-to-Video

Animate static images into videos

Video Extension

Extend existing videos with new content

Style Transfer

Apply different visual styles to videos

Video Generation API

Generate videos from text prompts or images:
POST /v1/videos/generations

Text-to-Video Example

curl -X POST "https://api.anyapi.ai/v1/videos/generations" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling-ai-pro",
    "prompt": "A serene mountain landscape at sunset with flowing clouds",
    "duration": 5,
    "resolution": "1080p",
    "fps": 24
  }'

Image-to-Video Example

import requests

# Upload image file
files = {'image': open('source_image.jpg', 'rb')}

data = {
    'model': 'runway-gen3',
    'prompt': 'The person in the image starts walking forward',
    'duration': 3,
    'motion_strength': 0.7
}

response = requests.post(
    "https://api.anyapi.ai/v1/videos/generations",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    files=files,
    data=data
)

Response Format

{
  "id": "vid_abc123",
  "object": "video",
  "created": 1589478378,
  "model": "kling-ai-pro",
  "status": "processing",
  "url": null,
  "thumbnail_url": null,
  "duration": 5,
  "resolution": "1080p",
  "fps": 24
}

Video Status API

Check the status of video generation:
GET /v1/videos/{video_id}
import requests
import time

def wait_for_video(video_id):
    while True:
        response = requests.get(
            f"https://api.anyapi.ai/v1/videos/{video_id}",
            headers={"Authorization": "Bearer YOUR_API_KEY"}
        )
        
        video = response.json()
        
        if video['status'] == 'completed':
            return video['url']
        elif video['status'] == 'failed':
            raise Exception(f"Video generation failed: {video.get('error')}")
        
        time.sleep(10)  # Wait 10 seconds before checking again

Model Comparison

ModelMax DurationResolutionStrengthsBest For
Kling AI Pro10s1080pQuality, realismProfessional content
Runway Gen-34s1280x768Motion consistencyCreative projects
Luma Dream Machine5s1024x576Speed, reliabilityRapid prototyping
Pika 1.53s1024x576Artistic stylesCreative videos

Advanced Features

Motion Control

Control the amount of motion in your videos:
{
  "model": "kling-ai-pro",
  "prompt": "A calm lake with gentle ripples",
  "motion_strength": 0.3,
  "duration": 5
}

Aspect Ratios

Different aspect ratios for various use cases:
  • 16:9: 1920x1080, 1280x720 (landscape)
  • 9:16: 1080x1920, 720x1280 (portrait/mobile)
  • 1:1: 1024x1024 (square/social media)
  • 4:3: 1024x768 (traditional)

Camera Movement

Specify camera movements in your prompts:
{
  "prompt": "A beautiful garden with camera slowly zooming in on a flower",
  "camera_movement": "zoom_in",
  "motion_strength": 0.5
}

Prompt Engineering

Best Practices

  1. Be specific about motion: “slowly”, “quickly”, “gently flowing”
  2. Describe camera movement: “camera pans left”, “zooming out”
  3. Set the scene context: lighting, time of day, weather
  4. Specify style: “cinematic”, “documentary style”, “artistic”

Example Prompts

Pricing

Video models are priced per second of generated content:
ModelResolutionPrice per Second
Kling AI Pro1080p$0.50
Kling AI Standard720p$0.30
Runway Gen-31280x768$0.40
Luma Dream Machine1024x576$0.25
Pika 1.51024x576$0.20
Additional costs may apply for:
  • Image-to-video conversions
  • Extended duration (>5 seconds)
  • Higher frame rates (>24fps)

Rate Limits

Video generation limits by plan:
PlanGenerations/HourDaily LimitMax Duration
Free3103s
Pro3010010s
EnterpriseCustomCustomCustom

Technical Specifications

Supported Input Formats

  • Images: PNG, JPEG, WebP (up to 20MB)
  • Video: MP4, MOV, AVI (for video extension)

Output Formats

  • Video: MP4 (H.264 codec)
  • Audio: AAC (if applicable)
  • Quality: Variable bitrate optimization

Processing Times

  • Text-to-video: 2-10 minutes depending on duration
  • Image-to-video: 1-5 minutes
  • Queue times: May vary during peak usage

Content Policy

Video generation must comply with our content policy:
  • No harmful, violent, or inappropriate content
  • Respect copyright and intellectual property
  • No generation of real people without consent
  • Commercial use allowed with proper licensing

Common Use Cases

Marketing & Advertising

Product demos, promotional videos, brand content

Social Media

Instagram Reels, TikTok content, YouTube shorts

Educational Content

Explainer videos, tutorials, visualizations

Creative Projects

Art installations, music videos, creative storytelling

Error Handling

Common error scenarios and solutions:

Getting Started