Restory
Agent API DocsSections and machine-readable references

Reference

CLI

Use the Restory CLI when agents need local file upload, structured JSON output, and portable shell workflows.

Install

npm install -g @restory/cli

Commands

restory capabilities
restory credits
restory restore --method fast --file ./photo.jpg
restory image:generate --prompt "UGC product photo" --model nano-banana-2 --resolution 2K
restory video:generate --prompt "slow cinematic push in" --model seedance-2-0 --image ./restored.jpg --duration 8
restory jobs:get <id> --type image
restory gallery:list --type image --status completed --limit 10

File handling

The CLI uploads local references when needed and passes Restory CDN URLs to generation endpoints.

JSON output

Every command prints JSON. Agents should parse JSON fields instead of scraping terminal text.