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
Bearer token for API authentication. Get your API key from the API Key Management Page.Format:
Bearer YOUR_API_KEYRequest Body
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
"Transform into a dreamy watercolor painting style with soft flowing movements"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
"https://example.com/input-video.mp4"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
"https://api.example.com/webhook/aleph-callback"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
"apikley"Storage location selection for the generated video.Options:
false(default): Global S3/R2 storage - optimal for international userstrue: Alibaba Cloud OSS storage - recommended for users in China
falseOptional video aspect ratio. One of:
16:9, 9:16, 4:3, 3:4, 1:1, 21:9.Example: 16:9Optional random seed for reproducible generation. Use the same seed to get consistent results across runs.Example:
123456Optional reference image URL (URI). Influences the style or content of the output.Example:
https://example.com/reference.jpgCode Examples
Response Format
Status code indicating the result of the request
200: Success - Task created successfully400: Bad Request - Invalid parameters401: Unauthorized - Invalid API key422: Validation Error - Parameter validation failed451: Image Access Error - Failed to fetch reference image500: Server Error - Internal error occurred
Human-readable message describing the response status
Response data containing task information
Error Responses
- 400 Bad Request
- 422 Validation Error
- 451 Image Access Error
- Missing required parameters (
promptorvideoUrl) - 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
Optimizing Image Selection
Optimizing Image Selection
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
- 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
Crafting Effective Prompts
Crafting Effective Prompts
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)
- “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”
Error Handling and Retry Logic
Error Handling and Retry Logic
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
Production Deployment Tips
Production Deployment Tips
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
- 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
- Choose appropriate
uploadCnsetting based on your user base - Plan for the 14-day video retention period
- Implement automatic download systems for important content
Related Endpoints
Get Task Details
Check generation status and retrieve video URLs
Callback Guide
Implement webhooks for async notifications
Need Help? Contact our support team at [email protected] 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