Agent API DocsSections and machine-readable references
Reference
Public API
Call Restory JSON endpoints directly for restoration, image generation, video generation, uploads, credits, gallery, and job polling.
Base URL
https://www.restory.picsDiscovery
Discovery is public so agents can inspect supported workflows before authentication.
GET /api/agent/capabilitiesOpenAPI
Use OpenAPI for generic API clients and keep capabilities JSON for current model settings, feature IDs, credit costs, and rollout-specific options.
GET /api/agent/openapiGeneration endpoints
POST /api/restore-photoFast restorationPOST /api/repair-damageRepair scratches, missing parts, and damagePOST /api/premium-ultraPremium 2K or 4K restorationPOST /api/generate-imageImage generation and editingPOST /api/generate-videoText, image, and reference video generationPOST /api/upload-reference-mediaUpload image, video, or audio referencesPolling and gallery
GET /api/agent/jobs/{id}?type=image
GET /api/agent/jobs/{id}?type=video
GET /api/agent/gallery?type=image&status=completed&limit=20Errors
API errors return JSON with `success: false` and a readable `error`. Entitlement failures include `upgradeRequired` and `featureRequired` when relevant.