unlucid ai Generation CLI
Create images and videos from scripts and check their status using your account credits.
Pass your API key in the Authorization header. Keep the key in a server environment or a local shell.
Install and sign in
Download the CLI and run it with Node.js 20 or later. Set the base URL to your running site.
Download CLIexport UNLUCID_URL='https://unlucidai.net'
export UNLUCID_API_KEY='YOUR_KEY'
node unlucid.mjs models
node unlucid.mjs credits
node unlucid.mjs quote request.json
node unlucid.mjs generate request.json job-001
node unlucid.mjs task TASK_ID --wait
node unlucid.mjs download TASK_ID output.pngSave your generation settings in request.json using the body shown in the API reference.
Use a unique job key for each generation. If a request times out, retry with the same key.
