Upload media
upload-mediaUploads user-provided image, video, or audio to Sync asset storage and returns a durable assetId for use in subsequent lipsync generation.
Instructions
Upload a user-provided image, video, or audio file to Sync asset storage and return a durable assetId. Use this when the user uploaded media in chat and a later Sync tool call should reference it by assetId. The file field must be the uploaded ChatGPT file object. For public URLs, use assets_create or pass the URL directly to create-lipsync. This tool only stores the media; it does not create a lipsync generation. After it returns, pass the assetId to create-lipsync as imageAssetId, videoAssetId, or audioAssetId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Uploaded media file from ChatGPT. Do not pass URL strings here. | |
| mediaType | Yes | Type of media being uploaded: image, video, or audio. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Generation input object that can be passed to Sync generation tools. | |
| assetId | Yes | Durable Sync asset id for the uploaded file. | |
| assetType | Yes | Sync asset type. | |
| mediaType | Yes | Uploaded media type. |