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.Authentication
Bearer YOUR_API_KEY
Request Body
- 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"
- Maximum file size: 10MB
- Must be accessible via HTTPS
"https://example.com/input-video.mp4"
- 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"
- Text will appear in the bottom corner of the video
- Supports alphanumeric characters and basic symbols
- Recommended length: 1-20 characters for optimal visibility
"kie.ai"
false
(default): Global S3/R2 storage - optimal for international userstrue
: Alibaba Cloud OSS storage - recommended for users in China
false
16:9
, 9:16
, 4:3
, 3:4
, 1:1
, 21:9
.9:16
for mobile vertical, 16:9
for desktop/widescreen).16:9
123456
https://example.com/reference.jpg
Code Examples
Response Format
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
Error Responses
- Missing required parameters (
prompt
orvideoUrl
) - Invalid video URL format
- Malformed JSON in request body
Next Steps
After successfully creating a video generation task, you have several options:Monitor Task Status
taskId
to check generation progress:Get Task Details
Handle Callbacks (Recommended)
callBackUrl
, implement a webhook endpoint to receive completion notifications:Callback Implementation
Download and Process Results
Best Practices
Optimizing Image Selection
Optimizing Image Selection
- 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
- 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
- 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
- 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
uploadCn
setting 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
Callback Guide
Authorizations
All APIs require authentication via Bearer Token.
Get API Key:
- Visit API Key Management Page to get your API Key
Usage: Add to request header: Authorization: Bearer YOUR_API_KEY
Note:
- Keep your API Key secure and do not share it with others
- If you suspect your API Key has been compromised, reset it immediately in the management page
Body
Descriptive text that guides the AI video generation. Be specific about subject, action, style, and setting. Describes how to animate or modify the reference image content.
"A majestic eagle soaring through mountain clouds at sunset with cinematic camera movement"
Reference video URL to base the video-to-video generation on. The AI will transform and enhance this video according to the prompt.
"https://example.com/input-video.mp4"
The URL to receive AI video generation task completion updates.
- System will POST task status and results to this URL when video generation completes
- Callback includes generated video URLs, cover images, and task information
- Your callback endpoint should accept POST requests with JSON payload containing video results
- For detailed callback format and implementation guide, see Aleph Video Generation Callbacks
- Alternatively, use the Get Aleph Video Details endpoint to poll task status
"https://api.example.com/callback"
Optional watermark text content. An empty string indicates no watermark, while a non-empty string will display the specified text as a watermark in the video.
"kie.ai"
Upload method selection. Default value is false (S3/R2), set to true for Alibaba Cloud OSS upload, set to false for overseas R2 server upload.
false
Video aspect ratio.
16:9
, 9:16
, 4:3
, 3:4
, 1:1
, 21:9
"16:9"
Random seed. Set for reproducible generation.
123456
Reference image URL to influence the style or content of the output.
"https://example.com/reference.jpg"
Response
Request successful
Response status code
- 200: Success - Request has been processed successfully
- 401: Unauthorized - Authentication credentials are missing or invalid
- 404: Not Found - The requested resource or endpoint does not exist
- 422: Validation Error - The request parameters failed validation checks.The request parameters are incorrect, please check the parameters.
- 451: Unauthorized - Failed to fetch the image. Kindly verify any access limits set by you or your service provider.
- 455: Service Unavailable - System is currently undergoing maintenance
- 500: Server Error - An unexpected error occurred while processing the request
200
, 401
, 404
, 422
, 451
, 455
, 500
Error message when code != 200
"success"