Import media from URL
upload_assetImport a direct file URL or public social post into the asset library. Social links support YouTube, TikTok, Instagram, Facebook, X/Twitter, LinkedIn, and Reddit (beta). Omit content_type for social links. Returns a job ID: call check_job until completed for the permanent media URL and asset ID. Use type audio for audio-only downloads on YouTube, TikTok, Instagram, or Facebook. X/LinkedIn/Reddit use downloadable post attachments; streaming-only Reddit videos with separate audio tracks are unsupported. Private or deleted posts cannot be imported. Social downloads default to 480p and cost 1.2 credits per started minute for audio/480p, 4.8 for 720p/1080p, with the total rounded up once per import; post-attachment lookup costs 2 credits per post. Before paid social imports, estimate_generation with operation media_import and params url/type/quality/max_duration previews the source duration, credit reservation and affordability. The full bounded quote is reserved upfront, unused credits are returned on completion, and the final charge cannot exceed the reservation. Unknown source durations use an affordable duration rejection limit. Sources longer than max_duration are rejected, not trimmed. Repeating a request returns its existing job, and an import already in the Library costs nothing.
Direct files are downloaded and stored for free and return immediately with the stored asset and its permanent URL: images, videos, audio, 3D models (glb, gltf served as model/gltf+json, obj, stl, usdz) and ZIP archives (type zip, up to 1 GiB). The type is read from the source headers or the file extension; pass type for a generic type such as application/octet-stream. The first bytes are checked, so HTML pages and JSON/API responses are rejected.
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>"
},
"name": "upload_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public direct file URL or supported social post URL to import and store permanently. Social imports return a job ID for check_job. | |
| name | No | Asset name; defaults to the file name. | |
| tags | No | Tags for organizing the asset. | |
| type | No | Expected type of a direct file; the import fails if the file is another type. Required for a ZIP (zip) or 3D model (3d_model) served with a generic type such as application/octet-stream. For social links, omit for video or use audio for audio-only downloads. | |
| quality | No | Social video resolution: 480p (default, 1.2 credits per started minute), 720p or 1080p (4.8). Total credits round up once per import. Ignored for type audio. | |
| description | No | Accepted for compatibility; not stored. | |
| skills_used | No | Optional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs. | |
| content_type | No | Accepted for compatibility; the type is read from the file. Omit for social links. | |
| max_duration | No | For social links, reject longer sources before downloading. Default 7200 seconds. This rejects long sources; it does not trim them. |