File size: 825 Bytes
457734a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | """
Veo 3.1 Cinematic Video Generation API Example via NexaAPI
Get your free API key at: https://nexa-api.com
Install: pip install nexaapi
"""
from nexaapi import NexaAPI
# Initialize client - get your key at https://nexa-api.com
client = NexaAPI(api_key='YOUR_API_KEY')
# Generate a cinematic video
video = client.videos.generate(
model='veo-3.1',
prompt='Aerial drone shot of a mountain range at golden hour, cinematic 4K quality',
duration=8,
resolution='1080p'
)
print("Veo 3.1 - Generated Cinematic Video URL:")
print(video.data[0].url)
# Brand film
brand_video = client.videos.generate(
model='veo-3.1',
prompt='Ocean waves crashing on a rocky coastline, cinematic slow motion, golden hour',
duration=10,
resolution='1080p'
)
print("\nBrand Film URL:")
print(brand_video.data[0].url)
|