const main = async () => { const response = await fetch('https://api.aimlapi.com/v2/generate/video/google/generation', { method: 'POST', headers: { Authorization: 'Bearer <YOUR_API_KEY>', 'Content-Type': 'application/json', }, body: JSON.stringify({ model: 'veo2', prompt: 'A DJ on the stand is playing, around a World War II battlefield, lots of explosions, thousands of dancing soldiers, between tanks shooting, barbed wire fences, lots of smoke and fire, black and white old video: hyper realistic, photorealistic, photography, super detailed, very sharp, on a very white background', aspect_ratio: '16:9', duration: '5', }), }).then((res) => res.json()); console.log('Generation:', response);};main()
AI Playground
Test all API models in the sandbox environment before you integrate. We provide more than 200 models to integrate into your app.
Veo2 is Google’s cutting-edge AI model designed to generate highly realistic and cinematic video content from textual prompts or a combination of text and images. Leveraging advanced machine learning techniques, Veo2 excels in creating videos with natural motion, realistic physics, and professional-grade visual fidelity.
Key Features:
Text-to-Video (T2V): Converts descriptive text into dynamic video content.
High Resolution Support: Generates videos up to 4K resolution for professional-grade outputs.
Multimodal Input Encoding: Integrates text and image inputs seamlessly for creative flexibility.
Filmmaking and storyboarding with dynamic visuals.
Educational videos for interactive learning experiences.
Content creation for social media platforms
Language Support:
Veo2 supports multilingual text prompts, including English and other major languages.
Technical Details
Architecture:
Veo2 employs a hybrid architecture combining:
UL2 Encoder: Processes textual prompts into latent embeddings for video generation.
Latent Diffusion Model: Converts the embedded representations into compressed video frames efficiently while maintaining high visual fidelity.
Training Data:
The model was trained on a massive dataset derived from YouTube’s video library and other proprietary sources, ensuring diversity in motion patterns, visual styles, and real-world physics.
Diversity and Bias:
Google has implemented safeguards to minimize biases in generated content by diversifying the training data across cultures and contexts. However, some biases may persist due to the inherent limitations of the dataset.
Performance Metrics:
Usage
Code Samples
The model is available on the AI/ML API platform as "Veo2 Text-to-Video" .
Generate a video
const main = async () => { const response = await fetch('https://api.aimlapi.com/v2/generate/video/google/generation', { method: 'POST', headers: { Authorization: 'Bearer <YOUR_API_KEY>', 'Content-Type': 'application/json', }, body: JSON.stringify({ model: 'veo2', prompt: 'A DJ on the stand is playing, around a World War II battlefield, lots of explosions, thousands of dancing soldiers, between tanks shooting, barbed wire fences, lots of smoke and fire, black and white old video: hyper realistic, photorealistic, photography, super detailed, very sharp, on a very white background', aspect_ratio: '16:9', duration: '5', }), }).then((res) => res.json()); console.log('Generation:', response);};main()
Params:
prompt [str]: The text prompt describing how the image should be animated
aspect_ratio [9:16, 16:9]: Aspect ratio of the generated video
duration [5, 6, 7, 8]: The duration of the generated video in seconds
Google has integrated safety filters into Veo2 to prevent the generation of harmful or inappropriate content. Developers are encouraged to use the model responsibly in alignment with ethical guidelines for AI-generated media.
Licensing
Veo2 is currently available through Google Labs’ VideoFX platform under a commercial license
We use cookies to enhance your browsing experience and analyze site traffic. Your privacy is important to us: we do not sell or share your personal data, and your information is securely stored. By continuing to use our site, you agree to our use of cookies. Learn more about how we handle your data in our Privacy Policy.