mirror of
https://github.com/MervinPraison/PraisonAI.git
synced 2026-11-07 12:47:55 -10:00
- Docstrings list Veo 3.1 Standard/Fast/Lite (Gemini preview + Vertex GA IDs) - Change examples from veo-3.0-generate-preview to veo-3.1-generate-preview - Mark Veo 2.0 / 3.0 IDs as deprecated (not recommended) - Document Veo 3.1 interpolation (last_frame=, reference_images=) via existing **kwargs passthrough instead of adding new params (keeps surface lightweight) - Brief auth + pricing note (API USD/sec vs Flow credits) - Update tests and example to 3.1 IDs Co-authored-by: MervinPraison <[email protected]>
19 lines
506 B
Python
19 lines
506 B
Python
# praisonai: skip=true
|
|
from praisonaiagents import VideoAgent
|
|
|
|
agent = VideoAgent(llm="gemini/veo-3.1-generate-preview")
|
|
|
|
# Generate video
|
|
video = agent.generate("A sunset timelapse", seconds="8", size="1920x1080")
|
|
print(f"Started: {video.id}")
|
|
|
|
# Wait and download
|
|
completed = agent.wait_for_completion(video.id)
|
|
if completed.status == "completed":
|
|
agent.download(video.id, "sunset.mp4")
|
|
|
|
# List all videos
|
|
videos = agent.list()
|
|
|
|
# Models: openai/sora-2, gemini/veo-3.1-generate-preview, azure/sora-2
|