seacloud-sdk 0.10.3 → 0.11.0
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/cli.js +339 -30
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +996 -5
- package/dist/index.js +672 -31
- package/dist/index.js.map +1 -1
- package/package.json +19 -4
- package/README.md +0 -168
package/dist/index.d.ts
CHANGED
|
@@ -13,8 +13,6 @@ interface SeacloudConfig {
|
|
|
13
13
|
fetch?: typeof fetch;
|
|
14
14
|
/** 请求超时时间(毫秒),默认 30000 */
|
|
15
15
|
timeout?: number;
|
|
16
|
-
/** X-Project header 值,用于 Agent API 访问标识,默认为 'SeaVerse' */
|
|
17
|
-
xProject?: string;
|
|
18
16
|
}
|
|
19
17
|
/**
|
|
20
18
|
* 任务状态
|
|
@@ -117,7 +115,6 @@ interface InitOptions {
|
|
|
117
115
|
intervalMs?: number;
|
|
118
116
|
maxAttempts?: number;
|
|
119
117
|
timeout?: number;
|
|
120
|
-
xProject?: string;
|
|
121
118
|
}
|
|
122
119
|
/**
|
|
123
120
|
* 初始化 SDK(可选)
|
|
@@ -202,6 +199,34 @@ declare function pollTaskUntilComplete(client: SeacloudClient, endpoint: string,
|
|
|
202
199
|
*/
|
|
203
200
|
declare function createAndWaitTask(client: SeacloudClient, endpoint: string, body: Record<string, any>, options?: PollingOptions): Promise<TaskResult>;
|
|
204
201
|
|
|
202
|
+
/**
|
|
203
|
+
* SeaCloud SDK 核心模块
|
|
204
|
+
*/
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* 查询任务状态
|
|
208
|
+
*
|
|
209
|
+
* 用于查询已创建任务的当前状态和结果。
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* ```typescript
|
|
213
|
+
* import { initSeacloud, getTaskStatus } from 'seacloud-sdk';
|
|
214
|
+
*
|
|
215
|
+
* initSeacloud('your-api-key');
|
|
216
|
+
*
|
|
217
|
+
* const result = await getTaskStatus('/model/v1/generation', 'task-123');
|
|
218
|
+
* console.log(result.status); // 'pending' | 'processing' | 'completed' | 'failed'
|
|
219
|
+
* if (result.status === 'completed') {
|
|
220
|
+
* console.log(result.output); // 任务输出结果
|
|
221
|
+
* }
|
|
222
|
+
* ```
|
|
223
|
+
*
|
|
224
|
+
* @param endpoint API 端点路径(例如:/model/v1/generation)
|
|
225
|
+
* @param taskId 任务 ID
|
|
226
|
+
* @returns 任务结果,包含状态、输出等信息
|
|
227
|
+
*/
|
|
228
|
+
declare function getTaskStatus(endpoint: string, taskId: string): Promise<TaskResult>;
|
|
229
|
+
|
|
205
230
|
/**
|
|
206
231
|
* 参数示例:
|
|
207
232
|
* ```typescript
|
|
@@ -12091,7 +12116,7 @@ declare function llmChatCompletions(params: LlmChatCompletionsParams & {
|
|
|
12091
12116
|
* - For tool calls (image/video generation), streaming is RECOMMENDED
|
|
12092
12117
|
*
|
|
12093
12118
|
* 4. AUTHENTICATION:
|
|
12094
|
-
* - Requires 'X-Project' header (
|
|
12119
|
+
* - Requires 'X-Project: SeaArt' header (automatically added)
|
|
12095
12120
|
* - Uses Bearer token authentication
|
|
12096
12121
|
*
|
|
12097
12122
|
* 5. SESSION MANAGEMENT:
|
|
@@ -12994,4 +13019,970 @@ interface AppGenerationResult {
|
|
|
12994
13019
|
*/
|
|
12995
13020
|
declare function appGeneration(params: AppGenerationParams): Promise<AppGenerationResult>;
|
|
12996
13021
|
|
|
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 };
|
|
13022
|
+
/**
|
|
13023
|
+
* 风险类型枚举
|
|
13024
|
+
*/
|
|
13025
|
+
type RiskType = 'POLITY' | 'EROTIC' | 'VIOLENT' | 'CHILD';
|
|
13026
|
+
/**
|
|
13027
|
+
* 标签项
|
|
13028
|
+
*/
|
|
13029
|
+
interface LabelItem {
|
|
13030
|
+
/**
|
|
13031
|
+
* 标签名称,格式: 场景:类别:具体标签
|
|
13032
|
+
*/
|
|
13033
|
+
name: string;
|
|
13034
|
+
/**
|
|
13035
|
+
* 标签对应的风险级别 (0-6)
|
|
13036
|
+
*/
|
|
13037
|
+
score: number;
|
|
13038
|
+
/**
|
|
13039
|
+
* 标签所属的风险类型
|
|
13040
|
+
*/
|
|
13041
|
+
risk_type: RiskType;
|
|
13042
|
+
}
|
|
13043
|
+
/**
|
|
13044
|
+
* 视频帧检测结果
|
|
13045
|
+
*/
|
|
13046
|
+
interface FrameResult {
|
|
13047
|
+
/**
|
|
13048
|
+
* 帧索引号
|
|
13049
|
+
*/
|
|
13050
|
+
frame_index: number;
|
|
13051
|
+
/**
|
|
13052
|
+
* 风险级别
|
|
13053
|
+
*/
|
|
13054
|
+
nsfw_level: number;
|
|
13055
|
+
/**
|
|
13056
|
+
* 标签列表
|
|
13057
|
+
*/
|
|
13058
|
+
label_items: LabelItem[];
|
|
13059
|
+
/**
|
|
13060
|
+
* 风险类型列表
|
|
13061
|
+
*/
|
|
13062
|
+
risk_types: RiskType[];
|
|
13063
|
+
}
|
|
13064
|
+
/**
|
|
13065
|
+
* 内容安全检测请求参数
|
|
13066
|
+
*
|
|
13067
|
+
* 参数示例:
|
|
13068
|
+
* ```typescript
|
|
13069
|
+
* {
|
|
13070
|
+
* "uri": "https://example.com/image.jpg",
|
|
13071
|
+
* "risk_types": ["POLITY", "EROTIC", "VIOLENT", "CHILD"],
|
|
13072
|
+
* "detected_age": 0,
|
|
13073
|
+
* "is_video": 0
|
|
13074
|
+
* }
|
|
13075
|
+
* ```
|
|
13076
|
+
*/
|
|
13077
|
+
interface ScanParams {
|
|
13078
|
+
/**
|
|
13079
|
+
* 图片或视频的URL地址
|
|
13080
|
+
* 注意:视频检测必须使用 uri,不支持 img_base64
|
|
13081
|
+
*/
|
|
13082
|
+
uri?: string;
|
|
13083
|
+
/**
|
|
13084
|
+
* 图片的Base64编码字符串
|
|
13085
|
+
* 注意:视频检测不支持 base64 输入
|
|
13086
|
+
*/
|
|
13087
|
+
img_base64?: string;
|
|
13088
|
+
/**
|
|
13089
|
+
* 需要检测的风险类型列表
|
|
13090
|
+
* 可选值:POLITY(政治敏感)、EROTIC(色情内容)、VIOLENT(暴力血腥)、CHILD(儿童安全)
|
|
13091
|
+
*/
|
|
13092
|
+
risk_types: RiskType[];
|
|
13093
|
+
/**
|
|
13094
|
+
* 是否进行年龄检测,0或1
|
|
13095
|
+
* @default 0
|
|
13096
|
+
*/
|
|
13097
|
+
detected_age: number;
|
|
13098
|
+
/**
|
|
13099
|
+
* 是否为视频文件,0或1
|
|
13100
|
+
* @default 0
|
|
13101
|
+
*/
|
|
13102
|
+
is_video: number;
|
|
13103
|
+
}
|
|
13104
|
+
/**
|
|
13105
|
+
* 内容安全检测响应结果
|
|
13106
|
+
*/
|
|
13107
|
+
interface ScanResponse {
|
|
13108
|
+
/**
|
|
13109
|
+
* 请求是否成功
|
|
13110
|
+
*/
|
|
13111
|
+
ok: boolean;
|
|
13112
|
+
/**
|
|
13113
|
+
* 风险级别,范围 0-6
|
|
13114
|
+
*/
|
|
13115
|
+
nsfw_level?: number;
|
|
13116
|
+
/**
|
|
13117
|
+
* 检测到的标签列表
|
|
13118
|
+
*/
|
|
13119
|
+
label_items?: LabelItem[];
|
|
13120
|
+
/**
|
|
13121
|
+
* 实际检测到的风险类型列表
|
|
13122
|
+
*/
|
|
13123
|
+
risk_types?: RiskType[];
|
|
13124
|
+
/**
|
|
13125
|
+
* 年龄组信息 [年龄段代码, 置信度]
|
|
13126
|
+
*/
|
|
13127
|
+
age_group?: any[];
|
|
13128
|
+
/**
|
|
13129
|
+
* 错误信息
|
|
13130
|
+
*/
|
|
13131
|
+
error?: string;
|
|
13132
|
+
/**
|
|
13133
|
+
* 视频时长(秒)
|
|
13134
|
+
*/
|
|
13135
|
+
video_duration?: number;
|
|
13136
|
+
/**
|
|
13137
|
+
* 最高风险帧的索引号
|
|
13138
|
+
*/
|
|
13139
|
+
max_risk_frame?: number;
|
|
13140
|
+
/**
|
|
13141
|
+
* 总抽帧数量
|
|
13142
|
+
*/
|
|
13143
|
+
frame_count?: number;
|
|
13144
|
+
/**
|
|
13145
|
+
* 实际检测的帧数
|
|
13146
|
+
*/
|
|
13147
|
+
frames_checked?: number;
|
|
13148
|
+
/**
|
|
13149
|
+
* 是否因检测到6级风险而提前退出
|
|
13150
|
+
*/
|
|
13151
|
+
early_exit?: boolean;
|
|
13152
|
+
/**
|
|
13153
|
+
* 每一帧的详细检测结果
|
|
13154
|
+
*/
|
|
13155
|
+
frame_results?: FrameResult[];
|
|
13156
|
+
}
|
|
13157
|
+
/**
|
|
13158
|
+
* scan - 内容安全检测
|
|
13159
|
+
*
|
|
13160
|
+
* 云服务内容安全检测接口,支持图片和视频的风险检测。
|
|
13161
|
+
*
|
|
13162
|
+
* Features:
|
|
13163
|
+
* - 支持图片和视频检测
|
|
13164
|
+
* - 多种风险类型检测(政治敏感、色情、暴力、儿童安全)
|
|
13165
|
+
* - 风险级别评分(0-6)
|
|
13166
|
+
* - 视频逐帧检测
|
|
13167
|
+
* - 可选年龄检测
|
|
13168
|
+
*
|
|
13169
|
+
* @example
|
|
13170
|
+
* ```typescript
|
|
13171
|
+
* import { initSeacloud, scan } from 'seacloud-sdk';
|
|
13172
|
+
*
|
|
13173
|
+
* initSeacloud('your-api-key');
|
|
13174
|
+
*
|
|
13175
|
+
* // 图片检测
|
|
13176
|
+
* const imageResult = await scan({
|
|
13177
|
+
* uri: "https://example.com/image.jpg",
|
|
13178
|
+
* risk_types: ["POLITY", "EROTIC", "VIOLENT", "CHILD"],
|
|
13179
|
+
* detected_age: 0,
|
|
13180
|
+
* is_video: 0
|
|
13181
|
+
* });
|
|
13182
|
+
*
|
|
13183
|
+
* console.log(imageResult.nsfw_level); // 风险级别 0-6
|
|
13184
|
+
* console.log(imageResult.label_items); // 检测到的标签
|
|
13185
|
+
*
|
|
13186
|
+
* // 视频检测
|
|
13187
|
+
* const videoResult = await scan({
|
|
13188
|
+
* uri: "https://example.com/video.mp4",
|
|
13189
|
+
* risk_types: ["EROTIC", "VIOLENT"],
|
|
13190
|
+
* detected_age: 0,
|
|
13191
|
+
* is_video: 1
|
|
13192
|
+
* });
|
|
13193
|
+
*
|
|
13194
|
+
* console.log(videoResult.frame_results); // 每一帧的检测结果
|
|
13195
|
+
* ```
|
|
13196
|
+
*
|
|
13197
|
+
* @param params 请求参数,详见 ScanParams 接口定义
|
|
13198
|
+
* @returns 检测结果,包含风险级别、标签等信息
|
|
13199
|
+
* @throws {SeacloudError} 当请求失败或参数不合法时抛出错误
|
|
13200
|
+
*/
|
|
13201
|
+
declare function scan(params: ScanParams): Promise<ScanResponse>;
|
|
13202
|
+
|
|
13203
|
+
interface YouchuanDiffusionParams {
|
|
13204
|
+
/**
|
|
13205
|
+
* 生成图像的文本描述,必填,长度必须在1-8192个字符之间
|
|
13206
|
+
*/
|
|
13207
|
+
text: string;
|
|
13208
|
+
/**
|
|
13209
|
+
* 回调URL,必须以http://或https://开头
|
|
13210
|
+
*/
|
|
13211
|
+
callback?: string;
|
|
13212
|
+
}
|
|
13213
|
+
interface YouchuanDiffusionResource {
|
|
13214
|
+
type: string;
|
|
13215
|
+
url: string;
|
|
13216
|
+
size?: number;
|
|
13217
|
+
jobId?: string;
|
|
13218
|
+
[key: string]: any;
|
|
13219
|
+
}
|
|
13220
|
+
/**
|
|
13221
|
+
* youchuan_diffusion
|
|
13222
|
+
*
|
|
13223
|
+
* 通过悠船扩散模型API创建图像生成任务。
|
|
13224
|
+
*
|
|
13225
|
+
* API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_diffusion
|
|
13226
|
+
*
|
|
13227
|
+
* @example
|
|
13228
|
+
* ```typescript
|
|
13229
|
+
* import { initSeacloud, youchuanDiffusion } from 'seacloud-sdk';
|
|
13230
|
+
*
|
|
13231
|
+
* initSeacloud('your-api-key');
|
|
13232
|
+
*
|
|
13233
|
+
* const result = await youchuanDiffusion({
|
|
13234
|
+
* text: 'A beautiful sunset over mountains'
|
|
13235
|
+
* });
|
|
13236
|
+
*
|
|
13237
|
+
* console.log(result); // 返回生成的资源列表
|
|
13238
|
+
* ```
|
|
13239
|
+
*
|
|
13240
|
+
* @param params 请求参数,详见 YouchuanDiffusionParams 接口定义
|
|
13241
|
+
* @returns 生成的资源列表
|
|
13242
|
+
*/
|
|
13243
|
+
declare function youchuanDiffusion(params: YouchuanDiffusionParams): Promise<YouchuanDiffusionResource[]>;
|
|
13244
|
+
|
|
13245
|
+
interface YouchuanEditParams {
|
|
13246
|
+
/**
|
|
13247
|
+
* 图像URL,必须是有效的HTTP/HTTPS URL,长度不超过1024字符
|
|
13248
|
+
*/
|
|
13249
|
+
imgUrl: string;
|
|
13250
|
+
/**
|
|
13251
|
+
* 编辑提示词,长度必须在1-8192字符之间
|
|
13252
|
+
*/
|
|
13253
|
+
editPrompt: string;
|
|
13254
|
+
/**
|
|
13255
|
+
* 回调URL,必须是有效的HTTP/HTTPS URL
|
|
13256
|
+
*/
|
|
13257
|
+
callback?: string;
|
|
13258
|
+
}
|
|
13259
|
+
interface YouchuanEditResource {
|
|
13260
|
+
type: string;
|
|
13261
|
+
url: string;
|
|
13262
|
+
size?: number;
|
|
13263
|
+
jobId?: string;
|
|
13264
|
+
[key: string]: any;
|
|
13265
|
+
}
|
|
13266
|
+
/**
|
|
13267
|
+
* youchuan_edit
|
|
13268
|
+
*
|
|
13269
|
+
* Youchuan Edit Image Generator
|
|
13270
|
+
*
|
|
13271
|
+
* Image editing implementation for Youchuan Open Platform (悠船开放平台).
|
|
13272
|
+
*
|
|
13273
|
+
* API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_edit
|
|
13274
|
+
*
|
|
13275
|
+
* @example
|
|
13276
|
+
* ```typescript
|
|
13277
|
+
* import { initSeacloud, youchuanEdit } from 'seacloud-sdk';
|
|
13278
|
+
*
|
|
13279
|
+
* initSeacloud('your-api-key');
|
|
13280
|
+
*
|
|
13281
|
+
* const result = await youchuanEdit({
|
|
13282
|
+
* imgUrl: 'https://example.com/image.jpg',
|
|
13283
|
+
* editPrompt: 'Make the sky more blue'
|
|
13284
|
+
* });
|
|
13285
|
+
*
|
|
13286
|
+
* console.log(result); // 返回生成的资源列表
|
|
13287
|
+
* ```
|
|
13288
|
+
*
|
|
13289
|
+
* @param params 请求参数,详见 YouchuanEditParams 接口定义
|
|
13290
|
+
* @returns 生成的资源列表
|
|
13291
|
+
*/
|
|
13292
|
+
declare function youchuanEdit(params: YouchuanEditParams): Promise<YouchuanEditResource[]>;
|
|
13293
|
+
|
|
13294
|
+
interface YouchuanEnhanceParams {
|
|
13295
|
+
/**
|
|
13296
|
+
* 任务ID
|
|
13297
|
+
*/
|
|
13298
|
+
jobId: string;
|
|
13299
|
+
/**
|
|
13300
|
+
* 图像编号,必须是0、1、2或3
|
|
13301
|
+
* @values 0 | 1 | 2 | 3
|
|
13302
|
+
*/
|
|
13303
|
+
imageNo: 0 | 1 | 2 | 3;
|
|
13304
|
+
/**
|
|
13305
|
+
* 回调URL,必须是有效的HTTP/HTTPS URL
|
|
13306
|
+
*/
|
|
13307
|
+
callback?: string;
|
|
13308
|
+
}
|
|
13309
|
+
interface YouchuanEnhanceResource {
|
|
13310
|
+
type: string;
|
|
13311
|
+
url: string;
|
|
13312
|
+
size?: number;
|
|
13313
|
+
jobId?: string;
|
|
13314
|
+
[key: string]: any;
|
|
13315
|
+
}
|
|
13316
|
+
/**
|
|
13317
|
+
* youchuan_enhance
|
|
13318
|
+
*
|
|
13319
|
+
* Youchuan Enhance Image Generator
|
|
13320
|
+
*
|
|
13321
|
+
* Image enhancement implementation for Youchuan Open Platform (悠船开放平台).
|
|
13322
|
+
*
|
|
13323
|
+
* 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
|
|
13324
|
+
*
|
|
13325
|
+
* @example
|
|
13326
|
+
* ```typescript
|
|
13327
|
+
* import { initSeacloud, youchuanEnhance } from 'seacloud-sdk';
|
|
13328
|
+
*
|
|
13329
|
+
* initSeacloud('your-api-key');
|
|
13330
|
+
*
|
|
13331
|
+
* const result = await youchuanEnhance({
|
|
13332
|
+
* jobId: 'your-job-id',
|
|
13333
|
+
* imageNo: 0
|
|
13334
|
+
* });
|
|
13335
|
+
*
|
|
13336
|
+
* console.log(result); // 返回生成的资源列表
|
|
13337
|
+
* ```
|
|
13338
|
+
*
|
|
13339
|
+
* @param params 请求参数,详见 YouchuanEnhanceParams 接口定义
|
|
13340
|
+
* @returns 生成的资源列表
|
|
13341
|
+
*/
|
|
13342
|
+
declare function youchuanEnhance(params: YouchuanEnhanceParams): Promise<YouchuanEnhanceResource[]>;
|
|
13343
|
+
|
|
13344
|
+
interface YouchuanExtendVideoParams {
|
|
13345
|
+
/**
|
|
13346
|
+
* 作业ID,必填
|
|
13347
|
+
*/
|
|
13348
|
+
jobId: string;
|
|
13349
|
+
/**
|
|
13350
|
+
* 视频编号,必填,范围0-3
|
|
13351
|
+
* @values 0 | 1 | 2 | 3
|
|
13352
|
+
*/
|
|
13353
|
+
videoNo: 0 | 1 | 2 | 3;
|
|
13354
|
+
/**
|
|
13355
|
+
* 文本提示,必填,长度必须在1-8192个字符之间
|
|
13356
|
+
*/
|
|
13357
|
+
text: string;
|
|
13358
|
+
/**
|
|
13359
|
+
* 文本提示(别名),必填,长度必须在1-8192个字符之间
|
|
13360
|
+
*/
|
|
13361
|
+
prompt?: string;
|
|
13362
|
+
/**
|
|
13363
|
+
* 回调URL,必须以http://或https://开头
|
|
13364
|
+
*/
|
|
13365
|
+
callback?: string;
|
|
13366
|
+
}
|
|
13367
|
+
interface YouchuanExtendVideoResource {
|
|
13368
|
+
type: string;
|
|
13369
|
+
url: string;
|
|
13370
|
+
size?: number;
|
|
13371
|
+
jobId?: string;
|
|
13372
|
+
[key: string]: any;
|
|
13373
|
+
}
|
|
13374
|
+
/**
|
|
13375
|
+
* youchuan_extend_video
|
|
13376
|
+
*
|
|
13377
|
+
* 通过悠船视频扩展API创建视频扩展任务。
|
|
13378
|
+
*
|
|
13379
|
+
* API Documentation: https://tob.youchuan.cn/openapi/apis/%E8%A7%86%E9%A2%91%E7%94%9F%E6%88%90/api_videoextend
|
|
13380
|
+
*
|
|
13381
|
+
* @example
|
|
13382
|
+
* ```typescript
|
|
13383
|
+
* import { initSeacloud, youchuanExtendVideo } from 'seacloud-sdk';
|
|
13384
|
+
*
|
|
13385
|
+
* initSeacloud('your-api-key');
|
|
13386
|
+
*
|
|
13387
|
+
* const result = await youchuanExtendVideo({
|
|
13388
|
+
* jobId: 'your-job-id',
|
|
13389
|
+
* videoNo: 0,
|
|
13390
|
+
* text: 'Extend the video with beautiful scenery'
|
|
13391
|
+
* });
|
|
13392
|
+
*
|
|
13393
|
+
* console.log(result); // 返回生成的资源列表
|
|
13394
|
+
* ```
|
|
13395
|
+
*
|
|
13396
|
+
* @param params 请求参数,详见 YouchuanExtendVideoParams 接口定义
|
|
13397
|
+
* @returns 生成的资源列表
|
|
13398
|
+
*/
|
|
13399
|
+
declare function youchuanExtendVideo(params: YouchuanExtendVideoParams): Promise<YouchuanExtendVideoResource[]>;
|
|
13400
|
+
|
|
13401
|
+
interface YouchuanInpaintParams {
|
|
13402
|
+
/**
|
|
13403
|
+
* 任务ID
|
|
13404
|
+
*/
|
|
13405
|
+
jobId: string;
|
|
13406
|
+
/**
|
|
13407
|
+
* 图像编号,必须是0、1、2或3
|
|
13408
|
+
* @values 0 | 1 | 2 | 3
|
|
13409
|
+
*/
|
|
13410
|
+
imageNo: 0 | 1 | 2 | 3;
|
|
13411
|
+
/**
|
|
13412
|
+
* 修复区域坐标,格式为对象,包含区域信息
|
|
13413
|
+
*/
|
|
13414
|
+
area?: Record<string, any>;
|
|
13415
|
+
/**
|
|
13416
|
+
* 遮罩图像URL
|
|
13417
|
+
*/
|
|
13418
|
+
mask?: string;
|
|
13419
|
+
/**
|
|
13420
|
+
* 重混提示词,长度必须在1-8192字符之间
|
|
13421
|
+
*/
|
|
13422
|
+
remixPrompt: string;
|
|
13423
|
+
/**
|
|
13424
|
+
* 回调URL,必须是有效的HTTP/HTTPS URL
|
|
13425
|
+
*/
|
|
13426
|
+
callback?: string;
|
|
13427
|
+
}
|
|
13428
|
+
interface YouchuanInpaintResource {
|
|
13429
|
+
type: string;
|
|
13430
|
+
url: string;
|
|
13431
|
+
size?: number;
|
|
13432
|
+
jobId?: string;
|
|
13433
|
+
[key: string]: any;
|
|
13434
|
+
}
|
|
13435
|
+
/**
|
|
13436
|
+
* youchuan_inpaint
|
|
13437
|
+
*
|
|
13438
|
+
* Youchuan Inpaint Image Generator
|
|
13439
|
+
*
|
|
13440
|
+
* Image inpainting implementation for Youchuan Open Platform (悠船开放平台).
|
|
13441
|
+
*
|
|
13442
|
+
* API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_inpaint
|
|
13443
|
+
*
|
|
13444
|
+
* @example
|
|
13445
|
+
* ```typescript
|
|
13446
|
+
* import { initSeacloud, youchuanInpaint } from 'seacloud-sdk';
|
|
13447
|
+
*
|
|
13448
|
+
* initSeacloud('your-api-key');
|
|
13449
|
+
*
|
|
13450
|
+
* const result = await youchuanInpaint({
|
|
13451
|
+
* jobId: 'your-job-id',
|
|
13452
|
+
* imageNo: 0,
|
|
13453
|
+
* remixPrompt: 'Fill with blue sky'
|
|
13454
|
+
* });
|
|
13455
|
+
*
|
|
13456
|
+
* console.log(result); // 返回生成的资源列表
|
|
13457
|
+
* ```
|
|
13458
|
+
*
|
|
13459
|
+
* @param params 请求参数,详见 YouchuanInpaintParams 接口定义
|
|
13460
|
+
* @returns 生成的资源列表
|
|
13461
|
+
*/
|
|
13462
|
+
declare function youchuanInpaint(params: YouchuanInpaintParams): Promise<YouchuanInpaintResource[]>;
|
|
13463
|
+
|
|
13464
|
+
interface YouchuanOutpaintParams {
|
|
13465
|
+
/**
|
|
13466
|
+
* 任务ID
|
|
13467
|
+
*/
|
|
13468
|
+
jobId: string;
|
|
13469
|
+
/**
|
|
13470
|
+
* 图像编号,必须是0、1、2或3
|
|
13471
|
+
* @values 0 | 1 | 2 | 3
|
|
13472
|
+
*/
|
|
13473
|
+
imageNo: 0 | 1 | 2 | 3;
|
|
13474
|
+
/**
|
|
13475
|
+
* 扩展参数,包含扩展方向和大小信息
|
|
13476
|
+
*/
|
|
13477
|
+
extend?: Record<string, any>;
|
|
13478
|
+
/**
|
|
13479
|
+
* 重混提示词,长度必须在1-8192字符之间
|
|
13480
|
+
*/
|
|
13481
|
+
remixPrompt?: string;
|
|
13482
|
+
/**
|
|
13483
|
+
* 回调URL,必须是有效的HTTP/HTTPS URL
|
|
13484
|
+
*/
|
|
13485
|
+
callback?: string;
|
|
13486
|
+
}
|
|
13487
|
+
interface YouchuanOutpaintResource {
|
|
13488
|
+
type: string;
|
|
13489
|
+
url: string;
|
|
13490
|
+
size?: number;
|
|
13491
|
+
jobId?: string;
|
|
13492
|
+
[key: string]: any;
|
|
13493
|
+
}
|
|
13494
|
+
/**
|
|
13495
|
+
* youchuan_outpaint
|
|
13496
|
+
*
|
|
13497
|
+
* Youchuan Outpaint Image Generator
|
|
13498
|
+
*
|
|
13499
|
+
* Image outpainting (extension) implementation for Youchuan Open Platform (悠船开放平台).
|
|
13500
|
+
*
|
|
13501
|
+
* API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_outpaint
|
|
13502
|
+
*
|
|
13503
|
+
* @example
|
|
13504
|
+
* ```typescript
|
|
13505
|
+
* import { initSeacloud, youchuanOutpaint } from 'seacloud-sdk';
|
|
13506
|
+
*
|
|
13507
|
+
* initSeacloud('your-api-key');
|
|
13508
|
+
*
|
|
13509
|
+
* const result = await youchuanOutpaint({
|
|
13510
|
+
* jobId: 'your-job-id',
|
|
13511
|
+
* imageNo: 0
|
|
13512
|
+
* });
|
|
13513
|
+
*
|
|
13514
|
+
* console.log(result); // 返回生成的资源列表
|
|
13515
|
+
* ```
|
|
13516
|
+
*
|
|
13517
|
+
* @param params 请求参数,详见 YouchuanOutpaintParams 接口定义
|
|
13518
|
+
* @returns 生成的资源列表
|
|
13519
|
+
*/
|
|
13520
|
+
declare function youchuanOutpaint(params: YouchuanOutpaintParams): Promise<YouchuanOutpaintResource[]>;
|
|
13521
|
+
|
|
13522
|
+
interface YouchuanPanParams {
|
|
13523
|
+
/**
|
|
13524
|
+
* 任务ID
|
|
13525
|
+
*/
|
|
13526
|
+
jobId: string;
|
|
13527
|
+
/**
|
|
13528
|
+
* 图像编号,必须是0、1、2或3
|
|
13529
|
+
* @values 0 | 1 | 2 | 3
|
|
13530
|
+
*/
|
|
13531
|
+
imageNo: 0 | 1 | 2 | 3;
|
|
13532
|
+
/**
|
|
13533
|
+
* 平移方向,支持: up, down, left, right
|
|
13534
|
+
* @values up | down | left | right
|
|
13535
|
+
*/
|
|
13536
|
+
direction: 'up' | 'down' | 'left' | 'right';
|
|
13537
|
+
/**
|
|
13538
|
+
* 重混提示词,长度必须在1-8192字符之间
|
|
13539
|
+
*/
|
|
13540
|
+
remixPrompt?: string;
|
|
13541
|
+
/**
|
|
13542
|
+
* 回调URL,必须是有效的HTTP/HTTPS URL
|
|
13543
|
+
*/
|
|
13544
|
+
callback?: string;
|
|
13545
|
+
}
|
|
13546
|
+
interface YouchuanPanResource {
|
|
13547
|
+
type: string;
|
|
13548
|
+
url: string;
|
|
13549
|
+
size?: number;
|
|
13550
|
+
jobId?: string;
|
|
13551
|
+
[key: string]: any;
|
|
13552
|
+
}
|
|
13553
|
+
/**
|
|
13554
|
+
* youchuan_pan
|
|
13555
|
+
*
|
|
13556
|
+
* Youchuan Pan Image Generator
|
|
13557
|
+
*
|
|
13558
|
+
* Image panning (directional extension) implementation for Youchuan Open Platform (悠船开放平台).
|
|
13559
|
+
*
|
|
13560
|
+
* API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_pan
|
|
13561
|
+
*
|
|
13562
|
+
* @example
|
|
13563
|
+
* ```typescript
|
|
13564
|
+
* import { initSeacloud, youchuanPan } from 'seacloud-sdk';
|
|
13565
|
+
*
|
|
13566
|
+
* initSeacloud('your-api-key');
|
|
13567
|
+
*
|
|
13568
|
+
* const result = await youchuanPan({
|
|
13569
|
+
* jobId: 'your-job-id',
|
|
13570
|
+
* imageNo: 0,
|
|
13571
|
+
* direction: 'right'
|
|
13572
|
+
* });
|
|
13573
|
+
*
|
|
13574
|
+
* console.log(result); // 返回生成的资源列表
|
|
13575
|
+
* ```
|
|
13576
|
+
*
|
|
13577
|
+
* @param params 请求参数,详见 YouchuanPanParams 接口定义
|
|
13578
|
+
* @returns 生成的资源列表
|
|
13579
|
+
*/
|
|
13580
|
+
declare function youchuanPan(params: YouchuanPanParams): Promise<YouchuanPanResource[]>;
|
|
13581
|
+
|
|
13582
|
+
interface YouchuanRemixParams {
|
|
13583
|
+
/**
|
|
13584
|
+
* 任务ID
|
|
13585
|
+
*/
|
|
13586
|
+
jobId: string;
|
|
13587
|
+
/**
|
|
13588
|
+
* 图像编号,必须是0、1、2或3
|
|
13589
|
+
* @values 0 | 1 | 2 | 3
|
|
13590
|
+
*/
|
|
13591
|
+
imageNo: 0 | 1 | 2 | 3;
|
|
13592
|
+
/**
|
|
13593
|
+
* 重混提示词,长度必须在1-8192字符之间
|
|
13594
|
+
*/
|
|
13595
|
+
remixPrompt: string;
|
|
13596
|
+
/**
|
|
13597
|
+
* 调整模式,0(强烈调整)或1(细微调整)
|
|
13598
|
+
* @default 0
|
|
13599
|
+
* @values 0 | 1
|
|
13600
|
+
*/
|
|
13601
|
+
mode?: 0 | 1;
|
|
13602
|
+
/**
|
|
13603
|
+
* 回调URL,必须是有效的HTTP/HTTPS URL
|
|
13604
|
+
*/
|
|
13605
|
+
callback?: string;
|
|
13606
|
+
}
|
|
13607
|
+
interface YouchuanRemixResource {
|
|
13608
|
+
type: string;
|
|
13609
|
+
url: string;
|
|
13610
|
+
size?: number;
|
|
13611
|
+
jobId?: string;
|
|
13612
|
+
[key: string]: any;
|
|
13613
|
+
}
|
|
13614
|
+
/**
|
|
13615
|
+
* youchuan_remix
|
|
13616
|
+
*
|
|
13617
|
+
* Youchuan Remix Image Generator
|
|
13618
|
+
*
|
|
13619
|
+
* Image remixing implementation for Youchuan Open Platform (悠船开放平台).
|
|
13620
|
+
*
|
|
13621
|
+
* API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_remix
|
|
13622
|
+
*
|
|
13623
|
+
* @example
|
|
13624
|
+
* ```typescript
|
|
13625
|
+
* import { initSeacloud, youchuanRemix } from 'seacloud-sdk';
|
|
13626
|
+
*
|
|
13627
|
+
* initSeacloud('your-api-key');
|
|
13628
|
+
*
|
|
13629
|
+
* const result = await youchuanRemix({
|
|
13630
|
+
* jobId: 'your-job-id',
|
|
13631
|
+
* imageNo: 0,
|
|
13632
|
+
* remixPrompt: 'A beautiful landscape'
|
|
13633
|
+
* });
|
|
13634
|
+
*
|
|
13635
|
+
* console.log(result); // 返回生成的资源列表
|
|
13636
|
+
* ```
|
|
13637
|
+
*
|
|
13638
|
+
* @param params 请求参数,详见 YouchuanRemixParams 接口定义
|
|
13639
|
+
* @returns 生成的资源列表
|
|
13640
|
+
*/
|
|
13641
|
+
declare function youchuanRemix(params: YouchuanRemixParams): Promise<YouchuanRemixResource[]>;
|
|
13642
|
+
|
|
13643
|
+
interface YouchuanRemoveBackgroundParams {
|
|
13644
|
+
/**
|
|
13645
|
+
* 图像URL,必须是有效的HTTP/HTTPS URL,长度不超过1024字符
|
|
13646
|
+
*/
|
|
13647
|
+
imgUrl: string;
|
|
13648
|
+
/**
|
|
13649
|
+
* 回调URL,必须是有效的HTTP/HTTPS URL
|
|
13650
|
+
*/
|
|
13651
|
+
callback?: string;
|
|
13652
|
+
}
|
|
13653
|
+
interface YouchuanRemoveBackgroundResource {
|
|
13654
|
+
type: string;
|
|
13655
|
+
url: string;
|
|
13656
|
+
size?: number;
|
|
13657
|
+
jobId?: string;
|
|
13658
|
+
[key: string]: any;
|
|
13659
|
+
}
|
|
13660
|
+
/**
|
|
13661
|
+
* youchuan_remove_background
|
|
13662
|
+
*
|
|
13663
|
+
* Youchuan Remove Background Image Generator
|
|
13664
|
+
*
|
|
13665
|
+
* Background removal implementation for Youchuan Open Platform (悠船开放平台).
|
|
13666
|
+
*
|
|
13667
|
+
* API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_removebackground
|
|
13668
|
+
*
|
|
13669
|
+
* @example
|
|
13670
|
+
* ```typescript
|
|
13671
|
+
* import { initSeacloud, youchuanRemoveBackground } from 'seacloud-sdk';
|
|
13672
|
+
*
|
|
13673
|
+
* initSeacloud('your-api-key');
|
|
13674
|
+
*
|
|
13675
|
+
* const result = await youchuanRemoveBackground({
|
|
13676
|
+
* imgUrl: 'https://example.com/image.jpg'
|
|
13677
|
+
* });
|
|
13678
|
+
*
|
|
13679
|
+
* console.log(result); // 返回生成的资源列表
|
|
13680
|
+
* ```
|
|
13681
|
+
*
|
|
13682
|
+
* @param params 请求参数,详见 YouchuanRemoveBackgroundParams 接口定义
|
|
13683
|
+
* @returns 生成的资源列表
|
|
13684
|
+
*/
|
|
13685
|
+
declare function youchuanRemoveBackground(params: YouchuanRemoveBackgroundParams): Promise<YouchuanRemoveBackgroundResource[]>;
|
|
13686
|
+
|
|
13687
|
+
interface YouchuanRetextureParams {
|
|
13688
|
+
/**
|
|
13689
|
+
* 图像URL,必须是有效的HTTP/HTTPS URL,长度不超过1024字符
|
|
13690
|
+
*/
|
|
13691
|
+
imgUrl: string;
|
|
13692
|
+
/**
|
|
13693
|
+
* 重混提示词,长度必须在1-8192字符之间
|
|
13694
|
+
*/
|
|
13695
|
+
remixPrompt: string;
|
|
13696
|
+
/**
|
|
13697
|
+
* 回调URL,必须是有效的HTTP/HTTPS URL
|
|
13698
|
+
*/
|
|
13699
|
+
callback?: string;
|
|
13700
|
+
}
|
|
13701
|
+
interface YouchuanRetextureResource {
|
|
13702
|
+
type: string;
|
|
13703
|
+
url: string;
|
|
13704
|
+
size?: number;
|
|
13705
|
+
jobId?: string;
|
|
13706
|
+
[key: string]: any;
|
|
13707
|
+
}
|
|
13708
|
+
/**
|
|
13709
|
+
* youchuan_retexture
|
|
13710
|
+
*
|
|
13711
|
+
* Youchuan Retexture Image Generator
|
|
13712
|
+
*
|
|
13713
|
+
* Image retexturing implementation for Youchuan Open Platform (悠船开放平台).
|
|
13714
|
+
*
|
|
13715
|
+
* API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_retexture
|
|
13716
|
+
*
|
|
13717
|
+
* @example
|
|
13718
|
+
* ```typescript
|
|
13719
|
+
* import { initSeacloud, youchuanRetexture } from 'seacloud-sdk';
|
|
13720
|
+
*
|
|
13721
|
+
* initSeacloud('your-api-key');
|
|
13722
|
+
*
|
|
13723
|
+
* const result = await youchuanRetexture({
|
|
13724
|
+
* imgUrl: 'https://example.com/image.jpg',
|
|
13725
|
+
* remixPrompt: 'Change texture to wood'
|
|
13726
|
+
* });
|
|
13727
|
+
*
|
|
13728
|
+
* console.log(result); // 返回生成的资源列表
|
|
13729
|
+
* ```
|
|
13730
|
+
*
|
|
13731
|
+
* @param params 请求参数,详见 YouchuanRetextureParams 接口定义
|
|
13732
|
+
* @returns 生成的资源列表
|
|
13733
|
+
*/
|
|
13734
|
+
declare function youchuanRetexture(params: YouchuanRetextureParams): Promise<YouchuanRetextureResource[]>;
|
|
13735
|
+
|
|
13736
|
+
interface YouchuanUploadpaintParams {
|
|
13737
|
+
/**
|
|
13738
|
+
* 画布图像URL,必须是有效的HTTP/HTTPS URL,长度不超过1024字符
|
|
13739
|
+
*/
|
|
13740
|
+
canvasUrl: string;
|
|
13741
|
+
/**
|
|
13742
|
+
* 遮罩图像URL,必须是有效的HTTP/HTTPS URL,长度不超过1024字符
|
|
13743
|
+
*/
|
|
13744
|
+
maskUrl: string;
|
|
13745
|
+
/**
|
|
13746
|
+
* 重混提示词,长度必须在1-8192字符之间
|
|
13747
|
+
*/
|
|
13748
|
+
remixPrompt: string;
|
|
13749
|
+
/**
|
|
13750
|
+
* 回调URL,必须是有效的HTTP/HTTPS URL
|
|
13751
|
+
*/
|
|
13752
|
+
callback?: string;
|
|
13753
|
+
}
|
|
13754
|
+
interface YouchuanUploadpaintResource {
|
|
13755
|
+
type: string;
|
|
13756
|
+
url: string;
|
|
13757
|
+
size?: number;
|
|
13758
|
+
jobId?: string;
|
|
13759
|
+
[key: string]: any;
|
|
13760
|
+
}
|
|
13761
|
+
/**
|
|
13762
|
+
* youchuan_uploadpaint
|
|
13763
|
+
*
|
|
13764
|
+
* Youchuan Uploadpaint Image Generator
|
|
13765
|
+
*
|
|
13766
|
+
* Advanced image editing with canvas and mask support for Youchuan Open Platform (悠船开放平台).
|
|
13767
|
+
*
|
|
13768
|
+
* API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_uploadpaint
|
|
13769
|
+
*
|
|
13770
|
+
* @example
|
|
13771
|
+
* ```typescript
|
|
13772
|
+
* import { initSeacloud, youchuanUploadpaint } from 'seacloud-sdk';
|
|
13773
|
+
*
|
|
13774
|
+
* initSeacloud('your-api-key');
|
|
13775
|
+
*
|
|
13776
|
+
* const result = await youchuanUploadpaint({
|
|
13777
|
+
* canvasUrl: 'https://example.com/canvas.jpg',
|
|
13778
|
+
* maskUrl: 'https://example.com/mask.png',
|
|
13779
|
+
* remixPrompt: 'Fill with flowers'
|
|
13780
|
+
* });
|
|
13781
|
+
*
|
|
13782
|
+
* console.log(result); // 返回生成的资源列表
|
|
13783
|
+
* ```
|
|
13784
|
+
*
|
|
13785
|
+
* @param params 请求参数,详见 YouchuanUploadpaintParams 接口定义
|
|
13786
|
+
* @returns 生成的资源列表
|
|
13787
|
+
*/
|
|
13788
|
+
declare function youchuanUploadpaint(params: YouchuanUploadpaintParams): Promise<YouchuanUploadpaintResource[]>;
|
|
13789
|
+
|
|
13790
|
+
interface YouchuanUpscaleParams {
|
|
13791
|
+
/**
|
|
13792
|
+
* 作业ID,必填
|
|
13793
|
+
*/
|
|
13794
|
+
jobId: string;
|
|
13795
|
+
/**
|
|
13796
|
+
* 图像编号,必填,范围0-3
|
|
13797
|
+
* @values 0 | 1 | 2 | 3
|
|
13798
|
+
*/
|
|
13799
|
+
imageNo: 0 | 1 | 2 | 3;
|
|
13800
|
+
/**
|
|
13801
|
+
* 放大类型,必填,0(标准)、1(创意)、2(v5_2x)、3(v5_4x)
|
|
13802
|
+
* @values 0 | 1 | 2 | 3
|
|
13803
|
+
*/
|
|
13804
|
+
type: 0 | 1 | 2 | 3;
|
|
13805
|
+
/**
|
|
13806
|
+
* 回调URL,必须以http://或https://开头
|
|
13807
|
+
*/
|
|
13808
|
+
callback?: string;
|
|
13809
|
+
}
|
|
13810
|
+
interface YouchuanUpscaleResource {
|
|
13811
|
+
type: string;
|
|
13812
|
+
url: string;
|
|
13813
|
+
size?: number;
|
|
13814
|
+
jobId?: string;
|
|
13815
|
+
[key: string]: any;
|
|
13816
|
+
}
|
|
13817
|
+
/**
|
|
13818
|
+
* youchuan_upscale
|
|
13819
|
+
*
|
|
13820
|
+
* 通过悠船图像放大API创建图像放大任务。
|
|
13821
|
+
*
|
|
13822
|
+
* API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_upscale
|
|
13823
|
+
*
|
|
13824
|
+
* @example
|
|
13825
|
+
* ```typescript
|
|
13826
|
+
* import { initSeacloud, youchuanUpscale } from 'seacloud-sdk';
|
|
13827
|
+
*
|
|
13828
|
+
* initSeacloud('your-api-key');
|
|
13829
|
+
*
|
|
13830
|
+
* const result = await youchuanUpscale({
|
|
13831
|
+
* jobId: 'your-job-id',
|
|
13832
|
+
* imageNo: 0,
|
|
13833
|
+
* type: 0
|
|
13834
|
+
* });
|
|
13835
|
+
*
|
|
13836
|
+
* console.log(result); // 返回生成的资源列表
|
|
13837
|
+
* ```
|
|
13838
|
+
*
|
|
13839
|
+
* @param params 请求参数,详见 YouchuanUpscaleParams 接口定义
|
|
13840
|
+
* @returns 生成的资源列表
|
|
13841
|
+
*/
|
|
13842
|
+
declare function youchuanUpscale(params: YouchuanUpscaleParams): Promise<YouchuanUpscaleResource[]>;
|
|
13843
|
+
|
|
13844
|
+
interface YouchuanVariationParams {
|
|
13845
|
+
/**
|
|
13846
|
+
* 作业ID,必填
|
|
13847
|
+
*/
|
|
13848
|
+
jobId: string;
|
|
13849
|
+
/**
|
|
13850
|
+
* 图像编号,必填,范围0-3
|
|
13851
|
+
* @values 0 | 1 | 2 | 3
|
|
13852
|
+
*/
|
|
13853
|
+
imageNo: 0 | 1 | 2 | 3;
|
|
13854
|
+
/**
|
|
13855
|
+
* 变体类型,必填,可选值:subtle(细微变化)、strong(强烈变化)
|
|
13856
|
+
* @values subtle | strong
|
|
13857
|
+
*/
|
|
13858
|
+
type: 'subtle' | 'strong';
|
|
13859
|
+
/**
|
|
13860
|
+
* 回调URL,必须以http://或https://开头
|
|
13861
|
+
*/
|
|
13862
|
+
callback?: string;
|
|
13863
|
+
}
|
|
13864
|
+
interface YouchuanVariationResource {
|
|
13865
|
+
type: string;
|
|
13866
|
+
url: string;
|
|
13867
|
+
size?: number;
|
|
13868
|
+
jobId?: string;
|
|
13869
|
+
[key: string]: any;
|
|
13870
|
+
}
|
|
13871
|
+
/**
|
|
13872
|
+
* youchuan_variation
|
|
13873
|
+
*
|
|
13874
|
+
* 通过悠船图像变体API创建图像变体任务。
|
|
13875
|
+
*
|
|
13876
|
+
* API Documentation: https://tob.youchuan.cn/openapi/apis/%E5%9B%BE%E7%89%87%E7%94%9F%E6%88%90/api_variation
|
|
13877
|
+
*
|
|
13878
|
+
* @example
|
|
13879
|
+
* ```typescript
|
|
13880
|
+
* import { initSeacloud, youchuanVariation } from 'seacloud-sdk';
|
|
13881
|
+
*
|
|
13882
|
+
* initSeacloud('your-api-key');
|
|
13883
|
+
*
|
|
13884
|
+
* const result = await youchuanVariation({
|
|
13885
|
+
* jobId: 'your-job-id',
|
|
13886
|
+
* imageNo: 0,
|
|
13887
|
+
* type: 'subtle'
|
|
13888
|
+
* });
|
|
13889
|
+
*
|
|
13890
|
+
* console.log(result); // 返回生成的资源列表
|
|
13891
|
+
* ```
|
|
13892
|
+
*
|
|
13893
|
+
* @param params 请求参数,详见 YouchuanVariationParams 接口定义
|
|
13894
|
+
* @returns 生成的资源列表
|
|
13895
|
+
*/
|
|
13896
|
+
declare function youchuanVariation(params: YouchuanVariationParams): Promise<YouchuanVariationResource[]>;
|
|
13897
|
+
|
|
13898
|
+
interface YouchuanVideoDiffusionParams {
|
|
13899
|
+
/**
|
|
13900
|
+
* 视频生成的文本描述,必填,长度必须在1-8192个字符之间
|
|
13901
|
+
*/
|
|
13902
|
+
text: string;
|
|
13903
|
+
/**
|
|
13904
|
+
* 回调URL,必须以http://或https://开头
|
|
13905
|
+
*/
|
|
13906
|
+
callback?: string;
|
|
13907
|
+
}
|
|
13908
|
+
interface YouchuanVideoDiffusionResource {
|
|
13909
|
+
type: string;
|
|
13910
|
+
url: string;
|
|
13911
|
+
size?: number;
|
|
13912
|
+
jobId?: string;
|
|
13913
|
+
[key: string]: any;
|
|
13914
|
+
}
|
|
13915
|
+
/**
|
|
13916
|
+
* youchuan_video_diffusion
|
|
13917
|
+
*
|
|
13918
|
+
* 通过悠船视频扩散模型API创建视频生成任务。
|
|
13919
|
+
*
|
|
13920
|
+
* API Documentation: https://tob.youchuan.cn/openapi/apis/%E8%A7%86%E9%A2%91%E7%94%9F%E6%88%90/api_video_diffusion
|
|
13921
|
+
*
|
|
13922
|
+
* @example
|
|
13923
|
+
* ```typescript
|
|
13924
|
+
* import { initSeacloud, youchuanVideoDiffusion } from 'seacloud-sdk';
|
|
13925
|
+
*
|
|
13926
|
+
* initSeacloud('your-api-key');
|
|
13927
|
+
*
|
|
13928
|
+
* const result = await youchuanVideoDiffusion({
|
|
13929
|
+
* text: 'A beautiful sunset timelapse'
|
|
13930
|
+
* });
|
|
13931
|
+
*
|
|
13932
|
+
* console.log(result); // 返回生成的资源列表
|
|
13933
|
+
* ```
|
|
13934
|
+
*
|
|
13935
|
+
* @param params 请求参数,详见 YouchuanVideoDiffusionParams 接口定义
|
|
13936
|
+
* @returns 生成的资源列表
|
|
13937
|
+
*/
|
|
13938
|
+
declare function youchuanVideoDiffusion(params: YouchuanVideoDiffusionParams): Promise<YouchuanVideoDiffusionResource[]>;
|
|
13939
|
+
|
|
13940
|
+
interface YouchuanVideoUpscaleParams {
|
|
13941
|
+
/**
|
|
13942
|
+
* 作业ID,必填
|
|
13943
|
+
*/
|
|
13944
|
+
jobId: string;
|
|
13945
|
+
/**
|
|
13946
|
+
* 视频编号,必填,范围0-3
|
|
13947
|
+
* @values 0 | 1 | 2 | 3
|
|
13948
|
+
*/
|
|
13949
|
+
videoNo: 0 | 1 | 2 | 3;
|
|
13950
|
+
/**
|
|
13951
|
+
* 回调URL,必须以http://或https://开头
|
|
13952
|
+
*/
|
|
13953
|
+
callback?: string;
|
|
13954
|
+
}
|
|
13955
|
+
interface YouchuanVideoUpscaleResource {
|
|
13956
|
+
type: string;
|
|
13957
|
+
url: string;
|
|
13958
|
+
size?: number;
|
|
13959
|
+
jobId?: string;
|
|
13960
|
+
[key: string]: any;
|
|
13961
|
+
}
|
|
13962
|
+
/**
|
|
13963
|
+
* youchuan_video_upscale
|
|
13964
|
+
*
|
|
13965
|
+
* 通过悠船视频放大API创建视频放大任务。
|
|
13966
|
+
*
|
|
13967
|
+
* API Documentation: https://tob.youchuan.cn/openapi/apis/%E8%A7%86%E9%A2%91%E7%94%9F%E6%88%90/api_video_upscale
|
|
13968
|
+
*
|
|
13969
|
+
* @example
|
|
13970
|
+
* ```typescript
|
|
13971
|
+
* import { initSeacloud, youchuanVideoUpscale } from 'seacloud-sdk';
|
|
13972
|
+
*
|
|
13973
|
+
* initSeacloud('your-api-key');
|
|
13974
|
+
*
|
|
13975
|
+
* const result = await youchuanVideoUpscale({
|
|
13976
|
+
* jobId: 'your-job-id',
|
|
13977
|
+
* videoNo: 0
|
|
13978
|
+
* });
|
|
13979
|
+
*
|
|
13980
|
+
* console.log(result); // 返回生成的资源列表
|
|
13981
|
+
* ```
|
|
13982
|
+
*
|
|
13983
|
+
* @param params 请求参数,详见 YouchuanVideoUpscaleParams 接口定义
|
|
13984
|
+
* @returns 生成的资源列表
|
|
13985
|
+
*/
|
|
13986
|
+
declare function youchuanVideoUpscale(params: YouchuanVideoUpscaleParams): Promise<YouchuanVideoUpscaleResource[]>;
|
|
13987
|
+
|
|
13988
|
+
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 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, 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, 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 };
|