Skip to content

TencentVideoModelOptions

Namespace: Vercel.AI.Tencent

public sealed class TencentVideoModelOptions

Provider-specific options for Tencent video generation, passed as providerOptions.tencent. Options apply to TokenHub Kling models (kling-video-*), VOD AIGC models (vod/<ModelName>/<ModelVersion>), or both. An option that does not apply to the selected model is ignored with a warning.

Inheritance: object

View source

public IReadOnlyList<TencentVideoAsset>? Assets { get; set; }

VOD: registered materials, referenced by their asset:// URL. Sent after the other file inputs.

Value: IReadOnlyList<TencentVideoAsset>

View source

public string? Audio { get; set; }

TokenHub Kling: native, original or off. Takes precedence over the top-level generateAudio.

Value: string

View source

public string? CharacterOrientation { get; set; }

TokenHub Kling motion control: image or video.

Value: string

View source

public IReadOnlyList<TencentVideoElement>? Elements { get; set; }

TokenHub Kling: custom elements.

Value: IReadOnlyList<TencentVideoElement>

View source

public bool? EnhancePrompt { get; set; }

VOD: whether to optimize the prompt automatically.

Value: bool?

View source

public bool? EnhanceSwitch { get; set; }

VOD: whether to upscale output with video enhancement.

Value: bool?

View source

public string? ExtInfo { get; set; }

VOD: reserved field for model-specific parameters, sent as is.

Value: string

View source

public string? ExternalTaskId { get; set; }

TokenHub Kling: custom task id.

Value: string

View source

public bool? InputComplianceCheck { get; set; }

VOD: whether to run a compliance check on the input.

Value: bool?

View source

public string? InputRegion { get; set; }

VOD: where input files are stored: Oversea, OverseaUSWest or Mainland.

Value: string

View source

public bool? MultiShot { get; set; }

TokenHub Kling: whether a multi-shot prompt produces multi-shot output.

Value: bool?

View source

public string? NegativePrompt { get; set; }

VOD: prompt describing what the model should avoid.

Value: string

View source

public bool? OffPeak { get; set; }

VOD: whether to run the task in off-peak mode.

Value: bool?

View source

public bool? OutputComplianceCheck { get; set; }

VOD: whether to run a compliance check on the output.

Value: bool?

View source

public string? PersonGeneration { get; set; }

VOD: AllowAdult or Disallowed.

Value: string

View source

public string? ReferenceVideoType { get; set; }

How reference videos are used: feature (default) or base. TokenHub Kling omni and VOD Kling.

Value: string

View source

public string? Resolution { get; set; }

Output resolution tier, sent as is. Takes precedence over the top-level resolution. Both backends.

Value: string

View source

public string? SceneType { get; set; }

VOD: scenario type, for example motion_control.

Value: string

View source

public string? SessionContext { get; set; }

VOD: context string passed through to callbacks.

Value: string

View source

public string? SessionId { get; set; }

VOD: deduplication identifier.

Value: string

View source

public int? TasksPriority { get; set; }

VOD: task priority from -10 to 10.

Value: int?

View source

public IReadOnlyList<TencentVideoVoice>? Voices { get; set; }

TokenHub Kling omni: voices, referenced in the prompt as @id.

Value: IReadOnlyList<TencentVideoVoice>

View source

public bool? Watermark { get; set; }

Whether to add a watermark (TokenHub watermark_info, VOD LogoAdd). Both backends.

Value: bool?

View source

public static TencentVideoModelOptions? Parse(JsonElement providerOptions)

Reads providerOptions.tencent. Returns null when absent. An invalid value throws InvalidArgumentException.

Parameters

Name Type Description
providerOptions JsonElement

Returns: TencentVideoModelOptions

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product