cli.
Run any model from a shell, a CI job or a coding agent. Every render is priced before it starts and drawn from the same balance.
coming soonThe Opencran CLI is on its way. This page previews how it will work; until then, use the API.
$
npm i -g @opencran/cli01 · CLIcoming soon
Render from the terminal
Run any model from a shell, a CI job or a coding agent. Every render is priced before it starts and drawn from the same balance.
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.
CommandWhat it does
opencran loginPaste your API key once; it is checked and savedopencran whoamiThe key's name and your balanceopencran models --type videoEvery video model with its starting priceopencran run <model> -hA model's fields, fetched live: type, default, allowed valuesopencran run <model> -p "<prompt>" -o ./out/Render and save the result in a folderopencran run <model> -p "..." --dry-runThe exact price, without spending anythingopencran run <model> -p "..." --max-price 0.50Refuse to run if the price is higheropencran run <model> -p "..." --json -o ./out/One JSON result, ready for the next stepopencran skill installTeach your coding agent to use the CLI02 · Quickstart
First render in three steps
- 01Create an API keySign in with your email, open Settings, API keys and create a key. Top up from €3 in Billing.
export OPENCRAN_API_KEY="oc_live_..." - 02The CLI is coming sooncoming soonThe command-line tool is not published yet. Until it is, everything runs in the studio.
- 03Make your first renderPick a model ID from the catalog and send a prompt. Add --dry-run to see the price without spending anything.
opencran run luma/uni-v1/text-to-image -p "violet neon fox" -o ./out/