public_register_media
Register media for an order to attach audio/video and spend ElevenLabs credits; provide order ID, declared language, and a media URL, path, or base64 source.
Instructions
Register Media Spends ElevenLabs credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | The ID of the order to which this media will be attached. | |
| media_url | No | A URL to fetch the media file from. Mutually exclusive with media. | |
| media_path | No | The media file to upload. Mutually exclusive with media_url. Local path. | |
| media_base64 | No | Base64 contents for "media". Use this when the server cannot read your local disk. | |
| media_filename | No | Filename to send for "media". Some endpoints infer the audio format from it. | |
| declared_language | Yes | The language code of the media content (e.g. 'en', 'es-ES'). Must be a supported source language for some order item kind. | |
| media_url_filename | No | The filename for URL-sourced media (e.g. 'example.mp4'). Required when using media_url. | |
| media_url_content_type | No | The MIME type for URL-sourced media (e.g. 'video/mp4'). Required when using media_url. |