Ducklygen CLI
Run any Ducklygen model from your terminal or a coding agent. Every render is priced before it starts and drawn from the same balance as the studio.
Scripts and CIEvery field of a model is a flag; a local file is uploaded for you.
JSON on stdoutOne JSON document per run, progress and errors on stderr, a non-zero exit on failure.
Coding agentsA skill file teaches your agent to check the price first and cap it.
- 1
Install the CLI
Install the command-line tool with npm, then sign in with your API key.
npm i -g ducklygen - 2
Create an API key
Sign in with your email, open Settings, API keys and create a key. Top up from €3 in Billing.
ducklygen login ducklygen whoami - 3
Make your first render
Pick a model ID from the catalog and send a prompt. Add --dry-run to see the price without spending anything.
ducklygen models --type image ducklygen run <model> -p "duck on teal waves" --dry-run ducklygen run <model> -p "duck on teal waves" -o ./out/
Command
ducklygen loginPaste your API key once; it is checked and savedducklygen whoamiThe key's name and your balanceducklygen models --type videoEvery video model with its starting priceducklygen run <model> -hA model's fields, fetched live: type, default, allowed valuesducklygen run <model> -p "<prompt>" -o ./out/Render and save the result in a folderducklygen run <model> -p "..." --dry-runThe exact price, without spending anythingducklygen run <model> -p "..." --max-price 0.50Refuse to run if the price is higherducklygen run <model> -p "..." --json -o ./out/One JSON result, ready for the next stepducklygen skill installTeach your coding agent to use the CLI