Restory
Agent API DocsSections and machine-readable references

Getting Started

Introduction

Restory gives AI agents a programmable media backend for restoration, image generation, video generation, uploads, credits, and polling.

What is Restory Agent API?

Restory Agent API is a JSON-first media automation surface for AI agents. It turns Restory photo restoration, image generation, and video generation into commands agents can discover and run autonomously.

Agent quick-use surfaces

Keep the capabilities endpoint as the full machine discovery payload, then use the friendlier docs surfaces when an agent only needs setup context or examples.

Markdown docsOpen the action menu on any page or call the Markdown route for prompt-ready context.
OpenAPI JSONUse `/api/agent/openapi` for generic API clients and endpoint scaffolding.
Capabilities JSONUse `/api/agent/capabilities` for current models, feature IDs, settings, and credit costs.
CLI and SKILL.mdUse local file workflows and agent behavior rules without parsing the full JSON first.

Core primitives

Capabilities

Discover methods, models, settings, credit costs, and endpoint paths.

API keys

Create bearer keys on Pro and Ultra plans, then call protected endpoints.

Queued jobs

Generation returns IDs immediately; agents poll until completed.

CDN results

Completed jobs return stable Bunny CDN URLs for downstream tools.

Who should use it?

Use it for agents that build social media visuals, restore photo archives, generate UGC video variants, prepare marketing creative, or chain generated media into schedulers and publishing tools.