Quick Start
Generate your first video with MiniStudio in under 5 minutes.
Step 1: Set Up Credentials
MiniStudio supports multiple providers. For this guide, we'll use the Mock provider (no API keys required).
# For Vertex AI (optional)
export GOOGLE_API_KEY="your-key-here"Step 2: Create Your First Script
Create a file called first_video.py:
import asyncio
from ministudio import VideoOrchestrator, MockVideoProvider
async def main():
# Initialize the provider
provider = MockVideoProvider()
orchestrator = VideoOrchestrator(provider)
# Define your shot
from ministudio import VideoGenerationRequest
request = VideoGenerationRequest(
prompt="A lone researcher discovers a glowing orb in a dark laboratory",
duration_seconds=8,
aspect_ratio="16:9"
)
# Generate the video
result = await orchestrator.generate_shot(request)
if result.success:
print(f"Video saved to: {result.video_path}")
else:
print(f"Error: {result.error}")
if __name__ == "__main__":
asyncio.run(main())Step 3: Run Your Script
python first_video.pyCongratulations! You've generated your first video with MiniStudio.
What's Next?
- Character Consistency - Learn how to maintain character identity
- Multi-Shot Sequences - Create longer productions
- API Reference - Explore all available options