# Remagica docs - **Get started** - [Introduction](/docs): What the Remagica API does, and where to start. - [Quickstart](/docs/quickstart): Create an API key, generate your first image and download it. - [Authentication and scopes](/docs/authentication): API keys, what they can reach, and the scopes and presets that limit them. - [Credits and pricing](/docs/credits): What things cost, estimating before you spend, and reading your balance and history. - [Idempotency](/docs/idempotency): Retry requests safely with the Idempotency-Key header, without paying twice. - [Webhooks](/docs/webhooks): Get an HTTPS request when a generation, run or clip job ends, and verify that it came from Remagica. - [Connect to Claude](/docs/connect-claude): Use Remagica from Claude Code, Claude Desktop or claude.ai through its MCP server. You sign in with your Remagica account, so no API key is needed. - [Errors and rate limits](/docs/errors): The error format, what each status means for an API key, and how many requests a key can make. - [Uploading files](/docs/uploads): Put your images, videos and audio in storage, then pass them to the API by key. - **Guides** - [Generate images](/docs/generate-images): Make and edit images with any image model, from a prompt and reference images. - [Generate videos](/docs/generate-videos): Make videos from a prompt, a first and last frame, or reference images, and chain shots together. - [Run a workflow](/docs/run-a-workflow): Run the nodes of a workflow your team built on the canvas, follow the run and collect its results. - [Run an app](/docs/run-an-app): Run a published Remagica app with your own inputs and collect its outputs. - [Make clips](/docs/make-clips): Turn a long video into short vertical clips with captions and a hook, then re-export them with changes. - [Downloads and exports](/docs/downloads): Where to find download links for generations, Library items, clips and workflow files. - **Reference** - API reference - [API reference](/docs/api-reference): Every endpoint an API key can call, with the scope it needs, its schemas, code samples and a playground. - Uploads: Get a presigned URL and upload a video straight to object storage. This is always the first step. - [Create an upload URL](/docs/api-reference/uploads/create-upload) - [Get file URLs](/docs/api-reference/uploads/get-file-urls) - [Upload from a link](/docs/api-reference/uploads/upload-from-url) - Clip jobs: Turn an upload into short vertical clips. Jobs run asynchronously: create one, then poll it (or stream its progress) until it completes. - [List clip jobs](/docs/api-reference/clip-jobs/list-clip-jobs) - [Create a clip job](/docs/api-reference/clip-jobs/create-clip-job) - [Get a clip job](/docs/api-reference/clip-jobs/get-clip-job) - [List clips](/docs/api-reference/clip-jobs/list-clips) - [Stream a clip job's progress](/docs/api-reference/clip-jobs/watch-clip-job) - Clip exports: Re-render a finished clip with another caption style, a changed hook or edited words (the editor's Export button). Exports reuse the clip's clean picture and take seconds: create one, then poll it. - [List a clip's exports](/docs/api-reference/clip-exports/list-clip-exports) - [Re-export a clip](/docs/api-reference/clip-exports/create-clip-export) - [Get a clip export](/docs/api-reference/clip-exports/get-clip-export) - Generations: Generate images, videos, speech, sound effects and music with the models from `GET /models`. Models are named by what they are (`google/nano-banana-pro`, `bytedance/seedance-2.0`); which provider serves a request is chosen for you. Files go in by storage key (an upload's or an earlier generation's), and results come back as files in your storage. Generations run asynchronously: create one, then poll it. - [Cancel a generation](/docs/api-reference/generations/cancel-generation) - [Remove an image's background](/docs/api-reference/generations/create-background-removal-generation) - [Generate images](/docs/api-reference/generations/create-image-generation) - [Generate music](/docs/api-reference/generations/create-music-generation) - [Generate a sound effect](/docs/api-reference/generations/create-sound-effect-generation) - [Generate speech](/docs/api-reference/generations/create-speech-generation) - [Generate a video](/docs/api-reference/generations/create-video-generation) - [Estimate a generation's cost](/docs/api-reference/generations/estimate-generation) - [Get a generation](/docs/api-reference/generations/get-generation) - [List generations](/docs/api-reference/generations/list-generations) - [List capabilities](/docs/api-reference/generations/list-capabilities) - [List models](/docs/api-reference/generations/list-models) - [Follow your generations](/docs/api-reference/generations/watch-generations) - [List characters](/docs/api-reference/generations/list-characters) - [Register a character](/docs/api-reference/generations/create-character) - [List thumbnail formats](/docs/api-reference/generations/list-thumbnail-formats) - [Plan thumbnail concepts](/docs/api-reference/generations/plan-thumbnail) - [List thumbnail recipes](/docs/api-reference/generations/list-thumbnail-recipes) - [Let AI pick thumbnail frames](/docs/api-reference/generations/analyze-video-frames) - [Extract thumbnail frames](/docs/api-reference/generations/extract-video-frames) - [Get a frame analysis](/docs/api-reference/generations/get-video-frames) - [Follow a frame analysis](/docs/api-reference/generations/watch-video-frames) - Pricing: What everything costs, in credits: the live price book every estimate and charge reads. Prices can change; a run started with the `priceVersion` you showed is refused with `409 PRICE_CHANGED` rather than charged more. - [Get prices](/docs/api-reference/pricing/get-price-book) - Library: The Library: reusable media and Elements (a character, place, prop or style with a locked description, ordered reference files and an optional generated sheet), in the Team Library or your Private one, with folders, favorites and versions. Mention an item in any prompt with its `mention` token; its files and description go with the request, pinned to a version. - [Read a file's share link](/docs/api-reference/library/get-asset-share) - [Share a file](/docs/api-reference/library/update-asset-share) - [List folders](/docs/api-reference/library/list-library-folders) - [Create a folder](/docs/api-reference/library/create-library-folder) - [Update a folder](/docs/api-reference/library/update-library-folder) - [Delete a folder](/docs/api-reference/library/delete-library-folder) - [Add a version](/docs/api-reference/library/add-library-version) - [List items](/docs/api-reference/library/list-library-items) - [Create an item](/docs/api-reference/library/create-library-item) - [Get an item](/docs/api-reference/library/get-library-item) - [Update an item](/docs/api-reference/library/update-library-item) - [Delete an item](/docs/api-reference/library/delete-library-item) - [Unfavorite an item](/docs/api-reference/library/unfavorite-library-item) - [Favorite an item](/docs/api-reference/library/favorite-library-item) - [Generate a character sheet](/docs/api-reference/library/generate-library-sheet) - [Copy to the other scope](/docs/api-reference/library/move-library-item) - [List filter choices](/docs/api-reference/library/list-asset-facets) - [Delete an item for good](/docs/api-reference/library/purge-library-item) - [Restore an item](/docs/api-reference/library/restore-library-item) - [Set review status](/docs/api-reference/library/set-library-review-status) - [File generations as assets](/docs/api-reference/library/sync-library-generations) - [List labels](/docs/api-reference/library/list-library-labels) - [Create a label](/docs/api-reference/library/create-library-label) - [Update a label](/docs/api-reference/library/update-library-label) - [Delete a label](/docs/api-reference/library/delete-library-label) - [Unpin an item](/docs/api-reference/library/unpin-library-item) - [Pin an item](/docs/api-reference/library/pin-library-item) - [Label items](/docs/api-reference/library/set-library-item-labels) - Brand kits: Brand kits: a brand's logos, palette, fonts, tone of voice, guidelines and reference images, in the Team or your Private scope. A generation node that uses a kit gets its tone and guidelines in the prompt and its logos and references as reference images. - [List brand kits](/docs/api-reference/brand-kits/list-brand-kits) - [Create a brand kit](/docs/api-reference/brand-kits/create-brand-kit) - [Create a brand kit from a file](/docs/api-reference/brand-kits/create-brand-kit-from-file) - [Create a brand kit from a sample](/docs/api-reference/brand-kits/create-brand-kit-from-sample) - [Create a brand kit from a website](/docs/api-reference/brand-kits/create-brand-kit-from-website) - [Get a brand kit](/docs/api-reference/brand-kits/get-brand-kit) - [Update a brand kit](/docs/api-reference/brand-kits/update-brand-kit) - [Delete a brand kit](/docs/api-reference/brand-kits/delete-brand-kit) - [Duplicate a brand kit](/docs/api-reference/brand-kits/duplicate-brand-kit) - [List sample brand kits](/docs/api-reference/brand-kits/list-sample-brand-kits) - Moodboards: Moodboards: a titled board of images with notes, in the Team or your Private scope. A generation node that uses a moodboard gets its images as style references. - [Add an image from a link](/docs/api-reference/moodboards/add-moodboard-image-from-link) - [Capture a moodboard's style](/docs/api-reference/moodboards/capture-moodboard-style) - [List moodboards](/docs/api-reference/moodboards/list-moodboards) - [Create a moodboard](/docs/api-reference/moodboards/create-moodboard) - [Get a moodboard](/docs/api-reference/moodboards/get-moodboard) - [Update a moodboard](/docs/api-reference/moodboards/update-moodboard) - [Delete a moodboard](/docs/api-reference/moodboards/delete-moodboard) - References: References a generation node attaches as `activeReferences` (styles, colour palettes, characters, elements, image looks, camera angles, brand kits, moodboards and Library assets): their text joins the prompt and their images go in as references. Built-ins ship with the app; add your own, save any for the workspace, and read the built-ins' preview images. - [List references](/docs/api-reference/references/list-references) - [Create a reference](/docs/api-reference/references/create-reference) - [Delete a reference](/docs/api-reference/references/delete-reference) - [List saved references](/docs/api-reference/references/list-reference-bookmarks) - [Save a reference](/docs/api-reference/references/set-reference-bookmark) - [List built-in previews](/docs/api-reference/references/list-reference-previews) - Workflows: Node-based workflows: a document of pages of nodes (Prompt, Copilot, Image, Video, Voice, Music, Sound Effects, iterators, Router, the video-editing actions, ...) and the typed edges between them. A run executes the nodes you name, `count` times each, and each node keeps every result it makes; nodes read what's upstream as the result it shows (pull, not push), so nothing upstream runs again. - [Cancel a result](/docs/api-reference/workflows/cancel-workflow-result) - [Cancel a run](/docs/api-reference/workflows/cancel-workflow-run) - [List versions](/docs/api-reference/workflows/list-workflow-revisions) - [Save a version](/docs/api-reference/workflows/create-workflow-revision) - [List workflows](/docs/api-reference/workflows/list-workflows) - [Create a workflow](/docs/api-reference/workflows/create-workflow) - [Get a workflow](/docs/api-reference/workflows/get-workflow) - [Delete a workflow](/docs/api-reference/workflows/delete-workflow) - [Save a workflow](/docs/api-reference/workflows/update-workflow) - [Get a run](/docs/api-reference/workflows/get-workflow-run) - [List node types](/docs/api-reference/workflows/list-node-types) - [List runs](/docs/api-reference/workflows/list-workflow-runs) - [Run nodes](/docs/api-reference/workflows/start-workflow-run) - [Preview a stop](/docs/api-reference/workflows/preview-workflow-stop) - [Set a project's cover](/docs/api-reference/workflows/set-workflow-cover) - [Follow a workflow](/docs/api-reference/workflows/watch-workflow) - [List videos](/docs/api-reference/workflows/list-videos) - [Delete a result](/docs/api-reference/workflows/delete-workflow-result) - [Get a version](/docs/api-reference/workflows/get-workflow-revision) - [Name a version](/docs/api-reference/workflows/update-workflow-revision) - [Delete a version](/docs/api-reference/workflows/delete-workflow-revision) - [Restore a deleted result](/docs/api-reference/workflows/restore-workflow-result) - [Restore a version](/docs/api-reference/workflows/restore-workflow-revision) - Projects: The Projects page over your workflows: list them a page at a time by scope (team or personal) and folder, with a canvas preview and their asset and credit counts; nest them in team or personal folders; duplicate, rename and move them; and share one by link, read-only, for anyone to view and copy. - [Copy a shared project](/docs/api-reference/projects/copy-shared-project) - [List folders](/docs/api-reference/projects/list-project-folders) - [Create a folder](/docs/api-reference/projects/create-project-folder) - [List projects](/docs/api-reference/projects/list-projects) - [Create a project](/docs/api-reference/projects/create-project) - [Rename a folder](/docs/api-reference/projects/rename-project-folder) - [Delete a folder](/docs/api-reference/projects/delete-project-folder) - [Duplicate a project](/docs/api-reference/projects/duplicate-project) - [Get credit usage](/docs/api-reference/projects/get-credit-usage) - [List every folder](/docs/api-reference/projects/list-all-project-folders) - [Move a project](/docs/api-reference/projects/move-project) - [Rename or describe a project](/docs/api-reference/projects/rename-project) - [Save a project as a template](/docs/api-reference/projects/save-project-as-template) - [Set a project's visibility](/docs/api-reference/projects/set-project-visibility) - Apps: Apps: one page of a workflow packaged as a form. Pick its inputs (a Prompt's text, an Import's file, a setting a node exposes) and outputs, publish it for yourself, your team or the community (public apps are reviewed first), and run it with your own values; each run executes in a workflow of your own and streams like any workflow run. - [List apps](/docs/api-reference/apps/list-apps) - [Create an app](/docs/api-reference/apps/create-app) - [Get an app](/docs/api-reference/apps/get-app) - [Update an app](/docs/api-reference/apps/update-app) - [Delete an app](/docs/api-reference/apps/delete-app) - [Get a page's app](/docs/api-reference/apps/get-page-app) - [List your app runs](/docs/api-reference/apps/list-app-runs) - [Run an app](/docs/api-reference/apps/start-app-run) - [Publish an app](/docs/api-reference/apps/publish-app) - [Remix an app](/docs/api-reference/apps/remix-app) - Templates: Ready-made workflows and presets. Templates are whole projects by category: read one's canvas, then start a project from it (`POST /projects` with `templateId`), example results included. Presets are small graphs in Sections for the canvas's Presets panel: insert one, save, then keep its example results (`POST /presets/{slug}/results`). - [Keep a preset's example results](/docs/api-reference/templates/add-preset-results) - [Get a template](/docs/api-reference/templates/get-template) - [Delete a template](/docs/api-reference/templates/delete-template) - [List presets](/docs/api-reference/templates/list-presets) - [List templates](/docs/api-reference/templates/list-templates) - Thumbnails: The thumbnail reference library: example thumbnails by niche recipe and source, curated ones first, with 480px previews. Send a reference's `key` as a reference image (with a `role`) to use it in a generation. - [Get a thumbnail reference](/docs/api-reference/thumbnails/get-thumbnail-reference) - [List thumbnail references](/docs/api-reference/thumbnails/list-thumbnail-references) - Sprites: Sprite Studio: games (a style bible of style, recipe, camera, canvas, size classes, rules and cleanup) and their cast of characters, each a Library item of kind `sprite` whose versions are its masters. Each character has outfits and actions (idle, walk, attack, ...); an action's takes, one per direction, hold its frames with their timing and gameplay data. Presets save timing and export setups. Masters, takes and drift fixes spend credits (each has an estimate route); exports are free. Follow runs on the live feed (`GET /sprites/events`). MCP clients get the same work as `sprites_*` tools. - [Remove a storyboard sketch](/docs/api-reference/sprites/clear-sprite-action-sketch) - [Set a storyboard sketch](/docs/api-reference/sprites/set-sprite-action-sketch) - [List a character's actions](/docs/api-reference/sprites/list-sprite-actions) - [Create an action](/docs/api-reference/sprites/create-sprite-action) - [Update an action](/docs/api-reference/sprites/update-sprite-action) - [Remove an action](/docs/api-reference/sprites/delete-sprite-action) - [List a game's characters](/docs/api-reference/sprites/list-sprite-characters) - [Create a character](/docs/api-reference/sprites/create-sprite-character) - [Get a character's Sprite DNA](/docs/api-reference/sprites/get-sprite-character-dna) - [Get a character](/docs/api-reference/sprites/get-sprite-character) - [Update a character](/docs/api-reference/sprites/update-sprite-character) - [Get a character's running drift fix](/docs/api-reference/sprites/get-active-sprite-drift-run) - [Fix drifted frames](/docs/api-reference/sprites/fix-sprite-drift) - [Get a character's drift report](/docs/api-reference/sprites/get-sprite-drift-report) - [Get a drift run](/docs/api-reference/sprites/get-sprite-drift-run) - [List exports](/docs/api-reference/sprites/list-sprite-exports) - [Export sprites](/docs/api-reference/sprites/create-sprite-export) - [Get an export](/docs/api-reference/sprites/get-sprite-export) - [Pack exports into one ZIP](/docs/api-reference/sprites/pack-sprite-exports) - [Preview an export](/docs/api-reference/sprites/preview-sprite-export) - [List folders](/docs/api-reference/sprites/list-sprite-folders) - [Create a folder](/docs/api-reference/sprites/create-sprite-folder) - [Update a folder](/docs/api-reference/sprites/update-sprite-folder) - [Delete a folder](/docs/api-reference/sprites/delete-sprite-folder) - [Estimate a frame edit](/docs/api-reference/sprites/estimate-sprite-frame-edit) - [Redraw a frame](/docs/api-reference/sprites/fix-sprite-frame) - [Add in-betweens](/docs/api-reference/sprites/tween-sprite-frames) - [Update a frame](/docs/api-reference/sprites/update-sprite-frame) - [Remove a frame](/docs/api-reference/sprites/delete-sprite-frame) - [Replace a frame's image](/docs/api-reference/sprites/replace-sprite-frame) - [Revert a frame](/docs/api-reference/sprites/revert-sprite-frame) - [List games](/docs/api-reference/sprites/list-sprite-games) - [Create a game](/docs/api-reference/sprites/create-sprite-game) - [Get a game](/docs/api-reference/sprites/get-sprite-game) - [Update a game](/docs/api-reference/sprites/update-sprite-game) - [Import a sprite sheet](/docs/api-reference/sprites/create-sprite-import) - [Get an import](/docs/api-reference/sprites/get-sprite-import) - [Preview a sheet import](/docs/api-reference/sprites/preview-sprite-import) - [List master candidates](/docs/api-reference/sprites/list-sprite-master-candidates) - [Estimate a master request](/docs/api-reference/sprites/estimate-sprite-master) - [Draw master candidates](/docs/api-reference/sprites/generate-sprite-master) - [List turnaround views](/docs/api-reference/sprites/list-sprite-views) - [Pick a master](/docs/api-reference/sprites/pick-sprite-master) - [Bring an edit back to Sprites](/docs/api-reference/sprites/return-sprite-edit) - [Draw turnaround views](/docs/api-reference/sprites/generate-sprite-views) - [List a character's outfits](/docs/api-reference/sprites/list-sprite-outfits) - [Create an outfit](/docs/api-reference/sprites/create-sprite-outfit) - [Update an outfit](/docs/api-reference/sprites/update-sprite-outfit) - [Delete an outfit](/docs/api-reference/sprites/delete-sprite-outfit) - [Estimate an outfit](/docs/api-reference/sprites/estimate-sprite-outfit) - [Draw an outfit](/docs/api-reference/sprites/generate-sprite-outfit) - [List presets](/docs/api-reference/sprites/list-sprite-presets) - [Create a preset](/docs/api-reference/sprites/create-sprite-preset) - [Approve a take](/docs/api-reference/sprites/approve-sprite-take) - [List a character's takes](/docs/api-reference/sprites/list-sprite-takes) - [Draw a take](/docs/api-reference/sprites/generate-sprite-take) - [Delete a take](/docs/api-reference/sprites/delete-sprite-take) - [Estimate takes](/docs/api-reference/sprites/estimate-sprite-takes) - [Draw the missing takes](/docs/api-reference/sprites/generate-missing-sprite-takes) - [Follow Sprite Studio](/docs/api-reference/sprites/watch-sprites) - Webhooks: Webhook endpoints: URLs Remagica POSTs signed events to when your generations, workflow runs, app runs, clip jobs and clip exports end. Add them, test them, read their delivery log and redeliver. The events themselves are listed under the document's `webhooks`. - [List webhook endpoints](/docs/api-reference/webhooks/list-webhook-endpoints) - [Create a webhook endpoint](/docs/api-reference/webhooks/create-webhook-endpoint) - [Get a webhook endpoint](/docs/api-reference/webhooks/get-webhook-endpoint) - [Update a webhook endpoint](/docs/api-reference/webhooks/update-webhook-endpoint) - [Delete a webhook endpoint](/docs/api-reference/webhooks/delete-webhook-endpoint) - [List an endpoint's deliveries](/docs/api-reference/webhooks/list-webhook-deliveries) - [Redeliver a webhook](/docs/api-reference/webhooks/redeliver-webhook) - [Rotate a webhook secret](/docs/api-reference/webhooks/rotate-webhook-secret) - [Send a test event](/docs/api-reference/webhooks/send-webhook-test-event) - Usage: Credits: the workspace's balance (what it may spend now), what's set aside and about to expire, and its ledger of grants, charges and refunds. - [Get credits](/docs/api-reference/usage/get-credits) - [List API keys that spent credits](/docs/api-reference/usage/list-credit-api-keys) - [List credit history](/docs/api-reference/usage/list-credit-history) - Webhook events - [generation.succeeded](/docs/api-reference/webhook-events/generation-succeeded) - [generation.failed](/docs/api-reference/webhook-events/generation-failed) - [generation.canceled](/docs/api-reference/webhook-events/generation-canceled) - [workflow_run.succeeded](/docs/api-reference/webhook-events/workflow-run-succeeded) - [workflow_run.failed](/docs/api-reference/webhook-events/workflow-run-failed) - [workflow_run.canceled](/docs/api-reference/webhook-events/workflow-run-canceled) - [app_run.succeeded](/docs/api-reference/webhook-events/app-run-succeeded) - [app_run.failed](/docs/api-reference/webhook-events/app-run-failed) - [app_run.canceled](/docs/api-reference/webhook-events/app-run-canceled) - [clip_job.succeeded](/docs/api-reference/webhook-events/clip-job-succeeded) - [clip_job.failed](/docs/api-reference/webhook-events/clip-job-failed) - [clip_export.succeeded](/docs/api-reference/webhook-events/clip-export-succeeded) - [clip_export.failed](/docs/api-reference/webhook-events/clip-export-failed) - [webhook.test](/docs/api-reference/webhook-events/webhook-test)