Build with Dreamshot
Dreamshot creates images, video and audio inside your organization's projects. With an API token you can drive it from Claude Code over MCP (the quickest path) or from your own code over REST. Every call acts as you, in your organization, and spends its credits.
MCP endpoint
https://app.dreamshot.io/api/mcp
REST base URL
https://app.dreamshot.io/api/v1
Quickstart for Claude Code
Three steps: create a token, connect Claude Code, then ask for what you want in plain words.
Create an API token
In the app, open Settings > Organizations, pick your organization, open API tokens and click Create Token. Name it and tick these permissions:
- Read the production credit balance without organization administration.
credits:read - Read Generations
generation:read - Create Generations
generation:write - Read Media
media:read - Read Tools
tools:read - Read Projects
projects:read - Manage Projects
projects:write - Read review feedback
comments:read - Track and read your own time
time:write - Read and edit the traffic plan
traffic:write
Expiration defaults to 90 days (you can pick 30 days, 90 days, 1 year). The token starts with
dst_and is shown only once: copy it before you close the dialog.- Read the production credit balance without organization administration.
Connect Claude Code
Run this once in a terminal, replacing
<token>with your token. The dialog that shows your new token gives you the same command with the token already filled in.bashclaude mcp add --transport http dreamshot https://app.dreamshot.io/api/mcp --header "Authorization: Bearer <token>"Start a new Claude Code session (or run
/mcp) and thedreamshottools appear. Claude Code only sees the tools your token's permissions allow. The server is added for the current project; put--scope userright afterclaude mcp addto use it everywhere.Ask for something
Claude Code finds the project, estimates the cost, generates, waits for the result and hands you the download links. Try:
Connection and missing deliverables
promptCheck my Dreamshot connection with get_mcp_capabilities, explain any missing permissions, then find the unfilled slots in my project with get_project_delivery_status. Read every SKU page. Show placement gaps separately from client approvals.Image
promptIn my Dreamshot project "Spring campaign", generate two 4:5 images of a ceramic coffee mug on a linen tablecloth in soft morning light. Estimate the cost first and tell me before you generate, then give me the download links.Video, draft then final
promptIn my Dreamshot project "Spring campaign", make an 8-second 16:9 video with Seedance 2.5: a slow dolly-in on the same mug, steam rising, with ambient sound. Estimate the cost, render a 480p draft and show it to me. When I approve it, render the 1080p final from that draft.Your own reference image
promptUpload ./product.png to my Dreamshot project "Spring campaign" as a reference image, then generate a 1:1 image of that exact product on a white marble counter, using the upload as the reference.
MCP tools
The server at https://app.dreamshot.io/api/mcp exposes these tools. You rarely call them by name: Claude Code reads each description and picks them for you. A tool is listed only when your token has its scope.
list_voices, generate_music, generate_voiceover) appear only for organizations with audio over the API enabled. Ask your organization admin if you need them.get_mcp_capabilitiesDiagnose connection and discover workflowsRead-onlytools:readRead this authenticated connection, token scopes and expiry, feature availability and production recipes.
What Claude Code is told
Read this authenticated connection, token scopes and expiry, feature availability and production recipes. Omit workflow for an overview; select one for ordered tool calls and recovery guidance. Tools being available does not guarantee model access, credits or project readiness. Free, read-only.
run_video_taskEdit or extend an existing videoGeneratesgeneration:writeRun the native videoTask API: edit a source video with a prompt, or request a bounded extension.
What Claude Code is told
Run the native videoTask API: edit a source video with a prompt, or request a bounded extension. videoTask takes exactly one sourceMediaId or sourceGenerationId. The server derives the project, duration, metadata, price and next version from the owned source. Choose a granted model or omit it for canonical selection. Use estimateOnly first, maxCredits and idempotencyKey to execute; poll get_generation then get_generation_media. Verified extension fragments are joined to the source in the selected direction before a full-length version is published.
get_project_delivery_statusFind missing deliverable slotsRead-onlyprojects:readmedia:readReport distinct filled and missing project-template slots per SKU, unassigned candidates and duplicate or unknown slot assignments.
What Claude Code is told
Report distinct filled and missing project-template slots per SKU, unassigned candidates and duplicate or unknown slot assignments. Requires a product manifest. Paginate SKUs with offset/limit and nextOffset. Inspects up to 1000 outputs per SKU; incomplete reads return null missingSlotIds and a nextMediaCursor for list_sku_media. Placement does not imply QA, client approval or publication.
create_project_from_manifestCreate a native projectWritesprojects:writeCreate a project with the complete public API manifest, including platforms, brief, production configuration, ecommerce settings, folder and external card link.
What Claude Code is told
Create a project with the complete public API manifest, including platforms, brief, production configuration, ecommerce settings, folder and external card link. Identity is bound to the token owner. Site-admin-only modes remain forbidden to normal members. Use idempotencyKey for safe retries.
generate_trained_imageGenerate from a trained modelGeneratesgeneration:writeGenerate from an organization-owned product or brand trainingId.
What Claude Code is told
Generate from an organization-owned product or brand trainingId. Use estimateOnly first, maxCredits as a hard ceiling and idempotencyKey for execution. Poll get_generation then get_generation_media.
generate_flux_imageGenerate a FLUX imageGeneratesgeneration:writeUse the legacy create_anything API with its canonical description, model and numOutputs controls.
What Claude Code is told
Use the legacy create_anything API with its canonical description, model and numOutputs controls. Use estimateOnly first, maxCredits and idempotencyKey, then poll get_generation and get_generation_media.
update_projectUpdate projectWritesprojects:writeUpdate project production settings, folder binding and external card link.
What Claude Code is told
Update project production settings, folder binding and external card link. Omitted fields remain unchanged. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
set_project_lifecycleSet project lifecycleWritesprojects:writeConfigure the canonical lifecycle steps of a project.
What Claude Code is told
Configure the canonical lifecycle steps of a project. Read the project first; this replaces its step configuration. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
find_project_by_cardFind project by cardRead-onlyprojects:readFind project by card.
What Claude Code is told
Find project by card. Uses the canonical API in the authenticated organization. Follow returned pagination cursors when present.
follow_project_reviewsFollow project review emailsWritesprojects:writeSubscribe a teammate to (action follow) or drop them from (action unfollow) the team review emails of many projects: every comment and approval digest goes to project owners plus these followers.
What Claude Code is told
Subscribe a teammate to (action follow) or drop them from (action unfollow) the team review emails of many projects: every comment and approval digest goes to project owners plus these followers. Select by projectIds, folderId, folderName or search (folder and search combine; there is no 'every project'). Without apply it is a dry run: show the person the listed projects in plain words and wait for a yes, then repeat the same call with apply: true. Rows report change (add, remove, unchanged, skipped) and teamMailOn; following never switches team mail back on. Ambiguous folder names answer 409 with the candidates. Team members only.
list_project_foldersList project foldersRead-onlyprojects:readList project folders.
What Claude Code is told
List project folders. Uses the canonical API in the authenticated organization. Follow returned pagination cursors when present.
create_project_folderCreate project folderWritesprojects:writeCreate project folder.
What Claude Code is told
Create project folder. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
get_project_briefGet project briefRead-onlyprojects:readGet project brief.
What Claude Code is told
Get project brief. Uses the canonical API in the authenticated organization. Follow returned pagination cursors when present.
write_project_briefWrite project briefWritesprojects:writeOperate the project brief through the canonical versioned service.
What Claude Code is told
Operate the project brief through the canonical versioned service. Read get_project_brief first and pass its sequence to preserve concurrent edits. Submitted content is immutable. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
submit_project_briefSubmit project briefWritesprojects:writeOperate the project brief through the canonical versioned service.
What Claude Code is told
Operate the project brief through the canonical versioned service. Read get_project_brief first and pass its sequence to preserve concurrent edits. Submitted content is immutable. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
open_project_brief_versionOpen project brief versionWritesprojects:writeOperate the project brief through the canonical versioned service.
What Claude Code is told
Operate the project brief through the canonical versioned service. Read get_project_brief first and pass its sequence to preserve concurrent edits. Submitted content is immutable. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
set_project_brief_intakeSet project brief intakeWritesprojects:writeOperate the project brief through the canonical versioned service.
What Claude Code is told
Operate the project brief through the canonical versioned service. Read get_project_brief first and pass its sequence to preserve concurrent edits. Submitted content is immutable. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
record_project_brief_email_approvalRecord project brief email approvalWritesprojects:writeRecord an approval already received by email, including its real evidence, designated approver, version and digest.
What Claude Code is told
Record an approval already received by email, including its real evidence, designated approver, version and digest. This does not send email or impersonate a client. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
get_project_assetsGet project assetsRead-onlyprojects:readGet project assets.
What Claude Code is told
Get project assets. Uses the canonical API in the authenticated organization. Follow returned pagination cursors when present.
write_project_assetsWrite project assetsWritesprojects:writeUpsert or archive only the named assets.
What Claude Code is told
Upsert or archive only the named assets. Attach organization media by id, submit assets and record explicit team decisions. Omitted assets remain unchanged. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
get_storyboardGet storyboardRead-onlyprojects:readGet storyboard.
What Claude Code is told
Get storyboard. Uses the canonical API in the authenticated organization. Follow returned pagination cursors when present.
write_storyboardWrite storyboardWritesprojects:writeReplace the open storyboard draft with the native document.
What Claude Code is told
Replace the open storyboard draft with the native document. Submitted versions are immutable; withdraw explicitly or open the next version. References must belong to this project. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
submit_storyboard_for_reviewSubmit storyboard for reviewWritesprojects:writeSubmit storyboard for review.
What Claude Code is told
Submit storyboard for review. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
withdraw_storyboard_versionWithdraw storyboard versionWritesprojects:writeWithdraw storyboard version.
What Claude Code is told
Withdraw storyboard version. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
open_storyboard_versionOpen storyboard versionWritesprojects:writeOpen storyboard version.
What Claude Code is told
Open storyboard version. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
create_product_manifestCreate product manifestWritesprojects:writeWrite the ecommerce SKU manifest.
What Claude Code is told
Write the ecommerce SKU manifest. The canonical service preserves SKU renames and rejects changes that strand assigned deliverables. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
update_product_manifestUpdate product manifestWritesprojects:writeWrite the ecommerce SKU manifest.
What Claude Code is told
Write the ecommerce SKU manifest. The canonical service preserves SKU renames and rejects changes that strand assigned deliverables. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
get_product_manifestGet product manifestRead-onlyprojects:readGet product manifest.
What Claude Code is told
Get product manifest. Uses the canonical API in the authenticated organization. Follow returned pagination cursors when present.
get_deliverable_slotsGet deliverable slotsRead-onlyprojects:readGet deliverable slots.
What Claude Code is told
Get deliverable slots. Uses the canonical API in the authenticated organization. Follow returned pagination cursors when present.
set_deliverable_slotsSet deliverable slotsWritesprojects:writeSet deliverable slots.
What Claude Code is told
Set deliverable slots. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
list_sku_mediaList sku mediaRead-onlymedia:readList sku media.
What Claude Code is told
List sku media. Uses the canonical API in the authenticated organization. Follow returned pagination cursors when present.
assign_media_to_slotAssign media to slotWritesprojects:writeExplicitly place an existing deliverable in a SKU slot for review.
What Claude Code is told
Explicitly place an existing deliverable in a SKU slot for review. This publishes the chosen media to that review step; it is not a QA approval. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
create_project_uploadCreate project uploadWritesgeneration:writeCreate a signed upload slot for project media, SKU references/deliverables or versions.
What Claude Code is told
Create a signed upload slot for project media, SKU references/deliverables or versions. PUT the exact bytes with the returned headers, then call the corresponding confirm tool. Raw URLs are not fetched. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
confirm_project_mediaConfirm project mediaWritesprojects:writeInspect and confirm bytes from create_project_upload into this project.
What Claude Code is told
Inspect and confirm bytes from create_project_upload into this project. The upload grant is bound to the organization, type and expiry. Defaults to internal visibility. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
confirm_sku_referenceConfirm sku referenceWritesprojects:writeConfirm a verified upload from create_project_upload into the named SKU.
What Claude Code is told
Confirm a verified upload from create_project_upload into the named SKU. Explicit public visibility publishes the deliverable; the default remains internal. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
confirm_sku_deliverableConfirm sku deliverableWritesprojects:writeConfirm a verified upload from create_project_upload into the named SKU.
What Claude Code is told
Confirm a verified upload from create_project_upload into the named SKU. Explicit public visibility publishes the deliverable; the default remains internal. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
create_media_versionCreate media versionWritesprojects:writeLink an existing project media as the next version, or confirm a version uploaded with create_project_upload.
What Claude Code is told
Link an existing project media as the next version, or confirm a version uploaded with create_project_upload. Ownership, project, lineage and visibility guards match the API. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
get_production_foldersGet production foldersRead-onlyprojects:readGet production folders.
What Claude Code is told
Get production folders. Uses the canonical API in the authenticated organization. Follow returned pagination cursors when present.
create_production_folderCreate production folderWritesprojects:writeOrganize the project production folder tree.
What Claude Code is told
Organize the project production folder tree. Bulk media moves accept expectedFolders to refuse stale moves; no other project or organization can be changed. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
rename_production_folderRename production folderWritesprojects:writeOrganize the project production folder tree.
What Claude Code is told
Organize the project production folder tree. Bulk media moves accept expectedFolders to refuse stale moves; no other project or organization can be changed. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
move_production_folderMove production folderWritesprojects:writeOrganize the project production folder tree.
What Claude Code is told
Organize the project production folder tree. Bulk media moves accept expectedFolders to refuse stale moves; no other project or organization can be changed. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
delete_production_folderDelete production folderWritesprojects:writeOrganize the project production folder tree.
What Claude Code is told
Organize the project production folder tree. Bulk media moves accept expectedFolders to refuse stale moves; no other project or organization can be changed. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
move_production_mediaMove production mediaWritesprojects:writeOrganize the project production folder tree.
What Claude Code is told
Organize the project production folder tree. Bulk media moves accept expectedFolders to refuse stale moves; no other project or organization can be changed. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
publish_qa_checklistPublish qa checklistWritesprojects:writePublish qa checklist.
What Claude Code is told
Publish qa checklist. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
send_media_to_qaSend media to qaWritesprojects:writeSend media to qa.
What Claude Code is told
Send media to qa. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
get_qa_queueGet qa queueRead-onlymedia:readGet qa queue.
What Claude Code is told
Get qa queue. Uses the canonical API in the authenticated organization. Follow returned pagination cursors when present.
record_qa_rejectionRecord qa rejectionWritesprojects:writeRecord a rejection attributed to the token owner.
What Claude Code is told
Record a rejection attributed to the token owner. An assistant cannot record a human pass; the reviewer must approve in the QA queue. This guard also exists in the canonical write service. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
review_qa_mediaReview qa mediaGeneratesprojects:writeRun the server-side Gemini reviewer on up to six project media.
What Claude Code is told
Run the server-side Gemini reviewer on up to six project media. Diagnostic scores only: never approves, assigns or publishes. Requires the server Gemini key. Inspect each item: provider errors are not QA passes; an entirely failed chunk returns qa_review_failed. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
get_media_qa_scoresGet media qa scoresRead-onlymedia:readGet media qa scores.
What Claude Code is told
Get media qa scores. Uses the canonical API in the authenticated organization. Follow returned pagination cursors when present.
record_media_qa_scoreRecord media qa scoreWritesprojects:writeRecord a diagnostic external evaluation score, attributed to the token owner.
What Claude Code is told
Record a diagnostic external evaluation score, attributed to the token owner. It never creates a human verdict or publishes media. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
record_bulk_qa_scoresRecord bulk qa scoresWritesprojects:writeRecord bulk qa scores.
What Claude Code is told
Record bulk qa scores. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
get_qa_agreementGet qa agreementRead-onlyprojects:readGet qa agreement.
What Claude Code is told
Get qa agreement. Uses the canonical API in the authenticated organization. Follow returned pagination cursors when present.
get_qa_rejectionsGet qa rejectionsRead-onlymedia:readGet qa rejections.
What Claude Code is told
Get qa rejections. Uses the canonical API in the authenticated organization. Follow returned pagination cursors when present.
list_organization_assetsList organization assetsRead-onlyprojects:readList organization assets.
What Claude Code is told
List organization assets. Uses the canonical API in the authenticated organization. Follow returned pagination cursors when present.
create_organization_asset_uploadCreate organization asset uploadWritesprojects:writeCreate a verified upload slot for a reusable organization font, sound effect or asset.
What Claude Code is told
Create a verified upload slot for a reusable organization font, sound effect or asset. PUT the bytes, then confirm_organization_asset_upload. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
confirm_organization_asset_uploadConfirm organization asset uploadWritesprojects:writeConfirm organization asset upload.
What Claude Code is told
Confirm organization asset upload. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
validate_workflowValidate workflowRead-onlyprojects:readValidate workflow.
What Claude Code is told
Validate workflow. Uses the canonical API in the authenticated organization. Follow returned pagination cursors when present.
create_workflowCreate workflowWritesprojects:writeCreate workflow.
What Claude Code is told
Create workflow. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
get_workflowGet workflowRead-onlyprojects:readGet workflow.
What Claude Code is told
Get workflow. Uses the canonical API in the authenticated organization. Follow returned pagination cursors when present.
update_workflowUpdate workflowWritesprojects:writeUpdate workflow.
What Claude Code is told
Update workflow. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
launch_workflowLaunch workflowGeneratesgeneration:writeLaunch a validated workflow asynchronously as the token owner, single or batch.
What Claude Code is told
Launch a validated workflow asynchronously as the token owner, single or batch. Provider nodes spend organization credits through normal API gates. Use idempotencyKey on every launch and poll get_workflow_execution. Set input.maxCredits to enforce one global ceiling across every node, batch iteration and retry. Read creditBudget on get_workflow_execution for allocated and charged credits. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
get_workflow_executionGet workflow executionRead-onlygeneration:readGet workflow execution.
What Claude Code is told
Get workflow execution. Uses the canonical API in the authenticated organization. Follow returned pagination cursors when present.
list_workflow_executionsList workflow executionsRead-onlygeneration:readList workflow executions.
What Claude Code is told
List workflow executions. Uses the canonical API in the authenticated organization. Follow returned pagination cursors when present.
log_timeLog timeWritestime:writeTrack or read only the token owner's time.
What Claude Code is told
Track or read only the token owner's time. Requires time tracking enabled for this organization. Manual entries use externalId for safe upsert; timer controls follow the canonical minimum-duration and conflict rules. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
list_time_entriesList time entriesRead-onlytime:writeTrack or read only the token owner's time.
What Claude Code is told
Track or read only the token owner's time. Requires time tracking enabled for this organization. Manual entries use externalId for safe upsert; timer controls follow the canonical minimum-duration and conflict rules.
update_time_entryUpdate time entryWritestime:writeCorrect one of the token owner's own time entries by entryId (from list_time_entries).
What Claude Code is told
Correct one of the token owner's own time entries by entryId (from list_time_entries). Partial: input carries only the fields to change (projectId, minutes, startedAt, workKind, stageId, note; note null clears it); omitted fields keep their value. The entry is reclassified against its project; imported entries without a classification need workKind. Another person's entry answers 404, with no admin override. Requires time tracking enabled for this organization.
delete_time_entryDelete time entryWritestime:writePermanently delete one of the token owner's own time entries by entryId (from list_time_entries).
What Claude Code is told
Permanently delete one of the token owner's own time entries by entryId (from list_time_entries). Another person's entry answers 404, with no admin override. Requires time tracking enabled for this organization. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
get_running_timerGet running timerRead-onlytime:writeTrack or read only the token owner's time.
What Claude Code is told
Track or read only the token owner's time. Requires time tracking enabled for this organization. Manual entries use externalId for safe upsert; timer controls follow the canonical minimum-duration and conflict rules.
start_timerStart timerWritestime:writeTrack or read only the token owner's time.
What Claude Code is told
Track or read only the token owner's time. Requires time tracking enabled for this organization. Manual entries use externalId for safe upsert; timer controls follow the canonical minimum-duration and conflict rules. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
stop_timerStop timerWritestime:writeTrack or read only the token owner's time.
What Claude Code is told
Track or read only the token owner's time. Requires time tracking enabled for this organization. Manual entries use externalId for safe upsert; timer controls follow the canonical minimum-duration and conflict rules. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
discard_timerDiscard timerWritestime:writeTrack or read only the token owner's time.
What Claude Code is told
Track or read only the token owner's time. Requires time tracking enabled for this organization. Manual entries use externalId for safe upsert; timer controls follow the canonical minimum-duration and conflict rules. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
get_traffic_planGet traffic planRead-onlytraffic:writeRead or edit the organization traffic plan as the token owner.
What Claude Code is told
Read or edit the organization traffic plan as the token owner. Requires time tracking enabled and an ordinary non-reviewer membership. Canonical source ownership, ledger and capacity rules apply.
get_traffic_reportGet traffic reportRead-onlytraffic:writeRead or edit the organization traffic plan as the token owner.
What Claude Code is told
Read or edit the organization traffic plan as the token owner. Requires time tracking enabled and an ordinary non-reviewer membership. Canonical source ownership, ledger and capacity rules apply.
check_traffic_fitCheck traffic fitRead-onlytraffic:writeRead or edit the organization traffic plan as the token owner.
What Claude Code is told
Read or edit the organization traffic plan as the token owner. Requires time tracking enabled and an ordinary non-reviewer membership. Canonical source ownership, ledger and capacity rules apply.
replace_traffic_absencesReplace traffic absencesWritestraffic:writeRead or edit the organization traffic plan as the token owner.
What Claude Code is told
Read or edit the organization traffic plan as the token owner. Requires time tracking enabled and an ordinary non-reviewer membership. Canonical source ownership, ledger and capacity rules apply. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
import_traffic_timelineImport traffic timelineWritestraffic:writeRead or edit the organization traffic plan as the token owner.
What Claude Code is told
Read or edit the organization traffic plan as the token owner. Requires time tracking enabled and an ordinary non-reviewer membership. Canonical source ownership, ledger and capacity rules apply. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
create_traffic_blockCreate traffic blockWritestraffic:writeRead or edit the organization traffic plan as the token owner.
What Claude Code is told
Read or edit the organization traffic plan as the token owner. Requires time tracking enabled and an ordinary non-reviewer membership. Canonical source ownership, ledger and capacity rules apply. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
create_traffic_projectCreate traffic projectWritestraffic:writeRead or edit the organization traffic plan as the token owner.
What Claude Code is told
Read or edit the organization traffic plan as the token owner. Requires time tracking enabled and an ordinary non-reviewer membership. Canonical source ownership, ledger and capacity rules apply. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
update_traffic_blockUpdate traffic blockWritestraffic:writeEdit traffic with input.expectedVersion from the previous read to reject concurrent changes.
What Claude Code is told
Edit traffic with input.expectedVersion from the previous read to reject concurrent changes. Changes are attributed to the token owner and recorded in the ledger. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
delete_traffic_blockDelete traffic blockWritestraffic:writeEdit traffic with input.expectedVersion from the previous read to reject concurrent changes.
What Claude Code is told
Edit traffic with input.expectedVersion from the previous read to reject concurrent changes. Changes are attributed to the token owner and recorded in the ledger. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
update_traffic_projectUpdate traffic projectWritestraffic:writeEdit traffic with input.expectedVersion from the previous read to reject concurrent changes.
What Claude Code is told
Edit traffic with input.expectedVersion from the previous read to reject concurrent changes. Changes are attributed to the token owner and recorded in the ledger. Use idempotencyKey for safe retries; reuse the same key and inputs for the same operation.
get_project_reviewGet project reviewRead-onlyprojects:readcomments:readRead the complete project review board, visibility, version chains, comments and download naming.
What Claude Code is told
Read the complete project review board, visibility, version chains, comments and download naming.
publish_media_for_reviewPublish media for reviewWritesprojects:writeExplicitly publish selected organization project media to client review.
What Claude Code is told
Explicitly publish selected organization project media to client review. This does not record a client approval.
set_download_filename_templateSet download filename templateWritesprojects:writeSet the project download filename template used by the review package.
What Claude Code is told
Set the project download filename template used by the review package.
read_feedbackRead feedbackRead-onlycomments:readRead project feedback and comments with media identity and review context.
What Claude Code is told
Read project feedback and comments with media identity and review context.
list_projectsList projectsRead-onlyprojects:readList projects in the organization that owns your API token, newest activity first, with page and limit pagination.
What Claude Code is told
List projects in the organization that owns your API token, newest activity first, with page and limit pagination. Every generation, upload and share link belongs to a project, so start here to get a projectId. Pass nameQuery to search across all projects. Returns { items, page, totalPages, hasNextPage }. Increment page until hasNextPage is false. limit is 1-50 (default 20).
get_projectRead projectRead-onlyprojects:readRead project details by id from list_projects.
What Claude Code is told
Read project details by id from list_projects.
get_project_workspaceRead project workspaceRead-onlyprojects:readRead the project lifecycle, product manifest and deliverable slots.
What Claude Code is told
Read the project lifecycle, product manifest and deliverable slots.
list_project_mediaList project filesRead-onlyprojects:readmedia:readDiscover reusable mediaIds.
What Claude Code is told
Discover reusable mediaIds. Returns items with dimensions, duration, media kind and lineage. Pass nextCursor as cursor for the next page.
list_generationsList generation historyRead-onlygeneration:readRead a project generation history.
What Claude Code is told
Read a project generation history. Pass nextCursor as cursor to continue; use returned ids with get_generation.
get_mediaInspect mediaRead-onlymedia:readRead media metadata, lineage and signed download URL using a mediaId from list_project_media.
What Claude Code is told
Read media metadata, lineage and signed download URL using a mediaId from list_project_media.
get_credit_balanceRead credit balanceRead-onlycredits:readRead available production credits.
What Claude Code is told
Read available production credits. Requires credits:read, which members may grant to their own tokens.
cancel_generationCancel pending generationWritesgeneration:writeCancel a pending job and release its remaining credit hold.
What Claude Code is told
Cancel a pending job and release its remaining credit hold. Already-cancelled jobs succeed. A job already running at its provider returns 409 because provider cancellation is unsupported.
get_generations_statusPoll several jobsRead-onlygeneration:readRead up to 20 generationIds in one request.
What Claude Code is told
Read up to 20 generationIds in one request. Use suggestedPollSeconds for backoff. A failed or cancelled job is terminal.
create_projectCreate projectWritesprojects:writeCreate a project to hold new work when list_projects has no suitable one.
What Claude Code is told
Create a project to hold new work when list_projects has no suitable one. For ordinary creative production use mode "campaign" with productionKind "image" or "video"; use "manual" only for an upload-only bucket. Other modes need extra fields described in the schema: automatic (brief and schedule) and ecommerce (deliverableSlots); agentic is reserved for Dreamshot site admins and is refused for everyone else. Returns { projectId, name, mode, generationMode, type }. Free. Each call creates a new project, so check list_projects first to avoid duplicates.
list_creative_capabilitiesList enabled modelsRead-onlytools:readList the creative tools and model variants this organization may use, as [{ name, kind, variant, order, constraints }].
What Claude Code is told
List the creative tools and model variants this organization may use, as [{ name, kind, variant, order, constraints }]. constraints includes supported sizes, ratios, reference limits and model-specific option fields. Image models are the variants of tool "ai_edit" (pass one as generate_image.variant); video models are the variants of "create_video" (pass one as generate_video.model); music is "create_music". A model outside this list is refused with a permissions error. Free, read-only.
create_reference_uploadStart a reference uploadWritesgeneration:writeStep 1 of 3 to use a local image, video or audio file as a generation input.
What Claude Code is told
Step 1 of 3 to use a local image, video or audio file as a generation input. Accepts JPEG/PNG/WebP up to 50 MB, MP4/MOV video up to 50 MB, and MP3/WAV/M4A audio up to 100 MB. Send projectId, fileType and the EXACT fileSize in bytes (for example from `wc -c < file`). Returns { uploadUrl, method: "PUT", headers, uploadGrant, expiresInSeconds: 3600 }. Step 2: upload the bytes yourself, e.g. `curl -X PUT -H "Content-Type: <fileType>" -H "Cache-Control: <headers Cache-Control>" --upload-file <path> "<uploadUrl>"`. Step 3: call confirm_reference_upload with the same projectId and the uploadGrant to get a mediaId. The slot expires after 1 hour. Free; creates nothing until confirmed.
confirm_reference_uploadConfirm a reference uploadWritesprojects:writeStep 3 of 3 after create_reference_upload and the PUT.
What Claude Code is told
Step 3 of 3 after create_reference_upload and the PUT. Send projectId, the uploadGrant and optionally fileName. The server checks the stored file matches the declared type and size, measures its real dimensions, and freezes a private copy, measures video/audio duration when applicable, and adds it to the project as internal (team-only) media. Returns { mediaId, width, height, bytes, mimeType, alreadyConfirmed }. Use mediaId in generate_image.referenceImageMediaIds or the *MediaId(s) inputs of generate_video. If it answers object_not_found, the PUT has not completed yet; a wrong size or type deletes the file and you must start again. Safe to repeat: a second confirm returns the same mediaId. If confirmation_in_progress is returned, wait and retry the same grant. Free.
estimate_image_costEstimate image costRead-onlygeneration:writePrice a generate_image request WITHOUT running it.
What Claude Code is told
Price a generate_image request WITHOUT running it. Takes exactly the generate_image input; every validation runs (model access, project, references, size), but nothing is created or charged. Returns { estimatedCredits, model, resolution, durationSec } or the error the real call would return. Call it before every generate_image and tell the user the cost when it matters. Free, read-only.
generate_imageGenerate imageGeneratesgeneration:writeCreate new images in a project.
What Claude Code is told
Create new images in a project. Required: projectId and an English prompt. variant picks the model (see list_creative_capabilities; default nano_banana_2); aspectRatio defaults to 1:1; outputCount 1-14 images per call, each billed. resolution takes the model size token (e.g. 1K, 2K, 4K for Nano Banana), never pixel sizes you derive yourself. Up to 14 reference images go in referenceImageMediaIds, in order ("the second image" = second id). Media inputs are media ids from this organization only (from get_generation outputs, get_generation_media or confirm_reference_upload); URLs are never accepted. To use a local file, upload it with create_reference_upload then confirm_reference_upload. Run estimate_image_cost first with the same input. Use idempotencyKey (a new UUID for new work, the same key for retries) and optional maxCredits as a hard ceiling checked before creation. Spends credits from the organization balance (amounts are credits, not money). If the balance cannot cover it the call fails with requiredCredits and availableCredits and nothing is created. The call returns immediately with { generationId, status: "processing", estimatedCredits }; the work runs in the background. Poll get_generation with that id until status is completed, failed or cancelled, then call get_generation_media for the files. Images usually finish in 10-90 seconds; poll every 10 seconds. Every id (projectId, mediaId, generationId) must come from a previous tool result; never invent one.
estimate_video_costEstimate video costRead-onlygeneration:writePrice a generate_video request WITHOUT running it.
What Claude Code is told
Price a generate_video request WITHOUT running it. Takes exactly the generate_video input (including draft and draftGenerationId); every validation runs, nothing is created or charged. Returns { estimatedCredits, model, resolution, durationSec } or the error the real call would return. Video is the most expensive operation: always estimate first and confirm with the user before generating. Free, read-only.
generate_videoGenerate videoGeneratesgeneration:writeCreate a new video in a project (use run_video_task for editing or extension of an existing video): text-to-video, image-to-video (inputImageMediaId as start frame, optional endImageMediaId), character/product consistency (referenceElements), style images, reference videos/audio (@Video1, @Audio1 in the prompt follow list order) and multi-shot prompts.
What Claude Code is told
Create a new video in a project (use run_video_task for editing or extension of an existing video): text-to-video, image-to-video (inputImageMediaId as start frame, optional endImageMediaId), character/product consistency (referenceElements), style images, reference videos/audio (@Video1, @Audio1 in the prompt follow list order) and multi-shot prompts. model picks the engine (enum in the schema; check list_creative_capabilities for what this organization may use). durationSeconds, resolution and aspectRatio must be values the chosen model supports; a bad value is refused before anything is charged. Recommended flow with bytedance/seedance-2.5 (up to 30 s, 480p/720p/1080p, native audio): 1) estimate_video_cost then generate_video with draft: true for a cheaper 480p preview; 2) poll until completed and review it with the user; 3) render the 1080p final with ONLY { projectId, model, draftGenerationId: <draft generationId>, outputFormat? } (prompt, references, duration and audio are inherited; drafts expire after 7 days). The draft and the final are billed separately. Media inputs are media ids from this organization only (from get_generation outputs, get_generation_media or confirm_reference_upload); URLs are never accepted. To use a local file, upload it with create_reference_upload then confirm_reference_upload. Use idempotencyKey (a new UUID for new work, the same key for retries) and optional maxCredits as a hard ceiling checked before creation. Spends credits from the organization balance (amounts are credits, not money). If the balance cannot cover it the call fails with requiredCredits and availableCredits and nothing is created. The call returns immediately with { generationId, status: "processing", estimatedCredits }; the work runs in the background. Poll get_generation with that id until status is completed, failed or cancelled, then call get_generation_media for the files. Video usually takes 1-10 minutes; poll every 30 seconds. Prompts in English. Every id (projectId, mediaId, generationId) must come from a previous tool result; never invent one.
get_generationGet generation statusRead-onlygeneration:readRead one generation by id (a generationId from a generate_* call, or a mediaId, which resolves to the generation that produced it).
What Claude Code is told
Read one generation by id (a generationId from a generate_* call, or a mediaId, which resolves to the generation that produced it). Use it to poll. status is prompt_ready, pending or running while in progress, and completed, failed or cancelled when done; on failed, error explains why (failed work is not charged). Returns the prompt, tool, variant, creditsCost, referenceImageUrls and outputs [{ id, url }] once completed; outputs[].id is the mediaId to reuse as an input. Read-only and free; this never starts a generation.
get_generation_mediaGet generation filesRead-onlymedia:readList the output files of a COMPLETED generation: [{ id, displayUrl, downloadUrl, mediaKind, resolution }].
What Claude Code is told
List the output files of a COMPLETED generation: [{ id, displayUrl, downloadUrl, mediaKind, resolution }]. downloadUrl is a signed link to the original file valid for 1 hour (download it with curl -L -o <file> "<downloadUrl>"); displayUrl is the public CDN URL. id is the mediaId to reuse as a generation input. Empty while the generation is still running. Free, read-only.
list_voicesList voicesRead-onlyAudio orgstools:readList the ElevenLabs voices this organization may use for generate_voiceover, as { voices: [{ voiceId, name, category, description, previewUrl }], hasMore, nextPageToken }.
What Claude Code is told
List the ElevenLabs voices this organization may use for generate_voiceover, as { voices: [{ voiceId, name, category, description, previewUrl }], hasMore, nextPageToken }. Use search to filter by name. Free, read-only.
generate_musicGenerate musicGeneratesAudio orgsgeneration:writeGenerate one music track in a project from an English prompt.
What Claude Code is told
Generate one music track in a project from an English prompt. variant picks the model (music_v2 = ElevenLabs Music, takes durationSeconds; lyria3_pro accepts an optional mood image media id; MiniMax models accept lyrics). Use idempotencyKey (a new UUID for new work, the same key for retries) and optional maxCredits as a hard ceiling checked before creation. Spends credits from the organization balance (amounts are credits, not money). If the balance cannot cover it the call fails with requiredCredits and availableCredits and nothing is created. (ElevenLabs Music costs 0 credits.) The call returns immediately with { generationId, status: "processing", estimatedCredits }; the work runs in the background. Poll get_generation with that id until status is completed, failed or cancelled, then call get_generation_media for the files. Lyria takes 2-3 minutes and MiniMax up to 10; poll every 30 seconds. Every id (projectId, mediaId, generationId) must come from a previous tool result; never invent one.
generate_voiceoverGenerate voiceoverGeneratesAudio orgsgeneration:writeRead a script aloud in a workspace voice and save the audio in a project.
What Claude Code is told
Read a script aloud in a workspace voice and save the audio in a project. voiceId must come from list_voices. Keep the script in its own language. variant: eleven_flash_v2_5 (fast, default), eleven_multilingual_v2 (stable multilingual) or eleven_v3 (most expressive). Costs 0 credits. The call returns immediately with { generationId, status: "processing", estimatedCredits }; the work runs in the background. Poll get_generation with that id until status is completed, failed or cancelled, then call get_generation_media for the files. Every id (projectId, mediaId, generationId) must come from a previous tool result; never invent one.
edit_imageEdit an existing imageGeneratesgeneration:writeChange an existing image with a short instruction describing only the change.
What Claude Code is told
Change an existing image with a short instruction describing only the change. baseImageMediaId is required; additionalReferenceMediaIds are ordered donor images. variant and model-specific controls follow generate_image. maskMediaId optionally limits a supported edit. Media inputs are media ids from this organization only (from get_generation outputs, get_generation_media or confirm_reference_upload); URLs are never accepted. To use a local file, upload it with create_reference_upload then confirm_reference_upload. Use estimateOnly: true first to validate and price the exact same request without creating or charging work, then omit it to execute. Use idempotencyKey (a new UUID for new work, the same key for retries) and optional maxCredits as a hard ceiling checked before creation. Spends credits from the organization balance (amounts are credits, not money). If the balance cannot cover it the call fails with requiredCredits and availableCredits and nothing is created. The call returns immediately with { generationId, status: "processing", estimatedCredits }; the work runs in the background. Poll get_generation with that id until status is completed, failed or cancelled, then call get_generation_media for the files.
reframe_imageReframe an imageGeneratesgeneration:writeReframe imageMediaId to one of the exact pixel dimensions in the schema.
What Claude Code is told
Reframe imageMediaId to one of the exact pixel dimensions in the schema. Media inputs are media ids from this organization only (from get_generation outputs, get_generation_media or confirm_reference_upload); URLs are never accepted. To use a local file, upload it with create_reference_upload then confirm_reference_upload. Use estimateOnly: true first to validate and price the exact same request without creating or charging work, then omit it to execute. Use idempotencyKey (a new UUID for new work, the same key for retries) and optional maxCredits as a hard ceiling checked before creation. Spends credits from the organization balance (amounts are credits, not money). If the balance cannot cover it the call fails with requiredCredits and availableCredits and nothing is created. The call returns immediately with { generationId, status: "processing", estimatedCredits }; the work runs in the background. Poll get_generation with that id until status is completed, failed or cancelled, then call get_generation_media for the files.
retouch_imageRetouch a masked imageGeneratesgeneration:writeInpaint a masked region: imageMediaId is the source, maskMediaId is the uploaded mask, and instruction describes only the change.
What Claude Code is told
Inpaint a masked region: imageMediaId is the source, maskMediaId is the uploaded mask, and instruction describes only the change. Uses the enabled retouch model. Media inputs are media ids from this organization only (from get_generation outputs, get_generation_media or confirm_reference_upload); URLs are never accepted. To use a local file, upload it with create_reference_upload then confirm_reference_upload. Use estimateOnly: true first to validate and price the exact same request without creating or charging work, then omit it to execute. Use idempotencyKey (a new UUID for new work, the same key for retries) and optional maxCredits as a hard ceiling checked before creation. Spends credits from the organization balance (amounts are credits, not money). If the balance cannot cover it the call fails with requiredCredits and availableCredits and nothing is created. The call returns immediately with { generationId, status: "processing", estimatedCredits }; the work runs in the background. Poll get_generation with that id until status is completed, failed or cancelled, then call get_generation_media for the files.
combine_imagesCombine two imagesGeneratesgeneration:writeCombine firstImageMediaId and secondImageMediaId following an English prompt and supported aspectRatio.
What Claude Code is told
Combine firstImageMediaId and secondImageMediaId following an English prompt and supported aspectRatio. Media inputs are media ids from this organization only (from get_generation outputs, get_generation_media or confirm_reference_upload); URLs are never accepted. To use a local file, upload it with create_reference_upload then confirm_reference_upload. Use estimateOnly: true first to validate and price the exact same request without creating or charging work, then omit it to execute. Use idempotencyKey (a new UUID for new work, the same key for retries) and optional maxCredits as a hard ceiling checked before creation. Spends credits from the organization balance (amounts are credits, not money). If the balance cannot cover it the call fails with requiredCredits and availableCredits and nothing is created. The call returns immediately with { generationId, status: "processing", estimatedCredits }; the work runs in the background. Poll get_generation with that id until status is completed, failed or cancelled, then call get_generation_media for the files.
control_cameraChange a camera angleGeneratesgeneration:writeCreate a new view of imageMediaId using rotateDegrees, moveForward, verticalTilt, useWideAngle and the canonical aspectRatio/outputFormat controls.
What Claude Code is told
Create a new view of imageMediaId using rotateDegrees, moveForward, verticalTilt, useWideAngle and the canonical aspectRatio/outputFormat controls. Media inputs are media ids from this organization only (from get_generation outputs, get_generation_media or confirm_reference_upload); URLs are never accepted. To use a local file, upload it with create_reference_upload then confirm_reference_upload. Use estimateOnly: true first to validate and price the exact same request without creating or charging work, then omit it to execute. Use idempotencyKey (a new UUID for new work, the same key for retries) and optional maxCredits as a hard ceiling checked before creation. Spends credits from the organization balance (amounts are credits, not money). If the balance cannot cover it the call fails with requiredCredits and availableCredits and nothing is created. The call returns immediately with { generationId, status: "processing", estimatedCredits }; the work runs in the background. Poll get_generation with that id until status is completed, failed or cancelled, then call get_generation_media for the files.
upscale_imageUpscale an imageGeneratesgeneration:writeEnhance imageMediaId with an enabled enhancer variant.
What Claude Code is told
Enhance imageMediaId with an enabled enhancer variant. Scale and creative controls follow the schema; actual input dimensions are read from the media record for validation and pricing. Media inputs are media ids from this organization only (from get_generation outputs, get_generation_media or confirm_reference_upload); URLs are never accepted. To use a local file, upload it with create_reference_upload then confirm_reference_upload. Use estimateOnly: true first to validate and price the exact same request without creating or charging work, then omit it to execute. Use idempotencyKey (a new UUID for new work, the same key for retries) and optional maxCredits as a hard ceiling checked before creation. Spends credits from the organization balance (amounts are credits, not money). If the balance cannot cover it the call fails with requiredCredits and availableCredits and nothing is created. The call returns immediately with { generationId, status: "processing", estimatedCredits }; the work runs in the background. Poll get_generation with that id until status is completed, failed or cancelled, then call get_generation_media for the files.
generate_talking_videoCreate a talking videoGeneratesgeneration:writeLip-sync sourceMediaId to audioMediaId.
What Claude Code is told
Lip-sync sourceMediaId to audioMediaId. sourceKind must match the source; model, resolution and syncMode use the canonical contract. Durations are read from the media records for pricing. Media inputs are media ids from this organization only (from get_generation outputs, get_generation_media or confirm_reference_upload); URLs are never accepted. To use a local file, upload it with create_reference_upload then confirm_reference_upload. Use estimateOnly: true first to validate and price the exact same request without creating or charging work, then omit it to execute. Use idempotencyKey (a new UUID for new work, the same key for retries) and optional maxCredits as a hard ceiling checked before creation. Spends credits from the organization balance (amounts are credits, not money). If the balance cannot cover it the call fails with requiredCredits and availableCredits and nothing is created. The call returns immediately with { generationId, status: "processing", estimatedCredits }; the work runs in the background. Poll get_generation with that id until status is completed, failed or cancelled, then call get_generation_media for the files.
generate_depth_mapCreate a video depth mapGeneratesgeneration:writeCreate a per-frame grayscale depth-map video from videoMediaId.
What Claude Code is told
Create a per-frame grayscale depth-map video from videoMediaId. No prompt is needed. Source duration must be between 1 and 80 seconds; it is measured from the stored media. Media inputs are media ids from this organization only (from get_generation outputs, get_generation_media or confirm_reference_upload); URLs are never accepted. To use a local file, upload it with create_reference_upload then confirm_reference_upload. Use estimateOnly: true first to validate and price the exact same request without creating or charging work, then omit it to execute. Use idempotencyKey (a new UUID for new work, the same key for retries) and optional maxCredits as a hard ceiling checked before creation. Spends credits from the organization balance (amounts are credits, not money). If the balance cannot cover it the call fails with requiredCredits and availableCredits and nothing is created. The call returns immediately with { generationId, status: "processing", estimatedCredits }; the work runs in the background. Poll get_generation with that id until status is completed, failed or cancelled, then call get_generation_media for the files.
upscale_videoUpscale a videoGeneratesgeneration:writeUpscale videoMediaId with an enabled video upscaler variant.
What Claude Code is told
Upscale videoMediaId with an enabled video upscaler variant. Actual source duration and dimensions determine validation and cost. scaleFactor and tier follow the schema. Media inputs are media ids from this organization only (from get_generation outputs, get_generation_media or confirm_reference_upload); URLs are never accepted. To use a local file, upload it with create_reference_upload then confirm_reference_upload. Use estimateOnly: true first to validate and price the exact same request without creating or charging work, then omit it to execute. Use idempotencyKey (a new UUID for new work, the same key for retries) and optional maxCredits as a hard ceiling checked before creation. Spends credits from the organization balance (amounts are credits, not money). If the balance cannot cover it the call fails with requiredCredits and availableCredits and nothing is created. The call returns immediately with { generationId, status: "processing", estimatedCredits }; the work runs in the background. Poll get_generation with that id until status is completed, failed or cancelled, then call get_generation_media for the files.
get_video_compositionRead the video timelineRead-onlyprojects:readRead the saved timeline, tracks, clips, canvas and revision of a video Campaign project.
What Claude Code is told
Read the saved timeline, tracks, clips, canvas and revision of a video Campaign project. Optional editId selects a cut from list_video_composition_variations; omit it for the base cut. Read before editing and use its revision as expectedRevision.
list_video_composition_sound_effectsSearch sound effectsRead-onlyprojects:readSearch the shared sound library by name/tag.
What Claude Code is told
Search the shared sound library by name/tag. Returns reusable ids, preview URLs, durations and licenses. Use an id as an audio clip mediaId; convert durationMs to frames with the composition fps.
list_video_composition_fontsList brand fontsRead-onlyprojects:readList uploaded brand fonts for this organization.
What Claude Code is told
List uploaded brand fonts for this organization. Use a returned id as fontAssetId on a text clip. Other font ids are refused before saving.
preview_video_composition_editPreview timeline editsRead-onlyprojects:readValidate an atomic operations batch against expectedRevision without saving.
What Claude Code is told
Validate an atomic operations batch against expectedRevision without saving. Returns baseRevision and candidate timeline. Optional editId selects a saved cut. A stale revision returns revision_conflict.
edit_video_compositionEdit the video timelineWritesprojects:writeApply an atomic, frame-based operations batch with expectedRevision and optional editId.
What Claude Code is told
Apply an atomic, frame-based operations batch with expectedRevision and optional editId. The schema describes clip/track/canvas operations, placement, trim, split, text, audio and effects. Automatically saves a before-state checkpoint. A revision_conflict changes nothing: read the latest timeline and reapply only the intended change.
undo_latest_video_interventionUndo the latest timeline editWritesprojects:writeRestore the before-state of the latest agent edit.
What Claude Code is told
Restore the before-state of the latest agent edit. Requires the exact expectedRevision and optional editId. Refuses if newer human or agent edits exist, preserving their work.
render_video_compositionRender the saved video cutWritesprojects:writegeneration:writeQueue an immutable snapshot of revision and optional editId.
What Claude Code is told
Queue an immutable snapshot of revision and optional editId. mode video exports MP4; frame renders one still; frames makes a contact sheet. Preview range and frames require destination download. quality, resolution, variants and destination use the same export contract as Studio. Repeating the same render is safe. Returns jobId: poll get_video_composition_render, including after reconnect. Does not publish the cut.
get_video_composition_renderRead video render statusRead-onlyprojects:readPoll jobId within its exact projectId and optional editId.
What Claude Code is told
Poll jobId within its exact projectId and optional editId. On completed returns mediaId and/or downloadUrl, plus outputs for variants. Download-only outputs expire after 24 hours. Resume polling the existing job after reconnect; never submit a new render just because a connection closed.
list_video_composition_variationsList video cutsRead-onlyprojects:readList saved cuts with editId, name and revision.
What Claude Code is told
List saved cuts with editId, name and revision. Use the returned editId consistently for reads, edits, checkpoints, render submission and status.
create_video_composition_variationCreate a video cutWritesprojects:writeCreate an empty cut or duplicate sourceEditId.
What Claude Code is told
Create an empty cut or duplicate sourceEditId. expectedRevision must match the source. Returns the new editId and revision; use them for subsequent edits. Each call creates a cut.
list_video_composition_checkpointsList timeline checkpointsRead-onlyprojects:readList manual and automatic checkpoints for projectId and optional editId, including checkpoint ids, names and source/result revisions.
What Claude Code is told
List manual and automatic checkpoints for projectId and optional editId, including checkpoint ids, names and source/result revisions. Read-only; snapshot internals are omitted.
create_video_composition_checkpointSave a named timeline checkpointWritesprojects:writeSave a named recovery point of the saved timeline with expectedRevision and optional editId.
What Claude Code is told
Save a named recovery point of the saved timeline with expectedRevision and optional editId. Does not advance the timeline revision. Each call creates a checkpoint.
restore_video_composition_checkpointRestore a timeline checkpointWritesprojects:writeRestore checkpointId within this project and optional editId.
What Claude Code is told
Restore checkpointId within this project and optional editId. Requires expectedRevision from the current timeline and advances it atomically. A stale revision returns revision_conflict without overwriting newer work.
Credits
Every generation spends credits from your organization's balance. Amounts are credits, not money.
- Estimate first. Over MCP,
estimate_image_costandestimate_video_costtake exactly the input of the generate tool. Over REST, add?estimate=1to the same request. Every check runs, nothing is created and nothing is charged. - Charged per generation. Each generation you start is charged to the organization; the accepted request tells you the amount as
estimatedCredits. Several outputs in one call are billed per output. - No balance, no work. If the balance cannot cover a generation it is refused and nothing is created. The refusal says how many credits it needs and how many you have.
- Failed work is free. A generation that fails is not charged. Cancelling one that has not reached the provider yet releases its credits.
{
"estimatedCredits": 12.5,
"model": "bytedance/seedance-2.5",
"resolution": "480p",
"durationSec": 8
}Seedance 2.5: draft, then final
Video is the most expensive operation, so bytedance/seedance-2.5 (up to 30 seconds, native audio) supports a two-step flow:
- Render a cheaper 480p draft with
draft: trueand review it. - Render the 1080p final by sending only
draftGenerationId(plus the project and the model). The prompt, references, duration and audio are inherited from the draft, so the final matches what you approved.
The draft and the final are billed separately. Drafts can be finalized for 7 days. A request cannot be a draft and a final at once.
REST API
The same token works over plain HTTPS for scripts and your own apps. Claude Code users do not need this section.
Base URL and authentication
Base URL: https://app.dreamshot.io/api/v1. Send the token on every request as Authorization: Bearer dst_.... Bodies are JSON.
export DREAMSHOT_TOKEN="dst_..."
curl https://app.dreamshot.io/api/v1/projects?limit=5 \
-H "Authorization: Bearer $DREAMSHOT_TOKEN"Endpoints
- GET
/api/v1/toolsList the tools and model variants the API accepts.
tools:read - POST
/api/v1/generationsStart a generation. Answers 202 and runs in the background.
generation:write - POST
/api/v1/generations?estimate=1Price the same request without running it. Free.
generation:write - GET
/api/v1/generations/:idPoll status: pending, completed, failed or cancelled.
generation:read - GET
/api/v1/generations/:id/mediaOutput files, each with a signed download URL valid for 1 hour.
media:read - POST
/api/v1/generations/:id/cancelCancel work that has not reached the provider yet.
generation:write - GET
/api/v1/voicesVoices for create_voiceover. Organizations with audio enabled only.
tools:read - GET
/api/v1/projectsList projects, newest update first (page, limit, search).
projects:read - POST
/api/v1/projectsCreate a project to hold new work.
projects:write - GET
/api/v1/projects/:idRead one project.
projects:read - GET
/api/v1/media/:idRead one media item and the generation that produced it (prompt, tool, variant).
media:read
Start a generation
POST /api/v1/generations answers 202 at once with a generationId; the work runs in the background. Poll GET /api/v1/generations/:id (every ~10 s for images, ~30 s for video) until the status is completed, failed or cancelled, then read the files from /media.
tool- Required. A tool name from GET /api/v1/tools: ai_edit for images, create_video for video.
variant- The model, e.g. nano_banana_2 or bytedance/seedance-2.5. Omitted, the tool default is used. Only models enabled for your organization run (the MCP tool list_creative_capabilities lists them); others are refused.
projectId- The project the outputs land in. Must belong to the organization that owns the token.
params- Model inputs: prompt (English), aspectRatio, resolution, duration (video seconds as a string), generateAudio, outputFormat, draft, draftGenerationId. A value the model does not support answers 400 before anything is charged.
estimateOnly- true (or ?estimate=1 on the URL) prices the request and creates nothing.
{
"tool": "ai_edit",
"variant": "nano_banana_2",
"projectId": "<projectId>",
"params": {
"prompt": "A ceramic coffee mug on a linen tablecloth, soft morning light",
"aspectRatio": "4:5"
}
}create_reference_upload then confirm_reference_upload) or in the app.Example: Seedance 2.5 draft to final
1. Start the 480p draft (add ?estimate=1 to the URL first to see the price):
curl -X POST "https://app.dreamshot.io/api/v1/generations" \
-H "Authorization: Bearer $DREAMSHOT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"tool": "create_video",
"variant": "bytedance/seedance-2.5",
"projectId": "<projectId>",
"params": {
"prompt": "Slow dolly-in on a ceramic mug on a linen tablecloth, steam rising, soft morning light",
"duration": "8",
"aspectRatio": "16:9",
"generateAudio": true,
"draft": true
}
}'HTTP 202
{
"generationId": "<draftGenerationId>",
"status": "processing",
"tool": "create_video",
"variant": "bytedance/seedance-2.5",
"estimatedCredits": 12.5
}2. Poll until it completes:
curl "https://app.dreamshot.io/api/v1/generations/<generationId>" \
-H "Authorization: Bearer $DREAMSHOT_TOKEN"{
"generationId": "<generationId>",
"projectId": "<projectId>",
"status": "completed",
"tool": "create_video",
"variant": "bytedance/seedance-2.5",
"error": null,
"createdAt": "2026-10-16T09:41:12.482Z",
"userInput": { "...": "the inputs the generation ran with" },
"mediaItems": [
{
"id": "<mediaId>",
"displayUrl": "https://storage.dreamshot.io/...",
"mediaKind": "video",
"resolution": "854x480",
"role": "output"
}
]
}3. Approve the draft, then render the 1080p final from it:
curl -X POST "https://app.dreamshot.io/api/v1/generations" \
-H "Authorization: Bearer $DREAMSHOT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"tool": "create_video",
"variant": "bytedance/seedance-2.5",
"projectId": "<projectId>",
"params": { "draftGenerationId": "<draftGenerationId>" }
}'4. Poll the final the same way, then download it. Download links are signed and expire after 1 hour; ask again for a fresh one.
curl "https://app.dreamshot.io/api/v1/generations/<generationId>/media" \
-H "Authorization: Bearer $DREAMSHOT_TOKEN"
# { "generationId": "...", "media": [
# { "id": "<mediaId>", "displayUrl": "...", "downloadUrl": "...",
# "mediaKind": "video", "resolution": "1920x1080" } ] }
curl -L -o final.mp4 "<downloadUrl>"Projects
Every generation lands in a project. List them with GET /api/v1/projects (page, limit up to 100, search on the name) or create one:
curl -X POST "https://app.dreamshot.io/api/v1/projects" \
-H "Authorization: Bearer $DREAMSHOT_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "name": "Spring campaign", "description": "Mug launch visuals" }'
# HTTP 201, the project, including its "id"{
"items": [
{ "id": "<projectId>", "name": "Spring campaign", "type": "standard",
"mediaCount": 12, "updatedAt": "2026-10-16T09:41:12.482Z", "...": "..." }
],
"page": 1,
"limit": 50,
"totalItems": 1,
"totalPages": 1,
"hasNextPage": false
}Errors
Errors are JSON with an error field and, in most cases, a human-readable message.
{
"error": "validation_error",
"message": "Required"
}HTTP 402
{
"error": "execution_error",
"message": "Insufficient credits for this operation",
"requiredCredits": 12.5,
"availableCredits": 4.5
}- 400
- invalid_json, validation_error (the message names the problem) or a model input the model does not support.
- 401
- unauthorized: missing, malformed, expired or revoked token.
- 402
- Insufficient credits. Carries requiredCredits and availableCredits when known. Nothing was created.
- 403
- forbidden: the token lacks the scope, the resource belongs to another organization, or the token creator left the organization.
- 404
- Unknown or malformed id.
- 409
- Cancel refused: the generation is already running or finished.
- 429
- rate_limit_exceeded: the token used its hourly request budget.
Rate limits
Each token has an hourly request budget, 1,000 requests by default (set when the token is created, up to 10,000). MCP and REST calls made with the token share it. Past the budget, requests answer 429 with rate_limit_exceeded. Back off before retrying: when the response carries a Retry-After header, wait that many seconds. Poll at the intervals above rather than in a tight loop.
Security
A token acts as you, inside one organization, and can spend its credits.
- Keep it secret. Never commit a token, paste it into a chat or a shared document, or put it in client-side code. Store it in an environment variable or a secret manager.
- Revoke on leak. If a token may have been exposed, revoke it right away under API tokens and create a new one. Revocation takes effect on the next request.
- Organization-scoped. A token only reaches the organization it was created in, and stops working if you leave that organization.
- Least privilege. Grant only the permissions you need; a read-only token cannot generate or spend credits.
- Tokens expire. Create a new one before the old one expires, and set a rate limit that matches how you use it.