register a media asset
assets_createRegisters a public media URL or sync upload as a reusable asset, and imports YouTube, TikTok, Instagram, or Facebook video links into saved VIDEO assets for generation or dubbing workflows.
Instructions
Register a media file at a URL as a reusable sync. asset, or import a YouTube, TikTok, Instagram or Facebook video link into a saved VIDEO asset. Use it for a public https:// file, the url assets_create-upload-url returned after your PUT, or a social link. Not for a local file (call assets_create-upload-url first), finding an existing asset (assets_list) or renaming one (assets_update). Returns the asset (id, type, name, url, visibility, thumbnailUrl, projectId); pass its id as an asset input to generation tools, or as videoAssetId in dubbing_create when available.
Direct URL: the asset is saved at once and every call saves another one, so do not repeat a call that succeeded. A sync. upload must already hold the PUT bytes and fit the plan's size limit (422 otherwise).
Social link: send type=VIDEO and the projectId for this request; the asset is named after the video, and name, visibility and the metadata fields are ignored. 409 import_in_progress means it is still downloading: wait retryAfterMs (15 seconds if absent) and repeat the identical request, which reuses the running import, or pass wait: true. The importJobId in the 409 is not an asset id. On import_failed, import_not_enabled, import_unavailable or an import limit (daily or concurrent), explain the error and stop; do not restart the import. Import first, then estimate and confirm translation.
Projects: pass projectId only with projectIntent=explicit, when the user asked to work in that project, selected it in the interface, or it was just created for this request. A matching workflow/name or an already-open editor is never permission to modify it. Default new work to a new project.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>",
"type": "<type>"
},
"name": "assets_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Media URL: a public https:// file, the url (not the uploadUrl) that assets_create-upload-url returned once the PUT finished, or a YouTube, TikTok, Instagram or Facebook video link. | |
| name | No | Display name for the asset. Not used for a social link, which is named after the video. | |
| size | No | File size in bytes, when known. For a sync. upload the stored file's measured size is used instead. | |
| type | Yes | Media type: VIDEO, AUDIO or IMAGE. Send VIDEO for a social video link; its import always saves a VIDEO asset. | |
| wait | No | Social link only: the server repeats the identical request every retryAfterMs (15 seconds if absent) until an attempt returns the saved asset or about 50 seconds pass. If no attempt got the asset, even when the import finished just after the last attempt, the call returns the 409 import_in_progress; call again with wait: true. | |
| width | No | Video or image width in pixels, when known. | |
| format | No | File format or extension, such as mp4 or wav, when known. | |
| height | No | Video or image height in pixels, when known. | |
| inputType | No | How the media was produced, such as UPLOAD or URL. Usually omitted. | |
| projectId | No | Project to attach the asset to; send it with projectIntent=explicit. Returns 422 if it is not a project you can use in this organization. | |
| visibility | No | USER (default) or ORGANIZATION, which shares the asset with everyone in the organization. A USER asset is still visible across the organization when attached to a project shared with the organization. Not used for a social link. | |
| thumbnailUrl | No | Optional preview image URL for the asset. | |
| contentSha256 | No | Optional lowercase hex SHA-256 digest of the file's bytes. | |
| projectIntent | No | Required with projectId. Set only for an explicit user project selection/update, or the new project just created for this request. Never infer intent from a matching project name, workflow name or active editor. | |
| idempotencyKey | No | Persist before creation. Reuse this same key and identical inputs only to reconcile uncertain admission; do not create a new key for a retry. | |
| durationSeconds | No | Media length in seconds, when known. |