Create upload URL
create_uploadGet a presigned PUT URL to upload an image, video or audio file directly, plus the public URL it will have. Upload the bytes with HTTP PUT to uploadUrl (same Content-Type), then pass publicUrl to a generation call or the returned key as an r2Key (transcribe_media, create_voice_clone samples, voice_enhance). Prefer import_asset_from_url when you already have a URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| contentType | Yes | MIME type, e.g. image/png, video/mp4 or audio/mpeg |