seacloud-sdk 0.10.3 → 0.11.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/index.d.ts CHANGED
@@ -202,6 +202,34 @@ declare function pollTaskUntilComplete(client: SeacloudClient, endpoint: string,
202
202
  */
203
203
  declare function createAndWaitTask(client: SeacloudClient, endpoint: string, body: Record<string, any>, options?: PollingOptions): Promise<TaskResult>;
204
204
 
205
+ /**
206
+ * SeaCloud SDK 核心模块
207
+ */
208
+
209
+ /**
210
+ * 查询任务状态
211
+ *
212
+ * 用于查询已创建任务的当前状态和结果。
213
+ *
214
+ * @example
215
+ * ```typescript
216
+ * import { initSeacloud, getTaskStatus } from 'seacloud-sdk';
217
+ *
218
+ * initSeacloud('your-api-key');
219
+ *
220
+ * const result = await getTaskStatus('/model/v1/generation', 'task-123');
221
+ * console.log(result.status); // 'pending' | 'processing' | 'completed' | 'failed'
222
+ * if (result.status === 'completed') {
223
+ * console.log(result.output); // 任务输出结果
224
+ * }
225
+ * ```
226
+ *
227
+ * @param endpoint API 端点路径(例如:/model/v1/generation)
228
+ * @param taskId 任务 ID
229
+ * @returns 任务结果,包含状态、输出等信息
230
+ */
231
+ declare function getTaskStatus(endpoint: string, taskId: string): Promise<TaskResult>;
232
+
205
233
  /**
206
234
  * 参数示例:
207
235
  * ```typescript
@@ -9800,6 +9828,158 @@ interface ViduQ2Resource {
9800
9828
  */
9801
9829
  declare function viduQ2(params: ViduQ2Params): Promise<ViduQ2Resource[]>;
9802
9830
 
9831
+ /**
9832
+ * 主体定义,用于在提示词中引用
9833
+ */
9834
+ interface ViduQ2ReferenceSubject {
9835
+ /**
9836
+ * 主体id,在提示词中可以通过 @主体id 的方式使用
9837
+ */
9838
+ id: string;
9839
+ /**
9840
+ * 该主体对应的图片url列表,每个主体最多支持3张图片
9841
+ */
9842
+ images: string[];
9843
+ }
9844
+ interface ViduQ2I2vReferenceParams {
9845
+ /**
9846
+ * 文本提示词,必填
9847
+ * 可以通过@主体id 来表示主体内容
9848
+ * 例如:"@1 和 @2 在一起吃火锅,并且旁白音说火锅大家都爱吃。"
9849
+ * 注:字符长度不能超过 2000 个字符
9850
+ */
9851
+ prompt: string;
9852
+ /**
9853
+ * 参考图像列表(URL或Base64),与subjects参数互斥
9854
+ * 支持1-7张参考图片
9855
+ */
9856
+ images?: string[];
9857
+ /**
9858
+ * 主体列表,与images参数互斥
9859
+ * 每个主体可以有多张图片(最多3张),并在prompt中通过@主体id引用
9860
+ */
9861
+ subjects?: ViduQ2ReferenceSubject[];
9862
+ /**
9863
+ * 音色ID,使用预设音色或复刻音色
9864
+ * 为空时系统会自动推荐音色并使用
9865
+ */
9866
+ voice_id?: string;
9867
+ /**
9868
+ * 是否使用音视频直出能力,默认false
9869
+ * - true:使用音视频直出能力,同时bgm参数不生效
9870
+ * - false:不使用音视频直出能力,且bgm参数生效
9871
+ * @default false
9872
+ */
9873
+ audio?: boolean;
9874
+ /**
9875
+ * 视频时长(秒),范围1-8秒
9876
+ * @range 1 - 8
9877
+ */
9878
+ duration?: number;
9879
+ /**
9880
+ * 分辨率参数,默认值依据模型和视频时长而定
9881
+ * viduq2(1-10秒):默认 720p, 可选:540p、720p、1080p
9882
+ * @default "720p"
9883
+ * @values 540p | 720p | 1080p
9884
+ */
9885
+ resolution?: '540p' | '720p' | '1080p';
9886
+ /**
9887
+ * 随机种子,默认0(随机)
9888
+ * @default 0
9889
+ */
9890
+ seed?: number;
9891
+ /**
9892
+ * 宽高比,默认16:9
9893
+ * @default "16:9"
9894
+ * @values 16:9 | 9:16 | 1:1
9895
+ */
9896
+ aspect_ratio?: '16:9' | '9:16' | '1:1';
9897
+ /**
9898
+ * 运动幅度,默认auto
9899
+ * @default "auto"
9900
+ * @values auto | small | medium | large
9901
+ */
9902
+ movement_amplitude?: 'auto' | 'small' | 'medium' | 'large';
9903
+ /**
9904
+ * 是否添加背景音乐,默认false
9905
+ * 当audio=true时此参数不生效
9906
+ * @default false
9907
+ */
9908
+ bgm?: boolean;
9909
+ /**
9910
+ * 是否在非高峰时段处理,默认false
9911
+ * @default false
9912
+ */
9913
+ off_peak?: boolean;
9914
+ /**
9915
+ * 是否添加水印,默认false
9916
+ * @default false
9917
+ */
9918
+ watermark?: boolean;
9919
+ /**
9920
+ * 透传参数,最大1048576字符
9921
+ */
9922
+ payload?: string;
9923
+ /**
9924
+ * 回调URL,必须以http://或https://开头
9925
+ */
9926
+ callback_url?: string;
9927
+ }
9928
+ interface ViduQ2I2vReferenceResource {
9929
+ type: string;
9930
+ url: string;
9931
+ size?: number;
9932
+ jobId?: string;
9933
+ [key: string]: any;
9934
+ }
9935
+ /**
9936
+ * viduq2_i2v_reference
9937
+ *
9938
+ * Vidu Q2 Reference-to-Video generation implementation.
9939
+ *
9940
+ * Model: viduq2 (最新模型)
9941
+ * Features: 最新模型,支持参考图生视频,高质量输出,支持主体一致性
9942
+ * Duration: 1-8秒 (可选)
9943
+ * Resolution: 根据时长动态调整
9944
+ * Images: 1-7张参考图片,或使用subjects定义多个主体
9945
+ *
9946
+ * API Documentation: https://platform.vidu.cn/docs/reference-to-video
9947
+ * Status API: https://platform.vidu.cn/docs/get-generation
9948
+ *
9949
+ * @example
9950
+ * ```typescript
9951
+ * import { initSeacloud, viduQ2I2vReference } from 'seacloud-sdk';
9952
+ *
9953
+ * initSeacloud('your-api-key');
9954
+ *
9955
+ * // 方式1: 使用普通参考图片列表
9956
+ * const result1 = await viduQ2I2vReference({
9957
+ * prompt: '一只可爱的小猫在花园里玩耍',
9958
+ * images: ['https://example.com/cat.jpg'],
9959
+ * duration: 5,
9960
+ * resolution: '720p',
9961
+ * });
9962
+ *
9963
+ * // 方式2: 使用主体列表(支持多主体和主体引用)
9964
+ * const result2 = await viduQ2I2vReference({
9965
+ * prompt: '@1 和 @2 在一起吃火锅,并且旁白音说火锅大家都爱吃。',
9966
+ * subjects: [
9967
+ * { id: '1', images: ['https://example.com/person1.jpg'] },
9968
+ * { id: '2', images: ['https://example.com/person2.jpg'] }
9969
+ * ],
9970
+ * audio: true,
9971
+ * voice_id: 'voice_123',
9972
+ * duration: 8,
9973
+ * });
9974
+ *
9975
+ * console.log(result); // 返回生成的资源列表
9976
+ * ```
9977
+ *
9978
+ * @param params 请求参数,详见 ViduQ2I2vReferenceParams 接口定义
9979
+ * @returns 生成的资源列表
9980
+ */
9981
+ declare function viduQ2I2vReference(params: ViduQ2I2vReferenceParams): Promise<ViduQ2I2vReferenceResource[]>;
9982
+
9803
9983
  interface ViduTemplateParams {
9804
9984
  /**
9805
9985
  * 模板名称,必填参数。支持的模板: turn_into_zombie (变成僵尸效果), head_to_balloon (头部变气球效果), wednesdays_vibe (星期三氛围效果), covered_liquid_metal (液态金属覆盖效果)
@@ -11629,8 +11809,13 @@ interface VolcesSeedream45MultiBlendParams {
11629
11809
  prompt: string;
11630
11810
  /**
11631
11811
  * 输入图片列表,支持 URL 地址或 Base64 编码的图片数据(必须为列表格式,至少2张,最多14张图片)
11812
+ * 支持 image 或 images 参数名
11632
11813
  */
11633
- image: string[];
11814
+ image?: string[];
11815
+ /**
11816
+ * 输入图片列表(别名),与 image 参数相同
11817
+ */
11818
+ images?: string[];
11634
11819
  /**
11635
11820
  * 图片尺寸,例如:"2K"、"1024x1024" 等
11636
11821
  */
@@ -12994,4 +13179,970 @@ interface AppGenerationResult {
12994
13179
  */
12995
13180
  declare function appGeneration(params: AppGenerationParams): Promise<AppGenerationResult>;
12996
13181
 
12997
- export { type AgentArtifact, type AgentChatCompletionChoice, type AgentChatCompletionChunk, type AgentChatCompletionChunkChoice, type AgentChatCompletionDelta, type AgentChatCompletionResponse, type AgentChatCompletionsParams, type AgentContentFilterResult, type AgentMessage, type AgentMessageContent, type AgentMessageContentType, type AgentMessageRole, type AgentResponseMessage, type AgentTool, type AgentToolCall, type AgentToolFunction, type AgentUsage, type AlibabaAnimateAnyoneDetectParams, type AlibabaAnimateAnyoneDetectResource, type AlibabaAnimateAnyoneTemplateParams, type AlibabaAnimateAnyoneTemplateResource, type AlibabaAnimateAnyoneVideoParams, type AlibabaAnimateAnyoneVideoResource, type AlibabaQianwenImageParams, type AlibabaQianwenImageResource, type AlibabaWan22T2iFlashParams, type AlibabaWan22T2iFlashResource, type AlibabaWan22T2iPlusParams, type AlibabaWan22T2iPlusResource, type AlibabaWan25I2iPreviewParams, type AlibabaWan25I2iPreviewResource, type AlibabaWan25T2iPreviewParams, type AlibabaWan25T2iPreviewResource, type AlibabaWanx20T2iTurboParams, type AlibabaWanx20T2iTurboResource, type AlibabaWanx21I2vPlusParams, type AlibabaWanx21I2vPlusResource, type AlibabaWanx21I2vTurboParams, type AlibabaWanx21I2vTurboResource, type AlibabaWanx21T2iPlusParams, type AlibabaWanx21T2iPlusResource, type AlibabaWanx21T2iTurboParams, type AlibabaWanx21T2iTurboResource, type AlibabaWanx21T2vPlusParams, type AlibabaWanx21T2vPlusResource, type AlibabaWanx21T2vTurboParams, type AlibabaWanx21T2vTurboResource, type AlibabaWanx22I2vFlashParams, type AlibabaWanx22I2vFlashResource, type AlibabaWanx22I2vPlusParams, type AlibabaWanx22I2vPlusResource, type AlibabaWanx22T2vPlusParams, type AlibabaWanx22T2vPlusResource, type AlibabaWanx25I2vPreviewParams, type AlibabaWanx25I2vPreviewResource, type AlibabaWanx25T2vPreviewParams, type AlibabaWanx25T2vPreviewResource, type AlibabaWanx26I2vParams, type AlibabaWanx26I2vResource, type AlibabaWanx26ReferenceParams, type AlibabaWanx26ReferenceResource, type AlibabaWanx26T2vParams, type AlibabaWanx26T2vResource, type AppGenerationInput, type AppGenerationParams, type AppGenerationResource, type AppGenerationResult, type AppSearchParams, type AppSearchResponse, type BlackforestlabsFlux11ProParams, type BlackforestlabsFlux11ProResource, type BlackforestlabsFlux1ProParams, type BlackforestlabsFlux1ProResource, type BlackforestlabsFlux2FlexEditParams, type BlackforestlabsFlux2FlexEditResource, type BlackforestlabsFlux2FlexParams, type BlackforestlabsFlux2FlexResource, type BlackforestlabsFlux2ProEditParams, type BlackforestlabsFlux2ProEditResource, type BlackforestlabsFlux2ProParams, type BlackforestlabsFlux2ProResource, type BlackforestlabsFluxKontextMaxParams, type BlackforestlabsFluxKontextMaxResource, type BlackforestlabsFluxKontextProParams, type BlackforestlabsFluxKontextProResource, type ChatCompletionChoice, type ChatCompletionChunk, type ChatCompletionChunkChoice, type ChatCompletionChunkDelta, type ChatCompletionResponse, type ChatCompletionUsage, type ChatMessage, type ChatMessageRole, type ElevenlabsTtsGeneratorParams, type ElevenlabsTtsGeneratorResource, type GoogleGemini3ProImageParams, type GoogleGemini3ProImageResource, type GoogleGeminiImageParams, type GoogleGeminiImageResource, type GoogleImagen4FastGenerateParams, type GoogleImagen4FastGenerateResource, type GoogleImagen4GenerateParams, type GoogleImagen4GenerateResource, type GoogleImagen4UltraGenerateParams, type GoogleImagen4UltraGenerateResource, type GoogleVeo20Generate001Params, type GoogleVeo20Generate001Resource, type GoogleVeo20GenerateExpParams, type GoogleVeo20GenerateExpResource, type GoogleVeo20GeneratePreviewParams, type GoogleVeo20GeneratePreviewResource, type GoogleVeo30FastGenerate001Params, type GoogleVeo30FastGenerate001Resource, type GoogleVeo30Generate001Params, type GoogleVeo30Generate001Resource, type GoogleVeo31Params, type GoogleVeo31Resource, type InitOptions, type KlingAvatarParams, type KlingAvatarResource, type KlingDurationExtensionParams, type KlingDurationExtensionResource, type KlingEffectsMultiV15Params, type KlingEffectsMultiV15Resource, type KlingEffectsMultiV16Params, type KlingEffectsMultiV16Resource, type KlingEffectsMultiV1Params, type KlingEffectsMultiV1Resource, type KlingEffectsSingleParams, type KlingEffectsSingleResource, type KlingLipsyncParams, type KlingLipsyncResource, type KlingOmniImageParams, type KlingOmniImageResource, type KlingOmniVideoParams, type KlingOmniVideoResource, type KlingV15I2vParams, type KlingV15I2vResource, type KlingV15Params, type KlingV15Resource, type KlingV16I2vParams, type KlingV16I2vResource, type KlingV16Params, type KlingV16Resource, type KlingV1I2vParams, type KlingV1I2vResource, type KlingV1Params, type KlingV1Resource, type KlingV21I2vParams, type KlingV21I2vResource, type KlingV21MasterI2vParams, type KlingV21MasterI2vResource, type KlingV21MasterParams, type KlingV21MasterResource, type KlingV25TurboI2vParams, type KlingV25TurboI2vResource, type KlingV25TurboParams, type KlingV25TurboResource, type KlingV26I2vParams, type KlingV26I2vResource, type KlingV26Params, type KlingV26Resource, type KlingV2MasterI2vParams, type KlingV2MasterI2vResource, type KlingV2MasterParams, type KlingV2MasterResource, type LlmChatCompletionsParams, type MicrosoftGptImage15Params, type MicrosoftGptImage15Resource, type MicrosoftGptImage1Params, type MicrosoftGptImage1Resource, type MicrosoftSora2Params, type MicrosoftSora2Resource, type MinimaxHailuo02I2vParams, type MinimaxHailuo02I2vResource, type MinimaxHailuo02Params, type MinimaxHailuo02Resource, type MinimaxHailuo23FastI2vParams, type MinimaxHailuo23FastI2vResource, type MinimaxHailuo23I2vParams, type MinimaxHailuo23I2vResource, type MinimaxI2v01DirectorParams, type MinimaxI2v01DirectorResource, type MinimaxI2v01LiveParams, type MinimaxI2v01LiveResource, type MinimaxI2v01Params, type MinimaxI2v01Resource, type MinimaxT2aParams, type MinimaxT2aResource, type MinimaxT2v01DirectorParams, type MinimaxT2v01DirectorResource, type MinimaxT2v01Params, type MinimaxT2v01Resource, type PixverseV35I2vParams, type PixverseV35I2vResource, type PixverseV35T2vParams, type PixverseV35T2vResource, type PixverseV35TransitionParams, type PixverseV35TransitionResource, type PixverseV45I2vParams, type PixverseV45I2vResource, type PixverseV45T2vParams, type PixverseV45T2vResource, type PixverseV45TransitionParams, type PixverseV45TransitionResource, type PixverseV4I2vParams, type PixverseV4I2vResource, type PixverseV4T2vParams, type PixverseV4T2vResource, type PixverseV4TransitionParams, type PixverseV4TransitionResource, type PixverseV55I2vParams, type PixverseV55I2vResource, type PixverseV55T2vParams, type PixverseV55T2vResource, type PixverseV55TransitionParams, type PixverseV55TransitionResource, type PixverseV5I2vParams, type PixverseV5I2vResource, type PixverseV5T2vParams, type PixverseV5T2vResource, type PixverseV5TransitionParams, type PixverseV5TransitionResource, type PollingOptions, type RunwayGen3aTurboI2vParams, type RunwayGen3aTurboI2vResource, SeacloudClient, type SeacloudConfig, SeacloudError, type TaskError, type TaskResult, type TaskStatus, type TemplateSpec, type TemplateSpecConstraint, type TemplateSpecInput, type TemplateSpecOutput, type TemplateSpecsParams, type TemplateSpecsResponse, type TencentHunyuan3dParams, type TencentHunyuan3dProParams, type TencentHunyuan3dProResource, type TencentHunyuan3dRapidParams, type TencentHunyuan3dRapidResource, type TencentHunyuan3dResource, type TencentImageCreation3Params, type TencentImageCreation3Resource, type TencentMpsSuperResolutionParams, type TencentMpsSuperResolutionResource, type Vidu15I2vParams, type Vidu15I2vResource, type Vidu15Params, type Vidu15Resource, type Vidu20I2vParams, type Vidu20I2vResource, type ViduQ1I2vParams, type ViduQ1I2vResource, type ViduQ1Params, type ViduQ1Resource, type ViduQ2Params, type ViduQ2Resource, type ViduTemplateParams, type ViduTemplateResource, type ViduTemplateV2Params, type ViduTemplateV2Resource, type VolcesJimeng30Params, type VolcesJimeng30Resource, type VolcesJimeng31Params, type VolcesJimeng31Resource, type VolcesJimengDreamActorM1Params, type VolcesJimengDreamActorM1Resource, type VolcesJimengI2i30Params, type VolcesJimengI2i30Resource, type VolcesRealmanAvatarImitatorV2vParams, type VolcesRealmanAvatarImitatorV2vResource, type VolcesRealmanAvatarPictureOmniV15Params, type VolcesRealmanAvatarPictureOmniV15Resource, type VolcesRealmanAvatarPictureOmniV2Params, type VolcesRealmanAvatarPictureOmniV2Resource, type VolcesSeed3dParams, type VolcesSeed3dResource, type VolcesSeedance30I2vParams, type VolcesSeedance30I2vResource, type VolcesSeedance30Params, type VolcesSeedance30ProParams, type VolcesSeedance30ProResource, type VolcesSeedance30Resource, type VolcesSeedanceProFastParams, type VolcesSeedanceProFastResource, type VolcesSeededit20Params, type VolcesSeededit20Resource, type VolcesSeededit30I2iParams, type VolcesSeededit30I2iResource, type VolcesSeededit30Params, type VolcesSeededit30Resource, type VolcesSeededit3dStyleParams, type VolcesSeededit3dStyleResource, type VolcesSeededitMultiIpParams, type VolcesSeededitMultiIpResource, type VolcesSeededitMultiStyleParams, type VolcesSeededitMultiStyleResource, type VolcesSeededitPortraitParams, type VolcesSeededitPortraitResource, type VolcesSeededitSingleIpParams, type VolcesSeededitSingleIpResource, type VolcesSeedream30Params, type VolcesSeedream30Resource, type VolcesSeedream40Params, type VolcesSeedream40Resource, type VolcesSeedream45I2iParams, type VolcesSeedream45I2iResource, type VolcesSeedream45MultiBlendParams, type VolcesSeedream45MultiBlendResource, type VolcesSeedream45Params, type VolcesSeedream45Resource, type VolcesSubjectDetectionParams, type VolcesSubjectDetectionResource, type VolcesSubjectRecognitionParams, type VolcesSubjectRecognitionResource, agentChatCompletions, alibabaAnimateAnyoneDetect, alibabaAnimateAnyoneTemplate, alibabaAnimateAnyoneVideo, alibabaQianwenImage, alibabaWan22T2iFlash, alibabaWan22T2iPlus, alibabaWan25I2iPreview, alibabaWan25T2iPreview, alibabaWanx20T2iTurbo, alibabaWanx21I2vPlus, alibabaWanx21I2vTurbo, alibabaWanx21T2iPlus, alibabaWanx21T2iTurbo, alibabaWanx21T2vPlus, alibabaWanx21T2vTurbo, alibabaWanx22I2vFlash, alibabaWanx22I2vPlus, alibabaWanx22T2vPlus, alibabaWanx25I2vPreview, alibabaWanx25T2vPreview, alibabaWanx26I2v, alibabaWanx26Reference, alibabaWanx26T2v, appGeneration, appSearch, blackforestlabsFlux11Pro, blackforestlabsFlux1Pro, blackforestlabsFlux2Flex, blackforestlabsFlux2FlexEdit, blackforestlabsFlux2Pro, blackforestlabsFlux2ProEdit, blackforestlabsFluxKontextMax, blackforestlabsFluxKontextPro, createAndWaitTask, createAudioMessage, createConfig, createImageMessage, createTextMessage, createTool, createVideoMessage, elevenlabsTtsGenerator, getClient, getDefaultPollingOptions, googleGemini3ProImage, googleGeminiImage, googleImagen4FastGenerate, googleImagen4Generate, googleImagen4UltraGenerate, googleVeo20Generate001, googleVeo20GenerateExp, googleVeo20GeneratePreview, googleVeo30FastGenerate001, googleVeo30Generate001, googleVeo31, initSeacloud, klingAvatar, klingDurationExtension, klingEffectsMultiV1, klingEffectsMultiV15, klingEffectsMultiV16, klingEffectsSingle, klingLipsync, klingOmniImage, klingOmniVideo, klingV1, klingV15, klingV15I2v, klingV16, klingV16I2v, klingV1I2v, klingV21I2v, klingV21Master, klingV21MasterI2v, klingV25Turbo, klingV25TurboI2v, klingV26, klingV26I2v, klingV2Master, klingV2MasterI2v, llmChatCompletions, microsoftGptImage1, microsoftGptImage15, microsoftSora2, minimaxHailuo02, minimaxHailuo02I2v, minimaxHailuo23FastI2v, minimaxHailuo23I2v, minimaxI2v01, minimaxI2v01Director, minimaxI2v01Live, minimaxT2a, minimaxT2v01, minimaxT2v01Director, pixverseV35I2v, pixverseV35T2v, pixverseV35Transition, pixverseV45I2v, pixverseV45T2v, pixverseV45Transition, pixverseV4I2v, pixverseV4T2v, pixverseV4Transition, pixverseV55I2v, pixverseV55T2v, pixverseV55Transition, pixverseV5I2v, pixverseV5T2v, pixverseV5Transition, pollTaskUntilComplete, resetConfig, runwayGen3aTurboI2v, setDefaultPollingOptions, templateSpecs, tencentHunyuan3d, tencentHunyuan3dPro, tencentHunyuan3dRapid, tencentImageCreation3, tencentMpsSuperResolution, validateConfig, vidu15, vidu15I2v, vidu20I2v, viduQ1, viduQ1I2v, viduQ2, viduTemplate, viduTemplateV2, volcesJimeng30, volcesJimeng31, volcesJimengDreamActorM1, volcesJimengI2i30, volcesRealmanAvatarImitatorV2v, volcesRealmanAvatarPictureOmniV15, volcesRealmanAvatarPictureOmniV2, volcesSeed3d, volcesSeedance30, volcesSeedance30I2v, volcesSeedance30Pro, volcesSeedanceProFast, volcesSeededit20, volcesSeededit30, volcesSeededit30I2i, volcesSeededit3dStyle, volcesSeededitMultiIp, volcesSeededitMultiStyle, volcesSeededitPortrait, volcesSeededitSingleIp, volcesSeedream30, volcesSeedream40, volcesSeedream45, volcesSeedream45I2i, volcesSeedream45MultiBlend, volcesSubjectDetection, volcesSubjectRecognition };
13182
+ /**
13183
+ * 风险类型枚举
13184
+ */
13185
+ type RiskType = 'POLITY' | 'EROTIC' | 'VIOLENT' | 'CHILD';
13186
+ /**
13187
+ * 标签项
13188
+ */
13189
+ interface LabelItem {
13190
+ /**
13191
+ * 标签名称,格式: 场景:类别:具体标签
13192
+ */
13193
+ name: string;
13194
+ /**
13195
+ * 标签对应的风险级别 (0-6)
13196
+ */
13197
+ score: number;
13198
+ /**
13199
+ * 标签所属的风险类型
13200
+ */
13201
+ risk_type: RiskType;
13202
+ }
13203
+ /**
13204
+ * 视频帧检测结果
13205
+ */
13206
+ interface FrameResult {
13207
+ /**
13208
+ * 帧索引号
13209
+ */
13210
+ frame_index: number;
13211
+ /**
13212
+ * 风险级别
13213
+ */
13214
+ nsfw_level: number;
13215
+ /**
13216
+ * 标签列表
13217
+ */
13218
+ label_items: LabelItem[];
13219
+ /**
13220
+ * 风险类型列表
13221
+ */
13222
+ risk_types: RiskType[];
13223
+ }
13224
+ /**
13225
+ * 内容安全检测请求参数
13226
+ *
13227
+ * 参数示例:
13228
+ * ```typescript
13229
+ * {
13230
+ * "uri": "https://example.com/image.jpg",
13231
+ * "risk_types": ["POLITY", "EROTIC", "VIOLENT", "CHILD"],
13232
+ * "detected_age": 0,
13233
+ * "is_video": 0
13234
+ * }
13235
+ * ```
13236
+ */
13237
+ interface ScanParams {
13238
+ /**
13239
+ * 图片或视频的URL地址
13240
+ * 注意:视频检测必须使用 uri,不支持 img_base64
13241
+ */
13242
+ uri?: string;
13243
+ /**
13244
+ * 图片的Base64编码字符串
13245
+ * 注意:视频检测不支持 base64 输入
13246
+ */
13247
+ img_base64?: string;
13248
+ /**
13249
+ * 需要检测的风险类型列表
13250
+ * 可选值:POLITY(政治敏感)、EROTIC(色情内容)、VIOLENT(暴力血腥)、CHILD(儿童安全)
13251
+ */
13252
+ risk_types: RiskType[];
13253
+ /**
13254
+ * 是否进行年龄检测,0或1
13255
+ * @default 0
13256
+ */
13257
+ detected_age: number;
13258
+ /**
13259
+ * 是否为视频文件,0或1
13260
+ * @default 0
13261
+ */
13262
+ is_video: number;
13263
+ }
13264
+ /**
13265
+ * 内容安全检测响应结果
13266
+ */
13267
+ interface ScanResponse {
13268
+ /**
13269
+ * 请求是否成功
13270
+ */
13271
+ ok: boolean;
13272
+ /**
13273
+ * 风险级别,范围 0-6
13274
+ */
13275
+ nsfw_level?: number;
13276
+ /**
13277
+ * 检测到的标签列表
13278
+ */
13279
+ label_items?: LabelItem[];
13280
+ /**
13281
+ * 实际检测到的风险类型列表
13282
+ */
13283
+ risk_types?: RiskType[];
13284
+ /**
13285
+ * 年龄组信息 [年龄段代码, 置信度]
13286
+ */
13287
+ age_group?: any[];
13288
+ /**
13289
+ * 错误信息
13290
+ */
13291
+ error?: string;
13292
+ /**
13293
+ * 视频时长(秒)
13294
+ */
13295
+ video_duration?: number;
13296
+ /**
13297
+ * 最高风险帧的索引号
13298
+ */
13299
+ max_risk_frame?: number;
13300
+ /**
13301
+ * 总抽帧数量
13302
+ */
13303
+ frame_count?: number;
13304
+ /**
13305
+ * 实际检测的帧数
13306
+ */
13307
+ frames_checked?: number;
13308
+ /**
13309
+ * 是否因检测到6级风险而提前退出
13310
+ */
13311
+ early_exit?: boolean;
13312
+ /**
13313
+ * 每一帧的详细检测结果
13314
+ */
13315
+ frame_results?: FrameResult[];
13316
+ }
13317
+ /**
13318
+ * scan - 内容安全检测
13319
+ *
13320
+ * 云服务内容安全检测接口,支持图片和视频的风险检测。
13321
+ *
13322
+ * Features:
13323
+ * - 支持图片和视频检测
13324
+ * - 多种风险类型检测(政治敏感、色情、暴力、儿童安全)
13325
+ * - 风险级别评分(0-6)
13326
+ * - 视频逐帧检测
13327
+ * - 可选年龄检测
13328
+ *
13329
+ * @example
13330
+ * ```typescript
13331
+ * import { initSeacloud, scan } from 'seacloud-sdk';
13332
+ *
13333
+ * initSeacloud('your-api-key');
13334
+ *
13335
+ * // 图片检测
13336
+ * const imageResult = await scan({
13337
+ * uri: "https://example.com/image.jpg",
13338
+ * risk_types: ["POLITY", "EROTIC", "VIOLENT", "CHILD"],
13339
+ * detected_age: 0,
13340
+ * is_video: 0
13341
+ * });
13342
+ *
13343
+ * console.log(imageResult.nsfw_level); // 风险级别 0-6
13344
+ * console.log(imageResult.label_items); // 检测到的标签
13345
+ *
13346
+ * // 视频检测
13347
+ * const videoResult = await scan({
13348
+ * uri: "https://example.com/video.mp4",
13349
+ * risk_types: ["EROTIC", "VIOLENT"],
13350
+ * detected_age: 0,
13351
+ * is_video: 1
13352
+ * });
13353
+ *
13354
+ * console.log(videoResult.frame_results); // 每一帧的检测结果
13355
+ * ```
13356
+ *
13357
+ * @param params 请求参数,详见 ScanParams 接口定义
13358
+ * @returns 检测结果,包含风险级别、标签等信息
13359
+ * @throws {SeacloudError} 当请求失败或参数不合法时抛出错误
13360
+ */
13361
+ declare function scan(params: ScanParams): Promise<ScanResponse>;
13362
+
13363
+ interface YouchuanDiffusionParams {
13364
+ /**
13365
+ * 生成图像的文本描述,必填,长度必须在1-8192个字符之间
13366
+ */
13367
+ text: string;
13368
+ /**
13369
+ * 回调URL,必须以http://或https://开头
13370
+ */
13371
+ callback?: string;
13372
+ }
13373
+ interface YouchuanDiffusionResource {
13374
+ type: string;
13375
+ url: string;
13376
+ size?: number;
13377
+ jobId?: string;
13378
+ [key: string]: any;
13379
+ }
13380
+ /**
13381
+ * youchuan_diffusion
13382
+ *
13383
+ * 通过悠船扩散模型API创建图像生成任务。
13384
+ *
13385
+ * API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_diffusion
13386
+ *
13387
+ * @example
13388
+ * ```typescript
13389
+ * import { initSeacloud, youchuanDiffusion } from 'seacloud-sdk';
13390
+ *
13391
+ * initSeacloud('your-api-key');
13392
+ *
13393
+ * const result = await youchuanDiffusion({
13394
+ * text: 'A beautiful sunset over mountains'
13395
+ * });
13396
+ *
13397
+ * console.log(result); // 返回生成的资源列表
13398
+ * ```
13399
+ *
13400
+ * @param params 请求参数,详见 YouchuanDiffusionParams 接口定义
13401
+ * @returns 生成的资源列表
13402
+ */
13403
+ declare function youchuanDiffusion(params: YouchuanDiffusionParams): Promise<YouchuanDiffusionResource[]>;
13404
+
13405
+ interface YouchuanEditParams {
13406
+ /**
13407
+ * 图像URL,必须是有效的HTTP/HTTPS URL,长度不超过1024字符
13408
+ */
13409
+ imgUrl: string;
13410
+ /**
13411
+ * 编辑提示词,长度必须在1-8192字符之间
13412
+ */
13413
+ editPrompt: string;
13414
+ /**
13415
+ * 回调URL,必须是有效的HTTP/HTTPS URL
13416
+ */
13417
+ callback?: string;
13418
+ }
13419
+ interface YouchuanEditResource {
13420
+ type: string;
13421
+ url: string;
13422
+ size?: number;
13423
+ jobId?: string;
13424
+ [key: string]: any;
13425
+ }
13426
+ /**
13427
+ * youchuan_edit
13428
+ *
13429
+ * Youchuan Edit Image Generator
13430
+ *
13431
+ * Image editing implementation for Youchuan Open Platform (悠船开放平台).
13432
+ *
13433
+ * API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_edit
13434
+ *
13435
+ * @example
13436
+ * ```typescript
13437
+ * import { initSeacloud, youchuanEdit } from 'seacloud-sdk';
13438
+ *
13439
+ * initSeacloud('your-api-key');
13440
+ *
13441
+ * const result = await youchuanEdit({
13442
+ * imgUrl: 'https://example.com/image.jpg',
13443
+ * editPrompt: 'Make the sky more blue'
13444
+ * });
13445
+ *
13446
+ * console.log(result); // 返回生成的资源列表
13447
+ * ```
13448
+ *
13449
+ * @param params 请求参数,详见 YouchuanEditParams 接口定义
13450
+ * @returns 生成的资源列表
13451
+ */
13452
+ declare function youchuanEdit(params: YouchuanEditParams): Promise<YouchuanEditResource[]>;
13453
+
13454
+ interface YouchuanEnhanceParams {
13455
+ /**
13456
+ * 任务ID
13457
+ */
13458
+ jobId: string;
13459
+ /**
13460
+ * 图像编号,必须是0、1、2或3
13461
+ * @values 0 | 1 | 2 | 3
13462
+ */
13463
+ imageNo: 0 | 1 | 2 | 3;
13464
+ /**
13465
+ * 回调URL,必须是有效的HTTP/HTTPS URL
13466
+ */
13467
+ callback?: string;
13468
+ }
13469
+ interface YouchuanEnhanceResource {
13470
+ type: string;
13471
+ url: string;
13472
+ size?: number;
13473
+ jobId?: string;
13474
+ [key: string]: any;
13475
+ }
13476
+ /**
13477
+ * youchuan_enhance
13478
+ *
13479
+ * Youchuan Enhance Image Generator
13480
+ *
13481
+ * Image enhancement implementation for Youchuan Open Platform (悠船开放平台).
13482
+ *
13483
+ * API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/paths/~1v1~1tob~1enhance/post
13484
+ *
13485
+ * @example
13486
+ * ```typescript
13487
+ * import { initSeacloud, youchuanEnhance } from 'seacloud-sdk';
13488
+ *
13489
+ * initSeacloud('your-api-key');
13490
+ *
13491
+ * const result = await youchuanEnhance({
13492
+ * jobId: 'your-job-id',
13493
+ * imageNo: 0
13494
+ * });
13495
+ *
13496
+ * console.log(result); // 返回生成的资源列表
13497
+ * ```
13498
+ *
13499
+ * @param params 请求参数,详见 YouchuanEnhanceParams 接口定义
13500
+ * @returns 生成的资源列表
13501
+ */
13502
+ declare function youchuanEnhance(params: YouchuanEnhanceParams): Promise<YouchuanEnhanceResource[]>;
13503
+
13504
+ interface YouchuanExtendVideoParams {
13505
+ /**
13506
+ * 作业ID,必填
13507
+ */
13508
+ jobId: string;
13509
+ /**
13510
+ * 视频编号,必填,范围0-3
13511
+ * @values 0 | 1 | 2 | 3
13512
+ */
13513
+ videoNo: 0 | 1 | 2 | 3;
13514
+ /**
13515
+ * 文本提示,必填,长度必须在1-8192个字符之间
13516
+ */
13517
+ text: string;
13518
+ /**
13519
+ * 文本提示(别名),必填,长度必须在1-8192个字符之间
13520
+ */
13521
+ prompt?: string;
13522
+ /**
13523
+ * 回调URL,必须以http://或https://开头
13524
+ */
13525
+ callback?: string;
13526
+ }
13527
+ interface YouchuanExtendVideoResource {
13528
+ type: string;
13529
+ url: string;
13530
+ size?: number;
13531
+ jobId?: string;
13532
+ [key: string]: any;
13533
+ }
13534
+ /**
13535
+ * youchuan_extend_video
13536
+ *
13537
+ * 通过悠船视频扩展API创建视频扩展任务。
13538
+ *
13539
+ * API Documentation: https://tob.youchuan.cn/openapi/apis/%E8%A7%86%E9%A2%91%E7%94%9F%E6%88%90/api_videoextend
13540
+ *
13541
+ * @example
13542
+ * ```typescript
13543
+ * import { initSeacloud, youchuanExtendVideo } from 'seacloud-sdk';
13544
+ *
13545
+ * initSeacloud('your-api-key');
13546
+ *
13547
+ * const result = await youchuanExtendVideo({
13548
+ * jobId: 'your-job-id',
13549
+ * videoNo: 0,
13550
+ * text: 'Extend the video with beautiful scenery'
13551
+ * });
13552
+ *
13553
+ * console.log(result); // 返回生成的资源列表
13554
+ * ```
13555
+ *
13556
+ * @param params 请求参数,详见 YouchuanExtendVideoParams 接口定义
13557
+ * @returns 生成的资源列表
13558
+ */
13559
+ declare function youchuanExtendVideo(params: YouchuanExtendVideoParams): Promise<YouchuanExtendVideoResource[]>;
13560
+
13561
+ interface YouchuanInpaintParams {
13562
+ /**
13563
+ * 任务ID
13564
+ */
13565
+ jobId: string;
13566
+ /**
13567
+ * 图像编号,必须是0、1、2或3
13568
+ * @values 0 | 1 | 2 | 3
13569
+ */
13570
+ imageNo: 0 | 1 | 2 | 3;
13571
+ /**
13572
+ * 修复区域坐标,格式为对象,包含区域信息
13573
+ */
13574
+ area?: Record<string, any>;
13575
+ /**
13576
+ * 遮罩图像URL
13577
+ */
13578
+ mask?: string;
13579
+ /**
13580
+ * 重混提示词,长度必须在1-8192字符之间
13581
+ */
13582
+ remixPrompt: string;
13583
+ /**
13584
+ * 回调URL,必须是有效的HTTP/HTTPS URL
13585
+ */
13586
+ callback?: string;
13587
+ }
13588
+ interface YouchuanInpaintResource {
13589
+ type: string;
13590
+ url: string;
13591
+ size?: number;
13592
+ jobId?: string;
13593
+ [key: string]: any;
13594
+ }
13595
+ /**
13596
+ * youchuan_inpaint
13597
+ *
13598
+ * Youchuan Inpaint Image Generator
13599
+ *
13600
+ * Image inpainting implementation for Youchuan Open Platform (悠船开放平台).
13601
+ *
13602
+ * API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_inpaint
13603
+ *
13604
+ * @example
13605
+ * ```typescript
13606
+ * import { initSeacloud, youchuanInpaint } from 'seacloud-sdk';
13607
+ *
13608
+ * initSeacloud('your-api-key');
13609
+ *
13610
+ * const result = await youchuanInpaint({
13611
+ * jobId: 'your-job-id',
13612
+ * imageNo: 0,
13613
+ * remixPrompt: 'Fill with blue sky'
13614
+ * });
13615
+ *
13616
+ * console.log(result); // 返回生成的资源列表
13617
+ * ```
13618
+ *
13619
+ * @param params 请求参数,详见 YouchuanInpaintParams 接口定义
13620
+ * @returns 生成的资源列表
13621
+ */
13622
+ declare function youchuanInpaint(params: YouchuanInpaintParams): Promise<YouchuanInpaintResource[]>;
13623
+
13624
+ interface YouchuanOutpaintParams {
13625
+ /**
13626
+ * 任务ID
13627
+ */
13628
+ jobId: string;
13629
+ /**
13630
+ * 图像编号,必须是0、1、2或3
13631
+ * @values 0 | 1 | 2 | 3
13632
+ */
13633
+ imageNo: 0 | 1 | 2 | 3;
13634
+ /**
13635
+ * 扩展参数,包含扩展方向和大小信息
13636
+ */
13637
+ extend?: Record<string, any>;
13638
+ /**
13639
+ * 重混提示词,长度必须在1-8192字符之间
13640
+ */
13641
+ remixPrompt?: string;
13642
+ /**
13643
+ * 回调URL,必须是有效的HTTP/HTTPS URL
13644
+ */
13645
+ callback?: string;
13646
+ }
13647
+ interface YouchuanOutpaintResource {
13648
+ type: string;
13649
+ url: string;
13650
+ size?: number;
13651
+ jobId?: string;
13652
+ [key: string]: any;
13653
+ }
13654
+ /**
13655
+ * youchuan_outpaint
13656
+ *
13657
+ * Youchuan Outpaint Image Generator
13658
+ *
13659
+ * Image outpainting (extension) implementation for Youchuan Open Platform (悠船开放平台).
13660
+ *
13661
+ * API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_outpaint
13662
+ *
13663
+ * @example
13664
+ * ```typescript
13665
+ * import { initSeacloud, youchuanOutpaint } from 'seacloud-sdk';
13666
+ *
13667
+ * initSeacloud('your-api-key');
13668
+ *
13669
+ * const result = await youchuanOutpaint({
13670
+ * jobId: 'your-job-id',
13671
+ * imageNo: 0
13672
+ * });
13673
+ *
13674
+ * console.log(result); // 返回生成的资源列表
13675
+ * ```
13676
+ *
13677
+ * @param params 请求参数,详见 YouchuanOutpaintParams 接口定义
13678
+ * @returns 生成的资源列表
13679
+ */
13680
+ declare function youchuanOutpaint(params: YouchuanOutpaintParams): Promise<YouchuanOutpaintResource[]>;
13681
+
13682
+ interface YouchuanPanParams {
13683
+ /**
13684
+ * 任务ID
13685
+ */
13686
+ jobId: string;
13687
+ /**
13688
+ * 图像编号,必须是0、1、2或3
13689
+ * @values 0 | 1 | 2 | 3
13690
+ */
13691
+ imageNo: 0 | 1 | 2 | 3;
13692
+ /**
13693
+ * 平移方向,支持: up, down, left, right
13694
+ * @values up | down | left | right
13695
+ */
13696
+ direction: 'up' | 'down' | 'left' | 'right';
13697
+ /**
13698
+ * 重混提示词,长度必须在1-8192字符之间
13699
+ */
13700
+ remixPrompt?: string;
13701
+ /**
13702
+ * 回调URL,必须是有效的HTTP/HTTPS URL
13703
+ */
13704
+ callback?: string;
13705
+ }
13706
+ interface YouchuanPanResource {
13707
+ type: string;
13708
+ url: string;
13709
+ size?: number;
13710
+ jobId?: string;
13711
+ [key: string]: any;
13712
+ }
13713
+ /**
13714
+ * youchuan_pan
13715
+ *
13716
+ * Youchuan Pan Image Generator
13717
+ *
13718
+ * Image panning (directional extension) implementation for Youchuan Open Platform (悠船开放平台).
13719
+ *
13720
+ * API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_pan
13721
+ *
13722
+ * @example
13723
+ * ```typescript
13724
+ * import { initSeacloud, youchuanPan } from 'seacloud-sdk';
13725
+ *
13726
+ * initSeacloud('your-api-key');
13727
+ *
13728
+ * const result = await youchuanPan({
13729
+ * jobId: 'your-job-id',
13730
+ * imageNo: 0,
13731
+ * direction: 'right'
13732
+ * });
13733
+ *
13734
+ * console.log(result); // 返回生成的资源列表
13735
+ * ```
13736
+ *
13737
+ * @param params 请求参数,详见 YouchuanPanParams 接口定义
13738
+ * @returns 生成的资源列表
13739
+ */
13740
+ declare function youchuanPan(params: YouchuanPanParams): Promise<YouchuanPanResource[]>;
13741
+
13742
+ interface YouchuanRemixParams {
13743
+ /**
13744
+ * 任务ID
13745
+ */
13746
+ jobId: string;
13747
+ /**
13748
+ * 图像编号,必须是0、1、2或3
13749
+ * @values 0 | 1 | 2 | 3
13750
+ */
13751
+ imageNo: 0 | 1 | 2 | 3;
13752
+ /**
13753
+ * 重混提示词,长度必须在1-8192字符之间
13754
+ */
13755
+ remixPrompt: string;
13756
+ /**
13757
+ * 调整模式,0(强烈调整)或1(细微调整)
13758
+ * @default 0
13759
+ * @values 0 | 1
13760
+ */
13761
+ mode?: 0 | 1;
13762
+ /**
13763
+ * 回调URL,必须是有效的HTTP/HTTPS URL
13764
+ */
13765
+ callback?: string;
13766
+ }
13767
+ interface YouchuanRemixResource {
13768
+ type: string;
13769
+ url: string;
13770
+ size?: number;
13771
+ jobId?: string;
13772
+ [key: string]: any;
13773
+ }
13774
+ /**
13775
+ * youchuan_remix
13776
+ *
13777
+ * Youchuan Remix Image Generator
13778
+ *
13779
+ * Image remixing implementation for Youchuan Open Platform (悠船开放平台).
13780
+ *
13781
+ * API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_remix
13782
+ *
13783
+ * @example
13784
+ * ```typescript
13785
+ * import { initSeacloud, youchuanRemix } from 'seacloud-sdk';
13786
+ *
13787
+ * initSeacloud('your-api-key');
13788
+ *
13789
+ * const result = await youchuanRemix({
13790
+ * jobId: 'your-job-id',
13791
+ * imageNo: 0,
13792
+ * remixPrompt: 'A beautiful landscape'
13793
+ * });
13794
+ *
13795
+ * console.log(result); // 返回生成的资源列表
13796
+ * ```
13797
+ *
13798
+ * @param params 请求参数,详见 YouchuanRemixParams 接口定义
13799
+ * @returns 生成的资源列表
13800
+ */
13801
+ declare function youchuanRemix(params: YouchuanRemixParams): Promise<YouchuanRemixResource[]>;
13802
+
13803
+ interface YouchuanRemoveBackgroundParams {
13804
+ /**
13805
+ * 图像URL,必须是有效的HTTP/HTTPS URL,长度不超过1024字符
13806
+ */
13807
+ imgUrl: string;
13808
+ /**
13809
+ * 回调URL,必须是有效的HTTP/HTTPS URL
13810
+ */
13811
+ callback?: string;
13812
+ }
13813
+ interface YouchuanRemoveBackgroundResource {
13814
+ type: string;
13815
+ url: string;
13816
+ size?: number;
13817
+ jobId?: string;
13818
+ [key: string]: any;
13819
+ }
13820
+ /**
13821
+ * youchuan_remove_background
13822
+ *
13823
+ * Youchuan Remove Background Image Generator
13824
+ *
13825
+ * Background removal implementation for Youchuan Open Platform (悠船开放平台).
13826
+ *
13827
+ * API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_removebackground
13828
+ *
13829
+ * @example
13830
+ * ```typescript
13831
+ * import { initSeacloud, youchuanRemoveBackground } from 'seacloud-sdk';
13832
+ *
13833
+ * initSeacloud('your-api-key');
13834
+ *
13835
+ * const result = await youchuanRemoveBackground({
13836
+ * imgUrl: 'https://example.com/image.jpg'
13837
+ * });
13838
+ *
13839
+ * console.log(result); // 返回生成的资源列表
13840
+ * ```
13841
+ *
13842
+ * @param params 请求参数,详见 YouchuanRemoveBackgroundParams 接口定义
13843
+ * @returns 生成的资源列表
13844
+ */
13845
+ declare function youchuanRemoveBackground(params: YouchuanRemoveBackgroundParams): Promise<YouchuanRemoveBackgroundResource[]>;
13846
+
13847
+ interface YouchuanRetextureParams {
13848
+ /**
13849
+ * 图像URL,必须是有效的HTTP/HTTPS URL,长度不超过1024字符
13850
+ */
13851
+ imgUrl: string;
13852
+ /**
13853
+ * 重混提示词,长度必须在1-8192字符之间
13854
+ */
13855
+ remixPrompt: string;
13856
+ /**
13857
+ * 回调URL,必须是有效的HTTP/HTTPS URL
13858
+ */
13859
+ callback?: string;
13860
+ }
13861
+ interface YouchuanRetextureResource {
13862
+ type: string;
13863
+ url: string;
13864
+ size?: number;
13865
+ jobId?: string;
13866
+ [key: string]: any;
13867
+ }
13868
+ /**
13869
+ * youchuan_retexture
13870
+ *
13871
+ * Youchuan Retexture Image Generator
13872
+ *
13873
+ * Image retexturing implementation for Youchuan Open Platform (悠船开放平台).
13874
+ *
13875
+ * API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_retexture
13876
+ *
13877
+ * @example
13878
+ * ```typescript
13879
+ * import { initSeacloud, youchuanRetexture } from 'seacloud-sdk';
13880
+ *
13881
+ * initSeacloud('your-api-key');
13882
+ *
13883
+ * const result = await youchuanRetexture({
13884
+ * imgUrl: 'https://example.com/image.jpg',
13885
+ * remixPrompt: 'Change texture to wood'
13886
+ * });
13887
+ *
13888
+ * console.log(result); // 返回生成的资源列表
13889
+ * ```
13890
+ *
13891
+ * @param params 请求参数,详见 YouchuanRetextureParams 接口定义
13892
+ * @returns 生成的资源列表
13893
+ */
13894
+ declare function youchuanRetexture(params: YouchuanRetextureParams): Promise<YouchuanRetextureResource[]>;
13895
+
13896
+ interface YouchuanUploadpaintParams {
13897
+ /**
13898
+ * 画布图像URL,必须是有效的HTTP/HTTPS URL,长度不超过1024字符
13899
+ */
13900
+ canvasUrl: string;
13901
+ /**
13902
+ * 遮罩图像URL,必须是有效的HTTP/HTTPS URL,长度不超过1024字符
13903
+ */
13904
+ maskUrl: string;
13905
+ /**
13906
+ * 重混提示词,长度必须在1-8192字符之间
13907
+ */
13908
+ remixPrompt: string;
13909
+ /**
13910
+ * 回调URL,必须是有效的HTTP/HTTPS URL
13911
+ */
13912
+ callback?: string;
13913
+ }
13914
+ interface YouchuanUploadpaintResource {
13915
+ type: string;
13916
+ url: string;
13917
+ size?: number;
13918
+ jobId?: string;
13919
+ [key: string]: any;
13920
+ }
13921
+ /**
13922
+ * youchuan_uploadpaint
13923
+ *
13924
+ * Youchuan Uploadpaint Image Generator
13925
+ *
13926
+ * Advanced image editing with canvas and mask support for Youchuan Open Platform (悠船开放平台).
13927
+ *
13928
+ * API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_uploadpaint
13929
+ *
13930
+ * @example
13931
+ * ```typescript
13932
+ * import { initSeacloud, youchuanUploadpaint } from 'seacloud-sdk';
13933
+ *
13934
+ * initSeacloud('your-api-key');
13935
+ *
13936
+ * const result = await youchuanUploadpaint({
13937
+ * canvasUrl: 'https://example.com/canvas.jpg',
13938
+ * maskUrl: 'https://example.com/mask.png',
13939
+ * remixPrompt: 'Fill with flowers'
13940
+ * });
13941
+ *
13942
+ * console.log(result); // 返回生成的资源列表
13943
+ * ```
13944
+ *
13945
+ * @param params 请求参数,详见 YouchuanUploadpaintParams 接口定义
13946
+ * @returns 生成的资源列表
13947
+ */
13948
+ declare function youchuanUploadpaint(params: YouchuanUploadpaintParams): Promise<YouchuanUploadpaintResource[]>;
13949
+
13950
+ interface YouchuanUpscaleParams {
13951
+ /**
13952
+ * 作业ID,必填
13953
+ */
13954
+ jobId: string;
13955
+ /**
13956
+ * 图像编号,必填,范围0-3
13957
+ * @values 0 | 1 | 2 | 3
13958
+ */
13959
+ imageNo: 0 | 1 | 2 | 3;
13960
+ /**
13961
+ * 放大类型,必填,0(标准)、1(创意)、2(v5_2x)、3(v5_4x)
13962
+ * @values 0 | 1 | 2 | 3
13963
+ */
13964
+ type: 0 | 1 | 2 | 3;
13965
+ /**
13966
+ * 回调URL,必须以http://或https://开头
13967
+ */
13968
+ callback?: string;
13969
+ }
13970
+ interface YouchuanUpscaleResource {
13971
+ type: string;
13972
+ url: string;
13973
+ size?: number;
13974
+ jobId?: string;
13975
+ [key: string]: any;
13976
+ }
13977
+ /**
13978
+ * youchuan_upscale
13979
+ *
13980
+ * 通过悠船图像放大API创建图像放大任务。
13981
+ *
13982
+ * API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_upscale
13983
+ *
13984
+ * @example
13985
+ * ```typescript
13986
+ * import { initSeacloud, youchuanUpscale } from 'seacloud-sdk';
13987
+ *
13988
+ * initSeacloud('your-api-key');
13989
+ *
13990
+ * const result = await youchuanUpscale({
13991
+ * jobId: 'your-job-id',
13992
+ * imageNo: 0,
13993
+ * type: 0
13994
+ * });
13995
+ *
13996
+ * console.log(result); // 返回生成的资源列表
13997
+ * ```
13998
+ *
13999
+ * @param params 请求参数,详见 YouchuanUpscaleParams 接口定义
14000
+ * @returns 生成的资源列表
14001
+ */
14002
+ declare function youchuanUpscale(params: YouchuanUpscaleParams): Promise<YouchuanUpscaleResource[]>;
14003
+
14004
+ interface YouchuanVariationParams {
14005
+ /**
14006
+ * 作业ID,必填
14007
+ */
14008
+ jobId: string;
14009
+ /**
14010
+ * 图像编号,必填,范围0-3
14011
+ * @values 0 | 1 | 2 | 3
14012
+ */
14013
+ imageNo: 0 | 1 | 2 | 3;
14014
+ /**
14015
+ * 变体类型,必填,可选值:subtle(细微变化)、strong(强烈变化)
14016
+ * @values subtle | strong
14017
+ */
14018
+ type: 'subtle' | 'strong';
14019
+ /**
14020
+ * 回调URL,必须以http://或https://开头
14021
+ */
14022
+ callback?: string;
14023
+ }
14024
+ interface YouchuanVariationResource {
14025
+ type: string;
14026
+ url: string;
14027
+ size?: number;
14028
+ jobId?: string;
14029
+ [key: string]: any;
14030
+ }
14031
+ /**
14032
+ * youchuan_variation
14033
+ *
14034
+ * 通过悠船图像变体API创建图像变体任务。
14035
+ *
14036
+ * API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_variation
14037
+ *
14038
+ * @example
14039
+ * ```typescript
14040
+ * import { initSeacloud, youchuanVariation } from 'seacloud-sdk';
14041
+ *
14042
+ * initSeacloud('your-api-key');
14043
+ *
14044
+ * const result = await youchuanVariation({
14045
+ * jobId: 'your-job-id',
14046
+ * imageNo: 0,
14047
+ * type: 'subtle'
14048
+ * });
14049
+ *
14050
+ * console.log(result); // 返回生成的资源列表
14051
+ * ```
14052
+ *
14053
+ * @param params 请求参数,详见 YouchuanVariationParams 接口定义
14054
+ * @returns 生成的资源列表
14055
+ */
14056
+ declare function youchuanVariation(params: YouchuanVariationParams): Promise<YouchuanVariationResource[]>;
14057
+
14058
+ interface YouchuanVideoDiffusionParams {
14059
+ /**
14060
+ * 视频生成的文本描述,必填,长度必须在1-8192个字符之间
14061
+ */
14062
+ text: string;
14063
+ /**
14064
+ * 回调URL,必须以http://或https://开头
14065
+ */
14066
+ callback?: string;
14067
+ }
14068
+ interface YouchuanVideoDiffusionResource {
14069
+ type: string;
14070
+ url: string;
14071
+ size?: number;
14072
+ jobId?: string;
14073
+ [key: string]: any;
14074
+ }
14075
+ /**
14076
+ * youchuan_video_diffusion
14077
+ *
14078
+ * 通过悠船视频扩散模型API创建视频生成任务。
14079
+ *
14080
+ * API Documentation: https://tob.youchuan.cn/openapi/apis/%E8%A7%86%E9%A2%91%E7%94%9F%E6%88%90/api_video_diffusion
14081
+ *
14082
+ * @example
14083
+ * ```typescript
14084
+ * import { initSeacloud, youchuanVideoDiffusion } from 'seacloud-sdk';
14085
+ *
14086
+ * initSeacloud('your-api-key');
14087
+ *
14088
+ * const result = await youchuanVideoDiffusion({
14089
+ * text: 'A beautiful sunset timelapse'
14090
+ * });
14091
+ *
14092
+ * console.log(result); // 返回生成的资源列表
14093
+ * ```
14094
+ *
14095
+ * @param params 请求参数,详见 YouchuanVideoDiffusionParams 接口定义
14096
+ * @returns 生成的资源列表
14097
+ */
14098
+ declare function youchuanVideoDiffusion(params: YouchuanVideoDiffusionParams): Promise<YouchuanVideoDiffusionResource[]>;
14099
+
14100
+ interface YouchuanVideoUpscaleParams {
14101
+ /**
14102
+ * 作业ID,必填
14103
+ */
14104
+ jobId: string;
14105
+ /**
14106
+ * 视频编号,必填,范围0-3
14107
+ * @values 0 | 1 | 2 | 3
14108
+ */
14109
+ videoNo: 0 | 1 | 2 | 3;
14110
+ /**
14111
+ * 回调URL,必须以http://或https://开头
14112
+ */
14113
+ callback?: string;
14114
+ }
14115
+ interface YouchuanVideoUpscaleResource {
14116
+ type: string;
14117
+ url: string;
14118
+ size?: number;
14119
+ jobId?: string;
14120
+ [key: string]: any;
14121
+ }
14122
+ /**
14123
+ * youchuan_video_upscale
14124
+ *
14125
+ * 通过悠船视频放大API创建视频放大任务。
14126
+ *
14127
+ * API Documentation: https://tob.youchuan.cn/openapi/apis/%E8%A7%86%E9%A2%91%E7%94%9F%E6%88%90/api_video_upscale
14128
+ *
14129
+ * @example
14130
+ * ```typescript
14131
+ * import { initSeacloud, youchuanVideoUpscale } from 'seacloud-sdk';
14132
+ *
14133
+ * initSeacloud('your-api-key');
14134
+ *
14135
+ * const result = await youchuanVideoUpscale({
14136
+ * jobId: 'your-job-id',
14137
+ * videoNo: 0
14138
+ * });
14139
+ *
14140
+ * console.log(result); // 返回生成的资源列表
14141
+ * ```
14142
+ *
14143
+ * @param params 请求参数,详见 YouchuanVideoUpscaleParams 接口定义
14144
+ * @returns 生成的资源列表
14145
+ */
14146
+ declare function youchuanVideoUpscale(params: YouchuanVideoUpscaleParams): Promise<YouchuanVideoUpscaleResource[]>;
14147
+
14148
+ export { type AgentArtifact, type AgentChatCompletionChoice, type AgentChatCompletionChunk, type AgentChatCompletionChunkChoice, type AgentChatCompletionDelta, type AgentChatCompletionResponse, type AgentChatCompletionsParams, type AgentContentFilterResult, type AgentMessage, type AgentMessageContent, type AgentMessageContentType, type AgentMessageRole, type AgentResponseMessage, type AgentTool, type AgentToolCall, type AgentToolFunction, type AgentUsage, type AlibabaAnimateAnyoneDetectParams, type AlibabaAnimateAnyoneDetectResource, type AlibabaAnimateAnyoneTemplateParams, type AlibabaAnimateAnyoneTemplateResource, type AlibabaAnimateAnyoneVideoParams, type AlibabaAnimateAnyoneVideoResource, type AlibabaQianwenImageParams, type AlibabaQianwenImageResource, type AlibabaWan22T2iFlashParams, type AlibabaWan22T2iFlashResource, type AlibabaWan22T2iPlusParams, type AlibabaWan22T2iPlusResource, type AlibabaWan25I2iPreviewParams, type AlibabaWan25I2iPreviewResource, type AlibabaWan25T2iPreviewParams, type AlibabaWan25T2iPreviewResource, type AlibabaWanx20T2iTurboParams, type AlibabaWanx20T2iTurboResource, type AlibabaWanx21I2vPlusParams, type AlibabaWanx21I2vPlusResource, type AlibabaWanx21I2vTurboParams, type AlibabaWanx21I2vTurboResource, type AlibabaWanx21T2iPlusParams, type AlibabaWanx21T2iPlusResource, type AlibabaWanx21T2iTurboParams, type AlibabaWanx21T2iTurboResource, type AlibabaWanx21T2vPlusParams, type AlibabaWanx21T2vPlusResource, type AlibabaWanx21T2vTurboParams, type AlibabaWanx21T2vTurboResource, type AlibabaWanx22I2vFlashParams, type AlibabaWanx22I2vFlashResource, type AlibabaWanx22I2vPlusParams, type AlibabaWanx22I2vPlusResource, type AlibabaWanx22T2vPlusParams, type AlibabaWanx22T2vPlusResource, type AlibabaWanx25I2vPreviewParams, type AlibabaWanx25I2vPreviewResource, type AlibabaWanx25T2vPreviewParams, type AlibabaWanx25T2vPreviewResource, type AlibabaWanx26I2vParams, type AlibabaWanx26I2vResource, type AlibabaWanx26ReferenceParams, type AlibabaWanx26ReferenceResource, type AlibabaWanx26T2vParams, type AlibabaWanx26T2vResource, type AppGenerationInput, type AppGenerationParams, type AppGenerationResource, type AppGenerationResult, type AppSearchParams, type AppSearchResponse, type BlackforestlabsFlux11ProParams, type BlackforestlabsFlux11ProResource, type BlackforestlabsFlux1ProParams, type BlackforestlabsFlux1ProResource, type BlackforestlabsFlux2FlexEditParams, type BlackforestlabsFlux2FlexEditResource, type BlackforestlabsFlux2FlexParams, type BlackforestlabsFlux2FlexResource, type BlackforestlabsFlux2ProEditParams, type BlackforestlabsFlux2ProEditResource, type BlackforestlabsFlux2ProParams, type BlackforestlabsFlux2ProResource, type BlackforestlabsFluxKontextMaxParams, type BlackforestlabsFluxKontextMaxResource, type BlackforestlabsFluxKontextProParams, type BlackforestlabsFluxKontextProResource, type ChatCompletionChoice, type ChatCompletionChunk, type ChatCompletionChunkChoice, type ChatCompletionChunkDelta, type ChatCompletionResponse, type ChatCompletionUsage, type ChatMessage, type ChatMessageRole, type ElevenlabsTtsGeneratorParams, type ElevenlabsTtsGeneratorResource, type FrameResult, type GoogleGemini3ProImageParams, type GoogleGemini3ProImageResource, type GoogleGeminiImageParams, type GoogleGeminiImageResource, type GoogleImagen4FastGenerateParams, type GoogleImagen4FastGenerateResource, type GoogleImagen4GenerateParams, type GoogleImagen4GenerateResource, type GoogleImagen4UltraGenerateParams, type GoogleImagen4UltraGenerateResource, type GoogleVeo20Generate001Params, type GoogleVeo20Generate001Resource, type GoogleVeo20GenerateExpParams, type GoogleVeo20GenerateExpResource, type GoogleVeo20GeneratePreviewParams, type GoogleVeo20GeneratePreviewResource, type GoogleVeo30FastGenerate001Params, type GoogleVeo30FastGenerate001Resource, type GoogleVeo30Generate001Params, type GoogleVeo30Generate001Resource, type GoogleVeo31Params, type GoogleVeo31Resource, type InitOptions, type KlingAvatarParams, type KlingAvatarResource, type KlingDurationExtensionParams, type KlingDurationExtensionResource, type KlingEffectsMultiV15Params, type KlingEffectsMultiV15Resource, type KlingEffectsMultiV16Params, type KlingEffectsMultiV16Resource, type KlingEffectsMultiV1Params, type KlingEffectsMultiV1Resource, type KlingEffectsSingleParams, type KlingEffectsSingleResource, type KlingLipsyncParams, type KlingLipsyncResource, type KlingOmniImageParams, type KlingOmniImageResource, type KlingOmniVideoParams, type KlingOmniVideoResource, type KlingV15I2vParams, type KlingV15I2vResource, type KlingV15Params, type KlingV15Resource, type KlingV16I2vParams, type KlingV16I2vResource, type KlingV16Params, type KlingV16Resource, type KlingV1I2vParams, type KlingV1I2vResource, type KlingV1Params, type KlingV1Resource, type KlingV21I2vParams, type KlingV21I2vResource, type KlingV21MasterI2vParams, type KlingV21MasterI2vResource, type KlingV21MasterParams, type KlingV21MasterResource, type KlingV25TurboI2vParams, type KlingV25TurboI2vResource, type KlingV25TurboParams, type KlingV25TurboResource, type KlingV26I2vParams, type KlingV26I2vResource, type KlingV26Params, type KlingV26Resource, type KlingV2MasterI2vParams, type KlingV2MasterI2vResource, type KlingV2MasterParams, type KlingV2MasterResource, type LabelItem, type LlmChatCompletionsParams, type MicrosoftGptImage15Params, type MicrosoftGptImage15Resource, type MicrosoftGptImage1Params, type MicrosoftGptImage1Resource, type MicrosoftSora2Params, type MicrosoftSora2Resource, type MinimaxHailuo02I2vParams, type MinimaxHailuo02I2vResource, type MinimaxHailuo02Params, type MinimaxHailuo02Resource, type MinimaxHailuo23FastI2vParams, type MinimaxHailuo23FastI2vResource, type MinimaxHailuo23I2vParams, type MinimaxHailuo23I2vResource, type MinimaxI2v01DirectorParams, type MinimaxI2v01DirectorResource, type MinimaxI2v01LiveParams, type MinimaxI2v01LiveResource, type MinimaxI2v01Params, type MinimaxI2v01Resource, type MinimaxT2aParams, type MinimaxT2aResource, type MinimaxT2v01DirectorParams, type MinimaxT2v01DirectorResource, type MinimaxT2v01Params, type MinimaxT2v01Resource, type PixverseV35I2vParams, type PixverseV35I2vResource, type PixverseV35T2vParams, type PixverseV35T2vResource, type PixverseV35TransitionParams, type PixverseV35TransitionResource, type PixverseV45I2vParams, type PixverseV45I2vResource, type PixverseV45T2vParams, type PixverseV45T2vResource, type PixverseV45TransitionParams, type PixverseV45TransitionResource, type PixverseV4I2vParams, type PixverseV4I2vResource, type PixverseV4T2vParams, type PixverseV4T2vResource, type PixverseV4TransitionParams, type PixverseV4TransitionResource, type PixverseV55I2vParams, type PixverseV55I2vResource, type PixverseV55T2vParams, type PixverseV55T2vResource, type PixverseV55TransitionParams, type PixverseV55TransitionResource, type PixverseV5I2vParams, type PixverseV5I2vResource, type PixverseV5T2vParams, type PixverseV5T2vResource, type PixverseV5TransitionParams, type PixverseV5TransitionResource, type PollingOptions, type RiskType, type RunwayGen3aTurboI2vParams, type RunwayGen3aTurboI2vResource, type ScanParams, type ScanResponse, SeacloudClient, type SeacloudConfig, SeacloudError, type TaskError, type TaskResult, type TaskStatus, type TemplateSpec, type TemplateSpecConstraint, type TemplateSpecInput, type TemplateSpecOutput, type TemplateSpecsParams, type TemplateSpecsResponse, type TencentHunyuan3dParams, type TencentHunyuan3dProParams, type TencentHunyuan3dProResource, type TencentHunyuan3dRapidParams, type TencentHunyuan3dRapidResource, type TencentHunyuan3dResource, type TencentImageCreation3Params, type TencentImageCreation3Resource, type TencentMpsSuperResolutionParams, type TencentMpsSuperResolutionResource, type Vidu15I2vParams, type Vidu15I2vResource, type Vidu15Params, type Vidu15Resource, type Vidu20I2vParams, type Vidu20I2vResource, type ViduQ1I2vParams, type ViduQ1I2vResource, type ViduQ1Params, type ViduQ1Resource, type ViduQ2I2vReferenceParams, type ViduQ2I2vReferenceResource, type ViduQ2Params, type ViduQ2ReferenceSubject, type ViduQ2Resource, type ViduTemplateParams, type ViduTemplateResource, type ViduTemplateV2Params, type ViduTemplateV2Resource, type VolcesJimeng30Params, type VolcesJimeng30Resource, type VolcesJimeng31Params, type VolcesJimeng31Resource, type VolcesJimengDreamActorM1Params, type VolcesJimengDreamActorM1Resource, type VolcesJimengI2i30Params, type VolcesJimengI2i30Resource, type VolcesRealmanAvatarImitatorV2vParams, type VolcesRealmanAvatarImitatorV2vResource, type VolcesRealmanAvatarPictureOmniV15Params, type VolcesRealmanAvatarPictureOmniV15Resource, type VolcesRealmanAvatarPictureOmniV2Params, type VolcesRealmanAvatarPictureOmniV2Resource, type VolcesSeed3dParams, type VolcesSeed3dResource, type VolcesSeedance30I2vParams, type VolcesSeedance30I2vResource, type VolcesSeedance30Params, type VolcesSeedance30ProParams, type VolcesSeedance30ProResource, type VolcesSeedance30Resource, type VolcesSeedanceProFastParams, type VolcesSeedanceProFastResource, type VolcesSeededit20Params, type VolcesSeededit20Resource, type VolcesSeededit30I2iParams, type VolcesSeededit30I2iResource, type VolcesSeededit30Params, type VolcesSeededit30Resource, type VolcesSeededit3dStyleParams, type VolcesSeededit3dStyleResource, type VolcesSeededitMultiIpParams, type VolcesSeededitMultiIpResource, type VolcesSeededitMultiStyleParams, type VolcesSeededitMultiStyleResource, type VolcesSeededitPortraitParams, type VolcesSeededitPortraitResource, type VolcesSeededitSingleIpParams, type VolcesSeededitSingleIpResource, type VolcesSeedream30Params, type VolcesSeedream30Resource, type VolcesSeedream40Params, type VolcesSeedream40Resource, type VolcesSeedream45I2iParams, type VolcesSeedream45I2iResource, type VolcesSeedream45MultiBlendParams, type VolcesSeedream45MultiBlendResource, type VolcesSeedream45Params, type VolcesSeedream45Resource, type VolcesSubjectDetectionParams, type VolcesSubjectDetectionResource, type VolcesSubjectRecognitionParams, type VolcesSubjectRecognitionResource, type YouchuanDiffusionParams, type YouchuanDiffusionResource, type YouchuanEditParams, type YouchuanEditResource, type YouchuanEnhanceParams, type YouchuanEnhanceResource, type YouchuanExtendVideoParams, type YouchuanExtendVideoResource, type YouchuanInpaintParams, type YouchuanInpaintResource, type YouchuanOutpaintParams, type YouchuanOutpaintResource, type YouchuanPanParams, type YouchuanPanResource, type YouchuanRemixParams, type YouchuanRemixResource, type YouchuanRemoveBackgroundParams, type YouchuanRemoveBackgroundResource, type YouchuanRetextureParams, type YouchuanRetextureResource, type YouchuanUploadpaintParams, type YouchuanUploadpaintResource, type YouchuanUpscaleParams, type YouchuanUpscaleResource, type YouchuanVariationParams, type YouchuanVariationResource, type YouchuanVideoDiffusionParams, type YouchuanVideoDiffusionResource, type YouchuanVideoUpscaleParams, type YouchuanVideoUpscaleResource, agentChatCompletions, alibabaAnimateAnyoneDetect, alibabaAnimateAnyoneTemplate, alibabaAnimateAnyoneVideo, alibabaQianwenImage, alibabaWan22T2iFlash, alibabaWan22T2iPlus, alibabaWan25I2iPreview, alibabaWan25T2iPreview, alibabaWanx20T2iTurbo, alibabaWanx21I2vPlus, alibabaWanx21I2vTurbo, alibabaWanx21T2iPlus, alibabaWanx21T2iTurbo, alibabaWanx21T2vPlus, alibabaWanx21T2vTurbo, alibabaWanx22I2vFlash, alibabaWanx22I2vPlus, alibabaWanx22T2vPlus, alibabaWanx25I2vPreview, alibabaWanx25T2vPreview, alibabaWanx26I2v, alibabaWanx26Reference, alibabaWanx26T2v, appGeneration, appSearch, blackforestlabsFlux11Pro, blackforestlabsFlux1Pro, blackforestlabsFlux2Flex, blackforestlabsFlux2FlexEdit, blackforestlabsFlux2Pro, blackforestlabsFlux2ProEdit, blackforestlabsFluxKontextMax, blackforestlabsFluxKontextPro, createAndWaitTask, createAudioMessage, createConfig, createImageMessage, createTextMessage, createTool, createVideoMessage, elevenlabsTtsGenerator, getClient, getDefaultPollingOptions, getTaskStatus, googleGemini3ProImage, googleGeminiImage, googleImagen4FastGenerate, googleImagen4Generate, googleImagen4UltraGenerate, googleVeo20Generate001, googleVeo20GenerateExp, googleVeo20GeneratePreview, googleVeo30FastGenerate001, googleVeo30Generate001, googleVeo31, initSeacloud, klingAvatar, klingDurationExtension, klingEffectsMultiV1, klingEffectsMultiV15, klingEffectsMultiV16, klingEffectsSingle, klingLipsync, klingOmniImage, klingOmniVideo, klingV1, klingV15, klingV15I2v, klingV16, klingV16I2v, klingV1I2v, klingV21I2v, klingV21Master, klingV21MasterI2v, klingV25Turbo, klingV25TurboI2v, klingV26, klingV26I2v, klingV2Master, klingV2MasterI2v, llmChatCompletions, microsoftGptImage1, microsoftGptImage15, microsoftSora2, minimaxHailuo02, minimaxHailuo02I2v, minimaxHailuo23FastI2v, minimaxHailuo23I2v, minimaxI2v01, minimaxI2v01Director, minimaxI2v01Live, minimaxT2a, minimaxT2v01, minimaxT2v01Director, pixverseV35I2v, pixverseV35T2v, pixverseV35Transition, pixverseV45I2v, pixverseV45T2v, pixverseV45Transition, pixverseV4I2v, pixverseV4T2v, pixverseV4Transition, pixverseV55I2v, pixverseV55T2v, pixverseV55Transition, pixverseV5I2v, pixverseV5T2v, pixverseV5Transition, pollTaskUntilComplete, resetConfig, runwayGen3aTurboI2v, scan, setDefaultPollingOptions, templateSpecs, tencentHunyuan3d, tencentHunyuan3dPro, tencentHunyuan3dRapid, tencentImageCreation3, tencentMpsSuperResolution, validateConfig, vidu15, vidu15I2v, vidu20I2v, viduQ1, viduQ1I2v, viduQ2, viduQ2I2vReference, viduTemplate, viduTemplateV2, volcesJimeng30, volcesJimeng31, volcesJimengDreamActorM1, volcesJimengI2i30, volcesRealmanAvatarImitatorV2v, volcesRealmanAvatarPictureOmniV15, volcesRealmanAvatarPictureOmniV2, volcesSeed3d, volcesSeedance30, volcesSeedance30I2v, volcesSeedance30Pro, volcesSeedanceProFast, volcesSeededit20, volcesSeededit30, volcesSeededit30I2i, volcesSeededit3dStyle, volcesSeededitMultiIp, volcesSeededitMultiStyle, volcesSeededitPortrait, volcesSeededitSingleIp, volcesSeedream30, volcesSeedream40, volcesSeedream45, volcesSeedream45I2i, volcesSeedream45MultiBlend, volcesSubjectDetection, volcesSubjectRecognition, youchuanDiffusion, youchuanEdit, youchuanEnhance, youchuanExtendVideo, youchuanInpaint, youchuanOutpaint, youchuanPan, youchuanRemix, youchuanRemoveBackground, youchuanRetexture, youchuanUploadpaint, youchuanUpscale, youchuanVariation, youchuanVideoDiffusion, youchuanVideoUpscale };