Reference
Environment variables, credit costs, gotchas, and a quick reference cheatsheet.
Environment Variables
Configure Melies behavior through environment variables. These take precedence over stored config files.
| Variable | Description |
|---|---|
MELIES_TOKEN | JWT auth token. Overrides stored config. |
MELIES_API_URL | API base URL (default: https://melies.co/api) |
Credit Costs
Credit costs depend on the model and preset you use. See the Credit System section in Getting Started for preset pricing, or the Models page for per-model costs.
| Utility | Credits |
|---|---|
| Upscale (esrgan, 2x) | 3 |
| Upscale (clarity, 2x) | 8 |
| Remove background | 3 |
| Pipeline | image + video combined |
For plans and credit bundles, see Pricing.
Gotchas
Without --sync, commands return an asset ID immediately. Use melies status to poll for completion.
Expect 30 seconds to 3 minutes depending on model and duration. Use --sync to wait automatically.
If generation fails, credits are refunded automatically.
--actor Mei and --actor mei both work.
--lighting golden --mood romantic --art-style ghibli all apply to one generation.
Poster --style uses preset poster designs. --art-style is a visual rendering option for any command.
The pipeline command waits for both image and video steps by default.
Useful for debugging what modifiers get applied before spending credits.
If you get 401 errors, re-authenticate with melies login.
Images timeout at 2 min, videos at 5 min. For longer generation, use async + melies status.
Max 1000 requests per 15 minutes.
Quick Reference
All commands at a glance. Copy and adapt for your workflow.
