/** * @example * { * prompt: "A 9:16 product showcase of a cordless power scrubber", * type: "video" * } */ export interface GenerateMediaRequest { /** Account ID, prefixed `biz_`. Defaults to the account the API key belongs to. */ account_id?: string; /** Video length in seconds. Video only; defaults to 5. */ duration_seconds?: number; /** What to generate. Up to 2,000 characters. */ prompt: string; /** Optional reference image file IDs (`file_` prefixed), up to 4. For video, a single reference seeds the opening frame; multiple references guide subject and style instead. */ reference_media?: string[]; /** Video resolution. Video only; defaults to `1080p`. `1080p` is not supported by Seedance 2.0 Fast or Mini; `4k` is only supported by Seedance 2.0. */ resolution?: GenerateMediaRequest.Resolution; /** The kind of media to generate. */ type: GenerateMediaRequest.Type; } export declare namespace GenerateMediaRequest { /** Video resolution. Video only; defaults to `1080p`. `1080p` is not supported by Seedance 2.0 Fast or Mini; `4k` is only supported by Seedance 2.0. */ const Resolution: { readonly FourHundredEightyP: "480p"; readonly SevenHundredTwentyP: "720p"; readonly OneThousandEightyP: "1080p"; readonly FourK: "4k"; }; type Resolution = (typeof Resolution)[keyof typeof Resolution]; /** The kind of media to generate. */ const Type: { readonly Video: "video"; readonly Image: "image"; }; type Type = (typeof Type)[keyof typeof Type]; }