Skip to main content

Generate Aleph Video

Edit and transform existing footage with text-guided video-to-video using Runway Aleph.

Overview

Runway Aleph is an in-context video model for professional video-to-video editing. This endpoint applies text-driven transformations—object addition/removal, relighting, style changes, and new camera/viewpoints—while preserving the motion and timing of your source clip. Current limitation: outputs are capped at 5 seconds; if your input video exceeds 5 seconds, only the first 5 seconds will be processed.
The Runway Aleph API requires both a text prompt and a reference video URL to generate transformed videos. The AI will modify and enhance the provided video according to your text description.

Authentication

Authorization
string
required
Bearer token for API authentication. Get your API key from the API Key Management Page.Format: Bearer YOUR_API_KEY

Request Body

prompt
string
required
Descriptive text that guides how the reference video should be transformed. Be specific about movements, camera angles, and visual effects you want to see in the generated video.Best Practices:
  • Focus on transformations and style changes rather than describing what’s already in the video
  • Include camera movement descriptions (e.g., “slow zoom in”, “orbital rotation”)
  • Add temporal elements (e.g., “gradually”, “smoothly”, “suddenly”)
  • Specify lighting and atmosphere changes if desired
Example: "Transform into a dreamy watercolor painting style with soft flowing movements"
videoUrl
string
required
URL of the reference video to transform. The video should be publicly accessible via HTTPS.Requirements:
  • Maximum file size: 10MB
  • Must be accessible via HTTPS
Example: "https://example.com/input-video.mp4"
callBackUrl
string
Optional webhook URL to receive completion notifications. When provided, the system will POST task results to this URL when video generation completes.Callback Benefits:
  • Eliminates need for polling task status
  • Immediate notification when generation completes
  • Includes complete video information in the callback payload
For detailed callback format and implementation guide, see Aleph Video Generation Callbacks.Example: "https://api.example.com/webhook/aleph-callback"
waterMark
string
Optional watermark text to display on the generated video. Leave empty or omit for no watermark.Details:
  • Text will appear in the bottom corner of the video
  • Supports alphanumeric characters and basic symbols
  • Recommended length: 1-20 characters for optimal visibility
Example: "apikley"
uploadCn
boolean
Storage location selection for the generated video.Options:
  • false (default): Global S3/R2 storage - optimal for international users
  • true: Alibaba Cloud OSS storage - recommended for users in China
Example: false
aspectRatio
string
Optional video aspect ratio. One of: 16:9, 9:16, 4:3, 3:4, 1:1, 21:9.
Choose an aspect ratio that matches your target platform (e.g., 9:16 for mobile vertical, 16:9 for desktop/widescreen).
Example: 16:9
seed
integer
Optional random seed for reproducible generation. Use the same seed to get consistent results across runs.Example: 123456
referenceImage
string
Optional reference image URL (URI). Influences the style or content of the output.Example: https://example.com/reference.jpg

Code Examples

Response Format

code
integer
Status code indicating the result of the request
  • 200: Success - Task created successfully
  • 400: Bad Request - Invalid parameters
  • 401: Unauthorized - Invalid API key
  • 422: Validation Error - Parameter validation failed
  • 451: Image Access Error - Failed to fetch reference image
  • 500: Server Error - Internal error occurred
msg
string
Human-readable message describing the response status
data
object
Response data containing task information

Error Responses

Common causes:
  • Missing required parameters (prompt or videoUrl)
  • Invalid video URL format
  • Malformed JSON in request body

Next Steps

After successfully creating a video generation task, you have several options:
1

Monitor Task Status

Use the returned taskId to check generation progress:

Get Task Details

Complete guide to checking task status and retrieving results
2

Handle Callbacks (Recommended)

If you provided a callBackUrl, implement a webhook endpoint to receive completion notifications:

Callback Implementation

Learn how to handle callback notifications efficiently
3

Download and Process Results

Once generation completes, download your video and thumbnail:

Best Practices

Choose High-Quality Source Images:
  • Use images with clear subjects and good lighting
  • Ensure minimum resolution of 512x512 pixels
  • Avoid heavily compressed or low-quality images
  • Select images with clear focal points for better animation results
Composition Considerations:
  • Images with central subjects work best for animation
  • Consider how camera movements will affect the composition
  • Avoid images with too much visual complexity in backgrounds
Focus on Movement and Action:
  • Describe how elements in the image should move or change
  • Include camera movement descriptions (zoom, pan, rotate)
  • Specify the pace and style of movements (slow, dramatic, smooth)
Examples of Good Prompts:
  • “The eagle spreads its wings and soars upward with majestic slow-motion flight”
  • “Camera slowly pulls back revealing the vast mountain landscape behind the subject”
  • “Gentle wind causes the leaves to rustle while sunlight filters through dynamically”
Implement Robust Error Handling:
Handle Different Error Types:
  • Network errors: Retry with exponential backoff
  • Authentication errors: Check and refresh API key
  • Validation errors: Fix parameters before retry
  • Rate limiting: Implement proper backoff strategies
Use Callbacks for Efficiency:
  • Implement webhook endpoints instead of polling
  • Ensure your callback URL is publicly accessible and secure
  • Handle callback failures with proper logging
Monitor API Usage:
  • Track your API usage and credit consumption
  • Implement rate limiting on your end to avoid hitting API limits
  • Log all requests and responses for debugging
Storage Considerations:
  • Choose appropriate uploadCn setting based on your user base
  • Plan for the 14-day video retention period
  • Implement automatic download systems for important content

Get Task Details

Check generation status and retrieve video URLs

Callback Guide

Implement webhooks for async notifications

Need Help? Contact our support team at support@apikley.ru for assistance with the Runway Alpeh API.
Rate limits and quotas are enforced by Apikley and may differ from upstream providers.

OpenAPI

runway-api/runway-aleph-api.json post /api/v1/aleph/generate

To find navigation and other pages in this documentation, fetch the llms.txt file at: https://docs.apikley.ru/llms.txt