Create engaging videos from text prompts using state-of-the-art video generation models. Generate everything from short clips to longer sequences with precise control over motion, style, and content.
"A serene lake at dawn with camera slowly panning from left to right, revealing mountains in the background""Close-up shot of a rose with camera pulling back to reveal a garden, cinematic zoom out""Tracking shot following a bird flying through a forest, smooth camera movement"
"Morning coffee being poured into a cup, steam rising, time-lapse of the day passing through the window""A seed being planted, time-lapse of it growing into a tree, seasons changing""City street during day transitioning to night with lights turning on"
"Waves crashing against rocks on a stormy coastline, dramatic water movement, high-speed capture""Dancer performing ballet moves in a studio, graceful movements, slow motion""Chef preparing a meal, hands moving quickly, dynamic cooking actions"
# Use custom LoRA for specific styleresponse = requests.post( "https://api.tensorone.ai/v2/ai/text-to-video", json={ "prompt": "A knight on horseback riding through a medieval village", "model": "zeroscope-v2", "loraModels": [ { "loraId": "lora_medieval_style_123", "weight": 0.8 } ], "duration": 4.0 })
# Generate multiple variationsbatch_prompts = [ "A cat sitting by a window watching rain", "A cat playing with a toy mouse indoors", "A cat sleeping peacefully on a couch"]video_ids = []for prompt in batch_prompts: response = requests.post( "https://api.tensorone.ai/v2/ai/text-to-video", headers={"Authorization": "Bearer YOUR_API_KEY"}, json={ "prompt": prompt, "model": "zeroscope-v2", "duration": 3.0, "seed": None # Random seed for variation } ) video_ids.append(response.json()['videoId'])print(f"Started generation of {len(video_ids)} videos")
Generated videos are available in multiple formats:
MP4: Standard format with H.264 encoding
WebM: Web-optimized format
GIF: Animated GIF for web use (limited duration)
Copy
# Download video in different formatsformats = ['mp4', 'webm', 'gif']for format_type in formats: download_url = f"https://api.tensorone.ai/v2/ai/videos/{video_id}/download?format={format_type}" response = requests.get( download_url, headers={"Authorization": "Bearer YOUR_API_KEY"} ) with open(f'generated_video.{format_type}', 'wb') as f: f.write(response.content)
Be Specific: Include details about camera movement, lighting, and style
Optimize Duration: Shorter videos (3-5 seconds) generate faster and cost less
Motion Control: Adjust motionStrength based on desired level of action
Quality Settings: Use higher steps (25-35) for final productions
Seed Management: Save seeds for consistent style across multiple videos
Format Selection: Use MP4 for highest quality, WebM for web, GIF for social media
Video generation typically takes 2-5 minutes depending on duration, resolution, and complexity. Longer videos may take up to 10 minutes to complete.
For best results, describe the scene, action, camera movement, and visual style in your prompt. The more specific your description, the better the generated video will match your vision.