InputReference - TypeScript SDK

InputReference type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

A reference asset used to guide video generation. Image references are supported by all providers; audio and video references are only honored by providers that support them (currently BytePlus Seedance 2.0).

Supported Types

models.ContentPartAudio

1const value: models.ContentPartAudio = {
2 audioUrl: {
3 url: "https://weary-poppy.biz",
4 },
5 type: "audio_url",
6};

models.ContentPartImage

1const value: models.ContentPartImage = {
2 imageUrl: {
3 url: "https://example.com/image.png",
4 },
5 type: "image_url",
6};

models.ContentPartVideo

1const value: models.ContentPartVideo = {
2 type: "video_url",
3 videoUrl: {
4 url: "https://bleak-marketplace.org/",
5 },
6};