TencentVideoModelOptions
Namespace: Vercel.AI.Tencent
public sealed class TencentVideoModelOptionsProvider-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
Properties
Section titled “Properties”Assets
Section titled “Assets”public IReadOnlyList<TencentVideoAsset>? Assets { get; set; }VOD: registered materials, referenced by their asset:// URL. Sent after the other file inputs.
Value: IReadOnlyList<TencentVideoAsset>
public string? Audio { get; set; }TokenHub Kling: native, original or off. Takes precedence over the top-level generateAudio.
Value: string
CharacterOrientation
Section titled “CharacterOrientation”public string? CharacterOrientation { get; set; }TokenHub Kling motion control: image or video.
Value: string
Elements
Section titled “Elements”public IReadOnlyList<TencentVideoElement>? Elements { get; set; }TokenHub Kling: custom elements.
Value: IReadOnlyList<TencentVideoElement>
EnhancePrompt
Section titled “EnhancePrompt”public bool? EnhancePrompt { get; set; }VOD: whether to optimize the prompt automatically.
Value: bool?
EnhanceSwitch
Section titled “EnhanceSwitch”public bool? EnhanceSwitch { get; set; }VOD: whether to upscale output with video enhancement.
Value: bool?
ExtInfo
Section titled “ExtInfo”public string? ExtInfo { get; set; }VOD: reserved field for model-specific parameters, sent as is.
Value: string
ExternalTaskId
Section titled “ExternalTaskId”public string? ExternalTaskId { get; set; }TokenHub Kling: custom task id.
Value: string
InputComplianceCheck
Section titled “InputComplianceCheck”public bool? InputComplianceCheck { get; set; }VOD: whether to run a compliance check on the input.
Value: bool?
InputRegion
Section titled “InputRegion”public string? InputRegion { get; set; }VOD: where input files are stored: Oversea, OverseaUSWest or Mainland.
Value: string
MultiShot
Section titled “MultiShot”public bool? MultiShot { get; set; }TokenHub Kling: whether a multi-shot prompt produces multi-shot output.
Value: bool?
NegativePrompt
Section titled “NegativePrompt”public string? NegativePrompt { get; set; }VOD: prompt describing what the model should avoid.
Value: string
OffPeak
Section titled “OffPeak”public bool? OffPeak { get; set; }VOD: whether to run the task in off-peak mode.
Value: bool?
OutputComplianceCheck
Section titled “OutputComplianceCheck”public bool? OutputComplianceCheck { get; set; }VOD: whether to run a compliance check on the output.
Value: bool?
PersonGeneration
Section titled “PersonGeneration”public string? PersonGeneration { get; set; }VOD: AllowAdult or Disallowed.
Value: string
ReferenceVideoType
Section titled “ReferenceVideoType”public string? ReferenceVideoType { get; set; }How reference videos are used: feature (default) or base. TokenHub Kling omni and VOD Kling.
Value: string
Resolution
Section titled “Resolution”public string? Resolution { get; set; }Output resolution tier, sent as is. Takes precedence over the top-level resolution. Both backends.
Value: string
SceneType
Section titled “SceneType”public string? SceneType { get; set; }VOD: scenario type, for example motion_control.
Value: string
SessionContext
Section titled “SessionContext”public string? SessionContext { get; set; }VOD: context string passed through to callbacks.
Value: string
SessionId
Section titled “SessionId”public string? SessionId { get; set; }VOD: deduplication identifier.
Value: string
TasksPriority
Section titled “TasksPriority”public int? TasksPriority { get; set; }VOD: task priority from -10 to 10.
Value: int?
Voices
Section titled “Voices”public IReadOnlyList<TencentVideoVoice>? Voices { get; set; }TokenHub Kling omni: voices, referenced in the prompt as @id.
Value: IReadOnlyList<TencentVideoVoice>
Watermark
Section titled “Watermark”public bool? Watermark { get; set; }Whether to add a watermark (TokenHub watermark_info, VOD LogoAdd). Both backends.
Value: bool?
Methods
Section titled “Methods”Parse(JsonElement)
Section titled “Parse(JsonElement)”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
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product