@shotstack/schemas 1.20.1 → 1.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.bundled.json +335 -17
- package/dist/json-schema/edit.json +1 -1
- package/dist/json-schema/index.cjs +1 -1
- package/dist/json-schema/index.js +1 -1
- package/dist/schema.d.ts +345 -17
- package/package.json +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
export const edit = {"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Edit","description":"An edit defines the arrangement of a video on a timeline, an audio edit or an image design and the output format. Video assets are automatically preprocessed to fix common compatibility issues before rendering. You can control preprocessing behavior using the `transcode` flag on video assets.","properties":{"timeline":{"$ref":"#/$defs/Timeline"},"output":{"$ref":"#/$defs/Output"},"merge":{"description":"An array of key/value pairs that provides an easy way to create templates with placeholders. The placeholders can be used to find and replace keys with values. For example you can search for the placeholder `{{NAME}}` and replace it with the value `Jane`.","type":"array","items":{"$ref":"#/$defs/MergeField"}},"callback":{"type":"string","description":"An optional webhook callback URL used to receive status notifications when a render completes or fails. Notifications are also sent when a rendered video is sent to an output [destination](https://shotstack.io/docs/guide/serving-assets/destinations/).\nSee [webhooks](https://shotstack.io/docs/guide/architecting-an-application/webhooks/) for more details.","examples":["https://my-server.com/callback.php"]},"disk":{"description":"**Notice: This option is now deprecated and will be removed. Disk types are handled automatically. Setting a disk type has no effect.**\n\nThe disk type to use for storing footage and assets for each render. See [disk types](https://shotstack.io/docs/guide/architecting-an-application/disk-types/) for more details.\n\n- `local` - optimized for high speed rendering with up to 512MB storage\n\n- `mount` - optimized for larger file sizes and longer videos with 5GB for source footage and 512MB for output render","type":"string","enum":["local","mount"],"deprecated":true},"instance":{"description":"The render instance type to use for processing the edit.\n\n- `s1` - standard instance (default)\n\n- `s2` - standard instance with more resources\n\n- `a1` - accelerated instance for faster rendering","type":"string","enum":["s1","s2","a1"],"default":"s1"}},"additionalProperties":false,"required":["timeline","output"],"type":"object","$defs":{"Asset":{"type":"object","description":"The type of asset to display for the duration of the Clip, i.e. a video clip or an image. Choose from one of the available asset types below.","oneOf":[{"$ref":"#/$defs/VideoAsset"},{"$ref":"#/$defs/ImageAsset"},{"$ref":"#/$defs/TextAsset"},{"$ref":"#/$defs/RichTextAsset"},{"$ref":"#/$defs/AudioAsset"},{"$ref":"#/$defs/LumaAsset"},{"$ref":"#/$defs/CaptionAsset"},{"$ref":"#/$defs/RichCaptionAsset"},{"$ref":"#/$defs/HtmlAsset"},{"$ref":"#/$defs/Html5Asset"},{"$ref":"#/$defs/TitleAsset"},{"$ref":"#/$defs/ShapeAsset"},{"$ref":"#/$defs/SvgAsset"},{"$ref":"#/$defs/TextToImageAsset"},{"$ref":"#/$defs/ImageToVideoAsset"},{"$ref":"#/$defs/TextToSpeechAsset"}]},"AudioAsset":{"description":"The AudioAsset adds audio to a Clip. The audio can be sourced from a URL\n(`src`), generated from a text prompt (`prompt`), or both. At least one of\n`src` or `prompt` must be provided.\n\n- **Source URL:** set `src` to a publicly accessible audio URL (e.g. mp3).\n- **Generated speech:** set `prompt` to the spoken text and choose a\n text-to-speech `model`; set the voice via `options`.\n- **Generated music or SFX:** set `prompt` describing the sound and choose\n a music generation `model`.\n- **Both:** `src` acts as a preview placeholder while `prompt` drives\n generation — the audio is regenerated from the prompt at render time.\n Unchanged prompts and options resolve from the generation cache.\n- Use `model` to choose the generator and `options` to configure it. The\n generated `src` is filled in automatically.","type":"object","properties":{"type":{"enum":["audio"],"default":"audio","description":"The type of asset - set to `audio` for audio assets.","type":"string"},"src":{"description":"The audio source URL. The URL must be publicly accessible or include credentials. When `prompt` is also set, `src` serves as a preview placeholder and the audio is regenerated from the prompt at render time.","type":"string","minLength":1,"pattern":"\\S","examples":["https://s3-ap-northeast-1.amazonaws.com/my-bucket/sound.mp3"]},"prompt":{"description":"A text prompt. For text-to-speech models the prompt is the spoken text; for music models it describes the sound to generate. The generated `src` is filled in automatically; an existing `src` is treated as a preview placeholder and replaced.","type":"string","maxLength":4000,"examples":["Welcome to today's broadcast."]},"model":{"description":"The generation model to use when `prompt` is set (e.g. `polly-neural`, `elevenlabs-tts`, `elevenlabs-music`). Defaults to `elevenlabs-tts` (with a default voice) if omitted. Each model's available options are defined by the model registry.","type":"string","examples":["polly-neural"]},"options":{"description":"Model-specific generation settings. Valid keys and values depend on the chosen `model` and are defined by the model registry. Omitted options use the model's defaults. Unknown or invalid options are rejected.","type":"object","additionalProperties":true,"examples":[{"voice":"Matthew","language":"en-US"}]},"trim":{"description":"The start trim point of the audio clip, in seconds (defaults to 0). Audio will start from the in trim point. The audio will play until the file ends or the Clip length is reached.","type":"number"},"volume":{"description":"Set the volume of the audio clip. Use a number or an array of [Tween](./#tocs_tween) objects to create custom volume transitions.","oneOf":[{"type":"number","description":"The volume level for the audio clip. Range varies from 0 to 1 where 0 is muted and 1 is full volume (defaults to 1).","minimum":0,"maximum":1,"examples":[0.5]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects used to create a custom volume effect. Modify the volume of an asset over time.","items":{"$ref":"#/$defs/Tween"}}]},"speed":{"description":"Adjust the playback speed of the audio clip between 0 (paused) and 10 (10x normal speed), where 1 is normal speed (defaults to 1). Adjusting the speed will also adjust the duration of the clip and may require you to adjust the Clip length. For example, if you set speed to 0.5, the clip will need to be 2x as long to play the entire audio (i.e. original length / 0.5). If you set speed to 2, the clip will need to be half as long to play the entire audio (i.e. original length / 2).","type":"number","minimum":0,"maximum":10,"examples":[1]},"effect":{"description":"The effect to apply to the audio asset\n\n- `fadeIn` - fade volume in only\n\n- `fadeOut` - fade volume out only\n\n- `fadeInFadeOut` - fade volume in and out","enum":["none","fadeIn","fadeOut","fadeInFadeOut"],"type":"string"}},"additionalProperties":false,"required":["type"]},"CaptionAsset":{"deprecated":true,"description":"**Notice: The CaptionAsset is deprecated, use the [RichCaptionAsset](#tocs_richcaptionasset) instead.**\n\nThe CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will\nbe read and burnt to the video.\n\nCaptions can be applied independently from a video or audio file for greater\nflexibility with styling and layout. For example you can scale, position or crop a video without modifying the\ncaptions.\n\nTo sync captions with a video or audio file use a [Video](#tocs_videoasset) or [Audio](#tocs_audioasset) with\nmatching start and end time.","type":"object","properties":{"type":{"enum":["caption"],"default":"caption","description":"The type of asset - set to `caption` for captions.","type":"string"},"src":{"description":"The URL to an SRT or VTT subtitles file, or an alias reference to auto-generate captions from an audio or video clip. For file URLs, the URL must be publicly accessible or include credentials. For auto-captioning, use the format `alias://clip-name` where clip-name is the alias of an audio, video, or text-to-speech clip. The system will automatically transcribe the audio and detect the language.","type":"string","minLength":1,"pattern":"\\S","examples":["https://s3-ap-northeast-1.amazonaws.com/my-bucket/captions.srt"]},"font":{"description":"Font styling properties.","$ref":"#/$defs/CaptionFont"},"background":{"description":"Background styling properties.","$ref":"#/$defs/CaptionBackground"},"margin":{"description":"Margin properties.","$ref":"#/$defs/CaptionMargin"},"trim":{"description":"The start trim point of the captions, in seconds (defaults to 0). Remove the trim length from the start of the captions and allow it to be synced with video or audio. The captions will play until the file ends or the Clip length is reached.","type":"number","examples":[2]},"speed":{"description":"Adjust the playback speed of the captions between 0 (paused) and 10 (10x normal speed) where 1 is normal speed (defaults to 1). Adjusting the speed will also adjust the duration of the clip and may require you to adjust the Clip length. For example, if you set speed to 0.5, the clip will need to be 2x as long to play the entire captions (i.e. original length / 0.5). If you set speed to 2, the clip will need to be half as long to play the entire captions (i.e. original length / 2).","type":"number","minimum":0,"maximum":10,"examples":[1]}},"additionalProperties":false,"required":["type","src"]},"CaptionBackground":{"description":"Displays a background box behind the caption text.","properties":{"color":{"description":"The background color using hexadecimal color notation.","type":"string","examples":["#000000"]},"opacity":{"description":"The opacity of the background color.","type":"number","examples":[0.4]},"padding":{"description":"The padding inside the background box in pixels.","type":"integer","examples":[30]},"borderRadius":{"description":"The border radius of the background box in pixels.","type":"integer","examples":[18]}},"additionalProperties":false,"type":"object"},"CaptionFont":{"description":"Font properties for captions text.","properties":{"family":{"description":"The font family name. This must be Family name embedded in the font, i.e. \"Open Sans\".","type":"string","examples":["Open Sans"]},"color":{"description":"The text color using hexadecimal color notation.","type":"string","examples":["#ffffff"]},"opacity":{"description":"The opacity of the text where 1 is opaque and 0 is transparent.","type":"number","examples":[0.8]},"size":{"description":"The size of the font in pixels (px).","type":"integer","examples":[24]},"lineHeight":{"description":"The line height of the font as a ratio of the font size.","type":"number","examples":[0.85]},"stroke":{"description":"The stroke color of the font using hexadecimal color notation.","type":"string","examples":["#ff6600"]},"strokeWidth":{"description":"The width of the stroke in pixels.","type":"number","examples":[0.8]}},"additionalProperties":false,"type":"object"},"CaptionMargin":{"description":"The margin properties for captions. Margins are used to position the caption text and background on the screen.","properties":{"top":{"description":"The margin above the text. Pushes captions down the screen.","type":"number","examples":[0.25]},"left":{"description":"The margin to the left of the text. Pushes captions to the right.","type":"number","examples":[0.05]},"right":{"description":"The margin to the right of the text. Pushes captions to the left.","type":"number","examples":[0.45]}},"additionalProperties":false,"type":"object"},"ChromaKey":{"description":"Chroma key is a technique that replaces a specific color in a video with a different background image or video, enabling seamless integration of diverse environments. Commonly used for green screen and blue screen effects.","properties":{"color":{"description":"The chroma key color as a hex value. Use green (#00b140) for green screens or blue (#0000FF) for blue screens. Any valid hex color can be used as the key color.","type":"string","pattern":"^#[0-9a-fA-F]{6}$","examples":["#00b140"]},"threshold":{"description":"Pixels within this distance from the key color are eliminated by setting their alpha values to zero.","type":"integer","minimum":0,"maximum":250,"examples":[150]},"halo":{"description":"Pixels within the halo distance from the threshold boundary are given an increasing alpha value based on their distance from the threshold.","type":"integer","minimum":0,"maximum":250,"examples":[100]}},"additionalProperties":false,"required":["color"],"type":"object"},"Clip":{"description":"A clip is a container for a specific type of asset, i.e. a title, image, video, audio or html. You use a Clip to define when an asset will display on the timeline, how long it will play for and transitions, filters and effects to apply to it.","properties":{"id":{"description":"Optional client-generated identifier. Used by client SDKs (e.g. the Shotstack Studio SDK) to reference a clip across edits without relying on its position in the timeline. The render API does not use this field and it does not appear in render output.","type":"string","examples":["f47ac10b-58cc-4372-a567-0e02b2c3d479"]},"asset":{"$ref":"#/$defs/Asset"},"start":{"description":"The start position of the Clip on the timeline.","oneOf":[{"type":"number","description":"The start position of the Clip on the timeline, in seconds. For example, to start the Clip at 2 seconds, set the start value to 2.","minimum":0,"examples":[2]},{"type":"string","description":"The start position using a [smart clip property](/docs/guide/architecting-an-application/smart-clips/). Set to `auto` to automatically play the clip after the previous clip finishes. Use `alias://clip-name` to inherit the start time from the referenced clip.","pattern":"^(auto|alias://[A-Za-z0-9_-]+)$","examples":["auto"]}]},"length":{"description":"The duration the Clip should play for.","oneOf":[{"type":"number","description":"The duration the Clip should play for, in seconds. For example, to play the Clip for 5 seconds, set the length value to 5.","minimum":0,"examples":[5]},{"type":"string","description":"The duration the Clip should play for using a [smart clip property](/docs/guide/architecting-an-application/smart-clips/). Set to `auto` to play the Clip for the duration of the asset. Set to `end` to display or play the clip to the end of the timeline. Use `alias://clip-name` to inherit the length from the referenced clip.","pattern":"^(auto|end|alias://[A-Za-z0-9_-]+)$","examples":["auto"]}]},"fit":{"description":"Set how the asset should be scaled to fit the viewport using one of the following options:\n\n- `crop` (default) - scale the asset to fill the viewport while maintaining the aspect ratio. The asset will be cropped if it exceeds the bounds of the viewport.\n\n- `cover` - stretch the asset to fill the viewport without maintaining the aspect ratio.\n\n- `contain` - fit the entire asset within the viewport while maintaining the original aspect ratio.\n\n- `none` - preserves the original asset dimensions and does not apply any scaling.","enum":["cover","contain","crop","none"],"type":"string"},"scale":{"description":"Scale the asset to a fraction of the viewport size - i.e. setting the scale to 0.5 will scale asset to half the size of the viewport. This is useful for picture-in-picture video and scaling images such as logos and watermarks. Use a number or an array of [Tween](./#tocs_tween) objects to create a custom animation.","oneOf":[{"type":"number","description":"Scale the asset to a fraction of the viewport size. For example, 0.5 will scale the asset to half the size of the viewport.","examples":[0.5]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects used to create a custom animation. Animate the scale of an asset over time.","items":{"$ref":"#/$defs/Tween"}}]},"width":{"description":"Set the width of the clip bounding box in pixels. This constrains the width of the clip, overriding the default behavior where clips fill the viewport width.","type":"number","minimum":1,"maximum":3840,"examples":[800]},"height":{"description":"Set the height of the clip bounding box in pixels. This constrains the height of the clip, overriding the default behavior where clips fill the viewport height.","type":"number","minimum":1,"maximum":2160,"examples":[600]},"position":{"description":"Place the asset in one of nine predefined positions of the viewport. This is most effective for when the asset is scaled and you want to position the element to a specific position.\n\n- `top` - top (center)\n\n- `topRight` - top right\n\n- `right` - right (center)\n\n- `bottomRight` - bottom right\n\n- `bottom` - bottom (center)\n\n- `bottomLeft` - bottom left\n\n- `left` - left (center)\n\n- `topLeft` - top left\n\n- `center` - center","enum":["top","topRight","right","bottomRight","bottom","bottomLeft","left","topLeft","center"],"type":"string"},"offset":{"description":"Offset the location of the asset relative to its position on the viewport. The offset distance is relative to the width of the viewport - for example an x offset of 0.5 will move the asset half the viewport width to the right.","$ref":"#/$defs/Offset"},"transition":{"$ref":"#/$defs/Transition"},"effect":{"description":"A motion effect to apply to the Clip.\n\n- `zoomIn` - slow zoom in\n\n- `zoomOut` - slow zoom out\n\n- `slideLeft` - slow slide (pan) left\n\n- `slideRight` - slow slide (pan) right\n\n- `slideUp` - slow slide (pan) up\n\n- `slideDown` - slow slide (pan) down\n The motion effect speed can also be controlled by appending `Fast` or `Slow` to the effect, e.g. `zoomInFast` or `slideRightSlow`.","enum":["zoomIn","zoomInSlow","zoomInFast","zoomOut","zoomOutSlow","zoomOutFast","slideLeft","slideLeftSlow","slideLeftFast","slideRight","slideRightSlow","slideRightFast","slideUp","slideUpSlow","slideUpFast","slideDown","slideDownSlow","slideDownFast"],"type":"string"},"filter":{"description":"A filter effect to apply to the Clip.\n\n- `none` - no filter applied\n\n- `blur` - blur the scene\n\n- `boost` - boost contrast and saturation\n\n- `contrast` - increase contrast\n\n- `darken` - darken the scene\n\n- `greyscale` - remove colour\n\n- `lighten` - lighten the scene\n\n- `muted` - reduce saturation and contrast\n\n- `negative` - negative colors","enum":["none","blur","boost","contrast","darken","greyscale","lighten","muted","negative"],"type":"string","examples":["greyscale"]},"opacity":{"description":"Offset an asset on the horizontal axis (left or right). Use a number or an array of [Tween](./#tocs_tween) objects to create a custom animation.","oneOf":[{"type":"number","description":"Sets the opacity of the Clip where 1 is opaque and 0 is transparent.","examples":[0.5]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects used to create a custom animation. Animate the opacity of an asset over time.","items":{"$ref":"#/$defs/Tween"}}]},"transform":{"description":"A transformation lets you modify the visual properties of a clip. Available transformations are rotate, skew and flip. Transformations can be combined to create interesting new shapes and effects.","$ref":"#/$defs/Transformation"},"alias":{"description":"A unique identifier for this clip that can be used to reference it from other clips using the `alias://` protocol in asset sources. This is useful for features like auto-captioning where a caption asset needs to reference the audio from another clip.","type":"string","pattern":"^[A-Za-z0-9_-]+$","examples":["MY_VIDEO_CLIP"]}},"additionalProperties":false,"required":["asset","start","length"],"type":"object"},"Crop":{"description":"Crop the sides of an asset by a relative amount. The size of the crop is specified using a scale between 0 and 1, relative to the screen width - i.e a left crop of 0.5 will crop half of the asset from the left, a top crop of 0.25 will crop the top by quarter of the asset.","properties":{"top":{"description":"Crop from the top of the asset","type":"number","minimum":0,"maximum":1,"examples":[0.15]},"bottom":{"description":"Crop from the bottom of the asset","type":"number","minimum":0,"maximum":1,"examples":[0.15]},"left":{"description":"Crop from the left of the asset","type":"number","minimum":0,"maximum":1},"right":{"description":"Crop from the left of the asset","type":"number","minimum":0,"maximum":1}},"additionalProperties":false,"type":"object"},"Destinations":{"type":"object","description":"A destination is a location where assets can be sent to for serving or hosting. Videos, images and audio files that are rendered by the [Edit API](#shotstack-edit) and [source](#tocs_source) and [rendition](#tocs_rendition) files generated by the [Ingest API](#shotstack-ingest) can be sent to destinations. You can also fetch a file from any public URL and [transfer](#transfer-asset) it to a destination. A file can be sent to one or more destinations including 3rd party destinations.\n\nBy default all ingested and generated assets are automatically sent to the [Shotstack hosting destination](https://shotstack.io/docs/guide/serving-assets/hosting/). You can [opt-out](https://shotstack.io/docs/guide/serving-assets/self-host/) from by setting the Shotstack destination **exclude** property to **true**.","anyOf":[{"$ref":"#/$defs/ShotstackDestination"},{"$ref":"#/$defs/MuxDestination"},{"$ref":"#/$defs/S3Destination"},{"$ref":"#/$defs/GoogleCloudStorageDestination"},{"$ref":"#/$defs/GoogleDriveDestination"},{"$ref":"#/$defs/VimeoDestination"},{"description":"Send videos to TikTok. TikTok credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/tiktok), not in the request.","properties":{"provider":{"description":"The destination to send video to - set to `tiktok` for TikTok.","type":"string","default":"tiktok","examples":["tiktok"]},"options":{"description":"Additional TikTok configuration options.","properties":{"title":{"description":"A title for the video that will be displayed on TikTok.","type":"string","maxLength":150},"privacyLevel":{"description":"The privacy level for the video. Options are:\n\n- `public` - video is visible to everyone\n\n- `friends` - video is visible to friends only\n\n- `private` - video is only visible to you","type":"string","enum":["public","friends","private"],"default":"private"},"disableDuet":{"description":"Disable the Duet feature for this video.","type":"boolean","default":false},"disableStitch":{"description":"Disable the Stitch feature for this video.","type":"boolean","default":false},"disableComment":{"description":"Disable comments on this video.","type":"boolean","default":false}},"type":"object"}},"type":"object","required":["provider"]},{"description":"Send videos and assets to [Akamai NetStorage](https://techdocs.akamai.com/netstorage-usage/docs). Send files to your NetStorage upload directory with a custom path and filename. Akamai credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/akamai-netstorage), not in the request.","properties":{"provider":{"description":"The destination to send assets to - set to `akamai-netstorage` for Akamai NetStorage.","type":"string","default":"akamai-netstorage","examples":["akamai-netstorage"]},"options":{"description":"Additional Akamai NetStorage configuration options.","properties":{"host":{"description":"The Akamai NetStorage hostname, i.e. `example-nsu.akamaihd.net`.","type":"string","examples":["example-nsu.akamaihd.net"]},"cpCode":{"description":"The Content Provider code (CP code) for the NetStorage upload directory.","type":"string","examples":["123456"]},"path":{"description":"A remote directory path/prefix for the file being sent, i.e. `videos` or `customerId/videos`.","type":["string","null"],"examples":["videos"]},"filename":{"description":"Use your own filename instead of the default filenames generated by Shotstack. Note: omit the file extension as this will be appended depending on the output format. Also `-poster.jpg` and `-thumb.jpg` will be appended for poster and thumbnail images.","type":["string","null"],"examples":["my-file"]}},"required":["host","cpCode"],"type":"object"}},"type":"object","required":["provider"]},{"description":"Send videos and assets to [Azure Blob Storage](https://learn.microsoft.com/en-us/azure/storage/blobs/). Send files to any container with a custom prefix and filename. Azure credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/azure-blob-storage), not in the request.","properties":{"provider":{"description":"The destination to send assets to - set to `azure-blob-storage` for Azure Blob Storage.","type":"string","default":"azure-blob-storage","examples":["azure-blob-storage"]},"options":{"description":"Additional Azure Blob Storage configuration options.","properties":{"accountName":{"description":"The Azure Storage account name.","type":"string","examples":["mystorageaccount"]},"container":{"description":"The Blob container name. The container must exist in the Azure Storage account before files can be sent.","type":"string","examples":["my-container"]},"prefix":{"description":"A virtual directory prefix for the blob being sent, i.e. `videos` or `customerId/videos`.","type":["string","null"],"examples":["videos"]},"filename":{"description":"Use your own filename instead of the default filenames generated by Shotstack. Note: omit the file extension as this will be appended depending on the output format. Also `-poster.jpg` and `-thumb.jpg` will be appended for poster and thumbnail images.","type":["string","null"],"examples":["my-file"]}},"required":["accountName","container"],"type":"object"}},"type":"object","required":["provider"]}]},"FlipTransformation":{"description":"Flip a clip vertically or horizontally. Acts as a mirror effect of the clip along the selected plane.","type":"object","additionalProperties":false,"properties":{"horizontal":{"description":"Flip a clip horizontally.","type":"boolean","examples":[true]},"vertical":{"description":"Flip a clip vertically.","type":"boolean","examples":[true]}}},"Font":{"description":"Download a custom font to use with the HTML asset type, using the font name in the CSS or font tag. See our [custom fonts](https://shotstack.io/learn/html-custom-fonts/) getting started guide for more details.","properties":{"src":{"description":"The URL of the font file. The URL must be publicly accessible or include credentials.","type":"string","examples":["https://s3-ap-northeast-1.amazonaws.com/my-bucket/open-sans.ttf"]}},"additionalProperties":false,"required":["src"],"type":"object"},"GoogleCloudStorageDestination":{"description":"Send videos and assets to a [Google Cloud Storage](https://cloud.google.com/storage) bucket. Send files with your own prefix and filename. Google Cloud credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/google-cloud-storage), not in the request.","properties":{"provider":{"description":"The destination to send assets to - set to `google-cloud-storage` for Google Cloud Storage.","type":"string","default":"google-cloud-storage","examples":["google-cloud-storage"]},"options":{"description":"Additional Google Cloud Storage configuration options.","$ref":"#/$defs/GoogleCloudStorageDestinationOptions"}},"type":"object","required":["provider"]},"GoogleCloudStorageDestinationOptions":{"description":"Pass additional options to control how files are stored in Google Cloud Storage.","properties":{"bucket":{"description":"The bucket name to send files to. The bucket must exist in the Google Cloud Storage account before files can be sent.","type":"string","examples":["my-bucket"]},"prefix":{"description":"A prefix for the file being sent. This is typically a folder name, i.e. `videos` or `customerId/videos`.","type":"string","examples":["my-renders"]},"filename":{"description":"Use your own filename instead of the default filenames generated by Shotstack. Note: omit the file extension as this will be appended depending on the output format. Also `-poster.jpg` and `-thumb.jpg` will be appended for poster and thumbnail images.","type":"string","examples":["my-file"]}},"required":["bucket"],"type":"object"},"GoogleDriveDestination":{"description":"Send rendered videos and assets to the [Google Drive](https://shotstack.io/docs/guide/serving-assets/destinations/google-drive/) cloud storage service. Google Drive uses OAuth and you must authenticate and link your Google account via [dashboard](https://dashboard.shotstack.io/integrations/google-drive), not in the request.","properties":{"provider":{"description":"The destination to send assets to - set to `google-drive` for Google Drive.","type":"string","default":"google-drive","examples":["google-drive"]},"options":{"description":"Additional Google Drive configuration and features. If omitted, files are saved to the root of My Drive using the default Shotstack filename.","$ref":"#/$defs/GoogleDriveDestinationOptions"}},"type":"object","required":["provider"]},"GoogleDriveDestinationOptions":{"description":"Pass the folder ID and options to configure how assets are stored in Google Drive.","properties":{"folderId":{"description":"The Google Drive folder ID where the asset will be stored. If omitted, the asset is saved to the root of My Drive. The folder ID can be retrieved from the URL when logged in to Google Drive, e.g. https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A (#).","type":"string","examples":["1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A"]},"filename":{"description":"Use your own filename instead of the default filenames generated by Shotstack. Note: omit the file extension as this will be appended depending on the output format. Also `-poster.jpg` and `-thumb.jpg` will be appended for poster and thumbnail images.","type":"string","examples":["my-file"]}},"type":"object"},"Html5Asset":{"description":"The Html5Asset renders full HTML5/CSS3/JS.","type":"object","properties":{"type":{"enum":["html5"],"default":"html5","description":"The type of asset - set to `html5` for HTML5/CSS3/JS.","type":"string"},"html":{"description":"The HTML markup for the asset. Max 1,000,000 characters.","type":"string","maxLength":1000000,"examples":["<div class='card'><h1>{{title}}</h1></div>"]},"css":{"description":"The CSS string applied to the HTML. Max 500,000 characters.","type":"string","maxLength":500000,"examples":[".card { font-family: 'Inter'; padding: 32px; }"]},"js":{"description":"Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically. Max 500,000 characters.","type":"string","maxLength":500000,"examples":["gsap.to('.card', { x: 200, duration: 1 });"]}},"additionalProperties":false,"required":["type","html"]},"HtmlAsset":{"deprecated":true,"description":"**Notice: The HtmlAsset is deprecated, use the [RichTextAsset](#tocs_richtextasset) instead.**\n\nThe HtmlAsset clip type lets you create text based layout and formatting using\nHTML and CSS. You can also set the height and width of a bounding box for the HTML\ncontent to sit within. Text and elements will wrap within the bounding box.","type":"object","properties":{"type":{"enum":["html"],"default":"html","description":"The type of asset - set to `html` for HTML.","type":"string"},"html":{"description":"The HTML text string. See list of [supported HTML tags](https://shotstack.io/docs/guide/architecting-an-application/html-support/#supported-html-tags).","type":"string","examples":["<p>Hello <b>World</b></p>"]},"css":{"description":"The CSS text string to apply styling to the HTML. See list of [support CSS properties](https://shotstack.io/docs/guide/architecting-an-application/html-support/#supported-css-properties).","type":"string","examples":["p { color: #ffffff; } b { color: #ffff00; }"]},"width":{"description":"Set the width of the HTML asset bounding box in pixels. Text will wrap to fill the bounding box.","type":"integer","examples":[400]},"height":{"description":"Set the width of the HTML asset bounding box in pixels. Text and elements will be masked if they exceed the height of the bounding box.","type":"integer","examples":[200]},"background":{"description":"Apply a background color behind the HTML bounding box using. Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.","type":"string"},"position":{"description":"Place the HTML in one of nine predefined positions within the HTML area.\n\n- `top` - top (center)\n\n- `topRight` - top right\n\n- `right` - right (center)\n\n- `bottomRight` - bottom right\n\n- `bottom` - bottom (center)\n\n- `bottomLeft` - bottom left\n\n- `left` - left (center)\n\n- `topLeft` - top left\n\n- `center` - center","enum":["top","topRight","right","bottomRight","bottom","bottomLeft","left","topLeft","center"],"type":"string"}},"additionalProperties":false,"required":["type","html"]},"ImageAsset":{"description":"The ImageAsset adds an image to a Clip. The image can be sourced from a URL\n(`src`), generated from a text prompt (`prompt`), or both. At least one of\n`src` or `prompt` must be provided.\n\n- **Source URL:** set `src` to the publicly accessible URL of a jpg or png file.\n- **Generated:** set `prompt` to describe the image. Choose a generator with\n `model` and configure it with model-specific `options`; the engine fills\n `src` in automatically.\n- **Both:** `src` acts as a preview placeholder while `prompt` drives\n generation — the image is regenerated from the prompt at render time.\n Unchanged prompts and options resolve from the generation cache.","type":"object","properties":{"type":{"enum":["image"],"default":"image","description":"The type of asset - set to `image` for images.","type":"string"},"src":{"description":"The image source URL. The URL must be publicly accessible or include credentials. When `prompt` is also set, `src` serves as a preview placeholder and the image is regenerated from the prompt at render time.","type":"string","minLength":1,"pattern":"\\S","examples":["https://s3-ap-northeast-1.amazonaws.com/my-bucket/image.jpg"]},"prompt":{"description":"A text prompt to generate the image from. The engine generates an image at render time and fills `src` automatically; an existing `src` is treated as a preview placeholder and replaced. Use `model` to choose the generator and `options` to configure it.","type":"string","maxLength":4000,"examples":["A serene landscape with a crystal-clear mountain lake at sunrise."]},"model":{"description":"The generation model to use when `prompt` is set (e.g. `flux-schnell`, `nano-banana-2`). Defaults to `nano-banana-2` if omitted. Each model's available options are defined by the model registry.","type":"string","examples":["flux-schnell"]},"options":{"description":"Model-specific generation settings. Valid keys and values depend on the chosen `model` and are defined by the model registry. Omitted options use the model's defaults. Unknown or invalid options are rejected.","type":"object","additionalProperties":true,"examples":[{"resolution":"1K","aspectRatio":"16:9"}]},"crop":{"$ref":"#/$defs/Crop"}},"additionalProperties":false,"required":["type"]},"ImageToVideoAsset":{"deprecated":true,"description":"**Notice: ImageToVideoAsset is deprecated. Use [VideoAsset](#tocs_videoasset)\nwith `prompt`, a `model` that accepts a starting image, and that image in\n`options.inputSrc` — for example `seedance-2.0-image-to-video`.** This type continues to\nfunction and is internally rewritten to VideoAsset; no behaviour change for\nexisting integrations.\n\nThe ImageToVideoAsset lets you create a video from an image and a text prompt.","properties":{"type":{"type":"string","description":"The type of asset to generate - set to `image-to-video` for image-to-video.","enum":["image-to-video"],"default":"image-to-video"},"src":{"description":"The image source URL. The URL must be publicly accessible or include credentials.","type":"string","minLength":1,"examples":["https://s3-ap-northeast-1.amazonaws.com/my-bucket/image.jpg"]},"prompt":{"type":"string","description":"The instructions for modifying the image into a video sequence.","examples":["Slowly zoom out and orbit left around the object."]},"aspectRatio":{"description":"The aspect ratio (shape) of the video output.","enum":["1:1","4:3","16:9","9:16","3:4","21:9","9:21"],"type":"string","examples":["16:9"]},"speed":{"description":"Adjust the playback speed of the video clip between 0 (paused) and 10 (10x normal speed) where 1 is normal speed (defaults to 1). Adjusting the speed will also adjust the duration of the clip and may require you to adjust the Clip length. For example, if you set speed to 0.5, the clip will need to be 2x as long to play the entire video (i.e. original length / 0.5). If you set speed to 2, the clip will need to be half as long to play the entire video (i.e. original length / 2).","type":"number","minimum":0,"maximum":10,"examples":[1]},"crop":{"$ref":"#/$defs/Crop"}},"additionalProperties":false,"type":"object","required":["type","src"]},"LumaAsset":{"description":"The LumaAsset is used to create luma matte masks, transitions and effects between other assets. A luma matte is a grey scale image or animated video where the black areas are transparent and the white areas solid. The luma matte animation should be provided as an mp4 video file. The src must be a publicly accessible URL to the file.","type":"object","properties":{"type":{"enum":["luma"],"default":"luma","description":"The type of asset - set to `luma` for luma mattes.","type":"string"},"src":{"description":"The luma matte source URL. The URL must be publicly accessible or include credentials.","type":"string","minLength":1,"pattern":"\\S","examples":["https://s3-ap-northeast-1.amazonaws.com/my-bucket/mask.mp4"]},"trim":{"description":"The start trim point of the luma matte clip, in seconds (defaults to 0). Videos will start from the in trim point. A luma matte video will play until the file ends or the Clip length is reached.","type":"number"}},"additionalProperties":false,"required":["type","src"]},"MergeField":{"description":"A merge field consists of a key; `find`, and a value; `replace`. Merge fields can be used to replace placeholders within the JSON edit to create re-usable templates. Placeholders should be a string with double brace delimiters, i.e. `\"{{NAME}}\"`. A placeholder can be used for any value within the JSON edit.","type":"object","properties":{"find":{"description":"The string to find without delimiters.","type":"string","examples":["NAME"]},"replace":{"description":"The replacement value. The replacement can be any valid JSON type - string, boolean, number, etc...","examples":["Jane"]}},"additionalProperties":false,"required":["find","replace"]},"MuxDestination":{"description":"Send videos to the [Mux](https://shotstack.io/docs/guide/serving-assets/destinations/mux/) video hosting and streaming service. Mux credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/mux), not in the request.","properties":{"provider":{"description":"The destination to send video to - set to `mux` for Mux.","type":"string","default":"mux","examples":["mux"]},"options":{"description":"Additional Mux configuration and features.","$ref":"#/$defs/MuxDestinationOptions"}},"type":"object","required":["provider"]},"MuxDestinationOptions":{"description":"Pass additional options to control how Mux processes video. Currently supports playback_policy and passthrough options.","properties":{"playbackPolicy":{"description":"Sets the Mux `playback_policy` option. Value is an array of strings - use `public`, `signed`, or both.","type":"array","items":{"type":"string","enum":["public","signed"]}},"passthrough":{"description":"Sets the Mux `passthrough` option. Max 255 characters.","type":"string","maxLength":255}},"type":"object"},"Offset":{"description":"Offsets the position of an asset horizontally or vertically by a relative distance.","properties":{"x":{"description":"Offset an asset on the horizontal axis (left or right). Use a number or an array of [Tween](./#tocs_tween) objects to create a custom animation.","oneOf":[{"type":"number","description":"Range varies from -10 to 10. Positive numbers move the asset right, negative left. The distance moved is relative to the width of the viewport - i.e. an X offset of 0.5 will move the asset half the screen width to the right.","minimum":-10,"maximum":10,"examples":[0.1]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects used to create a custom animation. Animate the X offset of an asset over time.","items":{"$ref":"#/$defs/Tween"}}]},"y":{"description":"Offset an asset on the vertical axis (up or down). Use a number or an array of [Tween](./#tocs_tween) objects to create a custom animation.","oneOf":[{"type":"number","description":"Range varies from -10 to 10. Positive numbers move the asset up, negative down. The distance moved is relative to the height of the viewport - i.e. an Y offset of 0.5 will move the asset half the screen height up.","minimum":-10,"maximum":10,"examples":[-0.2]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects used to create a custom animation. Animate the Y offset of an asset over time.","items":{"$ref":"#/$defs/Tween"}}]}},"additionalProperties":false,"type":"object"},"Output":{"description":"The output format, render range and type of media to generate. For all formats except `mp3`, either `resolution` or `size` (with both `width` and `height`) must be specified.","properties":{"format":{"description":"The output format and type of media file to generate.\n\n- `mp4` - mp4 video file\n\n- `gif` - animated gif\n\n- `jpg` - jpg image file\n\n- `png` - png image file\n\n- `bmp` - bmp image file\n\n- `mp3` - mp3 audio file (audio only)","enum":["mp4","gif","mp3","jpg","png","bmp"],"type":"string","examples":["mp4"]},"resolution":{"description":"The preset output resolution of the video or image. For custom sizes use the `size` property. Either `resolution` or `size` (with both `width` and `height`) must be specified for all formats except `mp3`.\n\n- `preview` - 512px x 288px @ 15fps\n\n- `mobile` - 640px x 360px @ 25fps\n\n- `sd` - 1024px x 576px @ 25fps\n\n- `hd` - 1280px x 720px @ 25fps\n\n- `1080` - 1920px x 1080px @ 25fps\n\n- `4k` - 3840px x 2160px @ 25fps","enum":["preview","mobile","sd","hd","1080","4k"],"type":"string","examples":["hd"]},"aspectRatio":{"description":"The aspect ratio (shape) of the video or image. Useful for social media output formats. Options are:\n\n- `16:9` (default) - regular landscape/horizontal aspect ratio\n\n- `9:16` - vertical/portrait aspect ratio\n\n- `1:1` - square aspect ratio\n\n- `4:5` - short vertical/portrait aspect ratio\n\n- `4:3` - legacy TV aspect ratio","enum":["16:9","9:16","1:1","4:5","4:3"],"type":"string","examples":["16:9"]},"size":{"$ref":"#/$defs/Size"},"fps":{"description":"Override the default frames per second. Useful for when the source footage is recorded at 30fps, i.e. on mobile devices. Lower frame rates can be used to add cinematic quality (24fps) or to create smaller file size/faster render times or animated gifs (12 or 15fps). Default is 25fps.\n\n- `12` - 12fps\n\n- `15` - 15fps\n\n- `24` - 24fps\n\n- `23.976` - 23.976fps\n\n- `25` (default) - 25fps\n\n- `29.97` - 29.97fps\n\n- `30` - 30fps\n\n- `48` - 48fps\n\n- `50` - 50fps\n\n- `59.94` - 59.94fps\n\n- `60` - 60fps","enum":[12,15,23.976,24,25,29.97,30,48,50,59.94,60],"type":"number","examples":[25]},"scaleTo":{"description":"Override the resolution and scale the video or image to render at a different size. When using scaleTo the asset should be edited at the resolution dimensions, i.e. use font sizes that look best at HD, then use scaleTo to output the file at SD and the text will be scaled to the correct size. This is useful if you want to create multiple asset sizes.\n\n- `preview` - 512px x 288px @ 15fps\n\n- `mobile` - 640px x 360px @ 25fps\n\n- `sd` - 1024px x 576px @25fps\n\n- `hd` - 1280px x 720px @25fps\n\n- `1080` - 1920px x 1080px @25fps","enum":["preview","mobile","sd","hd","1080","4k"],"type":"string"},"quality":{"description":"Adjust the output quality of the video, image or audio. Adjusting quality affects render speed, download speeds and storage requirements due to file size. The default `medium` provides the most optimized choice for all three factors.\n\n- `verylow` - reduced quality, smallest file size\n\n- `low` - slightly reduced quality, smaller file size\n\n- `medium` (default) - optimized quality, render speeds and file size\n\n- `high` - slightly increased quality, larger file size\n\n- `veryhigh` - highest quality, largest file size","enum":["verylow","low","medium","high","veryhigh"],"type":"string","examples":["medium"]},"repeat":{"description":"Loop settings for gif files. Set to `true` to loop, `false` to play only once.","type":"boolean","examples":[true]},"mute":{"description":"Mute the audio track of the output video. Set to `true` to mute, `false` to un-mute.","type":"boolean","examples":[false]},"range":{"$ref":"#/$defs/Range"},"poster":{"description":"Generate a poster image from a specific point on the timeline.","$ref":"#/$defs/Poster"},"thumbnail":{"description":"Generate a thumbnail image from a specific point on the timeline.","$ref":"#/$defs/Thumbnail"},"destinations":{"description":"Specify the storage locations and hosting services to send rendered videos to.","type":"array","items":{"$ref":"#/$defs/Destinations"}}},"additionalProperties":false,"required":["format"],"type":"object"},"Poster":{"description":"Generate a poster image for the video at a specific point from the timeline. The poster image size will match the size of the output video.","properties":{"capture":{"description":"The point on the timeline in seconds to capture a single frame to use as the poster image.","type":"number","examples":[1]}},"additionalProperties":false,"required":["capture"],"type":"object"},"Range":{"description":"Specify a time range to render, i.e. to render only a portion of a video or audio file. Omit this setting to export the entire video. Range can also be used to render a frame at a specific time point - setting a range and output format as `jpg` will output a single frame image at the range `start` point.","properties":{"start":{"description":"The point on the timeline, in seconds, to start the render from - i.e. start at second 3.","type":"number","minimum":0,"examples":[3]},"length":{"description":"The length of the portion of the video or audio to render - i.e. render 6 seconds of the video.","type":"number","minimum":0,"examples":[6]}},"additionalProperties":false,"type":"object"},"RichCaptionActive":{"description":"Styling properties for the active/highlighted word.","type":"object","properties":{"font":{"description":"Font properties for the active word.","$ref":"#/$defs/RichCaptionActiveFont"},"stroke":{"description":"Stroke properties for the active word. Set to \"none\" to explicitly remove the base stroke on the active word.","oneOf":[{"$ref":"#/$defs/RichTextStroke"},{"type":"string","enum":["none"]}]},"shadow":{"description":"Shadow properties for the active word. Set to \"none\" to explicitly remove the base shadow on the active word.","oneOf":[{"$ref":"#/$defs/RichTextShadow"},{"type":"string","enum":["none"]}]}},"additionalProperties":false},"RichCaptionActiveFont":{"description":"Font properties for the active/highlighted word.","type":"object","properties":{"family":{"description":"The font family for the active word. Inherits from the base font.family when not set.","type":"string","examples":["Roboto"]},"weight":{"description":"The weight of the font for the active word. Can be a number (100-900) or a string. Inherits from the base font.weight when not set.","default":"400"},"color":{"description":"The active word color using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","examples":["#C96741"]},"background":{"description":"The background color behind the active word using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","examples":["#000000"]},"opacity":{"description":"The opacity of the active word where 1 is opaque and 0 is transparent.","type":"number","minimum":0,"maximum":1,"default":1,"examples":[1]},"size":{"description":"The font size of the active word in pixels.","type":"number","minimum":1,"maximum":500,"examples":[120]},"textDecoration":{"description":"Text decoration to apply to the active word.","type":"string","enum":["none","underline","line-through"],"default":"none","examples":["underline"]}},"additionalProperties":false},"RichCaptionAnimation":{"description":"Word-level animation properties for caption effects.","type":"object","properties":{"style":{"description":"The animation style to apply to words:\n\n- `karaoke` - Word-by-word color fill as spoken (shows all words, highlights active)\n\n- `highlight` - Word changes to active color when spoken (shows all words)\n\n- `pop` - Each word scales up when active\n\n- `fade` - Gradual opacity transition per word\n\n- `slide` - Words slide in from a direction\n\n- `bounce` - Spring animation on word appearance\n\n- `typewriter` - Words appear one by one and stay visible\n\n- `none` - No animation, all words visible immediately","type":"string","enum":["karaoke","highlight","pop","fade","slide","bounce","typewriter","none"],"default":"highlight","examples":["highlight"]},"direction":{"description":"Direction for directional animations (slide). Only applicable when style is `slide`.","type":"string","enum":["left","right","up","down"],"default":"up","examples":["up"]}},"additionalProperties":false,"required":["style"]},"RichCaptionAsset":{"description":"The RichCaptionAsset provides word-level caption animations with rich-text styling. It supports\nkaraoke-style highlighting, word-by-word animations, and advanced typography. Captions can be\nsourced from SRT/VTT/TTML subtitle files, from audio/video media URLs (auto-transcribed), or\nfrom alias references to other clips in the same timeline.","type":"object","properties":{"type":{"enum":["rich-caption"],"default":"rich-caption","description":"The type of asset - set to `rich-caption` for rich captions.","type":"string"},"src":{"description":"Source for the caption words. Accepts three formats: (1) the URL to a subtitle file (`.srt`, `.vtt`, `.ttml`, or `.dfxp`) which is parsed directly; (2) the URL to an audio or video media file (`.mp4`, `.mov`, `.webm`, `.mp3`, `.wav`, `.m4a`, `.flac`, `.aac`, `.ogg`, and related formats) which is auto-transcribed; (3) an alias reference in the form `alias://clip-name` where `clip-name` is the alias of another audio, video, or text-to-speech clip in the same timeline — the referenced clip's source is auto-transcribed. For file URLs, the URL must be publicly accessible or include credentials. Content is classified at runtime and unsupported content types (HTML, PDF, images, archives) are rejected with a structured error.","type":"string","minLength":1,"examples":["alias://audio"]},"font":{"description":"Font styling properties for inactive words.","properties":{"family":{"description":"The font family name. This must be the Family name embedded in the font, i.e. \"Roboto\".","type":"string","examples":["Roboto"],"default":"Roboto"},"size":{"description":"The size of the font in pixels (px). Must be between 1 and 500.","type":"integer","minimum":1,"maximum":500,"default":24,"examples":[48]},"weight":{"description":"The weight of the font. Can be a number (100-900) or a string ('normal', 'bold', etc.). 100 is lightest, 900 is heaviest (boldest).","default":"400"},"style":{"description":"The font style.","type":"string","enum":["normal","italic"],"default":"normal","examples":["italic"]},"color":{"description":"The text color using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","default":"#ffffff","examples":["#ffffff"]},"opacity":{"description":"The opacity of the text where 1 is opaque and 0 is transparent.","type":"number","minimum":0,"maximum":1,"default":1,"examples":[0.9]},"background":{"description":"The background color behind the text using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","examples":["#000000"]}},"additionalProperties":false,"type":"object"},"style":{"description":"Text style properties including spacing, line height, and transformations.","properties":{"letterSpacing":{"description":"Additional spacing between letters in pixels. Can be negative for tighter spacing.","type":"number","default":0,"examples":[2]},"lineHeight":{"description":"The line height as a multiplier of the font size. Must be between 0 and 10.","type":"number","minimum":0,"maximum":10,"default":1.2,"examples":[1.5]},"textTransform":{"description":"Text transformation to apply.","type":"string","enum":["none","uppercase","lowercase","capitalize"],"default":"none","examples":["uppercase"]},"size":{"description":"The font size in pixels. Can be used as an alternative to font.size.","type":"number","minimum":1,"maximum":500,"examples":[120]},"textDecoration":{"description":"Text decoration to apply.","type":"string","enum":["none","underline","line-through"],"default":"none","examples":["underline"]},"gradient":{"description":"Gradient fill for text instead of solid color.","$ref":"#/$defs/RichTextGradient"}},"additionalProperties":false,"type":"object"},"stroke":{"description":"Text stroke (outline) properties for inactive words.","$ref":"#/$defs/RichTextStroke"},"shadow":{"description":"Text shadow properties.","$ref":"#/$defs/RichTextShadow"},"background":{"description":"Background styling properties for the caption bounding box.","$ref":"#/$defs/RichTextBackground"},"border":{"description":"Border styling properties for the caption bounding box.","$ref":"#/$defs/RichTextAsset/properties/border"},"padding":{"description":"Padding inside the caption bounding box. Can be a single number (applied to all sides) or an object with individual sides.","oneOf":[{"type":"number","minimum":0,"description":"Padding in pixels applied to all sides.","examples":[10]},{"$ref":"#/$defs/RichTextAsset/properties/padding/oneOf/1"}]},"align":{"description":"Text alignment properties (horizontal and vertical).","$ref":"#/$defs/RichTextAlignment"},"active":{"description":"Styling properties for the active/highlighted word. These override the base styling when a word is being spoken.","$ref":"#/$defs/RichCaptionActive"},"animation":{"description":"Word-level animation properties controlling how words are highlighted or revealed.","$ref":"#/$defs/RichCaptionAnimation"}},"additionalProperties":false,"required":["type","src"]},"RichTextAlignment":{"description":"Text alignment properties (horizontal and vertical).","properties":{"horizontal":{"description":"The horizontal alignment of the text.","type":"string","enum":["left","center","right"],"default":"center","examples":["center"]},"vertical":{"description":"The vertical alignment of the text within the bounding box.","type":"string","enum":["top","middle","bottom"],"default":"middle","examples":["middle"]}},"additionalProperties":false,"type":"object"},"RichTextAnimation":{"description":"Animation properties for text entrance effects.","properties":{"preset":{"description":"The animation preset to apply. Available presets:\n\n- `fadeIn` - fadeIn in animation\n\n- `slideIn` - slide in from a direction\n\n- `typewriter` - typewriter effect\n\n- `ascend` - ascend from a direction\n\n- `shift` - shift in from a direction\n\n- `movingLetters` - letters move in from a direction","type":"string","enum":["fadeIn","slideIn","typewriter","ascend","shift","movingLetters"],"examples":["shift"]},"duration":{"description":"Override animation duration in seconds. Must be between 0.1 and 30 seconds.","type":"number","minimum":0.1,"maximum":30,"examples":[2]},"style":{"description":"Animation style - animate by character or by word. Only applicable for typewriter and shift animations.","type":"string","enum":["character","word"],"examples":["character"]},"direction":{"description":"Direction for directional animations. Required for slideIn, ascend, shift, and movingLetters presets.\n\n- `ascend` - supports: up, down\n\n- `shift` - supports: left, right, up, down\n\n- `slideIn` - supports: left, right, up, down\n\n- `movingLetters` - supports: left, right, up, down","type":"string","enum":["left","right","up","down"],"examples":["up"]}},"required":["preset"],"additionalProperties":false,"type":"object"},"RichTextAsset":{"description":"The RichTextAsset provides advanced text rendering with support for custom fonts, gradients, shadows, strokes,\nanimations, and styling options. It offers more flexibility and visual effects than the basic TextAsset.","type":"object","properties":{"type":{"enum":["rich-text"],"default":"rich-text","description":"The type of asset - set to `rich-text` for rich text.","type":"string"},"text":{"description":"The text string to display. Maximum 5000 characters.","type":"string","maxLength":5000,"examples":["Hello World"]},"font":{"description":"Font styling properties.","$ref":"#/$defs/RichTextFont"},"style":{"description":"Text style properties including spacing, line height, and transformations.","$ref":"#/$defs/RichTextStyle"},"stroke":{"description":"Text stroke (outline) properties.","$ref":"#/$defs/RichTextStroke"},"shadow":{"description":"Text shadow properties.","$ref":"#/$defs/RichTextShadow"},"background":{"description":"Background styling properties for the text bounding box.","$ref":"#/$defs/RichTextBackground"},"border":{"description":"Border styling properties for the text bounding box.","properties":{"width":{"description":"The width of the border in pixels. Must be 0 or greater.","type":"number","minimum":0,"default":0,"examples":[2]},"color":{"description":"The border color using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","default":"#000000","examples":["#ff0000"]},"opacity":{"description":"The opacity of the border where 1 is opaque and 0 is transparent.","type":"number","minimum":0,"maximum":1,"default":1,"examples":[0.8]},"radius":{"description":"The border radius in pixels for rounded corners. Must be 0 or greater.","type":"number","minimum":0,"default":0,"examples":[10]}},"additionalProperties":false,"type":"object"},"padding":{"description":"Padding inside the text bounding box. Can be a single number (applied to all sides) or an object with individual sides.","oneOf":[{"type":"number","minimum":0,"description":"Padding in pixels applied to all sides.","examples":[10]},{"description":"Padding properties for individual sides of the text bounding box.","properties":{"top":{"description":"Top padding in pixels.","type":"number","minimum":0,"default":0,"examples":[10]},"right":{"description":"Right padding in pixels.","type":"number","minimum":0,"default":0,"examples":[10]},"bottom":{"description":"Bottom padding in pixels.","type":"number","minimum":0,"default":0,"examples":[10]},"left":{"description":"Left padding in pixels.","type":"number","minimum":0,"default":0,"examples":[10]}},"additionalProperties":false,"type":"object"}]},"align":{"description":"Text alignment properties (horizontal and vertical).","$ref":"#/$defs/RichTextAlignment"},"animation":{"description":"Animation properties for text entrance effects.","$ref":"#/$defs/RichTextAnimation"}},"additionalProperties":false,"required":["type","text"]},"RichTextBackground":{"description":"Background styling properties for the text bounding box.","properties":{"color":{"description":"The background color using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","examples":["#000000"]},"opacity":{"description":"The opacity of the background where 1 is opaque and 0 is transparent.","type":"number","minimum":0,"maximum":1,"default":1,"examples":[0.5]},"borderRadius":{"description":"The border radius of the background box in pixels. Must be 0 or greater.","type":"number","minimum":0,"default":0,"examples":[10]},"wrap":{"description":"When true, the background pill shrinks to fit the rendered text bounding box plus the\nasset's padding (and stroke width, if present), producing a pill or badge effect. When\nfalse (default), the background fills the full asset content area. Available on\nrich-text and rich-caption assets only; not supported on legacy `type: text`.","type":"boolean","default":false,"examples":[true]},"padding":{"description":"Inner padding in pixels between the wrap pill edge and the rendered text. Only takes\neffect when `wrap: true`. When omitted, the renderer applies a sensible default\nproportional to the font size (approximately 12% of the active page font size on\nrich-caption assets). Set to 0 for a pill that hugs the text exactly. Available on\nrich-text and rich-caption assets only.","type":"integer","minimum":0,"maximum":200,"examples":[12]}},"additionalProperties":false,"type":"object"},"RichTextFont":{"description":"Font properties for rich text.","properties":{"family":{"description":"The font family name. This must be the Family name embedded in the font, i.e. \"Open Sans\".","type":"string","examples":["Open Sans"],"default":"Open Sans"},"size":{"description":"The size of the font in pixels (px). Must be between 1 and 500.","type":"integer","minimum":1,"maximum":500,"default":24,"examples":[48]},"weight":{"description":"The weight of the font. Can be a number (100-900) or a string ('normal', 'bold', etc.). 100 is lightest, 900 is heaviest (boldest).","default":"400"},"style":{"description":"The font style.","type":"string","enum":["normal","italic"],"default":"normal","examples":["italic"]},"color":{"description":"The text color using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","default":"#000000","examples":["#ff0000"]},"opacity":{"description":"The opacity of the text where 1 is opaque and 0 is transparent.","type":"number","minimum":0,"maximum":1,"default":1,"examples":[0.9]},"background":{"description":"The background color behind the text using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","examples":["#000000"]},"stroke":{"description":"Text stroke (outline) properties.","$ref":"#/$defs/RichTextStroke"}},"additionalProperties":false,"type":"object"},"RichTextGradient":{"description":"Gradient properties for text fill.","properties":{"type":{"description":"The type of gradient.","type":"string","enum":["linear","radial"],"default":"linear","examples":["linear"]},"angle":{"description":"The angle of the gradient in degrees (for linear gradients). Must be between 0 and 360.","type":"number","minimum":0,"maximum":360,"default":0,"examples":[45]},"stops":{"description":"Gradient color stops. Must have at least 2 stops.","type":"array","minItems":2,"items":{"type":"object","properties":{"offset":{"description":"Position of the color stop between 0 (start) and 1 (end).","type":"number","minimum":0,"maximum":1,"examples":[0.5]},"color":{"description":"Color at this stop using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","examples":["#ff0000"]}},"required":["offset","color"],"additionalProperties":false}}},"required":["stops"],"additionalProperties":false,"type":"object"},"RichTextShadow":{"description":"Text shadow properties.","properties":{"offsetX":{"description":"Horizontal offset of the shadow in pixels. Positive values move right, negative left.","type":"number","default":0,"examples":[4]},"offsetY":{"description":"Vertical offset of the shadow in pixels. Positive values move down, negative up.","type":"number","default":0,"examples":[4]},"blur":{"description":"The blur radius of the shadow in pixels. Must be 0 or greater.","type":"number","minimum":0,"default":0,"examples":[8]},"color":{"description":"The shadow color using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","default":"#000000","examples":["#000000"]},"opacity":{"description":"The opacity of the shadow where 1 is opaque and 0 is transparent.","type":"number","minimum":0,"maximum":1,"default":0.5,"examples":[0.7]}},"additionalProperties":false,"type":"object"},"RichTextStroke":{"description":"Text stroke (outline) properties.","properties":{"width":{"description":"The width of the stroke in pixels. Must be 0 or greater.","type":"number","minimum":0,"default":0,"examples":[2]},"color":{"description":"The stroke color using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","default":"#000000","examples":["#000000"]},"opacity":{"description":"The opacity of the stroke where 1 is opaque and 0 is transparent.","type":"number","minimum":0,"maximum":1,"default":1,"examples":[0.8]}},"additionalProperties":false,"type":"object"},"RichTextStyle":{"description":"Text style properties including spacing, line height, and transformations.","properties":{"letterSpacing":{"description":"Additional spacing between letters in pixels. Can be negative for tighter spacing.","type":"number","default":0,"examples":[2]},"wordSpacing":{"description":"Additional spacing between words in pixels. A value of 0 uses the font's natural space width.","type":"number","minimum":0,"default":0,"examples":[10]},"lineHeight":{"description":"The line height as a multiplier of the font size. Must be between 0 and 10.","type":"number","minimum":0,"maximum":10,"default":1.2,"examples":[1.5]},"textTransform":{"description":"Text transformation to apply.","type":"string","enum":["none","uppercase","lowercase","capitalize"],"default":"none","examples":["uppercase"]},"textDecoration":{"description":"Text decoration to apply.","type":"string","enum":["none","underline","line-through"],"default":"none","examples":["underline"]},"gradient":{"description":"Gradient fill for text instead of solid color.","$ref":"#/$defs/RichTextGradient"}},"additionalProperties":false,"type":"object"},"RotateTransformation":{"description":"Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.","type":"object","additionalProperties":false,"properties":{"angle":{"description":"Rotate a clip by the specified angle in degrees. Use a number or an array of [Tween](./#tocs_tween) objects to create a custom animation.","oneOf":[{"type":"number","description":"The angle to rotate the clip. Can be 0 to 360, or 0 to -360. Using a positive number rotates the clip clockwise, negative numbers counter-clockwise.","minimum":-360,"maximum":360,"examples":[45]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects used to create a custom animation. Animate the rotation of an asset over time.","items":{"$ref":"#/$defs/Tween"}}]}}},"S3Destination":{"description":"Send videos and assets to an [Amazon S3](https://shotstack.io/docs/guide/serving-assets/destinations/s3/) bucket. Send files to any region with your own prefix and filename. AWS credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/s3), not in the request.","properties":{"provider":{"description":"The destination to send assets to - set to `s3` for S3.","type":"string","default":"s3","examples":["s3"]},"options":{"description":"Additional S3 configuration options.","$ref":"#/$defs/S3DestinationOptions"}},"type":"object","required":["provider"]},"S3DestinationOptions":{"description":"Pass additional options to control how files are stored in S3.","properties":{"region":{"description":"Choose the region to send the file to. Must be a valid [AWS region](https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_region) string like `us-east-1` or `ap-southeast-2`.","type":"string","examples":["us-east-1"]},"bucket":{"description":"The bucket name to send files to. The bucket must exist in the AWS account before files can be sent.","type":"string","examples":["my-bucket"]},"prefix":{"description":"A prefix for the file being sent. This is typically a folder name, i.e. `videos` or `customerId/videos`.","type":"string","examples":["my-renders"]},"filename":{"description":"Use your own filename instead of the default filenames generated by Shotstack. Note: omit the file extension as this will be appended depending on the output format. Also `-poster.jpg` and `-thumb.jpg` will be appended for poster and thumbnail images.","type":"string","examples":["my-file"]},"acl":{"description":"Sets the S3 Access Control List (acl) permissions. Default is `private`. Must use a valid S3 [Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl).","type":"string","examples":["public-read"]}},"required":["region","bucket"],"type":"object"},"ShapeAsset":{"description":"The ShapeAsset is used to add shapes to a video. The shape can be styled with a fill and a stroke.\nYou can manipulate properties such as rotation to create dynamic effects like a diamond shape or stripes.","type":"object","properties":{"type":{"enum":["shape"],"default":"shape","description":"The type of asset - set to `shape` for shape.","type":"string"},"shape":{"description":"The shape to display.","type":"string","enum":["rectangle","circle","line"]},"width":{"description":"Sets the width of the bounding box in pixels. This value should be larger than the shape's width. If omitted, the entire viewport width and height will be used.","type":"integer","examples":[800]},"height":{"description":"Sets the height of the bounding box in pixels. This value should be larger than the shape's height. If omitted, the entire viewport width and height will be used.","type":"integer","examples":[800]},"fill":{"description":"Specifies the fill style of the shape.","type":"object","properties":{"color":{"description":"The color of the fill using hexadecimal color notation.","type":"string","examples":["#ffffff"]},"opacity":{"description":"The opacity of the fill where 1 is opaque and 0 is transparent.","type":"number","examples":[1]}},"additionalProperties":false},"stroke":{"description":"Specifies the stroke style of the shape.","type":"object","properties":{"color":{"description":"The stroke color of the font using hexadecimal color notation.","type":"string","examples":["#000000"]},"width":{"description":"The width of the stroke in pixels.","type":"number","examples":[0.8]}},"additionalProperties":false},"rectangle":{"description":"Configuration settings for the rectangle shape. Required when `shape` is set to `rectangle`.","type":"object","properties":{"width":{"description":"Set the width of the rectangle shape in pixels.","type":"integer","examples":[800]},"height":{"description":"Set the height of the rectangle shape in pixels.","type":"integer","examples":[800]},"cornerRadius":{"description":"Set the corner radius of the rectangle shape.","type":"integer","examples":[20]}},"additionalProperties":false,"required":["width","height"]},"circle":{"description":"Configuration settings for the circle shape. Required when `shape` is set to `circle`.","type":"object","properties":{"radius":{"description":"Set the radius of the circle shape in pixels.","type":"integer","examples":[800]}},"additionalProperties":false,"required":["radius"]},"line":{"description":"Configuration settings for the line shape. Required when `shape` is set to `line`.","type":"object","properties":{"length":{"description":"Set the length of the line shape in pixels.","type":"integer","examples":[100]},"thickness":{"description":"Set the thickness of the line in pixels.","type":"integer","examples":[4]}},"additionalProperties":false,"required":["length","thickness"]}},"additionalProperties":false,"required":["type","shape"]},"ShotstackDestination":{"description":"Send videos and assets to the [Shotstack hosting and CDN](https://shotstack.io/docs/guide/serving-assets/destinations/shotstack/) service. This destination is enabled by default.","properties":{"provider":{"description":"The destination to send assets to - set to `shotstack` for Shotstack hosting and CDN.","type":"string","default":"shotstack","examples":["shotstack"]},"exclude":{"description":"Set to `true` to [opt-out](https://shotstack.io/docs/guide/serving-assets/self-host/) from the Shotstack hosting and CDN service. All files must be downloaded within 24 hours of rendering.","type":"boolean","examples":[false]}},"type":"object","required":["provider"]},"Size":{"description":"Set a custom size for a video or image in pixels. When using a custom size omit the `resolution` and `aspectRatio`. Custom sizes must be divisible by 2 based on the encoder specifications.","properties":{"width":{"description":"Set a custom width for the video or image file in pixels. Value must be divisible by 2. Maximum video width is 1920px, maximum image width is 4096px.","type":"integer","minimum":1,"maximum":4096,"examples":[1200]},"height":{"description":"Set a custom height for the video or image file in pixels. Value must be divisible by 2. Maximum video height is 1920px, maximum image height is 4096px.","type":"integer","minimum":1,"maximum":4096,"examples":[800]}},"additionalProperties":false,"type":"object"},"SkewTransformation":{"description":"Skew a clip so its edges are sheared at an angle. Use values between -100 and 100. Values over 3 or under -3 will skew the clip almost flat.","type":"object","additionalProperties":false,"properties":{"x":{"description":"Skew the clip along it's x axis.","oneOf":[{"type":"number","description":"Range varies from -100 to 100. Positive numbers skew the asset right, negative left. The distance moved is relative to the width of the viewport - i.e. an X skew of 0.5 will skew the asset half the screen width to the right.","minimum":-100,"maximum":100,"examples":[0.5]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects used to create a custom animation. Animate the X skew of an asset over time.","items":{"$ref":"#/$defs/Tween"}}]},"y":{"description":"Skew the clip along it's y axis.","oneOf":[{"type":"number","description":"Range varies from -100 to 100. Positive numbers skew the asset up, negative down. The distance moved is relative to the height of the viewport - i.e. an Y skew of 0.5 will skew the asset half the screen height up.","minimum":-100,"maximum":100,"examples":[0.5]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects used to create a custom animation. Animate the Y skew of an asset over time.","items":{"$ref":"#/$defs/Tween"}}]}}},"Soundtrack":{"deprecated":true,"description":"**Notice: The Soundtrack is deprecated, use an [AudioAsset](#tocs_audioasset) clip on its own track instead.** This type continues to function; no behaviour change for existing integrations.\nA music or audio file in mp3 format that plays for the duration of the rendered video or the length of the audio file, which ever is shortest.","properties":{"src":{"description":"The URL of the mp3 audio file. The URL must be publicly accessible or include credentials.","type":"string","minLength":1,"pattern":"\\S","examples":["https://s3-ap-northeast-1.amazonaws.com/my-bucket/music.mp3"]},"effect":{"description":"The effect to apply to the audio file\n\n- `fadeIn` - fade volume in only\n\n- `fadeOut` - fade volume out only\n\n- `fadeInFadeOut` - fade volume in and out","enum":["fadeIn","fadeOut","fadeInFadeOut"],"type":"string"},"volume":{"description":"Set the volume for the soundtrack between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1).","type":"number"}},"additionalProperties":false,"required":["src"],"type":"object"},"SvgAsset":{"description":"The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.\n\n**Supported elements:** ``, ``, ``, ``,\n``, ``, ``\n\n**Automatically extracted from SVG markup:**\n- Path data (converted to a single combined path)\n- Fill color (from `fill` attribute or `style`)\n- Stroke color and width (from attributes or `style`)\n- Dimensions (from `width`/`height` or `viewBox`)\n- Opacity (from `opacity` attribute)\n\nSee [W3C SVG 2 Specification](https://www.w3.org/TR/SVG2/) for path data syntax.","type":"object","properties":{"type":{"description":"The asset type - set to `svg` for SVG assets.","type":"string","enum":["svg"],"default":"svg","examples":["svg"]},"src":{"description":"Raw SVG markup string. The SVG must contain valid SVG elements. The shape,\nfill, stroke, dimensions and opacity are automatically extracted from the\nSVG content.","type":"string","minLength":1,"maxLength":500000,"examples":["<svg width=\"100\" height=\"100\"><circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"#3498db\"/></svg>"]}},"additionalProperties":false,"required":["type","src"],"examples":[{"type":"svg","src":"<svg width=\"100\" height=\"100\"><circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"#3498db\"/></svg>"}]},"TextAlignment":{"description":"Horizontal and vertical alignment properties for text.","properties":{"horizontal":{"description":"The horizontal alignment of the text. Value must be one of:\n\n- `left`\n\n- `center`\n\n- `right`","type":"string","examples":["center"],"enum":["left","center","right"]},"vertical":{"description":"The vertical alignment of the text. Value must be one of:\n\n- `top`\n\n- `center`\n\n- `bottom`","type":"string","examples":["center"],"enum":["top","center","bottom"]}},"additionalProperties":false,"type":"object"},"TextAsset":{"deprecated":true,"description":"**Notice: The TextAsset is deprecated, use the [RichTextAsset](#tocs_richtextasset) instead.** This type\ncontinues to function; no behaviour change for existing integrations.\n\nThe TextAsset is used to add text and titles to a video. The text can be styled with built in and custom\n[Fonts](#tocs_font). You can also add a background bounding box used to control wrapping and overflow. Emoticons are also supported.","type":"object","properties":{"type":{"enum":["text"],"default":"text","description":"The type of asset - set to `text` for text.","type":"string"},"text":{"description":"The text string to display.","type":"string","examples":["Hello World"]},"width":{"description":"Set the width of the HTML asset bounding box in pixels. Text will wrap to fill the bounding box.","type":"integer","examples":[400]},"height":{"description":"Set the width of the HTML asset bounding box in pixels. Text and elements will be masked if they exceed the height of the bounding box.","type":"integer","examples":[200]},"font":{"description":"Font styling properties.","$ref":"#/$defs/TextFont"},"background":{"description":"Background styling properties.","$ref":"#/$defs/TextBackground"},"alignment":{"description":"Alignment properties.","$ref":"#/$defs/TextAlignment"},"stroke":{"description":"Text stroke (outline) properties.","properties":{"width":{"description":"The width of the stroke in pixels.","type":"number","minimum":0,"maximum":10,"examples":[2]},"color":{"description":"The stroke color using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","examples":["#000000"]}},"additionalProperties":false,"type":"object"},"animation":{"description":"Animation properties for text entrance effects.","properties":{"preset":{"description":"The animation preset to apply.\n\n- `typewriter` - typewriter effect where characters appear one at a time","type":"string","enum":["typewriter"],"examples":["typewriter"]},"duration":{"description":"The duration of the animation in seconds.","type":"number","minimum":0.1,"maximum":30,"examples":[2]}},"additionalProperties":false,"required":["preset"],"type":"object"},"ellipsis":{"description":"The string to display when text overflows its bounding box. Set to an ellipsis character or custom string to indicate truncated text.","type":"string","examples":["..."]}},"additionalProperties":false,"required":["type","text"]},"TextBackground":{"description":"Displays a background box behind the text.","properties":{"color":{"description":"The background color using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","examples":["#000000"]},"opacity":{"description":"The opacity of the background where 1 is opaque and 0 is transparent.","type":"number","minimum":0,"maximum":1,"examples":[0.8]},"padding":{"description":"Padding inside the background box in pixels.","type":"number","minimum":0,"maximum":100,"examples":[10]},"borderRadius":{"description":"The border radius of the background box in pixels for rounded corners.","type":"number","minimum":0,"examples":[5]},"wrap":{"description":"Not supported on legacy `text` assets. Accepted here only so validators can emit a clear migration error pointing users to `rich-text` or `rich-caption`, which support background wrapping natively.","type":"boolean","examples":[false]}},"additionalProperties":false,"type":"object"},"TextFont":{"description":"Font properties for text.","properties":{"family":{"description":"The font family name. This must be Family name embedded in the font, i.e. \"Open Sans\".","type":"string","examples":["Open Sans"]},"color":{"description":"The text color using hexadecimal color notation.","type":"string","examples":["#ffffff"]},"opacity":{"description":"The opacity of the text where 1 is opaque and 0 is transparent.","type":"number","examples":[0.8]},"size":{"description":"The size of the font in pixels (px).","type":"integer","examples":[24]},"weight":{"description":"The weight of the font. 100 is lightest, 900 is heaviest (boldest).","type":"integer","examples":[400]},"lineHeight":{"description":"The line height of the font as a ratio of the font size.","type":"number","examples":[0.85]}},"additionalProperties":false,"type":"object"},"TextToImageAsset":{"deprecated":true,"description":"**Notice: TextToImageAsset is deprecated. Use [ImageAsset](#tocs_imageasset)\nwith `prompt` instead.** This type continues to function and is internally\nrewritten to ImageAsset; no behaviour change for existing integrations.\n\nThe TextToImageAsset lets you create a dynamic image from a text prompt.","properties":{"type":{"type":"string","description":"The type of asset to generate - set to `text-to-image` for text-to-image.","enum":["text-to-image"],"default":"text-to-image"},"prompt":{"type":"string","description":"The text prompt to generate an image from.","examples":["A serene landscape featuring a crystal-clear mountain lake at sunrise. The water reflects the pink and orange sky like a mirror. In the foreground, a majestic pine tree stands tall, its branches framing the view. Snow-capped peaks rise in the distance, their edges softened by a light morning mist. A pair of deer drink from the lake's edge, creating gentle ripples on the otherwise still surface."]},"width":{"type":"integer","description":"The width of the image in pixels.","examples":[512]},"height":{"type":"integer","description":"The height of the image in pixels.","examples":[512]},"crop":{"$ref":"#/$defs/Crop"}},"additionalProperties":false,"type":"object","required":["type","prompt"]},"TextToSpeechAsset":{"deprecated":true,"description":"**Notice: TextToSpeechAsset is deprecated. Use [AudioAsset](#tocs_audioasset)\nwith `prompt` (the spoken text) and `voice` instead.** This type continues to\nfunction and is internally rewritten to AudioAsset; no behaviour change for\nexisting integrations.\n\nThe TextToSpeechAsset lets you generate a voice over from text using a text-to-speech service.\nThe generated audio can be trimmed, faded and have its volume and speed adjusted using the\nsame properties available on the AudioAsset.","type":"object","properties":{"type":{"type":"string","description":"The type of asset - set to `text-to-speech` for text-to-speech.","enum":["text-to-speech"],"default":"text-to-speech"},"text":{"type":"string","description":"The text to convert to speech.","examples":["This is a text to speech example generated by Shotstack"]},"voice":{"type":"string","description":"The voice to use for the text-to-speech conversion.","examples":["Matthew"]},"language":{"type":"string","description":"The language code for the text-to-speech conversion.","examples":["en-US"]},"newscaster":{"type":"boolean","description":"Set the voice to newscaster mode.","default":false},"trim":{"description":"The start trim point of the audio clip, in seconds (defaults to 0). Audio will start from the trim point. The audio will play until the file ends or the Clip length is reached.","type":"number"},"volume":{"description":"Set the volume of the audio clip. Use a number or an array of [Tween](./#tocs_tween) objects to create custom volume transitions.","oneOf":[{"type":"number","description":"The volume level for the audio clip. Range varies from 0 to 1 where 0 is muted and 1 is full volume (defaults to 1).","minimum":0,"maximum":1,"examples":[0.5]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects used to create a custom volume effect. Modify the volume of an asset over time.","items":{"$ref":"#/$defs/Tween"}}]},"speed":{"description":"Adjust the playback speed of the audio clip between 0 (paused) and 10 (10x normal speed), where 1 is normal speed (defaults to 1). Adjusting the speed will also adjust the duration of the clip and may require you to adjust the Clip length.","type":"number","minimum":0,"maximum":10,"examples":[1]},"effect":{"description":"The effect to apply to the audio asset\n\n- `fadeIn` - fade volume in only\n\n- `fadeOut` - fade volume out only\n\n- `fadeInFadeOut` - fade volume in and out","enum":["none","fadeIn","fadeOut","fadeInFadeOut"],"type":"string"}},"additionalProperties":false,"required":["type","text","voice"]},"Thumbnail":{"description":"Generate a thumbnail image for the video or image at a specific point from the timeline.","properties":{"capture":{"description":"The point on the timeline in seconds to capture a single frame to use as the thumbnail image.","type":"number","examples":[1]},"scale":{"description":"Scale the thumbnail size to a fraction of the viewport size - i.e. setting the scale to 0.5 will scale the thumbnail to half the size of the viewport.","type":"number","minimum":0,"maximum":1,"examples":[0.3]}},"additionalProperties":false,"required":["capture","scale"],"type":"object"},"Timeline":{"description":"A timeline represents the contents of a video edit over time, an audio edit over time, in seconds, or an image layout. A timeline consists of layers called tracks. Tracks are composed of titles, images, audio, html or video segments referred to as clips which are placed along the track at specific starting point and lasting for a specific amount of time.","properties":{"soundtrack":{"deprecated":true,"description":"A music or audio soundtrack file in mp3 format. Deprecated - use an [AudioAsset](#tocs_audioasset) clip on its own track instead.","$ref":"#/$defs/Soundtrack"},"background":{"description":"A hexadecimal value for the timeline background colour. Defaults to #000000 (black).","type":"string"},"fonts":{"description":"An array of custom fonts to be downloaded for use by the HTML assets.","type":"array","items":{"$ref":"#/$defs/Font"}},"tracks":{"description":"A timeline consists of an array of tracks, each track containing clips. Tracks are layered on top of each other in the same order they are added to the array with the top most track layered over the top of those below it. Ensure that a track containing titles is the top most track so that it is displayed above videos and images.","type":"array","minItems":1,"items":{"$ref":"#/$defs/Track"}},"cache":{"description":"Disable the caching of ingested source footage and assets. See [caching](https://shotstack.io/docs/guide/architecting-an-application/caching/) for more details.","type":"boolean"}},"additionalProperties":false,"required":["tracks"],"type":"object"},"TitleAsset":{"deprecated":true,"description":"**Notice: The TitleAsset is deprecated, use the [RichTextAsset](#tocs_richtextasset) instead.**\n\nThe TitleAsset clip type lets you create video titles from a text string and apply styling and positioning.","type":"object","properties":{"type":{"enum":["title"],"default":"title","description":"The type of asset - set to `title` for titles.","type":"string"},"text":{"description":"The title text string - i.e. \"My Title\".","type":"string","examples":["Hello World"]},"style":{"description":"Uses a preset to apply font properties and styling to the title.\n\n- `minimal`\n\n- `blockbuster`\n\n- `vogue`\n\n- `sketchy`\n\n- `skinny`\n\n- `chunk`\n\n- `chunkLight`\n\n- `marker`\n\n- `future`\n\n- `subtitle`","enum":["minimal","blockbuster","vogue","sketchy","skinny","chunk","chunkLight","marker","future","subtitle"],"type":"string"},"color":{"description":"Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.","type":"string"},"size":{"description":"Set the relative size of the text using predefined sizes from xx-small to xx-large.\n\n- `xx-small`\n\n- `x-small`\n\n- `small`\n\n- `medium`\n\n- `large`\n\n- `x-large`\n\n- `xx-large`","enum":["xx-small","x-small","small","medium","large","x-large","xx-large"],"type":"string"},"background":{"description":"Apply a background color behind the text. Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency. Omit to use transparent background.","type":"string","examples":["#000000"]},"position":{"description":"Place the title in one of nine predefined positions of the viewport.\n\n- `top` - top (center)\n\n- `topRight` - top right\n\n- `right` - right (center)\n\n- `bottomRight` - bottom right\n\n- `bottom` - bottom (center)\n\n- `bottomLeft` - bottom left\n\n- `left` - left (center)\n\n- `topLeft` - top left\n\n- `center` - center","enum":["top","topRight","right","bottomRight","bottom","bottomLeft","left","topLeft","center"],"type":"string"},"offset":{"description":"Offset the location of the title relative to its position on the screen.","$ref":"#/$defs/Offset"}},"additionalProperties":false,"required":["type","text"]},"Track":{"description":"A track contains an array of clips. Tracks are layered on top of each other in the order in the array. The top most track will render on top of those below it.","properties":{"clips":{"description":"An array of Clips comprising of TitleClip, ImageClip or VideoClip.","type":"array","minItems":1,"items":{"$ref":"#/$defs/Clip"}}},"additionalProperties":false,"required":["clips"],"type":"object"},"Transformation":{"description":"Apply one or more transformations to a clip. Transformations alter the visual properties of a clip and can be combined to create new shapes and effects.","type":"object","additionalProperties":false,"properties":{"rotate":{"$ref":"#/$defs/RotateTransformation"},"skew":{"$ref":"#/$defs/SkewTransformation"},"flip":{"$ref":"#/$defs/FlipTransformation"}}},"Transition":{"description":"In and out transitions for a clip - i.e. fade in and fade out","properties":{"in":{"description":"The transition in. Available transitions are:\n\n- `fade` - fade in\n\n- `reveal` - reveal from left to right\n\n- `wipeLeft` - fade across screen to the left\n\n- `wipeRight` - fade across screen to the right\n\n- `slideLeft` - move slightly left and fade in\n\n- `slideRight` - move slightly right and fade in\n\n- `slideUp` - move slightly up and fade in\n\n- `slideDown` - move slightly down and fade in\n\n- `carouselLeft` - slide in from right to left\n\n- `carouselRight` - slide in from left to right\n\n- `carouselUp` - slide in from bottom to top\n\n- `carouselDown` - slide in from top to bottom\n\n- `shuffleTopRight` - rotate in from top right\n\n- `shuffleRightTop` - rotate in from right top\n\n- `shuffleRightBottom` - rotate in from right bottom\n\n- `shuffleBottomRight` - rotate in from bottom right\n\n- `shuffleBottomLeft` - rotate in from bottom left\n\n- `shuffleLeftBottom` - rotate in from left bottom\n\n- `shuffleLeftTop` - rotate in from left top\n\n- `shuffleTopLeft` - rotate in from top left\n\n- `zoom` - fast zoom in\n\nThe transition speed can also be controlled by appending `Fast` or `Slow` to the transition, e.g. `fadeFast` or `CarouselLeftSlow`.","enum":["none","fade","fadeSlow","fadeFast","reveal","revealSlow","revealFast","wipeLeft","wipeLeftSlow","wipeLeftFast","wipeRight","wipeRightSlow","wipeRightFast","slideLeft","slideLeftSlow","slideLeftFast","slideRight","slideRightSlow","slideRightFast","slideUp","slideUpSlow","slideUpFast","slideDown","slideDownSlow","slideDownFast","carouselLeft","carouselLeftSlow","carouselLeftFast","carouselRight","carouselRightSlow","carouselRightFast","carouselUp","carouselUpSlow","carouselUpFast","carouselDown","carouselDownSlow","carouselDownFast","shuffleTopRight","shuffleTopRightSlow","shuffleTopRightFast","shuffleRightTop","shuffleRightTopSlow","shuffleRightTopFast","shuffleRightBottom","shuffleRightBottomSlow","shuffleRightBottomFast","shuffleBottomRight","shuffleBottomRightSlow","shuffleBottomRightFast","shuffleBottomLeft","shuffleBottomLeftSlow","shuffleBottomLeftFast","shuffleLeftBottom","shuffleLeftBottomSlow","shuffleLeftBottomFast","shuffleLeftTop","shuffleLeftTopSlow","shuffleLeftTopFast","shuffleTopLeft","shuffleTopLeftSlow","shuffleTopLeftFast","zoom"],"type":"string"},"out":{"description":"The transition out. Available transitions are:\n\n- `fade` - fade out\n\n- `reveal` - reveal from right to left\n\n- `wipeLeft` - fade across screen to the left\n\n- `wipeRight` - fade across screen to the right\n\n- `slideLeft` - move slightly left and fade out\n\n- `slideRight` - move slightly right and fade out\n\n- `slideUp` - move slightly up and fade out\n\n- `slideDown` - move slightly down and fade out\n\n- `carouselLeft` - slide out from right to left\n\n- `carouselRight` - slide out from left to right\n\n- `carouselUp` - slide out from bottom to top\n\n- `carouselDown` - slide out from top to bottom\n\n- `shuffleTopRight` - rotate out from top right\n\n- `shuffleRightTop` - rotate out from right top\n\n- `shuffleRightBottom` - rotate out from right bottom\n\n- `shuffleBottomRight` - rotate out from bottom right\n\n- `shuffleBottomLeft` - rotate out from bottom left\n\n- `shuffleLeftBottom` - rotate out from left bottom\n\n- `shuffleLeftTop` - rotate out from left top\n\n- `shuffleTopLeft` - rotate out from top left\n\n- `zoom` - fast zoom out\n\nThe transition speed can also be controlled by appending `Fast` or `Slow` to the transition, e.g. `fadeFast` or `CarouselLeftSlow`.","enum":["none","fade","fadeSlow","fadeFast","reveal","revealSlow","revealFast","wipeLeft","wipeLeftSlow","wipeLeftFast","wipeRight","wipeRightSlow","wipeRightFast","slideLeft","slideLeftSlow","slideLeftFast","slideRight","slideRightSlow","slideRightFast","slideUp","slideUpSlow","slideUpFast","slideDown","slideDownSlow","slideDownFast","carouselLeft","carouselLeftSlow","carouselLeftFast","carouselRight","carouselRightSlow","carouselRightFast","carouselUp","carouselUpSlow","carouselUpFast","carouselDown","carouselDownSlow","carouselDownFast","shuffleTopRight","shuffleTopRightSlow","shuffleTopRightFast","shuffleRightTop","shuffleRightTopSlow","shuffleRightTopFast","shuffleRightBottom","shuffleRightBottomSlow","shuffleRightBottomFast","shuffleBottomRight","shuffleBottomRightSlow","shuffleBottomRightFast","shuffleBottomLeft","shuffleBottomLeftSlow","shuffleBottomLeftFast","shuffleLeftBottom","shuffleLeftBottomSlow","shuffleLeftBottomFast","shuffleLeftTop","shuffleLeftTopSlow","shuffleLeftTopFast","shuffleTopLeft","shuffleTopLeftSlow","shuffleTopLeftFast","zoom"],"type":"string"}},"additionalProperties":false,"type":"object"},"Tween":{"description":"Use a Tween to [animate properties over time](/docs/guide/architecting-an-application/animations/). The following properties are currently supported and can be animated:\n\n- Opacity - animate the transparency of a clip.\n\n- Offset - animate the x and y position of a clip.\n\n- Rotation - animate the rotation of a clip.\n\n- Skew - animate the horizontal and vertical shearing effect.\n\n- Volume - animate the audio volume of a clip.","properties":{"from":{"description":"The initial property value at the start of the animation.","examples":[0]},"to":{"description":"The final property value at the end of the animation.","examples":[1]},"start":{"description":"The time in seconds when the animation starts, relative to the clip, not the timeline.","type":"number","examples":[0]},"length":{"description":"The duration of the animation in seconds.","type":"number","examples":[3]},"interpolation":{"description":"The interpolation method to use for the animation. Available options are:\n\n- `linear` - a linear interpolation between the start and end values.\n\n- `bezier` - a bezier curve interpolation between the start and end values.\n\n- `constant` - an interpolation where the property instantly jumps from the start to the end value, without any gradual transition.","type":"string","examples":["bezier"],"enum":["linear","bezier","constant"]},"easing":{"description":"The easing function to use for the animation. Easing controls the rate of change of the animated value, allowing for more natural motion by speeding up or slowing down the animation at different points. Only applicable if interpolation is set to `bezier`.","type":"string","enum":["ease","easeIn","easeOut","easeInOut","easeInQuad","easeInCubic","easeInQuart","easeInQuint","easeInSine","easeInExpo","easeInCirc","easeInBack","easeOutQuad","easeOutCubic","easeOutQuart","easeOutQuint","easeOutSine","easeOutExpo","easeOutCirc","easeOutBack","easeInOutQuad","easeInOutCubic","easeInOutQuart","easeInOutQuint","easeInOutSine","easeInOutExpo","easeInOutCirc","easeInOutBack"]}},"additionalProperties":false,"type":"object"},"VideoAsset":{"description":"The VideoAsset adds a video to a Clip. The video can be sourced from a URL\n(`src`), generated from a text prompt (`prompt`), or both. At least one of\n`src` or `prompt` must be provided.\n\n- **Source URL:** set `src` to the URL of an mp4 (or compatible) video file.\n- **Generated:** set `prompt` to describe the motion. Choose a generator\n with `model` and configure it with model-specific `options`. Models that\n animate a starting image take it as `options.inputSrc`; the default model\n generates from the prompt alone. The generated `src` is filled in\n automatically.\n- **Both:** `src` acts as a preview placeholder while `prompt` drives\n generation — the video is regenerated from the prompt at render time.\n Unchanged prompts and options resolve from the generation cache.","type":"object","properties":{"type":{"enum":["video"],"default":"video","description":"The type of asset - set to `video` for videos.","type":"string"},"src":{"description":"The video source URL. The URL must be publicly accessible or include credentials. When `prompt` is also set, `src` serves as a preview placeholder and the video is regenerated from the prompt at render time.","type":"string","minLength":1,"pattern":"\\S","examples":["https://s3-ap-northeast-1.amazonaws.com/my-bucket/video.mp4"]},"prompt":{"description":"A text prompt to generate the video from. The engine generates a video at render time and fills `src` automatically; an existing `src` is treated as a preview placeholder and replaced. Use `model` to choose the generator and `options` to configure it. A starting image goes in `options.inputSrc`, on the models that accept one.","type":"string","maxLength":4000,"examples":["Slowly zoom out and orbit left around the object."]},"model":{"description":"The generation model to use when `prompt` is set (e.g. `seedance-2.0-text-to-video`). Defaults to `seedance-2.0-text-to-video` if omitted. `GET /models` lists what is available and the options each accepts.","type":"string","examples":["seedance-2.0-text-to-video"]},"options":{"description":"Model-specific generation settings. Valid keys and values depend on the chosen `model` and are defined by the model registry. Omitted options use the model's defaults. Unknown or invalid options are rejected.","type":"object","additionalProperties":true,"examples":[{"resolution":"720p","duration":"8","generateAudio":true}]},"transcode":{"type":"boolean","description":"Set to `true` to force re-encoding of the video during preprocessing. This can help resolve compatibility issues, fix rotation problems, synchronize audio, or convert formats. The video will be processed to ensure optimal compatibility with the rendering engine.","examples":[false]},"trim":{"description":"The start trim point of the video clip, in seconds (defaults to 0). Videos will start from the in trim point. The video will play until the file ends or the Clip length is reached.","type":"number","examples":[2]},"volume":{"description":"Set the volume of the video clip. Use a number or an array of [Tween](./#tocs_tween) objects to create custom volume transitions.","oneOf":[{"type":"number","description":"The volume level for the video clip. Range varies from 0 to 1 where 0 is muted and 1 is full volume (defaults to 1).","minimum":0,"maximum":1,"examples":[0.5]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects used to create a custom volume effect. Modify the volume of an asset over time.","items":{"$ref":"#/$defs/Tween"}}]},"volumeEffect":{"description":"Preset volume effects to apply to the video asset\n\n- `fadeIn` - fade volume in only\n\n- `fadeOut` - fade volume out only\n\n- `fadeInFadeOut` - fade volume in and out","enum":["none","fadeIn","fadeOut","fadeInFadeOut"],"type":"string"},"speed":{"description":"Adjust the playback speed of the video clip. Use a number for a constant speed or an array of [Tween](./#tocs_tween) objects to change speed over time, for example easing from normal speed up to 3x.","oneOf":[{"type":"number","description":"The playback speed between 0 (paused) and 10 (10x normal speed) where 1 is normal speed (defaults to 1). Adjusting the speed will also adjust the duration of the clip and may require you to adjust the Clip length. For example, if you set speed to 0.5, the clip will need to be 2x as long to play the entire video (i.e. original length / 0.5). If you set speed to 2, the clip will need to be half as long to play the entire video (i.e. original length / 2).","minimum":0,"maximum":10,"examples":[1]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects that change the playback speed over time. A speed of 0 holds the current frame. The clip length is not adjusted, so set it to cover the footage you want to play.","items":{"$ref":"#/$defs/Tween"}}]},"crop":{"$ref":"#/$defs/Crop"},"chromaKey":{"$ref":"#/$defs/ChromaKey"}},"additionalProperties":false,"required":["type"]},"VimeoDestination":{"description":"Send videos to [Vimeo](https://shotstack.io/docs/guide/serving-assets/destinations/vimeo/) video hosting and streaming service. Vimeo credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/vimeo), not in the request.","properties":{"provider":{"description":"The destination to send video to - set to `vimeo` for Vimeo.","type":"string","default":"vimeo","examples":["vimeo"]},"options":{"description":"Additional Vimeo configuration and features.","$ref":"#/$defs/VimeoDestinationOptions"}},"type":"object","required":["provider"]},"VimeoDestinationOptions":{"description":"Pass additional options to control how Vimeo publishes video, including name, description and privacy settings.","properties":{"name":{"description":"A name or title for the video that will be displayed on the Vimeo website.","type":"string"},"description":{"description":"A description of the video that will be displayed on the Vimeo website.","type":"string"},"privacy":{"description":"Options to control the visibility of videos and privacy features.","$ref":"#/$defs/VimeoDestinationPrivacyOptions"},"folderUri":{"description":"The Vimeo folder URI to upload the video to. The folder must already exist in your Vimeo account.","type":"string","examples":["/users/12345678/projects/87654321"]}},"type":"object"},"VimeoDestinationPrivacyOptions":{"description":"Options to control the visibility of videos and privacy features.","properties":{"view":{"description":"Set who can view the videos. Available options are:\n\n- `anybody` - Anyone can view the video.\n\n- `nobody` - Only the video owner can view the video.\n\n- `contacts` - Only contacts can view the video.\n\n- `password` - A password is required to view the video.\n\n- `unlisted` - The video is not listed on Vimeo.","type":"string","enum":["anybody","nobody","contacts","password","unlisted"]},"embed":{"description":"Set who can embed the video. Available options are:\n\n- `public` - Anyone can embed the video.\n\n- `private` - Only the video owner can embed the video.\n\n- `whitelist` - Only whitelisted domains can embed the video.","type":"string","enum":["public","private","whitelist"]},"comments":{"description":"Set who can comment on the video. Available options are:\n\n- `anybody` - Anyone can comment on the video.\n\n- `nobody` - Only the video owner can comment on the video.\n\n- `contacts` - Only contacts can comment on the video.","type":"string","enum":["anybody","nobody","contacts"]},"download":{"description":"Set whether the video can be downloaded.","type":"boolean"},"add":{"description":"Set whether other users can add the video to their collections.","type":"boolean"}},"type":"object"}}};
|
|
1
|
+
export const edit = {"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Edit","description":"An edit defines the arrangement of a video on a timeline, an audio edit or an image design and the output format. Video assets are automatically preprocessed to fix common compatibility issues before rendering. You can control preprocessing behavior using the `transcode` flag on video assets.","properties":{"timeline":{"$ref":"#/$defs/Timeline"},"output":{"$ref":"#/$defs/Output"},"merge":{"description":"An array of key/value pairs that provides an easy way to create templates with placeholders. The placeholders can be used to find and replace keys with values. For example you can search for the placeholder `{{NAME}}` and replace it with the value `Jane`.","type":"array","items":{"$ref":"#/$defs/MergeField"}},"callback":{"type":"string","description":"An optional webhook callback URL used to receive status notifications when a render completes or fails. Notifications are also sent when a rendered video is sent to an output [destination](https://shotstack.io/docs/guide/serving-assets/destinations/).\nSee [webhooks](https://shotstack.io/docs/guide/architecting-an-application/webhooks/) for more details.","examples":["https://my-server.com/callback.php"]},"disk":{"description":"**Notice: This option is now deprecated and will be removed. Disk types are handled automatically. Setting a disk type has no effect.**\n\nThe disk type to use for storing footage and assets for each render. See [disk types](https://shotstack.io/docs/guide/architecting-an-application/disk-types/) for more details.\n\n- `local` - optimized for high speed rendering with up to 512MB storage\n\n- `mount` - optimized for larger file sizes and longer videos with 5GB for source footage and 512MB for output render","type":"string","enum":["local","mount"],"deprecated":true},"instance":{"description":"The render instance type to use for processing the edit.\n\n- `s1` - standard instance (default)\n\n- `s2` - standard instance with more resources\n\n- `a1` - accelerated instance for faster rendering","type":"string","enum":["s1","s2","a1"],"default":"s1"}},"additionalProperties":false,"required":["timeline","output"],"type":"object","$defs":{"Asset":{"type":"object","description":"The type of asset to display for the duration of the Clip, i.e. a video clip or an image. Choose from one of the available asset types below.","oneOf":[{"$ref":"#/$defs/VideoAsset"},{"$ref":"#/$defs/ImageAsset"},{"$ref":"#/$defs/TextAsset"},{"$ref":"#/$defs/RichTextAsset"},{"$ref":"#/$defs/AudioAsset"},{"$ref":"#/$defs/LumaAsset"},{"$ref":"#/$defs/CaptionAsset"},{"$ref":"#/$defs/RichCaptionAsset"},{"$ref":"#/$defs/HtmlAsset"},{"$ref":"#/$defs/Html5Asset"},{"$ref":"#/$defs/TitleAsset"},{"$ref":"#/$defs/ShapeAsset"},{"$ref":"#/$defs/SvgAsset"},{"$ref":"#/$defs/TextToImageAsset"},{"$ref":"#/$defs/ImageToVideoAsset"},{"$ref":"#/$defs/TextToSpeechAsset"}]},"AudioAsset":{"description":"The AudioAsset adds audio to a Clip. The audio can be sourced from a URL\n(`src`), generated from a text prompt (`prompt`), or both. At least one of\n`src` or `prompt` must be provided.\n\n- **Source URL:** set `src` to a publicly accessible audio URL (e.g. mp3).\n- **Generated speech:** set `prompt` to the spoken text and choose a\n text-to-speech `model`; set the voice via `options`.\n- **Generated music or SFX:** set `prompt` describing the sound and choose\n a music generation `model`.\n- **Both:** `src` acts as a preview placeholder while `prompt` drives\n generation — the audio is regenerated from the prompt at render time.\n Unchanged prompts and options resolve from the generation cache.\n- Use `model` to choose the generator and `options` to configure it. The\n generated `src` is filled in automatically.","type":"object","properties":{"type":{"enum":["audio"],"default":"audio","description":"The type of asset - set to `audio` for audio assets.","type":"string"},"src":{"description":"The audio source URL. The URL must be publicly accessible or include credentials. When `prompt` is also set, `src` serves as a preview placeholder and the audio is regenerated from the prompt at render time.","type":"string","minLength":1,"pattern":"\\S","examples":["https://s3-ap-northeast-1.amazonaws.com/my-bucket/sound.mp3"]},"prompt":{"description":"A text prompt. For text-to-speech models the prompt is the spoken text; for music models it describes the sound to generate. The generated `src` is filled in automatically; an existing `src` is treated as a preview placeholder and replaced.","type":"string","maxLength":4000,"examples":["Welcome to today's broadcast."]},"model":{"description":"The generation model to use when `prompt` is set (e.g. `polly-neural`, `elevenlabs-tts`, `elevenlabs-music`). Defaults to `elevenlabs-tts` (with a default voice) if omitted. Each model's available options are defined by the model registry.","type":"string","examples":["polly-neural"]},"options":{"description":"Model-specific generation settings. Valid keys and values depend on the chosen `model` and are defined by the model registry. Omitted options use the model's defaults. Unknown or invalid options are rejected.","type":"object","additionalProperties":true,"examples":[{"voice":"Matthew","language":"en-US"}]},"trim":{"description":"The start trim point of the audio clip, in seconds (defaults to 0). Audio will start from the in trim point. The audio will play until the file ends or the Clip length is reached.","type":"number"},"volume":{"description":"Set the volume of the audio clip. Use a number or an array of [Tween](./#tocs_tween) objects to create custom volume transitions.","oneOf":[{"type":"number","description":"The volume level for the audio clip. Range varies from 0 to 1 where 0 is muted and 1 is full volume (defaults to 1).","minimum":0,"maximum":1,"examples":[0.5]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects used to create a custom volume effect. Modify the volume of an asset over time.","items":{"$ref":"#/$defs/Tween"}}]},"speed":{"description":"Adjust the playback speed of the audio clip between 0 (paused) and 10 (10x normal speed), where 1 is normal speed (defaults to 1). Adjusting the speed will also adjust the duration of the clip and may require you to adjust the Clip length. For example, if you set speed to 0.5, the clip will need to be 2x as long to play the entire audio (i.e. original length / 0.5). If you set speed to 2, the clip will need to be half as long to play the entire audio (i.e. original length / 2).","type":"number","minimum":0,"maximum":10,"examples":[1]},"effect":{"description":"The effect to apply to the audio asset\n\n- `fadeIn` - fade volume in only\n\n- `fadeOut` - fade volume out only\n\n- `fadeInFadeOut` - fade volume in and out","enum":["none","fadeIn","fadeOut","fadeInFadeOut"],"type":"string"}},"additionalProperties":false,"required":["type"]},"CaptionAsset":{"deprecated":true,"description":"**Notice: The CaptionAsset is deprecated, use the [RichCaptionAsset](#tocs_richcaptionasset) instead.**\n\nThe CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will\nbe read and burnt to the video.\n\nCaptions can be applied independently from a video or audio file for greater\nflexibility with styling and layout. For example you can scale, position or crop a video without modifying the\ncaptions.\n\nTo sync captions with a video or audio file use a [Video](#tocs_videoasset) or [Audio](#tocs_audioasset) with\nmatching start and end time.","type":"object","properties":{"type":{"enum":["caption"],"default":"caption","description":"The type of asset - set to `caption` for captions.","type":"string"},"src":{"description":"The URL to an SRT or VTT subtitles file, or an alias reference to auto-generate captions from an audio or video clip. For file URLs, the URL must be publicly accessible or include credentials. For auto-captioning, use the format `alias://clip-name` where clip-name is the alias of an audio, video, or text-to-speech clip. The system will automatically transcribe the audio and detect the language.","type":"string","minLength":1,"pattern":"\\S","examples":["https://s3-ap-northeast-1.amazonaws.com/my-bucket/captions.srt"]},"font":{"description":"Font styling properties.","$ref":"#/$defs/CaptionFont"},"background":{"description":"Background styling properties.","$ref":"#/$defs/CaptionBackground"},"margin":{"description":"Margin properties.","$ref":"#/$defs/CaptionMargin"},"trim":{"description":"The start trim point of the captions, in seconds (defaults to 0). Remove the trim length from the start of the captions and allow it to be synced with video or audio. The captions will play until the file ends or the Clip length is reached.","type":"number","examples":[2]},"speed":{"description":"Adjust the playback speed of the captions between 0 (paused) and 10 (10x normal speed) where 1 is normal speed (defaults to 1). Adjusting the speed will also adjust the duration of the clip and may require you to adjust the Clip length. For example, if you set speed to 0.5, the clip will need to be 2x as long to play the entire captions (i.e. original length / 0.5). If you set speed to 2, the clip will need to be half as long to play the entire captions (i.e. original length / 2).","type":"number","minimum":0,"maximum":10,"examples":[1]}},"additionalProperties":false,"required":["type","src"]},"CaptionBackground":{"description":"Displays a background box behind the caption text.","properties":{"color":{"description":"The background color using hexadecimal color notation.","type":"string","examples":["#000000"]},"opacity":{"description":"The opacity of the background color.","type":"number","examples":[0.4]},"padding":{"description":"The padding inside the background box in pixels.","type":"integer","examples":[30]},"borderRadius":{"description":"The border radius of the background box in pixels.","type":"integer","examples":[18]}},"additionalProperties":false,"type":"object"},"CaptionFont":{"description":"Font properties for captions text.","properties":{"family":{"description":"The font family name. This must be Family name embedded in the font, i.e. \"Open Sans\".","type":"string","examples":["Open Sans"]},"color":{"description":"The text color using hexadecimal color notation.","type":"string","examples":["#ffffff"]},"opacity":{"description":"The opacity of the text where 1 is opaque and 0 is transparent.","type":"number","examples":[0.8]},"size":{"description":"The size of the font in pixels (px).","type":"integer","examples":[24]},"lineHeight":{"description":"The line height of the font as a ratio of the font size.","type":"number","examples":[0.85]},"stroke":{"description":"The stroke color of the font using hexadecimal color notation.","type":"string","examples":["#ff6600"]},"strokeWidth":{"description":"The width of the stroke in pixels.","type":"number","examples":[0.8]}},"additionalProperties":false,"type":"object"},"CaptionMargin":{"description":"The margin properties for captions. Margins are used to position the caption text and background on the screen.","properties":{"top":{"description":"The margin above the text. Pushes captions down the screen.","type":"number","examples":[0.25]},"left":{"description":"The margin to the left of the text. Pushes captions to the right.","type":"number","examples":[0.05]},"right":{"description":"The margin to the right of the text. Pushes captions to the left.","type":"number","examples":[0.45]}},"additionalProperties":false,"type":"object"},"ChromaKey":{"description":"Chroma key is a technique that replaces a specific color in a video with a different background image or video, enabling seamless integration of diverse environments. Commonly used for green screen and blue screen effects.","properties":{"color":{"description":"The chroma key color as a hex value. Use green (#00b140) for green screens or blue (#0000FF) for blue screens. Any valid hex color can be used as the key color.","type":"string","pattern":"^#[0-9a-fA-F]{6}$","examples":["#00b140"]},"threshold":{"description":"Pixels within this distance from the key color are eliminated by setting their alpha values to zero.","type":"integer","minimum":0,"maximum":250,"examples":[150]},"halo":{"description":"Pixels within the halo distance from the threshold boundary are given an increasing alpha value based on their distance from the threshold.","type":"integer","minimum":0,"maximum":250,"examples":[100]}},"additionalProperties":false,"required":["color"],"type":"object"},"Clip":{"description":"A clip is a container for a specific type of asset, i.e. a title, image, video, audio or html. You use a Clip to define when an asset will display on the timeline, how long it will play for and transitions, filters and effects to apply to it.","properties":{"id":{"description":"Optional client-generated identifier. Used by client SDKs (e.g. the Shotstack Studio SDK) to reference a clip across edits without relying on its position in the timeline. The render API does not use this field and it does not appear in render output.","type":"string","examples":["f47ac10b-58cc-4372-a567-0e02b2c3d479"]},"asset":{"$ref":"#/$defs/Asset"},"start":{"description":"The start position of the Clip on the timeline.","oneOf":[{"type":"number","description":"The start position of the Clip on the timeline, in seconds. For example, to start the Clip at 2 seconds, set the start value to 2.","minimum":0,"examples":[2]},{"type":"string","description":"The start position using a [smart clip property](/docs/guide/architecting-an-application/smart-clips/). Set to `auto` to automatically play the clip after the previous clip finishes. Use `alias://clip-name` to inherit the start time from the referenced clip.","pattern":"^(auto|alias://[A-Za-z0-9_-]+)$","examples":["auto"]}]},"length":{"description":"The duration the Clip should play for.","oneOf":[{"type":"number","description":"The duration the Clip should play for, in seconds. For example, to play the Clip for 5 seconds, set the length value to 5.","minimum":0,"examples":[5]},{"type":"string","description":"The duration the Clip should play for using a [smart clip property](/docs/guide/architecting-an-application/smart-clips/). Set to `auto` to play the Clip for the duration of the asset. Set to `end` to display or play the clip to the end of the timeline. Use `alias://clip-name` to inherit the length from the referenced clip.","pattern":"^(auto|end|alias://[A-Za-z0-9_-]+)$","examples":["auto"]}]},"fit":{"description":"Set how the asset should be scaled to fit the viewport using one of the following options:\n\n- `crop` (default) - scale the asset to fill the viewport while maintaining the aspect ratio. The asset will be cropped if it exceeds the bounds of the viewport.\n\n- `cover` - stretch the asset to fill the viewport without maintaining the aspect ratio.\n\n- `contain` - fit the entire asset within the viewport while maintaining the original aspect ratio.\n\n- `none` - preserves the original asset dimensions and does not apply any scaling.","enum":["cover","contain","crop","none"],"type":"string"},"scale":{"description":"Scale the asset to a fraction of the viewport size - i.e. setting the scale to 0.5 will scale asset to half the size of the viewport. This is useful for picture-in-picture video and scaling images such as logos and watermarks. Use a number or an array of [Tween](./#tocs_tween) objects to create a custom animation.","oneOf":[{"type":"number","description":"Scale the asset to a fraction of the viewport size. For example, 0.5 will scale the asset to half the size of the viewport.","examples":[0.5]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects used to create a custom animation. Animate the scale of an asset over time.","items":{"$ref":"#/$defs/Tween"}}]},"width":{"description":"Set the width of the clip bounding box in pixels. This constrains the width of the clip, overriding the default behavior where clips fill the viewport width.","type":"number","minimum":1,"maximum":3840,"examples":[800]},"height":{"description":"Set the height of the clip bounding box in pixels. This constrains the height of the clip, overriding the default behavior where clips fill the viewport height.","type":"number","minimum":1,"maximum":2160,"examples":[600]},"position":{"description":"Place the asset in one of nine predefined positions of the viewport. This is most effective for when the asset is scaled and you want to position the element to a specific position.\n\n- `top` - top (center)\n\n- `topRight` - top right\n\n- `right` - right (center)\n\n- `bottomRight` - bottom right\n\n- `bottom` - bottom (center)\n\n- `bottomLeft` - bottom left\n\n- `left` - left (center)\n\n- `topLeft` - top left\n\n- `center` - center","enum":["top","topRight","right","bottomRight","bottom","bottomLeft","left","topLeft","center"],"type":"string"},"offset":{"description":"Offset the location of the asset relative to its position on the viewport. The offset distance is relative to the width of the viewport - for example an x offset of 0.5 will move the asset half the viewport width to the right.","$ref":"#/$defs/Offset"},"transition":{"$ref":"#/$defs/Transition"},"effect":{"description":"A motion effect to apply to the Clip.\n\n- `zoomIn` - slow zoom in\n\n- `zoomOut` - slow zoom out\n\n- `slideLeft` - slow slide (pan) left\n\n- `slideRight` - slow slide (pan) right\n\n- `slideUp` - slow slide (pan) up\n\n- `slideDown` - slow slide (pan) down\n The motion effect speed can also be controlled by appending `Fast` or `Slow` to the effect, e.g. `zoomInFast` or `slideRightSlow`.","enum":["zoomIn","zoomInSlow","zoomInFast","zoomOut","zoomOutSlow","zoomOutFast","slideLeft","slideLeftSlow","slideLeftFast","slideRight","slideRightSlow","slideRightFast","slideUp","slideUpSlow","slideUpFast","slideDown","slideDownSlow","slideDownFast"],"type":"string"},"filter":{"description":"A filter effect to apply to the Clip.\n\n- `none` - no filter applied\n\n- `blur` - blur the scene\n\n- `boost` - boost contrast and saturation\n\n- `contrast` - increase contrast\n\n- `darken` - darken the scene\n\n- `greyscale` - remove colour\n\n- `lighten` - lighten the scene\n\n- `muted` - reduce saturation and contrast\n\n- `negative` - negative colors","enum":["none","blur","boost","contrast","darken","greyscale","lighten","muted","negative"],"type":"string","examples":["greyscale"]},"opacity":{"description":"Offset an asset on the horizontal axis (left or right). Use a number or an array of [Tween](./#tocs_tween) objects to create a custom animation.","oneOf":[{"type":"number","description":"Sets the opacity of the Clip where 1 is opaque and 0 is transparent.","examples":[0.5]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects used to create a custom animation. Animate the opacity of an asset over time.","items":{"$ref":"#/$defs/Tween"}}]},"transform":{"description":"A transformation lets you modify the visual properties of a clip. Available transformations are rotate, skew and flip. Transformations can be combined to create interesting new shapes and effects.","$ref":"#/$defs/Transformation"},"alias":{"description":"A unique identifier for this clip that can be used to reference it from other clips using the `alias://` protocol in asset sources. This is useful for features like auto-captioning where a caption asset needs to reference the audio from another clip.","type":"string","pattern":"^[A-Za-z0-9_-]+$","examples":["MY_VIDEO_CLIP"]}},"additionalProperties":false,"required":["asset","start","length"],"type":"object"},"Crop":{"description":"Crop the sides of an asset by a relative amount. The size of the crop is specified using a scale between 0 and 1, relative to the screen width - i.e a left crop of 0.5 will crop half of the asset from the left, a top crop of 0.25 will crop the top by quarter of the asset.","properties":{"top":{"description":"Crop from the top of the asset","type":"number","minimum":0,"maximum":1,"examples":[0.15]},"bottom":{"description":"Crop from the bottom of the asset","type":"number","minimum":0,"maximum":1,"examples":[0.15]},"left":{"description":"Crop from the left of the asset","type":"number","minimum":0,"maximum":1},"right":{"description":"Crop from the left of the asset","type":"number","minimum":0,"maximum":1}},"additionalProperties":false,"type":"object"},"Destinations":{"type":"object","description":"A destination is a location where assets can be sent to for serving or hosting. Videos, images and audio files that are rendered by the [Edit API](#shotstack-edit) and [source](#tocs_source) and [rendition](#tocs_rendition) files generated by the [Ingest API](#shotstack-ingest) can be sent to destinations. You can also fetch a file from any public URL and [transfer](#transfer-asset) it to a destination. A file can be sent to one or more destinations including 3rd party destinations.\n\nBy default all ingested and generated assets are automatically sent to the [Shotstack hosting destination](https://shotstack.io/docs/guide/serving-assets/hosting/). You can [opt-out](https://shotstack.io/docs/guide/serving-assets/self-host/) from by setting the Shotstack destination **exclude** property to **true**.","anyOf":[{"$ref":"#/$defs/ShotstackDestination"},{"$ref":"#/$defs/MuxDestination"},{"$ref":"#/$defs/S3Destination"},{"$ref":"#/$defs/GoogleCloudStorageDestination"},{"$ref":"#/$defs/GoogleDriveDestination"},{"$ref":"#/$defs/VimeoDestination"},{"description":"Send videos to TikTok. TikTok credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/tiktok), not in the request.","properties":{"provider":{"description":"The destination to send video to - set to `tiktok` for TikTok.","type":"string","default":"tiktok","examples":["tiktok"]},"options":{"description":"Additional TikTok configuration options.","properties":{"title":{"description":"A title for the video that will be displayed on TikTok.","type":"string","maxLength":150},"privacyLevel":{"description":"The privacy level for the video. Options are:\n\n- `public` - video is visible to everyone\n\n- `friends` - video is visible to friends only\n\n- `private` - video is only visible to you","type":"string","enum":["public","friends","private"],"default":"private"},"disableDuet":{"description":"Disable the Duet feature for this video.","type":"boolean","default":false},"disableStitch":{"description":"Disable the Stitch feature for this video.","type":"boolean","default":false},"disableComment":{"description":"Disable comments on this video.","type":"boolean","default":false}},"type":"object"}},"type":"object","required":["provider"]},{"description":"Send videos and assets to [Akamai NetStorage](https://techdocs.akamai.com/netstorage-usage/docs). Send files to your NetStorage upload directory with a custom path and filename. Akamai credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/akamai-netstorage), not in the request.","properties":{"provider":{"description":"The destination to send assets to - set to `akamai-netstorage` for Akamai NetStorage.","type":"string","default":"akamai-netstorage","examples":["akamai-netstorage"]},"options":{"description":"Additional Akamai NetStorage configuration options.","properties":{"host":{"description":"The Akamai NetStorage hostname, i.e. `example-nsu.akamaihd.net`.","type":"string","examples":["example-nsu.akamaihd.net"]},"cpCode":{"description":"The Content Provider code (CP code) for the NetStorage upload directory.","type":"string","examples":["123456"]},"path":{"description":"A remote directory path/prefix for the file being sent, i.e. `videos` or `customerId/videos`.","type":["string","null"],"examples":["videos"]},"filename":{"description":"Use your own filename instead of the default filenames generated by Shotstack. Note: omit the file extension as this will be appended depending on the output format. Also `-poster.jpg` and `-thumb.jpg` will be appended for poster and thumbnail images.","type":["string","null"],"examples":["my-file"]}},"required":["host","cpCode"],"type":"object"}},"type":"object","required":["provider"]},{"description":"Send videos and assets to [Azure Blob Storage](https://learn.microsoft.com/en-us/azure/storage/blobs/). Send files to any container with a custom prefix and filename. Azure credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/azure-blob-storage), not in the request.","properties":{"provider":{"description":"The destination to send assets to - set to `azure-blob-storage` for Azure Blob Storage.","type":"string","default":"azure-blob-storage","examples":["azure-blob-storage"]},"options":{"description":"Additional Azure Blob Storage configuration options.","properties":{"accountName":{"description":"The Azure Storage account name.","type":"string","examples":["mystorageaccount"]},"container":{"description":"The Blob container name. The container must exist in the Azure Storage account before files can be sent.","type":"string","examples":["my-container"]},"prefix":{"description":"A virtual directory prefix for the blob being sent, i.e. `videos` or `customerId/videos`.","type":["string","null"],"examples":["videos"]},"filename":{"description":"Use your own filename instead of the default filenames generated by Shotstack. Note: omit the file extension as this will be appended depending on the output format. Also `-poster.jpg` and `-thumb.jpg` will be appended for poster and thumbnail images.","type":["string","null"],"examples":["my-file"]}},"required":["accountName","container"],"type":"object"}},"type":"object","required":["provider"]}]},"FlipTransformation":{"description":"Flip a clip vertically or horizontally. Acts as a mirror effect of the clip along the selected plane.","type":"object","additionalProperties":false,"properties":{"horizontal":{"description":"Flip a clip horizontally.","type":"boolean","examples":[true]},"vertical":{"description":"Flip a clip vertically.","type":"boolean","examples":[true]}}},"Font":{"description":"Download a custom font to use with the HTML asset type, using the font name in the CSS or font tag. See our [custom fonts](https://shotstack.io/learn/html-custom-fonts/) getting started guide for more details.","properties":{"src":{"description":"The URL of the font file. The URL must be publicly accessible or include credentials.","type":"string","examples":["https://s3-ap-northeast-1.amazonaws.com/my-bucket/open-sans.ttf"]}},"additionalProperties":false,"required":["src"],"type":"object"},"GoogleCloudStorageDestination":{"description":"Send videos and assets to a [Google Cloud Storage](https://cloud.google.com/storage) bucket. Send files with your own prefix and filename. Google Cloud credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/google-cloud-storage), not in the request.","properties":{"provider":{"description":"The destination to send assets to - set to `google-cloud-storage` for Google Cloud Storage.","type":"string","default":"google-cloud-storage","examples":["google-cloud-storage"]},"options":{"description":"Additional Google Cloud Storage configuration options.","$ref":"#/$defs/GoogleCloudStorageDestinationOptions"}},"type":"object","required":["provider"]},"GoogleCloudStorageDestinationOptions":{"description":"Pass additional options to control how files are stored in Google Cloud Storage.","properties":{"bucket":{"description":"The bucket name to send files to. The bucket must exist in the Google Cloud Storage account before files can be sent.","type":"string","examples":["my-bucket"]},"prefix":{"description":"A prefix for the file being sent. This is typically a folder name, i.e. `videos` or `customerId/videos`.","type":"string","examples":["my-renders"]},"filename":{"description":"Use your own filename instead of the default filenames generated by Shotstack. Note: omit the file extension as this will be appended depending on the output format. Also `-poster.jpg` and `-thumb.jpg` will be appended for poster and thumbnail images.","type":"string","examples":["my-file"]}},"required":["bucket"],"type":"object"},"GoogleDriveDestination":{"description":"Send rendered videos and assets to the [Google Drive](https://shotstack.io/docs/guide/serving-assets/destinations/google-drive/) cloud storage service. Google Drive uses OAuth and you must authenticate and link your Google account via [dashboard](https://dashboard.shotstack.io/integrations/google-drive), not in the request.","properties":{"provider":{"description":"The destination to send assets to - set to `google-drive` for Google Drive.","type":"string","default":"google-drive","examples":["google-drive"]},"options":{"description":"Additional Google Drive configuration and features. If omitted, files are saved to the root of My Drive using the default Shotstack filename.","$ref":"#/$defs/GoogleDriveDestinationOptions"}},"type":"object","required":["provider"]},"GoogleDriveDestinationOptions":{"description":"Pass the folder ID and options to configure how assets are stored in Google Drive.","properties":{"folderId":{"description":"The Google Drive folder ID where the asset will be stored. If omitted, the asset is saved to the root of My Drive. The folder ID can be retrieved from the URL when logged in to Google Drive, e.g. https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A (#).","type":"string","examples":["1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A"]},"filename":{"description":"Use your own filename instead of the default filenames generated by Shotstack. Note: omit the file extension as this will be appended depending on the output format. Also `-poster.jpg` and `-thumb.jpg` will be appended for poster and thumbnail images.","type":"string","examples":["my-file"]}},"type":"object"},"Html5Asset":{"description":"The Html5Asset renders full HTML5/CSS3/JS.","type":"object","properties":{"type":{"enum":["html5"],"default":"html5","description":"The type of asset - set to `html5` for HTML5/CSS3/JS.","type":"string"},"html":{"description":"The HTML markup for the asset. Max 1,000,000 characters.","type":"string","maxLength":1000000,"examples":["<div class='card'><h1>{{title}}</h1></div>"]},"css":{"description":"The CSS string applied to the HTML. Max 500,000 characters.","type":"string","maxLength":500000,"examples":[".card { font-family: 'Inter'; padding: 32px; }"]},"js":{"description":"Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically. Max 500,000 characters.","type":"string","maxLength":500000,"examples":["gsap.to('.card', { x: 200, duration: 1 });"]}},"additionalProperties":false,"required":["type","html"]},"HtmlAsset":{"deprecated":true,"description":"**Notice: The HtmlAsset is deprecated, use the [RichTextAsset](#tocs_richtextasset) instead.**\n\nThe HtmlAsset clip type lets you create text based layout and formatting using\nHTML and CSS. You can also set the height and width of a bounding box for the HTML\ncontent to sit within. Text and elements will wrap within the bounding box.","type":"object","properties":{"type":{"enum":["html"],"default":"html","description":"The type of asset - set to `html` for HTML.","type":"string"},"html":{"description":"The HTML text string. See list of [supported HTML tags](https://shotstack.io/docs/guide/architecting-an-application/html-support/#supported-html-tags).","type":"string","examples":["<p>Hello <b>World</b></p>"]},"css":{"description":"The CSS text string to apply styling to the HTML. See list of [support CSS properties](https://shotstack.io/docs/guide/architecting-an-application/html-support/#supported-css-properties).","type":"string","examples":["p { color: #ffffff; } b { color: #ffff00; }"]},"width":{"description":"Set the width of the HTML asset bounding box in pixels. Text will wrap to fill the bounding box.","type":"integer","examples":[400]},"height":{"description":"Set the width of the HTML asset bounding box in pixels. Text and elements will be masked if they exceed the height of the bounding box.","type":"integer","examples":[200]},"background":{"description":"Apply a background color behind the HTML bounding box using. Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.","type":"string"},"position":{"description":"Place the HTML in one of nine predefined positions within the HTML area.\n\n- `top` - top (center)\n\n- `topRight` - top right\n\n- `right` - right (center)\n\n- `bottomRight` - bottom right\n\n- `bottom` - bottom (center)\n\n- `bottomLeft` - bottom left\n\n- `left` - left (center)\n\n- `topLeft` - top left\n\n- `center` - center","enum":["top","topRight","right","bottomRight","bottom","bottomLeft","left","topLeft","center"],"type":"string"}},"additionalProperties":false,"required":["type","html"]},"ImageAsset":{"description":"The ImageAsset adds an image to a Clip. The image can be sourced from a URL\n(`src`), generated from a text prompt (`prompt`), or both. At least one of\n`src` or `prompt` must be provided.\n\n- **Source URL:** set `src` to the publicly accessible URL of a jpg or png file.\n- **Generated:** set `prompt` to describe the image. Choose a generator with\n `model` and configure it with model-specific `options`; the engine fills\n `src` in automatically.\n- **Both:** `src` acts as a preview placeholder while `prompt` drives\n generation — the image is regenerated from the prompt at render time.\n Unchanged prompts and options resolve from the generation cache.","type":"object","properties":{"type":{"enum":["image"],"default":"image","description":"The type of asset - set to `image` for images.","type":"string"},"src":{"description":"The image source URL. The URL must be publicly accessible or include credentials. When `prompt` is also set, `src` serves as a preview placeholder and the image is regenerated from the prompt at render time.","type":"string","minLength":1,"pattern":"\\S","examples":["https://s3-ap-northeast-1.amazonaws.com/my-bucket/image.jpg"]},"prompt":{"description":"A text prompt to generate the image from. The engine generates an image at render time and fills `src` automatically; an existing `src` is treated as a preview placeholder and replaced. Use `model` to choose the generator and `options` to configure it.","type":"string","maxLength":4000,"examples":["A serene landscape with a crystal-clear mountain lake at sunrise."]},"model":{"description":"The generation model to use when `prompt` is set (e.g. `flux-schnell`, `nano-banana-2`). Defaults to `nano-banana-2` if omitted. Each model's available options are defined by the model registry.","type":"string","examples":["nano-banana-2"]},"options":{"description":"Model-specific generation settings. Valid keys and values depend on the chosen `model` and are defined by the model registry. Omitted options use the model's defaults. Unknown or invalid options are rejected.","type":"object","additionalProperties":true,"examples":[{"resolution":"1K","aspectRatio":"16:9"}]},"crop":{"$ref":"#/$defs/Crop"}},"additionalProperties":false,"required":["type"]},"ImageToVideoAsset":{"deprecated":true,"description":"**Notice: ImageToVideoAsset is deprecated. Use [VideoAsset](#tocs_videoasset)\nwith `prompt`, a `model` that accepts a starting image, and that image in\n`options.inputSrc` — for example `seedance-2.0-image-to-video`.** This type continues to\nfunction and is internally rewritten to VideoAsset; no behaviour change for\nexisting integrations.\n\nThe ImageToVideoAsset lets you create a video from an image and a text prompt.","properties":{"type":{"type":"string","description":"The type of asset to generate - set to `image-to-video` for image-to-video.","enum":["image-to-video"],"default":"image-to-video"},"src":{"description":"The image source URL. The URL must be publicly accessible or include credentials.","type":"string","minLength":1,"examples":["https://s3-ap-northeast-1.amazonaws.com/my-bucket/image.jpg"]},"prompt":{"type":"string","description":"The instructions for modifying the image into a video sequence.","examples":["Slowly zoom out and orbit left around the object."]},"aspectRatio":{"description":"The aspect ratio (shape) of the video output.","enum":["1:1","4:3","16:9","9:16","3:4","21:9","9:21"],"type":"string","examples":["16:9"]},"speed":{"description":"Adjust the playback speed of the video clip between 0 (paused) and 10 (10x normal speed) where 1 is normal speed (defaults to 1). Adjusting the speed will also adjust the duration of the clip and may require you to adjust the Clip length. For example, if you set speed to 0.5, the clip will need to be 2x as long to play the entire video (i.e. original length / 0.5). If you set speed to 2, the clip will need to be half as long to play the entire video (i.e. original length / 2).","type":"number","minimum":0,"maximum":10,"examples":[1]},"crop":{"$ref":"#/$defs/Crop"}},"additionalProperties":false,"type":"object","required":["type","src"]},"LumaAsset":{"description":"The LumaAsset is used to create luma matte masks, transitions and effects between other assets. A luma matte is a grey scale image or animated video where the black areas are transparent and the white areas solid. The luma matte animation should be provided as an mp4 video file. The src must be a publicly accessible URL to the file.","type":"object","properties":{"type":{"enum":["luma"],"default":"luma","description":"The type of asset - set to `luma` for luma mattes.","type":"string"},"src":{"description":"The luma matte source URL. The URL must be publicly accessible or include credentials.","type":"string","minLength":1,"pattern":"\\S","examples":["https://s3-ap-northeast-1.amazonaws.com/my-bucket/mask.mp4"]},"trim":{"description":"The start trim point of the luma matte clip, in seconds (defaults to 0). Videos will start from the in trim point. A luma matte video will play until the file ends or the Clip length is reached.","type":"number"}},"additionalProperties":false,"required":["type","src"]},"MergeField":{"description":"A merge field consists of a key; `find`, and a value; `replace`. Merge fields can be used to replace placeholders within the JSON edit to create re-usable templates. Placeholders should be a string with double brace delimiters, i.e. `\"{{NAME}}\"`. A placeholder can be used for any value within the JSON edit.","type":"object","properties":{"find":{"description":"The string to find without delimiters.","type":"string","examples":["NAME"]},"replace":{"description":"The replacement value. The replacement can be any valid JSON type - string, boolean, number, etc...","examples":["Jane"]}},"additionalProperties":false,"required":["find","replace"]},"MuxDestination":{"description":"Send videos to the [Mux](https://shotstack.io/docs/guide/serving-assets/destinations/mux/) video hosting and streaming service. Mux credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/mux), not in the request.","properties":{"provider":{"description":"The destination to send video to - set to `mux` for Mux.","type":"string","default":"mux","examples":["mux"]},"options":{"description":"Additional Mux configuration and features.","$ref":"#/$defs/MuxDestinationOptions"}},"type":"object","required":["provider"]},"MuxDestinationOptions":{"description":"Pass additional options to control how Mux processes video. Currently supports playback_policy and passthrough options.","properties":{"playbackPolicy":{"description":"Sets the Mux `playback_policy` option. Value is an array of strings - use `public`, `signed`, or both.","type":"array","items":{"type":"string","enum":["public","signed"]}},"passthrough":{"description":"Sets the Mux `passthrough` option. Max 255 characters.","type":"string","maxLength":255}},"type":"object"},"Offset":{"description":"Offsets the position of an asset horizontally or vertically by a relative distance.","properties":{"x":{"description":"Offset an asset on the horizontal axis (left or right). Use a number or an array of [Tween](./#tocs_tween) objects to create a custom animation.","oneOf":[{"type":"number","description":"Range varies from -10 to 10. Positive numbers move the asset right, negative left. The distance moved is relative to the width of the viewport - i.e. an X offset of 0.5 will move the asset half the screen width to the right.","minimum":-10,"maximum":10,"examples":[0.1]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects used to create a custom animation. Animate the X offset of an asset over time.","items":{"$ref":"#/$defs/Tween"}}]},"y":{"description":"Offset an asset on the vertical axis (up or down). Use a number or an array of [Tween](./#tocs_tween) objects to create a custom animation.","oneOf":[{"type":"number","description":"Range varies from -10 to 10. Positive numbers move the asset up, negative down. The distance moved is relative to the height of the viewport - i.e. an Y offset of 0.5 will move the asset half the screen height up.","minimum":-10,"maximum":10,"examples":[-0.2]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects used to create a custom animation. Animate the Y offset of an asset over time.","items":{"$ref":"#/$defs/Tween"}}]}},"additionalProperties":false,"type":"object"},"Output":{"description":"The output format, render range and type of media to generate. For all formats except `mp3`, either `resolution` or `size` (with both `width` and `height`) must be specified.","properties":{"format":{"description":"The output format and type of media file to generate.\n\n- `mp4` - mp4 video file\n\n- `gif` - animated gif\n\n- `jpg` - jpg image file\n\n- `png` - png image file\n\n- `bmp` - bmp image file\n\n- `mp3` - mp3 audio file (audio only)","enum":["mp4","gif","mp3","jpg","png","bmp"],"type":"string","examples":["mp4"]},"resolution":{"description":"The preset output resolution of the video or image. For custom sizes use the `size` property. Either `resolution` or `size` (with both `width` and `height`) must be specified for all formats except `mp3`.\n\n- `preview` - 512px x 288px @ 15fps\n\n- `mobile` - 640px x 360px @ 25fps\n\n- `sd` - 1024px x 576px @ 25fps\n\n- `hd` - 1280px x 720px @ 25fps\n\n- `1080` - 1920px x 1080px @ 25fps\n\n- `4k` - 3840px x 2160px @ 25fps","enum":["preview","mobile","sd","hd","1080","4k"],"type":"string","examples":["hd"]},"aspectRatio":{"description":"The aspect ratio (shape) of the video or image. Useful for social media output formats. Options are:\n\n- `16:9` (default) - regular landscape/horizontal aspect ratio\n\n- `9:16` - vertical/portrait aspect ratio\n\n- `1:1` - square aspect ratio\n\n- `4:5` - short vertical/portrait aspect ratio\n\n- `4:3` - legacy TV aspect ratio","enum":["16:9","9:16","1:1","4:5","4:3"],"type":"string","examples":["16:9"]},"size":{"$ref":"#/$defs/Size"},"fps":{"description":"Override the default frames per second. Useful for when the source footage is recorded at 30fps, i.e. on mobile devices. Lower frame rates can be used to add cinematic quality (24fps) or to create smaller file size/faster render times or animated gifs (12 or 15fps). Default is 25fps.\n\n- `12` - 12fps\n\n- `15` - 15fps\n\n- `24` - 24fps\n\n- `23.976` - 23.976fps\n\n- `25` (default) - 25fps\n\n- `29.97` - 29.97fps\n\n- `30` - 30fps\n\n- `48` - 48fps\n\n- `50` - 50fps\n\n- `59.94` - 59.94fps\n\n- `60` - 60fps","enum":[12,15,23.976,24,25,29.97,30,48,50,59.94,60],"type":"number","examples":[25]},"scaleTo":{"description":"Override the resolution and scale the video or image to render at a different size. When using scaleTo the asset should be edited at the resolution dimensions, i.e. use font sizes that look best at HD, then use scaleTo to output the file at SD and the text will be scaled to the correct size. This is useful if you want to create multiple asset sizes.\n\n- `preview` - 512px x 288px @ 15fps\n\n- `mobile` - 640px x 360px @ 25fps\n\n- `sd` - 1024px x 576px @25fps\n\n- `hd` - 1280px x 720px @25fps\n\n- `1080` - 1920px x 1080px @25fps","enum":["preview","mobile","sd","hd","1080","4k"],"type":"string"},"quality":{"description":"Adjust the output quality of the video, image or audio. Adjusting quality affects render speed, download speeds and storage requirements due to file size. The default `medium` provides the most optimized choice for all three factors.\n\n- `verylow` - reduced quality, smallest file size\n\n- `low` - slightly reduced quality, smaller file size\n\n- `medium` (default) - optimized quality, render speeds and file size\n\n- `high` - slightly increased quality, larger file size\n\n- `veryhigh` - highest quality, largest file size","enum":["verylow","low","medium","high","veryhigh"],"type":"string","examples":["medium"]},"repeat":{"description":"Loop settings for gif files. Set to `true` to loop, `false` to play only once.","type":"boolean","examples":[true]},"mute":{"description":"Mute the audio track of the output video. Set to `true` to mute, `false` to un-mute.","type":"boolean","examples":[false]},"range":{"$ref":"#/$defs/Range"},"poster":{"description":"Generate a poster image from a specific point on the timeline.","$ref":"#/$defs/Poster"},"thumbnail":{"description":"Generate a thumbnail image from a specific point on the timeline.","$ref":"#/$defs/Thumbnail"},"destinations":{"description":"Specify the storage locations and hosting services to send rendered videos to.","type":"array","items":{"$ref":"#/$defs/Destinations"}}},"additionalProperties":false,"required":["format"],"type":"object"},"Poster":{"description":"Generate a poster image for the video at a specific point from the timeline. The poster image size will match the size of the output video.","properties":{"capture":{"description":"The point on the timeline in seconds to capture a single frame to use as the poster image.","type":"number","examples":[1]}},"additionalProperties":false,"required":["capture"],"type":"object"},"Range":{"description":"Specify a time range to render, i.e. to render only a portion of a video or audio file. Omit this setting to export the entire video. Range can also be used to render a frame at a specific time point - setting a range and output format as `jpg` will output a single frame image at the range `start` point.","properties":{"start":{"description":"The point on the timeline, in seconds, to start the render from - i.e. start at second 3.","type":"number","minimum":0,"examples":[3]},"length":{"description":"The length of the portion of the video or audio to render - i.e. render 6 seconds of the video.","type":"number","minimum":0,"examples":[6]}},"additionalProperties":false,"type":"object"},"RichCaptionActive":{"description":"Styling properties for the active/highlighted word.","type":"object","properties":{"font":{"description":"Font properties for the active word.","$ref":"#/$defs/RichCaptionActiveFont"},"stroke":{"description":"Stroke properties for the active word. Set to \"none\" to explicitly remove the base stroke on the active word.","oneOf":[{"$ref":"#/$defs/RichTextStroke"},{"type":"string","enum":["none"]}]},"shadow":{"description":"Shadow properties for the active word. Set to \"none\" to explicitly remove the base shadow on the active word.","oneOf":[{"$ref":"#/$defs/RichTextShadow"},{"type":"string","enum":["none"]}]}},"additionalProperties":false},"RichCaptionActiveFont":{"description":"Font properties for the active/highlighted word.","type":"object","properties":{"family":{"description":"The font family for the active word. Inherits from the base font.family when not set.","type":"string","examples":["Roboto"]},"weight":{"description":"The weight of the font for the active word. Can be a number (100-900) or a string. Inherits from the base font.weight when not set.","default":"400"},"color":{"description":"The active word color using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","examples":["#C96741"]},"background":{"description":"The background color behind the active word using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","examples":["#000000"]},"opacity":{"description":"The opacity of the active word where 1 is opaque and 0 is transparent.","type":"number","minimum":0,"maximum":1,"default":1,"examples":[1]},"size":{"description":"The font size of the active word in pixels.","type":"number","minimum":1,"maximum":500,"examples":[120]},"textDecoration":{"description":"Text decoration to apply to the active word.","type":"string","enum":["none","underline","line-through"],"default":"none","examples":["underline"]}},"additionalProperties":false},"RichCaptionAnimation":{"description":"Word-level animation properties for caption effects.","type":"object","properties":{"style":{"description":"The animation style to apply to words:\n\n- `karaoke` - Word-by-word color fill as spoken (shows all words, highlights active)\n\n- `highlight` - Word changes to active color when spoken (shows all words)\n\n- `pop` - Each word scales up when active\n\n- `fade` - Gradual opacity transition per word\n\n- `slide` - Words slide in from a direction\n\n- `bounce` - Spring animation on word appearance\n\n- `typewriter` - Words appear one by one and stay visible\n\n- `none` - No animation, all words visible immediately","type":"string","enum":["karaoke","highlight","pop","fade","slide","bounce","typewriter","none"],"default":"highlight","examples":["highlight"]},"direction":{"description":"Direction for directional animations (slide). Only applicable when style is `slide`.","type":"string","enum":["left","right","up","down"],"default":"up","examples":["up"]}},"additionalProperties":false,"required":["style"]},"RichCaptionAsset":{"description":"The RichCaptionAsset provides word-level caption animations with rich-text styling. It supports\nkaraoke-style highlighting, word-by-word animations, and advanced typography. Captions can be\nsourced from SRT/VTT/TTML subtitle files, from audio/video media URLs (auto-transcribed), or\nfrom alias references to other clips in the same timeline.","type":"object","properties":{"type":{"enum":["rich-caption"],"default":"rich-caption","description":"The type of asset - set to `rich-caption` for rich captions.","type":"string"},"src":{"description":"Source for the caption words. Accepts three formats: (1) the URL to a subtitle file (`.srt`, `.vtt`, `.ttml`, or `.dfxp`) which is parsed directly; (2) the URL to an audio or video media file (`.mp4`, `.mov`, `.webm`, `.mp3`, `.wav`, `.m4a`, `.flac`, `.aac`, `.ogg`, and related formats) which is auto-transcribed; (3) an alias reference in the form `alias://clip-name` where `clip-name` is the alias of another audio, video, or text-to-speech clip in the same timeline — the referenced clip's source is auto-transcribed. For file URLs, the URL must be publicly accessible or include credentials. Content is classified at runtime and unsupported content types (HTML, PDF, images, archives) are rejected with a structured error.","type":"string","minLength":1,"examples":["alias://audio"]},"font":{"description":"Font styling properties for inactive words.","properties":{"family":{"description":"The font family name. This must be the Family name embedded in the font, i.e. \"Roboto\".","type":"string","examples":["Roboto"],"default":"Roboto"},"size":{"description":"The size of the font in pixels (px). Must be between 1 and 500.","type":"integer","minimum":1,"maximum":500,"default":24,"examples":[48]},"weight":{"description":"The weight of the font. Can be a number (100-900) or a string ('normal', 'bold', etc.). 100 is lightest, 900 is heaviest (boldest).","default":"400"},"style":{"description":"The font style.","type":"string","enum":["normal","italic"],"default":"normal","examples":["italic"]},"color":{"description":"The text color using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","default":"#ffffff","examples":["#ffffff"]},"opacity":{"description":"The opacity of the text where 1 is opaque and 0 is transparent.","type":"number","minimum":0,"maximum":1,"default":1,"examples":[0.9]},"background":{"description":"The background color behind the text using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","examples":["#000000"]}},"additionalProperties":false,"type":"object"},"style":{"description":"Text style properties including spacing, line height, and transformations.","properties":{"letterSpacing":{"description":"Additional spacing between letters in pixels. Can be negative for tighter spacing.","type":"number","default":0,"examples":[2]},"lineHeight":{"description":"The line height as a multiplier of the font size. Must be between 0 and 10.","type":"number","minimum":0,"maximum":10,"default":1.2,"examples":[1.5]},"textTransform":{"description":"Text transformation to apply.","type":"string","enum":["none","uppercase","lowercase","capitalize"],"default":"none","examples":["uppercase"]},"size":{"description":"The font size in pixels. Can be used as an alternative to font.size.","type":"number","minimum":1,"maximum":500,"examples":[120]},"textDecoration":{"description":"Text decoration to apply.","type":"string","enum":["none","underline","line-through"],"default":"none","examples":["underline"]},"gradient":{"description":"Gradient fill for text instead of solid color.","$ref":"#/$defs/RichTextGradient"}},"additionalProperties":false,"type":"object"},"stroke":{"description":"Text stroke (outline) properties for inactive words.","$ref":"#/$defs/RichTextStroke"},"shadow":{"description":"Text shadow properties.","$ref":"#/$defs/RichTextShadow"},"background":{"description":"Background styling properties for the caption bounding box.","$ref":"#/$defs/RichTextBackground"},"border":{"description":"Border styling properties for the caption bounding box.","$ref":"#/$defs/RichTextAsset/properties/border"},"padding":{"description":"Padding inside the caption bounding box. Can be a single number (applied to all sides) or an object with individual sides.","oneOf":[{"type":"number","minimum":0,"description":"Padding in pixels applied to all sides.","examples":[10]},{"$ref":"#/$defs/RichTextAsset/properties/padding/oneOf/1"}]},"align":{"description":"Text alignment properties (horizontal and vertical).","$ref":"#/$defs/RichTextAlignment"},"active":{"description":"Styling properties for the active/highlighted word. These override the base styling when a word is being spoken.","$ref":"#/$defs/RichCaptionActive"},"animation":{"description":"Word-level animation properties controlling how words are highlighted or revealed.","$ref":"#/$defs/RichCaptionAnimation"}},"additionalProperties":false,"required":["type","src"]},"RichTextAlignment":{"description":"Text alignment properties (horizontal and vertical).","properties":{"horizontal":{"description":"The horizontal alignment of the text.","type":"string","enum":["left","center","right"],"default":"center","examples":["center"]},"vertical":{"description":"The vertical alignment of the text within the bounding box.","type":"string","enum":["top","middle","bottom"],"default":"middle","examples":["middle"]}},"additionalProperties":false,"type":"object"},"RichTextAnimation":{"description":"Animation properties for text entrance effects.","properties":{"preset":{"description":"The animation preset to apply. Available presets:\n\n- `fadeIn` - fadeIn in animation\n\n- `slideIn` - slide in from a direction\n\n- `typewriter` - typewriter effect\n\n- `ascend` - ascend from a direction\n\n- `shift` - shift in from a direction\n\n- `movingLetters` - letters move in from a direction","type":"string","enum":["fadeIn","slideIn","typewriter","ascend","shift","movingLetters"],"examples":["shift"]},"duration":{"description":"Override animation duration in seconds. Must be between 0.1 and 30 seconds.","type":"number","minimum":0.1,"maximum":30,"examples":[2]},"style":{"description":"Animation style - animate by character or by word. Only applicable for typewriter and shift animations.","type":"string","enum":["character","word"],"examples":["character"]},"direction":{"description":"Direction for directional animations. Required for slideIn, ascend, shift, and movingLetters presets.\n\n- `ascend` - supports: up, down\n\n- `shift` - supports: left, right, up, down\n\n- `slideIn` - supports: left, right, up, down\n\n- `movingLetters` - supports: left, right, up, down","type":"string","enum":["left","right","up","down"],"examples":["up"]}},"required":["preset"],"additionalProperties":false,"type":"object"},"RichTextAsset":{"description":"The RichTextAsset provides advanced text rendering with support for custom fonts, gradients, shadows, strokes,\nanimations, and styling options. It offers more flexibility and visual effects than the basic TextAsset.","type":"object","properties":{"type":{"enum":["rich-text"],"default":"rich-text","description":"The type of asset - set to `rich-text` for rich text.","type":"string"},"text":{"description":"The text string to display. Maximum 5000 characters.","type":"string","maxLength":5000,"examples":["Hello World"]},"font":{"description":"Font styling properties.","$ref":"#/$defs/RichTextFont"},"style":{"description":"Text style properties including spacing, line height, and transformations.","$ref":"#/$defs/RichTextStyle"},"stroke":{"description":"Text stroke (outline) properties.","$ref":"#/$defs/RichTextStroke"},"shadow":{"description":"Text shadow properties.","$ref":"#/$defs/RichTextShadow"},"background":{"description":"Background styling properties for the text bounding box.","$ref":"#/$defs/RichTextBackground"},"border":{"description":"Border styling properties for the text bounding box.","properties":{"width":{"description":"The width of the border in pixels. Must be 0 or greater.","type":"number","minimum":0,"default":0,"examples":[2]},"color":{"description":"The border color using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","default":"#000000","examples":["#ff0000"]},"opacity":{"description":"The opacity of the border where 1 is opaque and 0 is transparent.","type":"number","minimum":0,"maximum":1,"default":1,"examples":[0.8]},"radius":{"description":"The border radius in pixels for rounded corners. Must be 0 or greater.","type":"number","minimum":0,"default":0,"examples":[10]}},"additionalProperties":false,"type":"object"},"padding":{"description":"Padding inside the text bounding box. Can be a single number (applied to all sides) or an object with individual sides.","oneOf":[{"type":"number","minimum":0,"description":"Padding in pixels applied to all sides.","examples":[10]},{"description":"Padding properties for individual sides of the text bounding box.","properties":{"top":{"description":"Top padding in pixels.","type":"number","minimum":0,"default":0,"examples":[10]},"right":{"description":"Right padding in pixels.","type":"number","minimum":0,"default":0,"examples":[10]},"bottom":{"description":"Bottom padding in pixels.","type":"number","minimum":0,"default":0,"examples":[10]},"left":{"description":"Left padding in pixels.","type":"number","minimum":0,"default":0,"examples":[10]}},"additionalProperties":false,"type":"object"}]},"align":{"description":"Text alignment properties (horizontal and vertical).","$ref":"#/$defs/RichTextAlignment"},"animation":{"description":"Animation properties for text entrance effects.","$ref":"#/$defs/RichTextAnimation"}},"additionalProperties":false,"required":["type","text"]},"RichTextBackground":{"description":"Background styling properties for the text bounding box.","properties":{"color":{"description":"The background color using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","examples":["#000000"]},"opacity":{"description":"The opacity of the background where 1 is opaque and 0 is transparent.","type":"number","minimum":0,"maximum":1,"default":1,"examples":[0.5]},"borderRadius":{"description":"The border radius of the background box in pixels. Must be 0 or greater.","type":"number","minimum":0,"default":0,"examples":[10]},"wrap":{"description":"When true, the background pill shrinks to fit the rendered text bounding box plus the\nasset's padding (and stroke width, if present), producing a pill or badge effect. When\nfalse (default), the background fills the full asset content area. Available on\nrich-text and rich-caption assets only; not supported on legacy `type: text`.","type":"boolean","default":false,"examples":[true]},"padding":{"description":"Inner padding in pixels between the wrap pill edge and the rendered text. Only takes\neffect when `wrap: true`. When omitted, the renderer applies a sensible default\nproportional to the font size (approximately 12% of the active page font size on\nrich-caption assets). Set to 0 for a pill that hugs the text exactly. Available on\nrich-text and rich-caption assets only.","type":"integer","minimum":0,"maximum":200,"examples":[12]}},"additionalProperties":false,"type":"object"},"RichTextFont":{"description":"Font properties for rich text.","properties":{"family":{"description":"The font family name. This must be the Family name embedded in the font, i.e. \"Open Sans\".","type":"string","examples":["Open Sans"],"default":"Open Sans"},"size":{"description":"The size of the font in pixels (px). Must be between 1 and 500.","type":"integer","minimum":1,"maximum":500,"default":24,"examples":[48]},"weight":{"description":"The weight of the font. Can be a number (100-900) or a string ('normal', 'bold', etc.). 100 is lightest, 900 is heaviest (boldest).","default":"400"},"style":{"description":"The font style.","type":"string","enum":["normal","italic"],"default":"normal","examples":["italic"]},"color":{"description":"The text color using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","default":"#000000","examples":["#ff0000"]},"opacity":{"description":"The opacity of the text where 1 is opaque and 0 is transparent.","type":"number","minimum":0,"maximum":1,"default":1,"examples":[0.9]},"background":{"description":"The background color behind the text using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","examples":["#000000"]},"stroke":{"description":"Text stroke (outline) properties.","$ref":"#/$defs/RichTextStroke"}},"additionalProperties":false,"type":"object"},"RichTextGradient":{"description":"Gradient properties for text fill.","properties":{"type":{"description":"The type of gradient.","type":"string","enum":["linear","radial"],"default":"linear","examples":["linear"]},"angle":{"description":"The angle of the gradient in degrees (for linear gradients). Must be between 0 and 360.","type":"number","minimum":0,"maximum":360,"default":0,"examples":[45]},"stops":{"description":"Gradient color stops. Must have at least 2 stops.","type":"array","minItems":2,"items":{"type":"object","properties":{"offset":{"description":"Position of the color stop between 0 (start) and 1 (end).","type":"number","minimum":0,"maximum":1,"examples":[0.5]},"color":{"description":"Color at this stop using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","examples":["#ff0000"]}},"required":["offset","color"],"additionalProperties":false}}},"required":["stops"],"additionalProperties":false,"type":"object"},"RichTextShadow":{"description":"Text shadow properties.","properties":{"offsetX":{"description":"Horizontal offset of the shadow in pixels. Positive values move right, negative left.","type":"number","default":0,"examples":[4]},"offsetY":{"description":"Vertical offset of the shadow in pixels. Positive values move down, negative up.","type":"number","default":0,"examples":[4]},"blur":{"description":"The blur radius of the shadow in pixels. Must be 0 or greater.","type":"number","minimum":0,"default":0,"examples":[8]},"color":{"description":"The shadow color using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","default":"#000000","examples":["#000000"]},"opacity":{"description":"The opacity of the shadow where 1 is opaque and 0 is transparent.","type":"number","minimum":0,"maximum":1,"default":0.5,"examples":[0.7]}},"additionalProperties":false,"type":"object"},"RichTextStroke":{"description":"Text stroke (outline) properties.","properties":{"width":{"description":"The width of the stroke in pixels. Must be 0 or greater.","type":"number","minimum":0,"default":0,"examples":[2]},"color":{"description":"The stroke color using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","default":"#000000","examples":["#000000"]},"opacity":{"description":"The opacity of the stroke where 1 is opaque and 0 is transparent.","type":"number","minimum":0,"maximum":1,"default":1,"examples":[0.8]}},"additionalProperties":false,"type":"object"},"RichTextStyle":{"description":"Text style properties including spacing, line height, and transformations.","properties":{"letterSpacing":{"description":"Additional spacing between letters in pixels. Can be negative for tighter spacing.","type":"number","default":0,"examples":[2]},"wordSpacing":{"description":"Additional spacing between words in pixels. A value of 0 uses the font's natural space width.","type":"number","minimum":0,"default":0,"examples":[10]},"lineHeight":{"description":"The line height as a multiplier of the font size. Must be between 0 and 10.","type":"number","minimum":0,"maximum":10,"default":1.2,"examples":[1.5]},"textTransform":{"description":"Text transformation to apply.","type":"string","enum":["none","uppercase","lowercase","capitalize"],"default":"none","examples":["uppercase"]},"textDecoration":{"description":"Text decoration to apply.","type":"string","enum":["none","underline","line-through"],"default":"none","examples":["underline"]},"gradient":{"description":"Gradient fill for text instead of solid color.","$ref":"#/$defs/RichTextGradient"}},"additionalProperties":false,"type":"object"},"RotateTransformation":{"description":"Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.","type":"object","additionalProperties":false,"properties":{"angle":{"description":"Rotate a clip by the specified angle in degrees. Use a number or an array of [Tween](./#tocs_tween) objects to create a custom animation.","oneOf":[{"type":"number","description":"The angle to rotate the clip. Can be 0 to 360, or 0 to -360. Using a positive number rotates the clip clockwise, negative numbers counter-clockwise.","minimum":-360,"maximum":360,"examples":[45]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects used to create a custom animation. Animate the rotation of an asset over time.","items":{"$ref":"#/$defs/Tween"}}]}}},"S3Destination":{"description":"Send videos and assets to an [Amazon S3](https://shotstack.io/docs/guide/serving-assets/destinations/s3/) bucket. Send files to any region with your own prefix and filename. AWS credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/s3), not in the request.","properties":{"provider":{"description":"The destination to send assets to - set to `s3` for S3.","type":"string","default":"s3","examples":["s3"]},"options":{"description":"Additional S3 configuration options.","$ref":"#/$defs/S3DestinationOptions"}},"type":"object","required":["provider"]},"S3DestinationOptions":{"description":"Pass additional options to control how files are stored in S3.","properties":{"region":{"description":"Choose the region to send the file to. Must be a valid [AWS region](https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_region) string like `us-east-1` or `ap-southeast-2`.","type":"string","examples":["us-east-1"]},"bucket":{"description":"The bucket name to send files to. The bucket must exist in the AWS account before files can be sent.","type":"string","examples":["my-bucket"]},"prefix":{"description":"A prefix for the file being sent. This is typically a folder name, i.e. `videos` or `customerId/videos`.","type":"string","examples":["my-renders"]},"filename":{"description":"Use your own filename instead of the default filenames generated by Shotstack. Note: omit the file extension as this will be appended depending on the output format. Also `-poster.jpg` and `-thumb.jpg` will be appended for poster and thumbnail images.","type":"string","examples":["my-file"]},"acl":{"description":"Sets the S3 Access Control List (acl) permissions. Default is `private`. Must use a valid S3 [Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl).","type":"string","examples":["public-read"]}},"required":["region","bucket"],"type":"object"},"ShapeAsset":{"description":"The ShapeAsset is used to add shapes to a video. The shape can be styled with a fill and a stroke.\nYou can manipulate properties such as rotation to create dynamic effects like a diamond shape or stripes.","type":"object","properties":{"type":{"enum":["shape"],"default":"shape","description":"The type of asset - set to `shape` for shape.","type":"string"},"shape":{"description":"The shape to display.","type":"string","enum":["rectangle","circle","line"]},"width":{"description":"Sets the width of the bounding box in pixels. This value should be larger than the shape's width. If omitted, the entire viewport width and height will be used.","type":"integer","examples":[800]},"height":{"description":"Sets the height of the bounding box in pixels. This value should be larger than the shape's height. If omitted, the entire viewport width and height will be used.","type":"integer","examples":[800]},"fill":{"description":"Specifies the fill style of the shape.","type":"object","properties":{"color":{"description":"The color of the fill using hexadecimal color notation.","type":"string","examples":["#ffffff"]},"opacity":{"description":"The opacity of the fill where 1 is opaque and 0 is transparent.","type":"number","examples":[1]}},"additionalProperties":false},"stroke":{"description":"Specifies the stroke style of the shape.","type":"object","properties":{"color":{"description":"The stroke color of the font using hexadecimal color notation.","type":"string","examples":["#000000"]},"width":{"description":"The width of the stroke in pixels.","type":"number","examples":[0.8]}},"additionalProperties":false},"rectangle":{"description":"Configuration settings for the rectangle shape. Required when `shape` is set to `rectangle`.","type":"object","properties":{"width":{"description":"Set the width of the rectangle shape in pixels.","type":"integer","examples":[800]},"height":{"description":"Set the height of the rectangle shape in pixels.","type":"integer","examples":[800]},"cornerRadius":{"description":"Set the corner radius of the rectangle shape.","type":"integer","examples":[20]}},"additionalProperties":false,"required":["width","height"]},"circle":{"description":"Configuration settings for the circle shape. Required when `shape` is set to `circle`.","type":"object","properties":{"radius":{"description":"Set the radius of the circle shape in pixels.","type":"integer","examples":[800]}},"additionalProperties":false,"required":["radius"]},"line":{"description":"Configuration settings for the line shape. Required when `shape` is set to `line`.","type":"object","properties":{"length":{"description":"Set the length of the line shape in pixels.","type":"integer","examples":[100]},"thickness":{"description":"Set the thickness of the line in pixels.","type":"integer","examples":[4]}},"additionalProperties":false,"required":["length","thickness"]}},"additionalProperties":false,"required":["type","shape"]},"ShotstackDestination":{"description":"Send videos and assets to the [Shotstack hosting and CDN](https://shotstack.io/docs/guide/serving-assets/destinations/shotstack/) service. This destination is enabled by default.","properties":{"provider":{"description":"The destination to send assets to - set to `shotstack` for Shotstack hosting and CDN.","type":"string","default":"shotstack","examples":["shotstack"]},"exclude":{"description":"Set to `true` to [opt-out](https://shotstack.io/docs/guide/serving-assets/self-host/) from the Shotstack hosting and CDN service. All files must be downloaded within 24 hours of rendering.","type":"boolean","examples":[false]}},"type":"object","required":["provider"]},"Size":{"description":"Set a custom size for a video or image in pixels. When using a custom size omit the `resolution` and `aspectRatio`. Custom sizes must be divisible by 2 based on the encoder specifications.","properties":{"width":{"description":"Set a custom width for the video or image file in pixels. Value must be divisible by 2. Maximum video width is 1920px, maximum image width is 4096px.","type":"integer","minimum":1,"maximum":4096,"examples":[1200]},"height":{"description":"Set a custom height for the video or image file in pixels. Value must be divisible by 2. Maximum video height is 1920px, maximum image height is 4096px.","type":"integer","minimum":1,"maximum":4096,"examples":[800]}},"additionalProperties":false,"type":"object"},"SkewTransformation":{"description":"Skew a clip so its edges are sheared at an angle. Use values between -100 and 100. Values over 3 or under -3 will skew the clip almost flat.","type":"object","additionalProperties":false,"properties":{"x":{"description":"Skew the clip along it's x axis.","oneOf":[{"type":"number","description":"Range varies from -100 to 100. Positive numbers skew the asset right, negative left. The distance moved is relative to the width of the viewport - i.e. an X skew of 0.5 will skew the asset half the screen width to the right.","minimum":-100,"maximum":100,"examples":[0.5]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects used to create a custom animation. Animate the X skew of an asset over time.","items":{"$ref":"#/$defs/Tween"}}]},"y":{"description":"Skew the clip along it's y axis.","oneOf":[{"type":"number","description":"Range varies from -100 to 100. Positive numbers skew the asset up, negative down. The distance moved is relative to the height of the viewport - i.e. an Y skew of 0.5 will skew the asset half the screen height up.","minimum":-100,"maximum":100,"examples":[0.5]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects used to create a custom animation. Animate the Y skew of an asset over time.","items":{"$ref":"#/$defs/Tween"}}]}}},"Soundtrack":{"deprecated":true,"description":"**Notice: The Soundtrack is deprecated, use an [AudioAsset](#tocs_audioasset) clip on its own track instead.** This type continues to function; no behaviour change for existing integrations.\nA music or audio file in mp3 format that plays for the duration of the rendered video or the length of the audio file, which ever is shortest.","properties":{"src":{"description":"The URL of the mp3 audio file. The URL must be publicly accessible or include credentials.","type":"string","minLength":1,"pattern":"\\S","examples":["https://s3-ap-northeast-1.amazonaws.com/my-bucket/music.mp3"]},"effect":{"description":"The effect to apply to the audio file\n\n- `fadeIn` - fade volume in only\n\n- `fadeOut` - fade volume out only\n\n- `fadeInFadeOut` - fade volume in and out","enum":["fadeIn","fadeOut","fadeInFadeOut"],"type":"string"},"volume":{"description":"Set the volume for the soundtrack between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1).","type":"number"}},"additionalProperties":false,"required":["src"],"type":"object"},"SvgAsset":{"description":"The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.\n\n**Supported elements:** ``, ``, ``, ``,\n``, ``, ``\n\n**Automatically extracted from SVG markup:**\n- Path data (converted to a single combined path)\n- Fill color (from `fill` attribute or `style`)\n- Stroke color and width (from attributes or `style`)\n- Dimensions (from `width`/`height` or `viewBox`)\n- Opacity (from `opacity` attribute)\n\nSee [W3C SVG 2 Specification](https://www.w3.org/TR/SVG2/) for path data syntax.","type":"object","properties":{"type":{"description":"The asset type - set to `svg` for SVG assets.","type":"string","enum":["svg"],"default":"svg","examples":["svg"]},"src":{"description":"Raw SVG markup string. The SVG must contain valid SVG elements. The shape,\nfill, stroke, dimensions and opacity are automatically extracted from the\nSVG content.","type":"string","minLength":1,"maxLength":500000,"examples":["<svg width=\"100\" height=\"100\"><circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"#3498db\"/></svg>"]}},"additionalProperties":false,"required":["type","src"],"examples":[{"type":"svg","src":"<svg width=\"100\" height=\"100\"><circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"#3498db\"/></svg>"}]},"TextAlignment":{"description":"Horizontal and vertical alignment properties for text.","properties":{"horizontal":{"description":"The horizontal alignment of the text. Value must be one of:\n\n- `left`\n\n- `center`\n\n- `right`","type":"string","examples":["center"],"enum":["left","center","right"]},"vertical":{"description":"The vertical alignment of the text. Value must be one of:\n\n- `top`\n\n- `center`\n\n- `bottom`","type":"string","examples":["center"],"enum":["top","center","bottom"]}},"additionalProperties":false,"type":"object"},"TextAsset":{"deprecated":true,"description":"**Notice: The TextAsset is deprecated, use the [RichTextAsset](#tocs_richtextasset) instead.** This type\ncontinues to function; no behaviour change for existing integrations.\n\nThe TextAsset is used to add text and titles to a video. The text can be styled with built in and custom\n[Fonts](#tocs_font). You can also add a background bounding box used to control wrapping and overflow. Emoticons are also supported.","type":"object","properties":{"type":{"enum":["text"],"default":"text","description":"The type of asset - set to `text` for text.","type":"string"},"text":{"description":"The text string to display.","type":"string","examples":["Hello World"]},"width":{"description":"Set the width of the HTML asset bounding box in pixels. Text will wrap to fill the bounding box.","type":"integer","examples":[400]},"height":{"description":"Set the width of the HTML asset bounding box in pixels. Text and elements will be masked if they exceed the height of the bounding box.","type":"integer","examples":[200]},"font":{"description":"Font styling properties.","$ref":"#/$defs/TextFont"},"background":{"description":"Background styling properties.","$ref":"#/$defs/TextBackground"},"alignment":{"description":"Alignment properties.","$ref":"#/$defs/TextAlignment"},"stroke":{"description":"Text stroke (outline) properties.","properties":{"width":{"description":"The width of the stroke in pixels.","type":"number","minimum":0,"maximum":10,"examples":[2]},"color":{"description":"The stroke color using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","examples":["#000000"]}},"additionalProperties":false,"type":"object"},"animation":{"description":"Animation properties for text entrance effects.","properties":{"preset":{"description":"The animation preset to apply.\n\n- `typewriter` - typewriter effect where characters appear one at a time","type":"string","enum":["typewriter"],"examples":["typewriter"]},"duration":{"description":"The duration of the animation in seconds.","type":"number","minimum":0.1,"maximum":30,"examples":[2]}},"additionalProperties":false,"required":["preset"],"type":"object"},"ellipsis":{"description":"The string to display when text overflows its bounding box. Set to an ellipsis character or custom string to indicate truncated text.","type":"string","examples":["..."]}},"additionalProperties":false,"required":["type","text"]},"TextBackground":{"description":"Displays a background box behind the text.","properties":{"color":{"description":"The background color using hexadecimal color notation.","type":"string","pattern":"^#[A-Fa-f0-9]{6}$","examples":["#000000"]},"opacity":{"description":"The opacity of the background where 1 is opaque and 0 is transparent.","type":"number","minimum":0,"maximum":1,"examples":[0.8]},"padding":{"description":"Padding inside the background box in pixels.","type":"number","minimum":0,"maximum":100,"examples":[10]},"borderRadius":{"description":"The border radius of the background box in pixels for rounded corners.","type":"number","minimum":0,"examples":[5]},"wrap":{"description":"Not supported on legacy `text` assets. Accepted here only so validators can emit a clear migration error pointing users to `rich-text` or `rich-caption`, which support background wrapping natively.","type":"boolean","examples":[false]}},"additionalProperties":false,"type":"object"},"TextFont":{"description":"Font properties for text.","properties":{"family":{"description":"The font family name. This must be Family name embedded in the font, i.e. \"Open Sans\".","type":"string","examples":["Open Sans"]},"color":{"description":"The text color using hexadecimal color notation.","type":"string","examples":["#ffffff"]},"opacity":{"description":"The opacity of the text where 1 is opaque and 0 is transparent.","type":"number","examples":[0.8]},"size":{"description":"The size of the font in pixels (px).","type":"integer","examples":[24]},"weight":{"description":"The weight of the font. 100 is lightest, 900 is heaviest (boldest).","type":"integer","examples":[400]},"lineHeight":{"description":"The line height of the font as a ratio of the font size.","type":"number","examples":[0.85]}},"additionalProperties":false,"type":"object"},"TextToImageAsset":{"deprecated":true,"description":"**Notice: TextToImageAsset is deprecated. Use [ImageAsset](#tocs_imageasset)\nwith `prompt` instead.** This type continues to function and is internally\nrewritten to ImageAsset; no behaviour change for existing integrations.\n\nThe TextToImageAsset lets you create a dynamic image from a text prompt.","properties":{"type":{"type":"string","description":"The type of asset to generate - set to `text-to-image` for text-to-image.","enum":["text-to-image"],"default":"text-to-image"},"prompt":{"type":"string","description":"The text prompt to generate an image from.","examples":["A serene landscape featuring a crystal-clear mountain lake at sunrise. The water reflects the pink and orange sky like a mirror. In the foreground, a majestic pine tree stands tall, its branches framing the view. Snow-capped peaks rise in the distance, their edges softened by a light morning mist. A pair of deer drink from the lake's edge, creating gentle ripples on the otherwise still surface."]},"width":{"type":"integer","description":"The width of the image in pixels.","examples":[512]},"height":{"type":"integer","description":"The height of the image in pixels.","examples":[512]},"crop":{"$ref":"#/$defs/Crop"}},"additionalProperties":false,"type":"object","required":["type","prompt"]},"TextToSpeechAsset":{"deprecated":true,"description":"**Notice: TextToSpeechAsset is deprecated. Use [AudioAsset](#tocs_audioasset)\nwith `prompt` (the spoken text) and `voice` instead.** This type continues to\nfunction and is internally rewritten to AudioAsset; no behaviour change for\nexisting integrations.\n\nThe TextToSpeechAsset lets you generate a voice over from text using a text-to-speech service.\nThe generated audio can be trimmed, faded and have its volume and speed adjusted using the\nsame properties available on the AudioAsset.","type":"object","properties":{"type":{"type":"string","description":"The type of asset - set to `text-to-speech` for text-to-speech.","enum":["text-to-speech"],"default":"text-to-speech"},"text":{"type":"string","description":"The text to convert to speech.","examples":["This is a text to speech example generated by Shotstack"]},"voice":{"type":"string","description":"The voice to use for the text-to-speech conversion.","examples":["Matthew"]},"language":{"type":"string","description":"The language code for the text-to-speech conversion.","examples":["en-US"]},"newscaster":{"type":"boolean","description":"Set the voice to newscaster mode.","default":false},"trim":{"description":"The start trim point of the audio clip, in seconds (defaults to 0). Audio will start from the trim point. The audio will play until the file ends or the Clip length is reached.","type":"number"},"volume":{"description":"Set the volume of the audio clip. Use a number or an array of [Tween](./#tocs_tween) objects to create custom volume transitions.","oneOf":[{"type":"number","description":"The volume level for the audio clip. Range varies from 0 to 1 where 0 is muted and 1 is full volume (defaults to 1).","minimum":0,"maximum":1,"examples":[0.5]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects used to create a custom volume effect. Modify the volume of an asset over time.","items":{"$ref":"#/$defs/Tween"}}]},"speed":{"description":"Adjust the playback speed of the audio clip between 0 (paused) and 10 (10x normal speed), where 1 is normal speed (defaults to 1). Adjusting the speed will also adjust the duration of the clip and may require you to adjust the Clip length.","type":"number","minimum":0,"maximum":10,"examples":[1]},"effect":{"description":"The effect to apply to the audio asset\n\n- `fadeIn` - fade volume in only\n\n- `fadeOut` - fade volume out only\n\n- `fadeInFadeOut` - fade volume in and out","enum":["none","fadeIn","fadeOut","fadeInFadeOut"],"type":"string"}},"additionalProperties":false,"required":["type","text","voice"]},"Thumbnail":{"description":"Generate a thumbnail image for the video or image at a specific point from the timeline.","properties":{"capture":{"description":"The point on the timeline in seconds to capture a single frame to use as the thumbnail image.","type":"number","examples":[1]},"scale":{"description":"Scale the thumbnail size to a fraction of the viewport size - i.e. setting the scale to 0.5 will scale the thumbnail to half the size of the viewport.","type":"number","minimum":0,"maximum":1,"examples":[0.3]}},"additionalProperties":false,"required":["capture","scale"],"type":"object"},"Timeline":{"description":"A timeline represents the contents of a video edit over time, an audio edit over time, in seconds, or an image layout. A timeline consists of layers called tracks. Tracks are composed of titles, images, audio, html or video segments referred to as clips which are placed along the track at specific starting point and lasting for a specific amount of time.","properties":{"soundtrack":{"deprecated":true,"description":"A music or audio soundtrack file in mp3 format. Deprecated - use an [AudioAsset](#tocs_audioasset) clip on its own track instead.","$ref":"#/$defs/Soundtrack"},"background":{"description":"A hexadecimal value for the timeline background colour. Defaults to #000000 (black).","type":"string"},"fonts":{"description":"An array of custom fonts to be downloaded for use by the HTML assets.","type":"array","items":{"$ref":"#/$defs/Font"}},"tracks":{"description":"A timeline consists of an array of tracks, each track containing clips. Tracks are layered on top of each other in the same order they are added to the array with the top most track layered over the top of those below it. Ensure that a track containing titles is the top most track so that it is displayed above videos and images.","type":"array","minItems":1,"items":{"$ref":"#/$defs/Track"}},"cache":{"description":"Disable the caching of ingested source footage and assets. See [caching](https://shotstack.io/docs/guide/architecting-an-application/caching/) for more details.","type":"boolean"}},"additionalProperties":false,"required":["tracks"],"type":"object"},"TitleAsset":{"deprecated":true,"description":"**Notice: The TitleAsset is deprecated, use the [RichTextAsset](#tocs_richtextasset) instead.**\n\nThe TitleAsset clip type lets you create video titles from a text string and apply styling and positioning.","type":"object","properties":{"type":{"enum":["title"],"default":"title","description":"The type of asset - set to `title` for titles.","type":"string"},"text":{"description":"The title text string - i.e. \"My Title\".","type":"string","examples":["Hello World"]},"style":{"description":"Uses a preset to apply font properties and styling to the title.\n\n- `minimal`\n\n- `blockbuster`\n\n- `vogue`\n\n- `sketchy`\n\n- `skinny`\n\n- `chunk`\n\n- `chunkLight`\n\n- `marker`\n\n- `future`\n\n- `subtitle`","enum":["minimal","blockbuster","vogue","sketchy","skinny","chunk","chunkLight","marker","future","subtitle"],"type":"string"},"color":{"description":"Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.","type":"string"},"size":{"description":"Set the relative size of the text using predefined sizes from xx-small to xx-large.\n\n- `xx-small`\n\n- `x-small`\n\n- `small`\n\n- `medium`\n\n- `large`\n\n- `x-large`\n\n- `xx-large`","enum":["xx-small","x-small","small","medium","large","x-large","xx-large"],"type":"string"},"background":{"description":"Apply a background color behind the text. Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency. Omit to use transparent background.","type":"string","examples":["#000000"]},"position":{"description":"Place the title in one of nine predefined positions of the viewport.\n\n- `top` - top (center)\n\n- `topRight` - top right\n\n- `right` - right (center)\n\n- `bottomRight` - bottom right\n\n- `bottom` - bottom (center)\n\n- `bottomLeft` - bottom left\n\n- `left` - left (center)\n\n- `topLeft` - top left\n\n- `center` - center","enum":["top","topRight","right","bottomRight","bottom","bottomLeft","left","topLeft","center"],"type":"string"},"offset":{"description":"Offset the location of the title relative to its position on the screen.","$ref":"#/$defs/Offset"}},"additionalProperties":false,"required":["type","text"]},"Track":{"description":"A track contains an array of clips. Tracks are layered on top of each other in the order in the array. The top most track will render on top of those below it.","properties":{"clips":{"description":"An array of Clips comprising of TitleClip, ImageClip or VideoClip.","type":"array","minItems":1,"items":{"$ref":"#/$defs/Clip"}}},"additionalProperties":false,"required":["clips"],"type":"object"},"Transformation":{"description":"Apply one or more transformations to a clip. Transformations alter the visual properties of a clip and can be combined to create new shapes and effects.","type":"object","additionalProperties":false,"properties":{"rotate":{"$ref":"#/$defs/RotateTransformation"},"skew":{"$ref":"#/$defs/SkewTransformation"},"flip":{"$ref":"#/$defs/FlipTransformation"}}},"Transition":{"description":"In and out transitions for a clip - i.e. fade in and fade out","properties":{"in":{"description":"The transition in. Available transitions are:\n\n- `fade` - fade in\n\n- `reveal` - reveal from left to right\n\n- `wipeLeft` - fade across screen to the left\n\n- `wipeRight` - fade across screen to the right\n\n- `slideLeft` - move slightly left and fade in\n\n- `slideRight` - move slightly right and fade in\n\n- `slideUp` - move slightly up and fade in\n\n- `slideDown` - move slightly down and fade in\n\n- `carouselLeft` - slide in from right to left\n\n- `carouselRight` - slide in from left to right\n\n- `carouselUp` - slide in from bottom to top\n\n- `carouselDown` - slide in from top to bottom\n\n- `shuffleTopRight` - rotate in from top right\n\n- `shuffleRightTop` - rotate in from right top\n\n- `shuffleRightBottom` - rotate in from right bottom\n\n- `shuffleBottomRight` - rotate in from bottom right\n\n- `shuffleBottomLeft` - rotate in from bottom left\n\n- `shuffleLeftBottom` - rotate in from left bottom\n\n- `shuffleLeftTop` - rotate in from left top\n\n- `shuffleTopLeft` - rotate in from top left\n\n- `zoom` - fast zoom in\n\nThe transition speed can also be controlled by appending `Fast` or `Slow` to the transition, e.g. `fadeFast` or `CarouselLeftSlow`.","enum":["none","fade","fadeSlow","fadeFast","reveal","revealSlow","revealFast","wipeLeft","wipeLeftSlow","wipeLeftFast","wipeRight","wipeRightSlow","wipeRightFast","slideLeft","slideLeftSlow","slideLeftFast","slideRight","slideRightSlow","slideRightFast","slideUp","slideUpSlow","slideUpFast","slideDown","slideDownSlow","slideDownFast","carouselLeft","carouselLeftSlow","carouselLeftFast","carouselRight","carouselRightSlow","carouselRightFast","carouselUp","carouselUpSlow","carouselUpFast","carouselDown","carouselDownSlow","carouselDownFast","shuffleTopRight","shuffleTopRightSlow","shuffleTopRightFast","shuffleRightTop","shuffleRightTopSlow","shuffleRightTopFast","shuffleRightBottom","shuffleRightBottomSlow","shuffleRightBottomFast","shuffleBottomRight","shuffleBottomRightSlow","shuffleBottomRightFast","shuffleBottomLeft","shuffleBottomLeftSlow","shuffleBottomLeftFast","shuffleLeftBottom","shuffleLeftBottomSlow","shuffleLeftBottomFast","shuffleLeftTop","shuffleLeftTopSlow","shuffleLeftTopFast","shuffleTopLeft","shuffleTopLeftSlow","shuffleTopLeftFast","zoom"],"type":"string"},"out":{"description":"The transition out. Available transitions are:\n\n- `fade` - fade out\n\n- `reveal` - reveal from right to left\n\n- `wipeLeft` - fade across screen to the left\n\n- `wipeRight` - fade across screen to the right\n\n- `slideLeft` - move slightly left and fade out\n\n- `slideRight` - move slightly right and fade out\n\n- `slideUp` - move slightly up and fade out\n\n- `slideDown` - move slightly down and fade out\n\n- `carouselLeft` - slide out from right to left\n\n- `carouselRight` - slide out from left to right\n\n- `carouselUp` - slide out from bottom to top\n\n- `carouselDown` - slide out from top to bottom\n\n- `shuffleTopRight` - rotate out from top right\n\n- `shuffleRightTop` - rotate out from right top\n\n- `shuffleRightBottom` - rotate out from right bottom\n\n- `shuffleBottomRight` - rotate out from bottom right\n\n- `shuffleBottomLeft` - rotate out from bottom left\n\n- `shuffleLeftBottom` - rotate out from left bottom\n\n- `shuffleLeftTop` - rotate out from left top\n\n- `shuffleTopLeft` - rotate out from top left\n\n- `zoom` - fast zoom out\n\nThe transition speed can also be controlled by appending `Fast` or `Slow` to the transition, e.g. `fadeFast` or `CarouselLeftSlow`.","enum":["none","fade","fadeSlow","fadeFast","reveal","revealSlow","revealFast","wipeLeft","wipeLeftSlow","wipeLeftFast","wipeRight","wipeRightSlow","wipeRightFast","slideLeft","slideLeftSlow","slideLeftFast","slideRight","slideRightSlow","slideRightFast","slideUp","slideUpSlow","slideUpFast","slideDown","slideDownSlow","slideDownFast","carouselLeft","carouselLeftSlow","carouselLeftFast","carouselRight","carouselRightSlow","carouselRightFast","carouselUp","carouselUpSlow","carouselUpFast","carouselDown","carouselDownSlow","carouselDownFast","shuffleTopRight","shuffleTopRightSlow","shuffleTopRightFast","shuffleRightTop","shuffleRightTopSlow","shuffleRightTopFast","shuffleRightBottom","shuffleRightBottomSlow","shuffleRightBottomFast","shuffleBottomRight","shuffleBottomRightSlow","shuffleBottomRightFast","shuffleBottomLeft","shuffleBottomLeftSlow","shuffleBottomLeftFast","shuffleLeftBottom","shuffleLeftBottomSlow","shuffleLeftBottomFast","shuffleLeftTop","shuffleLeftTopSlow","shuffleLeftTopFast","shuffleTopLeft","shuffleTopLeftSlow","shuffleTopLeftFast","zoom"],"type":"string"}},"additionalProperties":false,"type":"object"},"Tween":{"description":"Use a Tween to [animate properties over time](/docs/guide/architecting-an-application/animations/). The following properties are currently supported and can be animated:\n\n- Opacity - animate the transparency of a clip.\n\n- Offset - animate the x and y position of a clip.\n\n- Rotation - animate the rotation of a clip.\n\n- Skew - animate the horizontal and vertical shearing effect.\n\n- Volume - animate the audio volume of a clip.","properties":{"from":{"description":"The initial property value at the start of the animation.","examples":[0]},"to":{"description":"The final property value at the end of the animation.","examples":[1]},"start":{"description":"The time in seconds when the animation starts, relative to the clip, not the timeline.","type":"number","examples":[0]},"length":{"description":"The duration of the animation in seconds.","type":"number","examples":[3]},"interpolation":{"description":"The interpolation method to use for the animation. Available options are:\n\n- `linear` - a linear interpolation between the start and end values.\n\n- `bezier` - a bezier curve interpolation between the start and end values.\n\n- `constant` - an interpolation where the property instantly jumps from the start to the end value, without any gradual transition.","type":"string","examples":["bezier"],"enum":["linear","bezier","constant"]},"easing":{"description":"The easing function to use for the animation. Easing controls the rate of change of the animated value, allowing for more natural motion by speeding up or slowing down the animation at different points. Only applicable if interpolation is set to `bezier`.","type":"string","enum":["ease","easeIn","easeOut","easeInOut","easeInQuad","easeInCubic","easeInQuart","easeInQuint","easeInSine","easeInExpo","easeInCirc","easeInBack","easeOutQuad","easeOutCubic","easeOutQuart","easeOutQuint","easeOutSine","easeOutExpo","easeOutCirc","easeOutBack","easeInOutQuad","easeInOutCubic","easeInOutQuart","easeInOutQuint","easeInOutSine","easeInOutExpo","easeInOutCirc","easeInOutBack"]}},"additionalProperties":false,"type":"object"},"VideoAsset":{"description":"The VideoAsset adds a video to a Clip. The video can be sourced from a URL\n(`src`), generated from a text prompt (`prompt`), or both. At least one of\n`src` or `prompt` must be provided.\n\n- **Source URL:** set `src` to the URL of an mp4 (or compatible) video file.\n- **Generated:** set `prompt` to describe the motion. Choose a generator\n with `model` and configure it with model-specific `options`. Models that\n animate a starting image take it as `options.inputSrc`; the default model\n generates from the prompt alone. The generated `src` is filled in\n automatically.\n- **Both:** `src` acts as a preview placeholder while `prompt` drives\n generation — the video is regenerated from the prompt at render time.\n Unchanged prompts and options resolve from the generation cache.","type":"object","properties":{"type":{"enum":["video"],"default":"video","description":"The type of asset - set to `video` for videos.","type":"string"},"src":{"description":"The video source URL. The URL must be publicly accessible or include credentials. When `prompt` is also set, `src` serves as a preview placeholder and the video is regenerated from the prompt at render time.","type":"string","minLength":1,"pattern":"\\S","examples":["https://s3-ap-northeast-1.amazonaws.com/my-bucket/video.mp4"]},"prompt":{"description":"A text prompt to generate the video from. The engine generates a video at render time and fills `src` automatically; an existing `src` is treated as a preview placeholder and replaced. Use `model` to choose the generator and `options` to configure it. A starting image goes in `options.inputSrc`, on the models that accept one.","type":"string","maxLength":4000,"examples":["Slowly zoom out and orbit left around the object."]},"model":{"description":"The generation model to use when `prompt` is set (e.g. `seedance-2.0-text-to-video`). Defaults to `seedance-2.0-text-to-video` if omitted. `GET /models` lists what is available and the options each accepts.","type":"string","examples":["seedance-2.0-text-to-video"]},"options":{"description":"Model-specific generation settings. Valid keys and values depend on the chosen `model` and are defined by the model registry. Omitted options use the model's defaults. Unknown or invalid options are rejected.","type":"object","additionalProperties":true,"examples":[{"resolution":"720p","duration":"8","generateAudio":true}]},"transcode":{"type":"boolean","description":"Set to `true` to force re-encoding of the video during preprocessing. This can help resolve compatibility issues, fix rotation problems, synchronize audio, or convert formats. The video will be processed to ensure optimal compatibility with the rendering engine.","examples":[false]},"trim":{"description":"The start trim point of the video clip, in seconds (defaults to 0). Videos will start from the in trim point. The video will play until the file ends or the Clip length is reached.","type":"number","examples":[2]},"volume":{"description":"Set the volume of the video clip. Use a number or an array of [Tween](./#tocs_tween) objects to create custom volume transitions.","oneOf":[{"type":"number","description":"The volume level for the video clip. Range varies from 0 to 1 where 0 is muted and 1 is full volume (defaults to 1).","minimum":0,"maximum":1,"examples":[0.5]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects used to create a custom volume effect. Modify the volume of an asset over time.","items":{"$ref":"#/$defs/Tween"}}]},"volumeEffect":{"description":"Preset volume effects to apply to the video asset\n\n- `fadeIn` - fade volume in only\n\n- `fadeOut` - fade volume out only\n\n- `fadeInFadeOut` - fade volume in and out","enum":["none","fadeIn","fadeOut","fadeInFadeOut"],"type":"string"},"speed":{"description":"Adjust the playback speed of the video clip. Use a number for a constant speed or an array of [Tween](./#tocs_tween) objects to change speed over time, for example easing from normal speed up to 3x.","oneOf":[{"type":"number","description":"The playback speed between 0 (paused) and 10 (10x normal speed) where 1 is normal speed (defaults to 1). Adjusting the speed will also adjust the duration of the clip and may require you to adjust the Clip length. For example, if you set speed to 0.5, the clip will need to be 2x as long to play the entire video (i.e. original length / 0.5). If you set speed to 2, the clip will need to be half as long to play the entire video (i.e. original length / 2).","minimum":0,"maximum":10,"examples":[1]},{"type":"array","description":"An array of [Tween](./#tocs_tween) objects that change the playback speed over time. A speed of 0 holds the current frame. The clip length is not adjusted, so set it to cover the footage you want to play.","items":{"$ref":"#/$defs/Tween"}}]},"crop":{"$ref":"#/$defs/Crop"},"chromaKey":{"$ref":"#/$defs/ChromaKey"}},"additionalProperties":false,"required":["type"]},"VimeoDestination":{"description":"Send videos to [Vimeo](https://shotstack.io/docs/guide/serving-assets/destinations/vimeo/) video hosting and streaming service. Vimeo credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/vimeo), not in the request.","properties":{"provider":{"description":"The destination to send video to - set to `vimeo` for Vimeo.","type":"string","default":"vimeo","examples":["vimeo"]},"options":{"description":"Additional Vimeo configuration and features.","$ref":"#/$defs/VimeoDestinationOptions"}},"type":"object","required":["provider"]},"VimeoDestinationOptions":{"description":"Pass additional options to control how Vimeo publishes video, including name, description and privacy settings.","properties":{"name":{"description":"A name or title for the video that will be displayed on the Vimeo website.","type":"string"},"description":{"description":"A description of the video that will be displayed on the Vimeo website.","type":"string"},"privacy":{"description":"Options to control the visibility of videos and privacy features.","$ref":"#/$defs/VimeoDestinationPrivacyOptions"},"folderUri":{"description":"The Vimeo folder URI to upload the video to. The folder must already exist in your Vimeo account.","type":"string","examples":["/users/12345678/projects/87654321"]}},"type":"object"},"VimeoDestinationPrivacyOptions":{"description":"Options to control the visibility of videos and privacy features.","properties":{"view":{"description":"Set who can view the videos. Available options are:\n\n- `anybody` - Anyone can view the video.\n\n- `nobody` - Only the video owner can view the video.\n\n- `contacts` - Only contacts can view the video.\n\n- `password` - A password is required to view the video.\n\n- `unlisted` - The video is not listed on Vimeo.","type":"string","enum":["anybody","nobody","contacts","password","unlisted"]},"embed":{"description":"Set who can embed the video. Available options are:\n\n- `public` - Anyone can embed the video.\n\n- `private` - Only the video owner can embed the video.\n\n- `whitelist` - Only whitelisted domains can embed the video.","type":"string","enum":["public","private","whitelist"]},"comments":{"description":"Set who can comment on the video. Available options are:\n\n- `anybody` - Anyone can comment on the video.\n\n- `nobody` - Only the video owner can comment on the video.\n\n- `contacts` - Only contacts can comment on the video.","type":"string","enum":["anybody","nobody","contacts"]},"download":{"description":"Set whether the video can be downloaded.","type":"boolean"},"add":{"description":"Set whether other users can add the video to their collections.","type":"boolean"}},"type":"object"}}};
|