Get Started
Authenticate yourself and submit your first MachGen generation task.
MachGen currently supports programmatic image and video generation via two approaches.
- REST API Endpoints
- Client Library (Python)
The core concept is the same: One submits a generation task, polls until it finishes, and downloads the result.
Tasks come in five types:
| Task type | What it does |
|---|---|
T2V | Text to video |
I2V | Image to video |
R2V | Reference (subject) to video |
T2I | Text to image |
I2I | Image editing |
See Available Models for which models support each type.
1. Get an API key
Required step
You need an API key regardless of which way you choose - API or client. The API key is associated with rate limiting and billing.
Open Profile -> API Keys, create a key, and copy it.
It has the form MGA_<key_id>:<secret> and is shown only once, so store it
securely.
Keep it secret
Your key authorizes billable generation against your wallet. Treat it like a password - never commit it or expose it in client-side code.