@antchain/antdigital-creative 1.0.7 → 1.1.1

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/src/client.ts CHANGED
@@ -180,39 +180,95 @@ export class Config extends $tea.Model {
180
180
  }
181
181
  }
182
182
 
183
- // 附加信息
184
- export class ExtraInfo extends $tea.Model {
185
- // 原厂任务ID
183
+ // 只计一次的请求级费用明细
184
+ export class RequestItems extends $tea.Model {
185
+ // 规则编码
186
186
  /**
187
187
  * @example
188
- * xxx-xxx-xxx
188
+ * 规则编码
189
189
  */
190
- originalTaskId?: string;
191
- // 原厂视频输出URL
190
+ priceRuleCode?: string;
191
+ // 收费项编码
192
192
  /**
193
193
  * @example
194
- * https://xxx
194
+ * 收费项编码
195
195
  */
196
- originalVideoUrl?: string;
197
- // 原厂响应体快照
196
+ chargeItemCode?: string;
197
+ // 计量指标类型
198
198
  /**
199
199
  * @example
200
- * "{"task_id":"csg-xxx-xx"...}"
200
+ * 计量指标类型
201
201
  */
202
- originalResponseSnapshot?: string;
202
+ metricType?: string;
203
+ // 原始计量数量
204
+ /**
205
+ * @example
206
+ * 原始计量数量
207
+ */
208
+ quantity?: string;
209
+ // 免费额度
210
+ /**
211
+ * @example
212
+ * 免费额度
213
+ */
214
+ freeQuota?: string;
215
+ // 计费数量(扣除免费额度后的值)
216
+ /**
217
+ * @example
218
+ * 计费数量(扣除免费额度后的值)
219
+ */
220
+ billableQuantity?: string;
221
+ // 计费单位大小
222
+ /**
223
+ * @example
224
+ * 计费单位大小
225
+ */
226
+ unitSize?: string;
227
+ // 单价
228
+ /**
229
+ * @example
230
+ * 单价
231
+ */
232
+ unitPrice?: string;
233
+ // 币种
234
+ /**
235
+ * @example
236
+ * 币种
237
+ */
238
+ currency?: string;
239
+ // 单项金额
240
+ /**
241
+ * @example
242
+ * 单项金额
243
+ */
244
+ amount?: string;
203
245
  static names(): { [key: string]: string } {
204
246
  return {
205
- originalTaskId: 'original_task_id',
206
- originalVideoUrl: 'original_video_url',
207
- originalResponseSnapshot: 'original_response_snapshot',
247
+ priceRuleCode: 'price_rule_code',
248
+ chargeItemCode: 'charge_item_code',
249
+ metricType: 'metric_type',
250
+ quantity: 'quantity',
251
+ freeQuota: 'free_quota',
252
+ billableQuantity: 'billable_quantity',
253
+ unitSize: 'unit_size',
254
+ unitPrice: 'unit_price',
255
+ currency: 'currency',
256
+ amount: 'amount',
208
257
  };
209
258
  }
210
259
 
211
260
  static types(): { [key: string]: any } {
212
261
  return {
213
- originalTaskId: 'string',
214
- originalVideoUrl: 'string',
215
- originalResponseSnapshot: 'string',
262
+ priceRuleCode: 'string',
263
+ chargeItemCode: 'string',
264
+ metricType: 'string',
265
+ quantity: 'string',
266
+ freeQuota: 'string',
267
+ billableQuantity: 'string',
268
+ unitSize: 'string',
269
+ unitPrice: 'string',
270
+ currency: 'string',
271
+ amount: 'string',
216
272
  };
217
273
  }
218
274
 
@@ -221,55 +277,101 @@ export class ExtraInfo extends $tea.Model {
221
277
  }
222
278
  }
223
279
 
224
- // 用量信息
225
- export class Usage extends $tea.Model {
226
- // 分辨率
280
+ // content 内 type 为 image_url、audio_url、video_url 所需要的 url
281
+ export class ContentUrl extends $tea.Model {
282
+ // url
227
283
  /**
228
284
  * @example
229
- * 720p,1080p
285
+ * www.test.com/123
230
286
  */
231
- resolution?: string;
232
- // 视频时长(单位:秒)
287
+ url?: string;
288
+ static names(): { [key: string]: string } {
289
+ return {
290
+ url: 'url',
291
+ };
292
+ }
293
+
294
+ static types(): { [key: string]: any } {
295
+ return {
296
+ url: 'string',
297
+ };
298
+ }
299
+
300
+ constructor(map?: { [key: string]: any }) {
301
+ super(map);
302
+ }
303
+ }
304
+
305
+ // 生图任务, 图片 URL 列表
306
+ export class ImageUrlsList extends $tea.Model {
307
+ // 图片 URL 列表
308
+ imageUrls?: string[];
309
+ static names(): { [key: string]: string } {
310
+ return {
311
+ imageUrls: 'image_urls',
312
+ };
313
+ }
314
+
315
+ static types(): { [key: string]: any } {
316
+ return {
317
+ imageUrls: { 'type': 'array', 'itemType': 'string' },
318
+ };
319
+ }
320
+
321
+ constructor(map?: { [key: string]: any }) {
322
+ super(map);
323
+ }
324
+ }
325
+
326
+ // 消耗
327
+ export class ChatUsage extends $tea.Model {
328
+ // 输入 token 数
233
329
  /**
234
330
  * @example
235
- * 15
331
+ * 121212
236
332
  */
237
- duration?: number;
238
- // 视频比例
333
+ promptTokens?: string;
334
+ // 输出 token 数
239
335
  /**
240
336
  * @example
241
- * 16:9
337
+ * 1111
242
338
  */
243
- ratio?: string;
244
- // 消耗 token 数
339
+ completionTokens?: string;
340
+ // 总 token 数
245
341
  /**
246
342
  * @example
247
- * 10800
343
+ * 121212
248
344
  */
249
- completionTokens?: number;
250
- // 消耗credit数
345
+ totalTokens?: string;
346
+ // 本次调用实际消耗金额
251
347
  /**
252
348
  * @example
253
- * 7
349
+ * 11.01
254
350
  */
255
- completionCredits?: number;
351
+ originalPrice?: string;
352
+ // 币种
353
+ /**
354
+ * @example
355
+ * CNY
356
+ */
357
+ currency?: string;
256
358
  static names(): { [key: string]: string } {
257
359
  return {
258
- resolution: 'resolution',
259
- duration: 'duration',
260
- ratio: 'ratio',
360
+ promptTokens: 'prompt_tokens',
261
361
  completionTokens: 'completion_tokens',
262
- completionCredits: 'completion_credits',
362
+ totalTokens: 'total_tokens',
363
+ originalPrice: 'original_price',
364
+ currency: 'currency',
263
365
  };
264
366
  }
265
367
 
266
368
  static types(): { [key: string]: any } {
267
369
  return {
268
- resolution: 'string',
269
- duration: 'number',
270
- ratio: 'string',
271
- completionTokens: 'number',
272
- completionCredits: 'number',
370
+ promptTokens: 'string',
371
+ completionTokens: 'string',
372
+ totalTokens: 'string',
373
+ originalPrice: 'string',
374
+ currency: 'string',
273
375
  };
274
376
  }
275
377
 
@@ -278,41 +380,1589 @@ export class Usage extends $tea.Model {
278
380
  }
279
381
  }
280
382
 
281
- export class PushVideogenerationRequest extends $tea.Model {
282
- // OAuth模式下的授权token
283
- authToken?: string;
284
- productInstanceId?: string;
285
- // 模型标识,如 :doubao-seedance-2-0-260128
286
- model: string;
287
- // 文本提示词
288
- prompt: string;
289
- // 图生视频参考图片 URL
290
- imageUrl?: string[];
291
- // 视频参考/续写时传入视频 URL
292
- videoUrl?: string[];
293
- // 参考音频URL列表
294
- audioUrl?: string[];
295
- // 比例
296
- ratio?: string;
383
+ // 各输出单元的试算明细
384
+ export class UnitEstimates extends $tea.Model {
385
+ // 从 0 开始,与请求的 units[] 顺序一致
386
+ /**
387
+ * @example
388
+ * 1
389
+ */
390
+ unitIndex?: number;
391
+ // 当前单元是否命中
392
+ /**
393
+ * @example
394
+ * true
395
+ */
396
+ matched?: boolean;
397
+ // 当前单元是否命中兜底规则
398
+ /**
399
+ * @example
400
+ * true
401
+ */
402
+ fallback?: boolean;
403
+ // 规则编码
404
+ /**
405
+ * @example
406
+ * 规则编码
407
+ */
408
+ priceRuleCode?: string;
409
+ // 规则版本
410
+ /**
411
+ * @example
412
+ * 1
413
+ */
414
+ matchedRuleVersion?: number;
415
+ // 规则名称
416
+ /**
417
+ * @example
418
+ * 规则名称
419
+ */
420
+ ruleName?: string;
421
+ // 规则优先级
422
+ /**
423
+ * @example
424
+ * 1
425
+ */
426
+ priority?: number;
427
+ // 费用明细
428
+ /**
429
+ * @example
430
+ * undefined
431
+ */
432
+ items?: RequestItems[];
433
+ // 当前单元金额
434
+ /**
435
+ * @example
436
+ * 当前单元金额
437
+ */
438
+ amount?: string;
439
+ // 未命中或部分命中时的提示
440
+ /**
441
+ * @example
442
+ * 未命中或部分命中时的提示
443
+ */
444
+ message?: string;
445
+ static names(): { [key: string]: string } {
446
+ return {
447
+ unitIndex: 'unit_index',
448
+ matched: 'matched',
449
+ fallback: 'fallback',
450
+ priceRuleCode: 'price_rule_code',
451
+ matchedRuleVersion: 'matched_rule_version',
452
+ ruleName: 'rule_name',
453
+ priority: 'priority',
454
+ items: 'items',
455
+ amount: 'amount',
456
+ message: 'message',
457
+ };
458
+ }
459
+
460
+ static types(): { [key: string]: any } {
461
+ return {
462
+ unitIndex: 'number',
463
+ matched: 'boolean',
464
+ fallback: 'boolean',
465
+ priceRuleCode: 'string',
466
+ matchedRuleVersion: 'number',
467
+ ruleName: 'string',
468
+ priority: 'number',
469
+ items: { 'type': 'array', 'itemType': RequestItems },
470
+ amount: 'string',
471
+ message: 'string',
472
+ };
473
+ }
474
+
475
+ constructor(map?: { [key: string]: any }) {
476
+ super(map);
477
+ }
478
+ }
479
+
480
+ // 音频消耗
481
+ export class AudioUsage extends $tea.Model {
482
+ // 用量类型
483
+ /**
484
+ * @example
485
+ * AUDIO_GENERATION
486
+ */
487
+ usageType?: string;
488
+ // 计量单位
489
+ /**
490
+ * @example
491
+ * SECOND
492
+ */
493
+ unit?: string;
494
+ // 音频时长(秒)
495
+ /**
496
+ * @example
497
+ * 10.6
498
+ */
499
+ durationSeconds?: string;
500
+ // 音频数量
501
+ /**
502
+ * @example
503
+ * 1
504
+ */
505
+ count?: number;
506
+ // 本次音频生成的实际消耗金额(必返)
507
+ /**
508
+ * @example
509
+ * 10.11
510
+ */
511
+ originalPrice?: string;
512
+ // 币种
513
+ /**
514
+ * @example
515
+ * CNY
516
+ */
517
+ currency?: string;
518
+ static names(): { [key: string]: string } {
519
+ return {
520
+ usageType: 'usage_type',
521
+ unit: 'unit',
522
+ durationSeconds: 'duration_seconds',
523
+ count: 'count',
524
+ originalPrice: 'original_price',
525
+ currency: 'currency',
526
+ };
527
+ }
528
+
529
+ static types(): { [key: string]: any } {
530
+ return {
531
+ usageType: 'string',
532
+ unit: 'string',
533
+ durationSeconds: 'string',
534
+ count: 'number',
535
+ originalPrice: 'string',
536
+ currency: 'string',
537
+ };
538
+ }
539
+
540
+ constructor(map?: { [key: string]: any }) {
541
+ super(map);
542
+ }
543
+ }
544
+
545
+ // 非空内容列表,至少含文本或素材
546
+ export class ContentInfo extends $tea.Model {
547
+ // 类型
548
+ /**
549
+ * @example
550
+ * text
551
+ */
552
+ type: string;
553
+ // type=text 时提供,文本
554
+ /**
555
+ * @example
556
+ * 生成一只猫
557
+ */
558
+ text?: string;
559
+ // type=image_url 时提供
560
+ /**
561
+ * @example
562
+ * www.test.com/123
563
+ */
564
+ imageUrl?: ContentUrl;
565
+ // type=audio_url 时提供
566
+ /**
567
+ * @example
568
+ * www.test.com/123
569
+ */
570
+ audioUrl?: ContentUrl;
571
+ // type=video_url 时提供
572
+ /**
573
+ * @example
574
+ * www.test.com/123
575
+ */
576
+ videoUrl?: ContentUrl;
577
+ // 角色
578
+ /**
579
+ * @example
580
+ * reference_image
581
+ */
582
+ role?: string;
583
+ static names(): { [key: string]: string } {
584
+ return {
585
+ type: 'type',
586
+ text: 'text',
587
+ imageUrl: 'image_url',
588
+ audioUrl: 'audio_url',
589
+ videoUrl: 'video_url',
590
+ role: 'role',
591
+ };
592
+ }
593
+
594
+ static types(): { [key: string]: any } {
595
+ return {
596
+ type: 'string',
597
+ text: 'string',
598
+ imageUrl: ContentUrl,
599
+ audioUrl: ContentUrl,
600
+ videoUrl: ContentUrl,
601
+ role: 'string',
602
+ };
603
+ }
604
+
605
+ constructor(map?: { [key: string]: any }) {
606
+ super(map);
607
+ }
608
+ }
609
+
610
+ // 视频生成返回
611
+ export class VideoUsage extends $tea.Model {
612
+ // 用量类型
613
+ /**
614
+ * @example
615
+ * VIDEO_GENERATION
616
+ */
617
+ usageType?: string;
618
+ // 计量单位
619
+ /**
620
+ * @example
621
+ * SECOND
622
+ */
623
+ unit?: string;
297
624
  // 视频时长(秒)
298
- duration?: number;
299
- // 请求追踪 ID,用于幂等去重
300
- requestId?: string;
301
- // 扩展JSON
302
- ext?: string;
625
+ /**
626
+ * @example
627
+ * 10
628
+ */
629
+ durationSeconds?: string;
630
+ // 本次视频生成的实际消耗金额
631
+ /**
632
+ * @example
633
+ * 0.11
634
+ */
635
+ originalPrice?: string;
636
+ // 币种
637
+ /**
638
+ * @example
639
+ * CNY
640
+ */
641
+ currency?: string;
642
+ static names(): { [key: string]: string } {
643
+ return {
644
+ usageType: 'usage_type',
645
+ unit: 'unit',
646
+ durationSeconds: 'duration_seconds',
647
+ originalPrice: 'original_price',
648
+ currency: 'currency',
649
+ };
650
+ }
651
+
652
+ static types(): { [key: string]: any } {
653
+ return {
654
+ usageType: 'string',
655
+ unit: 'string',
656
+ durationSeconds: 'string',
657
+ originalPrice: 'string',
658
+ currency: 'string',
659
+ };
660
+ }
661
+
662
+ constructor(map?: { [key: string]: any }) {
663
+ super(map);
664
+ }
665
+ }
666
+
667
+ // 音频信息
668
+ export class AudioList extends $tea.Model {
669
+ // 音频 URL 列表
670
+ /**
671
+ * @example
672
+ * www.test.com/123
673
+ */
674
+ audioUrl?: string;
675
+ // 音频格式
676
+ /**
677
+ * @example
678
+ * wav
679
+ */
680
+ audioFormat?: string;
681
+ // 处理后播放时长(秒)
682
+ /**
683
+ * @example
684
+ * 10.6
685
+ */
686
+ durationSeconds?: string;
687
+ static names(): { [key: string]: string } {
688
+ return {
689
+ audioUrl: 'audio_url',
690
+ audioFormat: 'audio_format',
691
+ durationSeconds: 'duration_seconds',
692
+ };
693
+ }
694
+
695
+ static types(): { [key: string]: any } {
696
+ return {
697
+ audioUrl: 'string',
698
+ audioFormat: 'string',
699
+ durationSeconds: 'string',
700
+ };
701
+ }
702
+
703
+ constructor(map?: { [key: string]: any }) {
704
+ super(map);
705
+ }
706
+ }
707
+
708
+ // 视频 URL(成功时返回)
709
+ export class VideoUrl extends $tea.Model {
710
+ // 视频 URL(成功时返回)
711
+ /**
712
+ * @example
713
+ * https://example.com/output.mp4
714
+ */
715
+ videoUrl?: string;
716
+ static names(): { [key: string]: string } {
717
+ return {
718
+ videoUrl: 'video_url',
719
+ };
720
+ }
721
+
722
+ static types(): { [key: string]: any } {
723
+ return {
724
+ videoUrl: 'string',
725
+ };
726
+ }
727
+
728
+ constructor(map?: { [key: string]: any }) {
729
+ super(map);
730
+ }
731
+ }
732
+
733
+ // 输出单元列表
734
+ export class PriceUnits extends $tea.Model {
735
+ // 当前输出单元定价维度
736
+ /**
737
+ * @example
738
+ * {"test":"1"}
739
+ */
740
+ dimensions?: string;
741
+ // 当前输出单元计量指标
742
+ /**
743
+ * @example
744
+ * {"test":"1"}
745
+ */
746
+ metrics?: string;
747
+ static names(): { [key: string]: string } {
748
+ return {
749
+ dimensions: 'dimensions',
750
+ metrics: 'metrics',
751
+ };
752
+ }
753
+
754
+ static types(): { [key: string]: any } {
755
+ return {
756
+ dimensions: 'string',
757
+ metrics: 'string',
758
+ };
759
+ }
760
+
761
+ constructor(map?: { [key: string]: any }) {
762
+ super(map);
763
+ }
764
+ }
765
+
766
+ // 附加信息
767
+ export class ExtraInfo extends $tea.Model {
768
+ // 原厂任务ID
769
+ /**
770
+ * @example
771
+ * xxx-xxx-xxx
772
+ */
773
+ originalTaskId?: string;
774
+ // 原厂视频输出URL
775
+ /**
776
+ * @example
777
+ * https://xxx
778
+ */
779
+ originalVideoUrl?: string;
780
+ // 原厂响应体快照
781
+ /**
782
+ * @example
783
+ * "{"task_id":"csg-xxx-xx"...}"
784
+ */
785
+ originalResponseSnapshot?: string;
786
+ static names(): { [key: string]: string } {
787
+ return {
788
+ originalTaskId: 'original_task_id',
789
+ originalVideoUrl: 'original_video_url',
790
+ originalResponseSnapshot: 'original_response_snapshot',
791
+ };
792
+ }
793
+
794
+ static types(): { [key: string]: any } {
795
+ return {
796
+ originalTaskId: 'string',
797
+ originalVideoUrl: 'string',
798
+ originalResponseSnapshot: 'string',
799
+ };
800
+ }
801
+
802
+ constructor(map?: { [key: string]: any }) {
803
+ super(map);
804
+ }
805
+ }
806
+
807
+ // 处理失败时返回,包含 code / message
808
+ export class Error extends $tea.Model {
809
+ // 错误码
810
+ /**
811
+ * @example
812
+ * INVALID_PARAMETER
813
+ */
814
+ code?: string;
815
+ // 错误信息
816
+ /**
817
+ * @example
818
+ * 参数无效
819
+ */
820
+ message?: string;
821
+ static names(): { [key: string]: string } {
822
+ return {
823
+ code: 'code',
824
+ message: 'message',
825
+ };
826
+ }
827
+
828
+ static types(): { [key: string]: any } {
829
+ return {
830
+ code: 'string',
831
+ message: 'string',
832
+ };
833
+ }
834
+
835
+ constructor(map?: { [key: string]: any }) {
836
+ super(map);
837
+ }
838
+ }
839
+
840
+ // 1
841
+ export class ImageUrl extends $tea.Model {
842
+ // test
843
+ /**
844
+ * @example
845
+ * undefined
846
+ */
847
+ imageUrl?: ContentUrl;
848
+ static names(): { [key: string]: string } {
849
+ return {
850
+ imageUrl: 'image_url',
851
+ };
852
+ }
853
+
854
+ static types(): { [key: string]: any } {
855
+ return {
856
+ imageUrl: ContentUrl,
857
+ };
858
+ }
859
+
860
+ constructor(map?: { [key: string]: any }) {
861
+ super(map);
862
+ }
863
+ }
864
+
865
+ // 非空消息列表
866
+ export class ChatMessages extends $tea.Model {
867
+ // 角色
868
+ /**
869
+ * @example
870
+ * user
871
+ */
872
+ role: string;
873
+ // 文本内容
874
+ /**
875
+ * @example
876
+ * 文本内容
877
+ */
878
+ content: string;
879
+ static names(): { [key: string]: string } {
880
+ return {
881
+ role: 'role',
882
+ content: 'content',
883
+ };
884
+ }
885
+
886
+ static types(): { [key: string]: any } {
887
+ return {
888
+ role: 'string',
889
+ content: 'string',
890
+ };
891
+ }
892
+
893
+ constructor(map?: { [key: string]: any }) {
894
+ super(map);
895
+ }
896
+ }
897
+
898
+ // 用量数组
899
+ export class ImageUsage extends $tea.Model {
900
+ // 用量类型
901
+ /**
902
+ * @example
903
+ * IMAGE_GENERATION
904
+ */
905
+ usageType?: string;
906
+ // 计量单位
907
+ /**
908
+ * @example
909
+ * IMAGE_COUNT
910
+ */
911
+ unit?: string;
912
+ // 图片张数
913
+ /**
914
+ * @example
915
+ * 1
916
+ */
917
+ imageCount?: number;
918
+ // 本次图片生成的实际消耗金额
919
+ /**
920
+ * @example
921
+ * 10.11
922
+ */
923
+ originalPrice?: string;
924
+ // 币种
925
+ /**
926
+ * @example
927
+ * CNY
928
+ */
929
+ currency?: string;
930
+ static names(): { [key: string]: string } {
931
+ return {
932
+ usageType: 'usage_type',
933
+ unit: 'unit',
934
+ imageCount: 'image_count',
935
+ originalPrice: 'original_price',
936
+ currency: 'currency',
937
+ };
938
+ }
939
+
940
+ static types(): { [key: string]: any } {
941
+ return {
942
+ usageType: 'string',
943
+ unit: 'string',
944
+ imageCount: 'number',
945
+ originalPrice: 'string',
946
+ currency: 'string',
947
+ };
948
+ }
949
+
950
+ constructor(map?: { [key: string]: any }) {
951
+ super(map);
952
+ }
953
+ }
954
+
955
+ // 用量信息
956
+ export class Usage extends $tea.Model {
957
+ // 分辨率
958
+ /**
959
+ * @example
960
+ * 720p,1080p
961
+ */
962
+ resolution?: string;
963
+ // 视频时长(单位:秒)
964
+ /**
965
+ * @example
966
+ * 15
967
+ */
968
+ duration?: number;
969
+ // 视频比例
970
+ /**
971
+ * @example
972
+ * 16:9
973
+ */
974
+ ratio?: string;
975
+ // 消耗 token 数
976
+ /**
977
+ * @example
978
+ * 10800
979
+ */
980
+ completionTokens?: number;
981
+ // 消耗credit数
982
+ /**
983
+ * @example
984
+ * 7
985
+ */
986
+ completionCredits?: number;
987
+ static names(): { [key: string]: string } {
988
+ return {
989
+ resolution: 'resolution',
990
+ duration: 'duration',
991
+ ratio: 'ratio',
992
+ completionTokens: 'completion_tokens',
993
+ completionCredits: 'completion_credits',
994
+ };
995
+ }
996
+
997
+ static types(): { [key: string]: any } {
998
+ return {
999
+ resolution: 'string',
1000
+ duration: 'number',
1001
+ ratio: 'string',
1002
+ completionTokens: 'number',
1003
+ completionCredits: 'number',
1004
+ };
1005
+ }
1006
+
1007
+ constructor(map?: { [key: string]: any }) {
1008
+ super(map);
1009
+ }
1010
+ }
1011
+
1012
+ export class PushVideogenerationRequest extends $tea.Model {
1013
+ // OAuth模式下的授权token
1014
+ authToken?: string;
1015
+ productInstanceId?: string;
1016
+ // 模型标识,如 :doubao-seedance-2-0-260128
1017
+ model: string;
1018
+ // 文本提示词
1019
+ prompt?: string;
1020
+ // 图生视频参考图片 URL
1021
+ imageUrl?: string[];
1022
+ // 视频参考/续写时传入视频 URL
1023
+ videoUrl?: string[];
1024
+ // 参考音频URL列表
1025
+ audioUrl?: string[];
1026
+ // 比例
1027
+ ratio?: string;
1028
+ // 视频时长(秒)
1029
+ duration?: number;
1030
+ // 请求追踪 ID,用于幂等去重
1031
+ requestId?: string;
1032
+ // 扩展JSON
1033
+ ext?: string;
1034
+ static names(): { [key: string]: string } {
1035
+ return {
1036
+ authToken: 'auth_token',
1037
+ productInstanceId: 'product_instance_id',
1038
+ model: 'model',
1039
+ prompt: 'prompt',
1040
+ imageUrl: 'image_url',
1041
+ videoUrl: 'video_url',
1042
+ audioUrl: 'audio_url',
1043
+ ratio: 'ratio',
1044
+ duration: 'duration',
1045
+ requestId: 'request_id',
1046
+ ext: 'ext',
1047
+ };
1048
+ }
1049
+
1050
+ static types(): { [key: string]: any } {
1051
+ return {
1052
+ authToken: 'string',
1053
+ productInstanceId: 'string',
1054
+ model: 'string',
1055
+ prompt: 'string',
1056
+ imageUrl: { 'type': 'array', 'itemType': 'string' },
1057
+ videoUrl: { 'type': 'array', 'itemType': 'string' },
1058
+ audioUrl: { 'type': 'array', 'itemType': 'string' },
1059
+ ratio: 'string',
1060
+ duration: 'number',
1061
+ requestId: 'string',
1062
+ ext: 'string',
1063
+ };
1064
+ }
1065
+
1066
+ constructor(map?: { [key: string]: any }) {
1067
+ super(map);
1068
+ }
1069
+ }
1070
+
1071
+ export class PushVideogenerationResponse extends $tea.Model {
1072
+ // 请求唯一ID,用于链路跟踪和问题排查
1073
+ reqMsgId?: string;
1074
+ // 结果码,一般OK表示调用成功
1075
+ resultCode?: string;
1076
+ // 异常信息的文本描述
1077
+ resultMsg?: string;
1078
+ // 任务 ID,后续查询结果通过此参数获取
1079
+ taskId?: string;
1080
+ // 任务状态:pending(等待中)、processing(处理中)、succeeded(已成功)、failed(已失败)
1081
+ status?: string;
1082
+ // 模型名称
1083
+ model?: string;
1084
+ // 扩展JSON
1085
+ ext?: string;
1086
+ static names(): { [key: string]: string } {
1087
+ return {
1088
+ reqMsgId: 'req_msg_id',
1089
+ resultCode: 'result_code',
1090
+ resultMsg: 'result_msg',
1091
+ taskId: 'task_id',
1092
+ status: 'status',
1093
+ model: 'model',
1094
+ ext: 'ext',
1095
+ };
1096
+ }
1097
+
1098
+ static types(): { [key: string]: any } {
1099
+ return {
1100
+ reqMsgId: 'string',
1101
+ resultCode: 'string',
1102
+ resultMsg: 'string',
1103
+ taskId: 'string',
1104
+ status: 'string',
1105
+ model: 'string',
1106
+ ext: 'string',
1107
+ };
1108
+ }
1109
+
1110
+ constructor(map?: { [key: string]: any }) {
1111
+ super(map);
1112
+ }
1113
+ }
1114
+
1115
+ export class QueryVideogenerationRequest extends $tea.Model {
1116
+ // OAuth模式下的授权token
1117
+ authToken?: string;
1118
+ productInstanceId?: string;
1119
+ // 查询的任务ID
1120
+ taskId: string;
1121
+ static names(): { [key: string]: string } {
1122
+ return {
1123
+ authToken: 'auth_token',
1124
+ productInstanceId: 'product_instance_id',
1125
+ taskId: 'task_id',
1126
+ };
1127
+ }
1128
+
1129
+ static types(): { [key: string]: any } {
1130
+ return {
1131
+ authToken: 'string',
1132
+ productInstanceId: 'string',
1133
+ taskId: 'string',
1134
+ };
1135
+ }
1136
+
1137
+ constructor(map?: { [key: string]: any }) {
1138
+ super(map);
1139
+ }
1140
+ }
1141
+
1142
+ export class QueryVideogenerationResponse extends $tea.Model {
1143
+ // 请求唯一ID,用于链路跟踪和问题排查
1144
+ reqMsgId?: string;
1145
+ // 结果码,一般OK表示调用成功
1146
+ resultCode?: string;
1147
+ // 异常信息的文本描述
1148
+ resultMsg?: string;
1149
+ // 任务ID
1150
+ taskId?: string;
1151
+ // 任务状态
1152
+ status?: string;
1153
+ // 视频输出URL
1154
+ videoUrl?: string;
1155
+ // 错误码
1156
+ errorCode?: string;
1157
+ // 错误信息
1158
+ errorMessage?: string;
1159
+ // 用量信息
1160
+ usage?: Usage;
1161
+ // 附加信息
1162
+ extraInfo?: ExtraInfo;
1163
+ static names(): { [key: string]: string } {
1164
+ return {
1165
+ reqMsgId: 'req_msg_id',
1166
+ resultCode: 'result_code',
1167
+ resultMsg: 'result_msg',
1168
+ taskId: 'task_id',
1169
+ status: 'status',
1170
+ videoUrl: 'video_url',
1171
+ errorCode: 'error_code',
1172
+ errorMessage: 'error_message',
1173
+ usage: 'usage',
1174
+ extraInfo: 'extra_info',
1175
+ };
1176
+ }
1177
+
1178
+ static types(): { [key: string]: any } {
1179
+ return {
1180
+ reqMsgId: 'string',
1181
+ resultCode: 'string',
1182
+ resultMsg: 'string',
1183
+ taskId: 'string',
1184
+ status: 'string',
1185
+ videoUrl: 'string',
1186
+ errorCode: 'string',
1187
+ errorMessage: 'string',
1188
+ usage: Usage,
1189
+ extraInfo: ExtraInfo,
1190
+ };
1191
+ }
1192
+
1193
+ constructor(map?: { [key: string]: any }) {
1194
+ super(map);
1195
+ }
1196
+ }
1197
+
1198
+ export class UploadAssetRequest extends $tea.Model {
1199
+ // OAuth模式下的授权token
1200
+ authToken?: string;
1201
+ productInstanceId?: string;
1202
+ // 资产类型
1203
+ assetType: string;
1204
+ // 公网可访问的文件URL
1205
+ fileUrl: string;
1206
+ // 资产名称
1207
+ assetName: string;
1208
+ // 在这个模型上使用资产
1209
+ useModel?: string;
1210
+ static names(): { [key: string]: string } {
1211
+ return {
1212
+ authToken: 'auth_token',
1213
+ productInstanceId: 'product_instance_id',
1214
+ assetType: 'asset_type',
1215
+ fileUrl: 'file_url',
1216
+ assetName: 'asset_name',
1217
+ useModel: 'use_model',
1218
+ };
1219
+ }
1220
+
1221
+ static types(): { [key: string]: any } {
1222
+ return {
1223
+ authToken: 'string',
1224
+ productInstanceId: 'string',
1225
+ assetType: 'string',
1226
+ fileUrl: 'string',
1227
+ assetName: 'string',
1228
+ useModel: 'string',
1229
+ };
1230
+ }
1231
+
1232
+ constructor(map?: { [key: string]: any }) {
1233
+ super(map);
1234
+ }
1235
+ }
1236
+
1237
+ export class UploadAssetResponse extends $tea.Model {
1238
+ // 请求唯一ID,用于链路跟踪和问题排查
1239
+ reqMsgId?: string;
1240
+ // 结果码,一般OK表示调用成功
1241
+ resultCode?: string;
1242
+ // 异常信息的文本描述
1243
+ resultMsg?: string;
1244
+ // 资产ID
1245
+ assetId?: string;
1246
+ // 资产状态
1247
+ status?: string;
1248
+ // 资产类型
1249
+ assetType?: string;
1250
+ static names(): { [key: string]: string } {
1251
+ return {
1252
+ reqMsgId: 'req_msg_id',
1253
+ resultCode: 'result_code',
1254
+ resultMsg: 'result_msg',
1255
+ assetId: 'asset_id',
1256
+ status: 'status',
1257
+ assetType: 'asset_type',
1258
+ };
1259
+ }
1260
+
1261
+ static types(): { [key: string]: any } {
1262
+ return {
1263
+ reqMsgId: 'string',
1264
+ resultCode: 'string',
1265
+ resultMsg: 'string',
1266
+ assetId: 'string',
1267
+ status: 'string',
1268
+ assetType: 'string',
1269
+ };
1270
+ }
1271
+
1272
+ constructor(map?: { [key: string]: any }) {
1273
+ super(map);
1274
+ }
1275
+ }
1276
+
1277
+ export class QueryAssetRequest extends $tea.Model {
1278
+ // OAuth模式下的授权token
1279
+ authToken?: string;
1280
+ productInstanceId?: string;
1281
+ // 资产ID
1282
+ assetId: string;
1283
+ static names(): { [key: string]: string } {
1284
+ return {
1285
+ authToken: 'auth_token',
1286
+ productInstanceId: 'product_instance_id',
1287
+ assetId: 'asset_id',
1288
+ };
1289
+ }
1290
+
1291
+ static types(): { [key: string]: any } {
1292
+ return {
1293
+ authToken: 'string',
1294
+ productInstanceId: 'string',
1295
+ assetId: 'string',
1296
+ };
1297
+ }
1298
+
1299
+ constructor(map?: { [key: string]: any }) {
1300
+ super(map);
1301
+ }
1302
+ }
1303
+
1304
+ export class QueryAssetResponse extends $tea.Model {
1305
+ // 请求唯一ID,用于链路跟踪和问题排查
1306
+ reqMsgId?: string;
1307
+ // 结果码,一般OK表示调用成功
1308
+ resultCode?: string;
1309
+ // 异常信息的文本描述
1310
+ resultMsg?: string;
1311
+ // 资产ID
1312
+ assetId?: string;
1313
+ // 资产状态
1314
+ status?: string;
1315
+ // 资产类型
1316
+ assetType?: string;
1317
+ // 资产类型
1318
+ assetUrl?: string;
1319
+ // 错误信息
1320
+ errorMessage?: string;
1321
+ // 错误码
1322
+ errorCode?: string;
1323
+ static names(): { [key: string]: string } {
1324
+ return {
1325
+ reqMsgId: 'req_msg_id',
1326
+ resultCode: 'result_code',
1327
+ resultMsg: 'result_msg',
1328
+ assetId: 'asset_id',
1329
+ status: 'status',
1330
+ assetType: 'asset_type',
1331
+ assetUrl: 'asset_url',
1332
+ errorMessage: 'error_message',
1333
+ errorCode: 'error_code',
1334
+ };
1335
+ }
1336
+
1337
+ static types(): { [key: string]: any } {
1338
+ return {
1339
+ reqMsgId: 'string',
1340
+ resultCode: 'string',
1341
+ resultMsg: 'string',
1342
+ assetId: 'string',
1343
+ status: 'string',
1344
+ assetType: 'string',
1345
+ assetUrl: 'string',
1346
+ errorMessage: 'string',
1347
+ errorCode: 'string',
1348
+ };
1349
+ }
1350
+
1351
+ constructor(map?: { [key: string]: any }) {
1352
+ super(map);
1353
+ }
1354
+ }
1355
+
1356
+ export class UploadMaasAssetRequest extends $tea.Model {
1357
+ // OAuth模式下的授权token
1358
+ authToken?: string;
1359
+ productInstanceId?: string;
1360
+ // 幂等标识,由客户端生成
1361
+ requestId: string;
1362
+ // 文件公网可访问 URL
1363
+ fileUrl: string;
1364
+ // 资产类型
1365
+ assetType: string;
1366
+ // 资产名称
1367
+ assetName: string;
1368
+ static names(): { [key: string]: string } {
1369
+ return {
1370
+ authToken: 'auth_token',
1371
+ productInstanceId: 'product_instance_id',
1372
+ requestId: 'request_id',
1373
+ fileUrl: 'file_url',
1374
+ assetType: 'asset_type',
1375
+ assetName: 'asset_name',
1376
+ };
1377
+ }
1378
+
1379
+ static types(): { [key: string]: any } {
1380
+ return {
1381
+ authToken: 'string',
1382
+ productInstanceId: 'string',
1383
+ requestId: 'string',
1384
+ fileUrl: 'string',
1385
+ assetType: 'string',
1386
+ assetName: 'string',
1387
+ };
1388
+ }
1389
+
1390
+ constructor(map?: { [key: string]: any }) {
1391
+ super(map);
1392
+ }
1393
+ }
1394
+
1395
+ export class UploadMaasAssetResponse extends $tea.Model {
1396
+ // 请求唯一ID,用于链路跟踪和问题排查
1397
+ reqMsgId?: string;
1398
+ // 结果码,一般OK表示调用成功
1399
+ resultCode?: string;
1400
+ // 异常信息的文本描述
1401
+ resultMsg?: string;
1402
+ // 平台素材 ID
1403
+ assetId?: string;
1404
+ // 状态
1405
+ status?: string;
1406
+ // 资产类型
1407
+ assetType?: string;
1408
+ static names(): { [key: string]: string } {
1409
+ return {
1410
+ reqMsgId: 'req_msg_id',
1411
+ resultCode: 'result_code',
1412
+ resultMsg: 'result_msg',
1413
+ assetId: 'asset_id',
1414
+ status: 'status',
1415
+ assetType: 'asset_type',
1416
+ };
1417
+ }
1418
+
1419
+ static types(): { [key: string]: any } {
1420
+ return {
1421
+ reqMsgId: 'string',
1422
+ resultCode: 'string',
1423
+ resultMsg: 'string',
1424
+ assetId: 'string',
1425
+ status: 'string',
1426
+ assetType: 'string',
1427
+ };
1428
+ }
1429
+
1430
+ constructor(map?: { [key: string]: any }) {
1431
+ super(map);
1432
+ }
1433
+ }
1434
+
1435
+ export class QueryMaasAssetRequest extends $tea.Model {
1436
+ // OAuth模式下的授权token
1437
+ authToken?: string;
1438
+ productInstanceId?: string;
1439
+ // 资产 ID
1440
+ assetId: string;
1441
+ static names(): { [key: string]: string } {
1442
+ return {
1443
+ authToken: 'auth_token',
1444
+ productInstanceId: 'product_instance_id',
1445
+ assetId: 'asset_id',
1446
+ };
1447
+ }
1448
+
1449
+ static types(): { [key: string]: any } {
1450
+ return {
1451
+ authToken: 'string',
1452
+ productInstanceId: 'string',
1453
+ assetId: 'string',
1454
+ };
1455
+ }
1456
+
1457
+ constructor(map?: { [key: string]: any }) {
1458
+ super(map);
1459
+ }
1460
+ }
1461
+
1462
+ export class QueryMaasAssetResponse extends $tea.Model {
1463
+ // 请求唯一ID,用于链路跟踪和问题排查
1464
+ reqMsgId?: string;
1465
+ // 结果码,一般OK表示调用成功
1466
+ resultCode?: string;
1467
+ // 异常信息的文本描述
1468
+ resultMsg?: string;
1469
+ // 资产 ID
1470
+ assetId?: string;
1471
+ // 状态
1472
+ status?: string;
1473
+ // 资产类型
1474
+ assetType?: string;
1475
+ // 资产访问 URL,仅在已取得可访问地址时返回
1476
+ url?: string;
1477
+ // 素材名称,可选
1478
+ name?: string;
1479
+ // 创建时间,Unix 秒级时间戳,可选
1480
+ createdAt?: string;
1481
+ // 更新时间,Unix 秒级时间戳,可选
1482
+ updatedAt?: string;
1483
+ // 处理失败时返回,包含 code / message
1484
+ error?: Error;
1485
+ static names(): { [key: string]: string } {
1486
+ return {
1487
+ reqMsgId: 'req_msg_id',
1488
+ resultCode: 'result_code',
1489
+ resultMsg: 'result_msg',
1490
+ assetId: 'asset_id',
1491
+ status: 'status',
1492
+ assetType: 'asset_type',
1493
+ url: 'url',
1494
+ name: 'name',
1495
+ createdAt: 'created_at',
1496
+ updatedAt: 'updated_at',
1497
+ error: 'error',
1498
+ };
1499
+ }
1500
+
1501
+ static types(): { [key: string]: any } {
1502
+ return {
1503
+ reqMsgId: 'string',
1504
+ resultCode: 'string',
1505
+ resultMsg: 'string',
1506
+ assetId: 'string',
1507
+ status: 'string',
1508
+ assetType: 'string',
1509
+ url: 'string',
1510
+ name: 'string',
1511
+ createdAt: 'string',
1512
+ updatedAt: 'string',
1513
+ error: Error,
1514
+ };
1515
+ }
1516
+
1517
+ constructor(map?: { [key: string]: any }) {
1518
+ super(map);
1519
+ }
1520
+ }
1521
+
1522
+ export class PushMaasVideoRequest extends $tea.Model {
1523
+ // OAuth模式下的授权token
1524
+ authToken?: string;
1525
+ productInstanceId?: string;
1526
+ // 幂等标识,由客户端生成
1527
+ requestId: string;
1528
+ // 视频模型编码
1529
+ model: string;
1530
+ // 类型
1531
+ capabilityType: string;
1532
+ // 非空内容列表,至少含文本或素材
1533
+ content: ContentInfo[];
1534
+ // 视频时长(秒)
1535
+ duration?: string;
1536
+ // 宽高比,如 16:9、9:16
1537
+ ratio?: string;
1538
+ // 分辨率,如 720P、1080P
1539
+ resolution?: string;
1540
+ // 是否生成音轨,默认 false
1541
+ generateAudio?: boolean;
1542
+ // 是否添加水印
1543
+ watermark?: boolean;
1544
+ // 扩展参数 JSON 字符串
1545
+ extParams?: string;
1546
+ static names(): { [key: string]: string } {
1547
+ return {
1548
+ authToken: 'auth_token',
1549
+ productInstanceId: 'product_instance_id',
1550
+ requestId: 'request_id',
1551
+ model: 'model',
1552
+ capabilityType: 'capability_type',
1553
+ content: 'content',
1554
+ duration: 'duration',
1555
+ ratio: 'ratio',
1556
+ resolution: 'resolution',
1557
+ generateAudio: 'generate_audio',
1558
+ watermark: 'watermark',
1559
+ extParams: 'ext_params',
1560
+ };
1561
+ }
1562
+
1563
+ static types(): { [key: string]: any } {
1564
+ return {
1565
+ authToken: 'string',
1566
+ productInstanceId: 'string',
1567
+ requestId: 'string',
1568
+ model: 'string',
1569
+ capabilityType: 'string',
1570
+ content: { 'type': 'array', 'itemType': ContentInfo },
1571
+ duration: 'string',
1572
+ ratio: 'string',
1573
+ resolution: 'string',
1574
+ generateAudio: 'boolean',
1575
+ watermark: 'boolean',
1576
+ extParams: 'string',
1577
+ };
1578
+ }
1579
+
1580
+ constructor(map?: { [key: string]: any }) {
1581
+ super(map);
1582
+ }
1583
+ }
1584
+
1585
+ export class PushMaasVideoResponse extends $tea.Model {
1586
+ // 请求唯一ID,用于链路跟踪和问题排查
1587
+ reqMsgId?: string;
1588
+ // 结果码,一般OK表示调用成功
1589
+ resultCode?: string;
1590
+ // 异常信息的文本描述
1591
+ resultMsg?: string;
1592
+ // 视频任务 ID
1593
+ taskId?: string;
1594
+ // 任务状态
1595
+ status?: string;
1596
+ // 实际使用的模型
1597
+ model?: string;
1598
+ static names(): { [key: string]: string } {
1599
+ return {
1600
+ reqMsgId: 'req_msg_id',
1601
+ resultCode: 'result_code',
1602
+ resultMsg: 'result_msg',
1603
+ taskId: 'task_id',
1604
+ status: 'status',
1605
+ model: 'model',
1606
+ };
1607
+ }
1608
+
1609
+ static types(): { [key: string]: any } {
1610
+ return {
1611
+ reqMsgId: 'string',
1612
+ resultCode: 'string',
1613
+ resultMsg: 'string',
1614
+ taskId: 'string',
1615
+ status: 'string',
1616
+ model: 'string',
1617
+ };
1618
+ }
1619
+
1620
+ constructor(map?: { [key: string]: any }) {
1621
+ super(map);
1622
+ }
1623
+ }
1624
+
1625
+ export class QueryMaasVideoRequest extends $tea.Model {
1626
+ // OAuth模式下的授权token
1627
+ authToken?: string;
1628
+ productInstanceId?: string;
1629
+ // 视频任务 ID
1630
+ taskId: string;
1631
+ static names(): { [key: string]: string } {
1632
+ return {
1633
+ authToken: 'auth_token',
1634
+ productInstanceId: 'product_instance_id',
1635
+ taskId: 'task_id',
1636
+ };
1637
+ }
1638
+
1639
+ static types(): { [key: string]: any } {
1640
+ return {
1641
+ authToken: 'string',
1642
+ productInstanceId: 'string',
1643
+ taskId: 'string',
1644
+ };
1645
+ }
1646
+
1647
+ constructor(map?: { [key: string]: any }) {
1648
+ super(map);
1649
+ }
1650
+ }
1651
+
1652
+ export class QueryMaasVideoResponse extends $tea.Model {
1653
+ // 请求唯一ID,用于链路跟踪和问题排查
1654
+ reqMsgId?: string;
1655
+ // 结果码,一般OK表示调用成功
1656
+ resultCode?: string;
1657
+ // 异常信息的文本描述
1658
+ resultMsg?: string;
1659
+ // 视频任务 ID
1660
+ taskId?: string;
1661
+ // 任务状态
1662
+ status?: string;
1663
+ // 实际使用的模型
1664
+ model?: string;
1665
+ // 创建时间,Unix 秒级时间戳
1666
+ createdAt?: string;
1667
+ // 更新时间,Unix 秒级时间戳
1668
+ updatedAt?: string;
1669
+ // 视频 URL(成功时返回)
1670
+ content?: VideoUrl;
1671
+ // 视频时长(秒
1672
+ duration?: string;
1673
+ // 宽高比
1674
+ ratio?: string;
1675
+ // 分辨率
1676
+ resolution?: string;
1677
+ // 是否生成音轨
1678
+ generateAudio?: boolean;
1679
+ // 用量数组
1680
+ usage?: VideoUsage[];
1681
+ // 非标准化补充信息,JSON 字符串
1682
+ extraInfo?: string;
1683
+ // 失败时返回
1684
+ error?: Error;
1685
+ static names(): { [key: string]: string } {
1686
+ return {
1687
+ reqMsgId: 'req_msg_id',
1688
+ resultCode: 'result_code',
1689
+ resultMsg: 'result_msg',
1690
+ taskId: 'task_id',
1691
+ status: 'status',
1692
+ model: 'model',
1693
+ createdAt: 'created_at',
1694
+ updatedAt: 'updated_at',
1695
+ content: 'content',
1696
+ duration: 'duration',
1697
+ ratio: 'ratio',
1698
+ resolution: 'resolution',
1699
+ generateAudio: 'generate_audio',
1700
+ usage: 'usage',
1701
+ extraInfo: 'extra_info',
1702
+ error: 'error',
1703
+ };
1704
+ }
1705
+
1706
+ static types(): { [key: string]: any } {
1707
+ return {
1708
+ reqMsgId: 'string',
1709
+ resultCode: 'string',
1710
+ resultMsg: 'string',
1711
+ taskId: 'string',
1712
+ status: 'string',
1713
+ model: 'string',
1714
+ createdAt: 'string',
1715
+ updatedAt: 'string',
1716
+ content: VideoUrl,
1717
+ duration: 'string',
1718
+ ratio: 'string',
1719
+ resolution: 'string',
1720
+ generateAudio: 'boolean',
1721
+ usage: { 'type': 'array', 'itemType': VideoUsage },
1722
+ extraInfo: 'string',
1723
+ error: Error,
1724
+ };
1725
+ }
1726
+
1727
+ constructor(map?: { [key: string]: any }) {
1728
+ super(map);
1729
+ }
1730
+ }
1731
+
1732
+ export class PushMaasImageRequest extends $tea.Model {
1733
+ // OAuth模式下的授权token
1734
+ authToken?: string;
1735
+ productInstanceId?: string;
1736
+ // 幂等标识,由客户端生成
1737
+ requestId: string;
1738
+ // 图片模型编码
1739
+ model: string;
1740
+ // 类型
1741
+ capabilityType: string;
1742
+ // 生成模式
1743
+ generateMode?: string;
1744
+ // 图片生成或编辑提示词
1745
+ prompt: string;
1746
+ // 图片地址
1747
+ imageUrls?: string[];
1748
+ // 图片尺寸
1749
+ size?: string;
1750
+ // 图片张数
1751
+ n?: number;
1752
+ // 扩展参数 JSON 字符串
1753
+ extParams?: string;
1754
+ static names(): { [key: string]: string } {
1755
+ return {
1756
+ authToken: 'auth_token',
1757
+ productInstanceId: 'product_instance_id',
1758
+ requestId: 'request_id',
1759
+ model: 'model',
1760
+ capabilityType: 'capability_type',
1761
+ generateMode: 'generate_mode',
1762
+ prompt: 'prompt',
1763
+ imageUrls: 'image_urls',
1764
+ size: 'size',
1765
+ n: 'n',
1766
+ extParams: 'ext_params',
1767
+ };
1768
+ }
1769
+
1770
+ static types(): { [key: string]: any } {
1771
+ return {
1772
+ authToken: 'string',
1773
+ productInstanceId: 'string',
1774
+ requestId: 'string',
1775
+ model: 'string',
1776
+ capabilityType: 'string',
1777
+ generateMode: 'string',
1778
+ prompt: 'string',
1779
+ imageUrls: { 'type': 'array', 'itemType': 'string' },
1780
+ size: 'string',
1781
+ n: 'number',
1782
+ extParams: 'string',
1783
+ };
1784
+ }
1785
+
1786
+ constructor(map?: { [key: string]: any }) {
1787
+ super(map);
1788
+ }
1789
+ }
1790
+
1791
+ export class PushMaasImageResponse extends $tea.Model {
1792
+ // 请求唯一ID,用于链路跟踪和问题排查
1793
+ reqMsgId?: string;
1794
+ // 结果码,一般OK表示调用成功
1795
+ resultCode?: string;
1796
+ // 异常信息的文本描述
1797
+ resultMsg?: string;
1798
+ // 图片任务 ID
1799
+ taskId?: string;
1800
+ // 任务状态
1801
+ status?: string;
1802
+ // 实际使用的模型
1803
+ model?: string;
1804
+ // 图片 URL 列表
1805
+ content?: ImageUrlsList;
1806
+ // 用量数组
1807
+ usage?: ImageUsage[];
1808
+ // 失败时返回
1809
+ error?: Error;
1810
+ // 非标准化补充信息,JSON 字符串
1811
+ extraInfo?: string;
1812
+ static names(): { [key: string]: string } {
1813
+ return {
1814
+ reqMsgId: 'req_msg_id',
1815
+ resultCode: 'result_code',
1816
+ resultMsg: 'result_msg',
1817
+ taskId: 'task_id',
1818
+ status: 'status',
1819
+ model: 'model',
1820
+ content: 'content',
1821
+ usage: 'usage',
1822
+ error: 'error',
1823
+ extraInfo: 'extra_info',
1824
+ };
1825
+ }
1826
+
1827
+ static types(): { [key: string]: any } {
1828
+ return {
1829
+ reqMsgId: 'string',
1830
+ resultCode: 'string',
1831
+ resultMsg: 'string',
1832
+ taskId: 'string',
1833
+ status: 'string',
1834
+ model: 'string',
1835
+ content: ImageUrlsList,
1836
+ usage: { 'type': 'array', 'itemType': ImageUsage },
1837
+ error: Error,
1838
+ extraInfo: 'string',
1839
+ };
1840
+ }
1841
+
1842
+ constructor(map?: { [key: string]: any }) {
1843
+ super(map);
1844
+ }
1845
+ }
1846
+
1847
+ export class QueryMaasImageRequest extends $tea.Model {
1848
+ // OAuth模式下的授权token
1849
+ authToken?: string;
1850
+ productInstanceId?: string;
1851
+ // 图片任务 ID
1852
+ taskId: string;
1853
+ static names(): { [key: string]: string } {
1854
+ return {
1855
+ authToken: 'auth_token',
1856
+ productInstanceId: 'product_instance_id',
1857
+ taskId: 'task_id',
1858
+ };
1859
+ }
1860
+
1861
+ static types(): { [key: string]: any } {
1862
+ return {
1863
+ authToken: 'string',
1864
+ productInstanceId: 'string',
1865
+ taskId: 'string',
1866
+ };
1867
+ }
1868
+
1869
+ constructor(map?: { [key: string]: any }) {
1870
+ super(map);
1871
+ }
1872
+ }
1873
+
1874
+ export class QueryMaasImageResponse extends $tea.Model {
1875
+ // 请求唯一ID,用于链路跟踪和问题排查
1876
+ reqMsgId?: string;
1877
+ // 结果码,一般OK表示调用成功
1878
+ resultCode?: string;
1879
+ // 异常信息的文本描述
1880
+ resultMsg?: string;
1881
+ // 图片任务 ID
1882
+ taskId?: string;
1883
+ // 任务状态
1884
+ status?: string;
1885
+ // 实际使用的模型
1886
+ model?: string;
1887
+ // 创建时间,Unix 秒级时间戳
1888
+ createdAt?: string;
1889
+ // 图片 URL 列表(成功时返回)
1890
+ content?: ImageUrlsList;
1891
+ // 用量数组
1892
+ usage?: ImageUsage[];
1893
+ // 非标准化补充信息,JSON 字符串
1894
+ extraInfo?: string;
1895
+ // 失败时返回
1896
+ error?: Error;
1897
+ static names(): { [key: string]: string } {
1898
+ return {
1899
+ reqMsgId: 'req_msg_id',
1900
+ resultCode: 'result_code',
1901
+ resultMsg: 'result_msg',
1902
+ taskId: 'task_id',
1903
+ status: 'status',
1904
+ model: 'model',
1905
+ createdAt: 'created_at',
1906
+ content: 'content',
1907
+ usage: 'usage',
1908
+ extraInfo: 'extra_info',
1909
+ error: 'error',
1910
+ };
1911
+ }
1912
+
1913
+ static types(): { [key: string]: any } {
1914
+ return {
1915
+ reqMsgId: 'string',
1916
+ resultCode: 'string',
1917
+ resultMsg: 'string',
1918
+ taskId: 'string',
1919
+ status: 'string',
1920
+ model: 'string',
1921
+ createdAt: 'string',
1922
+ content: ImageUrlsList,
1923
+ usage: { 'type': 'array', 'itemType': ImageUsage },
1924
+ extraInfo: 'string',
1925
+ error: Error,
1926
+ };
1927
+ }
1928
+
1929
+ constructor(map?: { [key: string]: any }) {
1930
+ super(map);
1931
+ }
1932
+ }
1933
+
1934
+ export class PushMaasAudioRequest extends $tea.Model {
1935
+ // OAuth模式下的授权token
1936
+ authToken?: string;
1937
+ productInstanceId?: string;
1938
+ // 幂等标识,由客户端生成
1939
+ requestId: string;
1940
+ // 音频模型编码
1941
+ model: string;
1942
+ // 类型
1943
+ capabilityType: string;
1944
+ // 音频生成提示词
1945
+ prompt: string;
1946
+ // 需要朗读的文本,仅支持该参数的模型使用
1947
+ text?: string;
1948
+ // 音频链接,REFERENCE_TO_AUDIO 时非空
1949
+ audioUrls?: string[];
1950
+ // 图片链接,IMAGE_TO_AUDIO 时非空
1951
+ imageUrls?: string[];
1952
+ // 扩展参数 JSON 字符串,内容按模型扩展参数对象组织
1953
+ extParams?: string;
303
1954
  static names(): { [key: string]: string } {
304
1955
  return {
305
1956
  authToken: 'auth_token',
306
1957
  productInstanceId: 'product_instance_id',
1958
+ requestId: 'request_id',
307
1959
  model: 'model',
1960
+ capabilityType: 'capability_type',
308
1961
  prompt: 'prompt',
309
- imageUrl: 'image_url',
310
- videoUrl: 'video_url',
311
- audioUrl: 'audio_url',
312
- ratio: 'ratio',
313
- duration: 'duration',
314
- requestId: 'request_id',
315
- ext: 'ext',
1962
+ text: 'text',
1963
+ audioUrls: 'audio_urls',
1964
+ imageUrls: 'image_urls',
1965
+ extParams: 'ext_params',
316
1966
  };
317
1967
  }
318
1968
 
@@ -320,15 +1970,14 @@ export class PushVideogenerationRequest extends $tea.Model {
320
1970
  return {
321
1971
  authToken: 'string',
322
1972
  productInstanceId: 'string',
1973
+ requestId: 'string',
323
1974
  model: 'string',
1975
+ capabilityType: 'string',
324
1976
  prompt: 'string',
325
- imageUrl: { 'type': 'array', 'itemType': 'string' },
326
- videoUrl: { 'type': 'array', 'itemType': 'string' },
327
- audioUrl: { 'type': 'array', 'itemType': 'string' },
328
- ratio: 'string',
329
- duration: 'number',
330
- requestId: 'string',
331
- ext: 'string',
1977
+ text: 'string',
1978
+ audioUrls: { 'type': 'array', 'itemType': 'string' },
1979
+ imageUrls: { 'type': 'array', 'itemType': 'string' },
1980
+ extParams: 'string',
332
1981
  };
333
1982
  }
334
1983
 
@@ -337,21 +1986,19 @@ export class PushVideogenerationRequest extends $tea.Model {
337
1986
  }
338
1987
  }
339
1988
 
340
- export class PushVideogenerationResponse extends $tea.Model {
1989
+ export class PushMaasAudioResponse extends $tea.Model {
341
1990
  // 请求唯一ID,用于链路跟踪和问题排查
342
1991
  reqMsgId?: string;
343
1992
  // 结果码,一般OK表示调用成功
344
1993
  resultCode?: string;
345
1994
  // 异常信息的文本描述
346
1995
  resultMsg?: string;
347
- // 任务 ID,后续查询结果通过此参数获取
1996
+ // 音频任务 ID
348
1997
  taskId?: string;
349
- // 任务状态:pending(等待中)、processing(处理中)、succeeded(已成功)、failed(已失败)
1998
+ // 任务状态
350
1999
  status?: string;
351
- // 模型名称
2000
+ // 实际使用的模型
352
2001
  model?: string;
353
- // 扩展JSON
354
- ext?: string;
355
2002
  static names(): { [key: string]: string } {
356
2003
  return {
357
2004
  reqMsgId: 'req_msg_id',
@@ -360,7 +2007,6 @@ export class PushVideogenerationResponse extends $tea.Model {
360
2007
  taskId: 'task_id',
361
2008
  status: 'status',
362
2009
  model: 'model',
363
- ext: 'ext',
364
2010
  };
365
2011
  }
366
2012
 
@@ -372,7 +2018,6 @@ export class PushVideogenerationResponse extends $tea.Model {
372
2018
  taskId: 'string',
373
2019
  status: 'string',
374
2020
  model: 'string',
375
- ext: 'string',
376
2021
  };
377
2022
  }
378
2023
 
@@ -381,12 +2026,12 @@ export class PushVideogenerationResponse extends $tea.Model {
381
2026
  }
382
2027
  }
383
2028
 
384
- export class QueryVideogenerationRequest extends $tea.Model {
2029
+ export class QueryMaasAudioRequest extends $tea.Model {
385
2030
  // OAuth模式下的授权token
386
2031
  authToken?: string;
387
2032
  productInstanceId?: string;
388
- // 查询的任务ID
389
- taskId: string;
2033
+ // 音频任务 ID
2034
+ taskId?: string;
390
2035
  static names(): { [key: string]: string } {
391
2036
  return {
392
2037
  authToken: 'auth_token',
@@ -408,27 +2053,29 @@ export class QueryVideogenerationRequest extends $tea.Model {
408
2053
  }
409
2054
  }
410
2055
 
411
- export class QueryVideogenerationResponse extends $tea.Model {
2056
+ export class QueryMaasAudioResponse extends $tea.Model {
412
2057
  // 请求唯一ID,用于链路跟踪和问题排查
413
2058
  reqMsgId?: string;
414
2059
  // 结果码,一般OK表示调用成功
415
2060
  resultCode?: string;
416
2061
  // 异常信息的文本描述
417
2062
  resultMsg?: string;
418
- // 任务ID
2063
+ // 音频任务 ID
419
2064
  taskId?: string;
420
2065
  // 任务状态
421
2066
  status?: string;
422
- // 视频输出URL
423
- videoUrl?: string;
424
- // 错误码
425
- errorCode?: string;
426
- // 错误信息
427
- errorMessage?: string;
428
- // 用量信息
429
- usage?: Usage;
430
- // 附加信息
431
- extraInfo?: ExtraInfo;
2067
+ // 实际使用的模型
2068
+ model?: string;
2069
+ // 创建时间,Unix 秒级时间戳
2070
+ createdAt?: string;
2071
+ // 音频信息
2072
+ content?: AudioList[];
2073
+ // 用量
2074
+ usage?: AudioUsage[];
2075
+ // 非标准化补充信息,JSON 字符串
2076
+ extraInfo?: string;
2077
+ // 失败时返回
2078
+ error?: Error;
432
2079
  static names(): { [key: string]: string } {
433
2080
  return {
434
2081
  reqMsgId: 'req_msg_id',
@@ -436,11 +2083,12 @@ export class QueryVideogenerationResponse extends $tea.Model {
436
2083
  resultMsg: 'result_msg',
437
2084
  taskId: 'task_id',
438
2085
  status: 'status',
439
- videoUrl: 'video_url',
440
- errorCode: 'error_code',
441
- errorMessage: 'error_message',
2086
+ model: 'model',
2087
+ createdAt: 'created_at',
2088
+ content: 'content',
442
2089
  usage: 'usage',
443
2090
  extraInfo: 'extra_info',
2091
+ error: 'error',
444
2092
  };
445
2093
  }
446
2094
 
@@ -451,11 +2099,12 @@ export class QueryVideogenerationResponse extends $tea.Model {
451
2099
  resultMsg: 'string',
452
2100
  taskId: 'string',
453
2101
  status: 'string',
454
- videoUrl: 'string',
455
- errorCode: 'string',
456
- errorMessage: 'string',
457
- usage: Usage,
458
- extraInfo: ExtraInfo,
2102
+ model: 'string',
2103
+ createdAt: 'string',
2104
+ content: { 'type': 'array', 'itemType': AudioList },
2105
+ usage: { 'type': 'array', 'itemType': AudioUsage },
2106
+ extraInfo: 'string',
2107
+ error: Error,
459
2108
  };
460
2109
  }
461
2110
 
@@ -464,23 +2113,26 @@ export class QueryVideogenerationResponse extends $tea.Model {
464
2113
  }
465
2114
  }
466
2115
 
467
- export class UploadAssetRequest extends $tea.Model {
2116
+ export class ExecMaasChatsyncRequest extends $tea.Model {
468
2117
  // OAuth模式下的授权token
469
2118
  authToken?: string;
470
2119
  productInstanceId?: string;
471
- // 资产类型
472
- assetType: string;
473
- // 公网可访问的文件URL
474
- fileUrl: string;
475
- // 资产名称
476
- assetName: string;
2120
+ // 幂等标识,由客户端生成
2121
+ requestId: string;
2122
+ // 文本模型编码
2123
+ model: string;
2124
+ // 非空消息列表
2125
+ messages: ChatMessages[];
2126
+ // 模型参数 JSON 字符串
2127
+ extParams?: string;
477
2128
  static names(): { [key: string]: string } {
478
2129
  return {
479
2130
  authToken: 'auth_token',
480
2131
  productInstanceId: 'product_instance_id',
481
- assetType: 'asset_type',
482
- fileUrl: 'file_url',
483
- assetName: 'asset_name',
2132
+ requestId: 'request_id',
2133
+ model: 'model',
2134
+ messages: 'messages',
2135
+ extParams: 'ext_params',
484
2136
  };
485
2137
  }
486
2138
 
@@ -488,9 +2140,10 @@ export class UploadAssetRequest extends $tea.Model {
488
2140
  return {
489
2141
  authToken: 'string',
490
2142
  productInstanceId: 'string',
491
- assetType: 'string',
492
- fileUrl: 'string',
493
- assetName: 'string',
2143
+ requestId: 'string',
2144
+ model: 'string',
2145
+ messages: { 'type': 'array', 'itemType': ChatMessages },
2146
+ extParams: 'string',
494
2147
  };
495
2148
  }
496
2149
 
@@ -499,27 +2152,33 @@ export class UploadAssetRequest extends $tea.Model {
499
2152
  }
500
2153
  }
501
2154
 
502
- export class UploadAssetResponse extends $tea.Model {
2155
+ export class ExecMaasChatsyncResponse extends $tea.Model {
503
2156
  // 请求唯一ID,用于链路跟踪和问题排查
504
2157
  reqMsgId?: string;
505
2158
  // 结果码,一般OK表示调用成功
506
2159
  resultCode?: string;
507
2160
  // 异常信息的文本描述
508
2161
  resultMsg?: string;
509
- // 资产ID
510
- assetId?: string;
511
- // 资产状态
512
- status?: string;
513
- // 资产类型
514
- assetType?: string;
2162
+ // 本次模型调用 ID
2163
+ id?: string;
2164
+ // 实际使用的模型
2165
+ model?: string;
2166
+ // 完整文本
2167
+ content?: string;
2168
+ // 结束原因
2169
+ finishReason?: string;
2170
+ // 用量
2171
+ usage?: ChatUsage;
515
2172
  static names(): { [key: string]: string } {
516
2173
  return {
517
2174
  reqMsgId: 'req_msg_id',
518
2175
  resultCode: 'result_code',
519
2176
  resultMsg: 'result_msg',
520
- assetId: 'asset_id',
521
- status: 'status',
522
- assetType: 'asset_type',
2177
+ id: 'id',
2178
+ model: 'model',
2179
+ content: 'content',
2180
+ finishReason: 'finish_reason',
2181
+ usage: 'usage',
523
2182
  };
524
2183
  }
525
2184
 
@@ -528,9 +2187,11 @@ export class UploadAssetResponse extends $tea.Model {
528
2187
  reqMsgId: 'string',
529
2188
  resultCode: 'string',
530
2189
  resultMsg: 'string',
531
- assetId: 'string',
532
- status: 'string',
533
- assetType: 'string',
2190
+ id: 'string',
2191
+ model: 'string',
2192
+ content: 'string',
2193
+ finishReason: 'string',
2194
+ usage: ChatUsage,
534
2195
  };
535
2196
  }
536
2197
 
@@ -539,17 +2200,26 @@ export class UploadAssetResponse extends $tea.Model {
539
2200
  }
540
2201
  }
541
2202
 
542
- export class QueryAssetRequest extends $tea.Model {
2203
+ export class ExecMaasPriceRequest extends $tea.Model {
543
2204
  // OAuth模式下的授权token
544
2205
  authToken?: string;
545
2206
  productInstanceId?: string;
546
- // 资产ID
547
- assetId: string;
2207
+ // 模型名称
2208
+ modelName: string;
2209
+ // 请求级定价维度
2210
+ requestDimensions?: string;
2211
+ // 请求级计量指标
2212
+ requestMetrics?: string;
2213
+ // 输出单元列表
2214
+ units?: PriceUnits[];
548
2215
  static names(): { [key: string]: string } {
549
2216
  return {
550
2217
  authToken: 'auth_token',
551
2218
  productInstanceId: 'product_instance_id',
552
- assetId: 'asset_id',
2219
+ modelName: 'model_name',
2220
+ requestDimensions: 'request_dimensions',
2221
+ requestMetrics: 'request_metrics',
2222
+ units: 'units',
553
2223
  };
554
2224
  }
555
2225
 
@@ -557,7 +2227,10 @@ export class QueryAssetRequest extends $tea.Model {
557
2227
  return {
558
2228
  authToken: 'string',
559
2229
  productInstanceId: 'string',
560
- assetId: 'string',
2230
+ modelName: 'string',
2231
+ requestDimensions: 'string',
2232
+ requestMetrics: 'string',
2233
+ units: { 'type': 'array', 'itemType': PriceUnits },
561
2234
  };
562
2235
  }
563
2236
 
@@ -566,36 +2239,51 @@ export class QueryAssetRequest extends $tea.Model {
566
2239
  }
567
2240
  }
568
2241
 
569
- export class QueryAssetResponse extends $tea.Model {
2242
+ export class ExecMaasPriceResponse extends $tea.Model {
570
2243
  // 请求唯一ID,用于链路跟踪和问题排查
571
2244
  reqMsgId?: string;
572
2245
  // 结果码,一般OK表示调用成功
573
2246
  resultCode?: string;
574
2247
  // 异常信息的文本描述
575
2248
  resultMsg?: string;
576
- // 资产ID
577
- assetId?: string;
578
- // 资产状态
579
- status?: string;
580
- // 资产类型
581
- assetType?: string;
582
- // 资产类型
583
- assetUrl?: string;
584
- // 错误信息
585
- errorMessage?: string;
586
- // 错误码
587
- errorCode?: string;
2249
+ // 至少一个输出单元命中
2250
+ matched?: boolean;
2251
+ // 首个输出单元是否命中兜底规则
2252
+ fallback?: boolean;
2253
+ // 命中规则编码
2254
+ priceRuleCode?: string;
2255
+ // 规则版本
2256
+ matchedRuleVersion?: number;
2257
+ // 规则名称
2258
+ ruleName?: string;
2259
+ // 规则优先级
2260
+ priority?: number;
2261
+ // 只计一次的请求级费用明细
2262
+ requestItems?: RequestItems[];
2263
+ // 各输出单元的试算明细
2264
+ unitEstimates?: UnitEstimates[];
2265
+ // 试算总金额
2266
+ totalAmount?: string;
2267
+ // 币种
2268
+ currency?: string;
2269
+ // 未命中或部分命中时的提示
2270
+ message?: string;
588
2271
  static names(): { [key: string]: string } {
589
2272
  return {
590
2273
  reqMsgId: 'req_msg_id',
591
2274
  resultCode: 'result_code',
592
2275
  resultMsg: 'result_msg',
593
- assetId: 'asset_id',
594
- status: 'status',
595
- assetType: 'asset_type',
596
- assetUrl: 'asset_url',
597
- errorMessage: 'error_message',
598
- errorCode: 'error_code',
2276
+ matched: 'matched',
2277
+ fallback: 'fallback',
2278
+ priceRuleCode: 'price_rule_code',
2279
+ matchedRuleVersion: 'matched_rule_version',
2280
+ ruleName: 'rule_name',
2281
+ priority: 'priority',
2282
+ requestItems: 'request_items',
2283
+ unitEstimates: 'unit_estimates',
2284
+ totalAmount: 'total_amount',
2285
+ currency: 'currency',
2286
+ message: 'message',
599
2287
  };
600
2288
  }
601
2289
 
@@ -604,12 +2292,17 @@ export class QueryAssetResponse extends $tea.Model {
604
2292
  reqMsgId: 'string',
605
2293
  resultCode: 'string',
606
2294
  resultMsg: 'string',
607
- assetId: 'string',
608
- status: 'string',
609
- assetType: 'string',
610
- assetUrl: 'string',
611
- errorMessage: 'string',
612
- errorCode: 'string',
2295
+ matched: 'boolean',
2296
+ fallback: 'boolean',
2297
+ priceRuleCode: 'string',
2298
+ matchedRuleVersion: 'number',
2299
+ ruleName: 'string',
2300
+ priority: 'number',
2301
+ requestItems: { 'type': 'array', 'itemType': RequestItems },
2302
+ unitEstimates: { 'type': 'array', 'itemType': UnitEstimates },
2303
+ totalAmount: 'string',
2304
+ currency: 'string',
2305
+ message: 'string',
613
2306
  };
614
2307
  }
615
2308
 
@@ -735,7 +2428,7 @@ export default class Client {
735
2428
  req_msg_id: AntchainUtil.getNonce(),
736
2429
  access_key: this._accessKeyId,
737
2430
  base_sdk_version: "TeaSDK-2.0",
738
- sdk_version: "1.0.7",
2431
+ sdk_version: "1.1.1",
739
2432
  _prod_code: "CREATIVE",
740
2433
  _prod_channel: "default",
741
2434
  };
@@ -867,4 +2560,214 @@ export default class Client {
867
2560
  return $tea.cast<QueryAssetResponse>(await this.doRequest("1.0", "antdigital.creative.asset.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryAssetResponse({}));
868
2561
  }
869
2562
 
2563
+ /**
2564
+ * @remarks
2565
+ * Description: 上传资产
2566
+ * Summary: 上传资产
2567
+ */
2568
+ async uploadMaasAsset(request: UploadMaasAssetRequest): Promise<UploadMaasAssetResponse> {
2569
+ let runtime = new $Util.RuntimeOptions({ });
2570
+ let headers : {[key: string ]: string} = { };
2571
+ return await this.uploadMaasAssetEx(request, headers, runtime);
2572
+ }
2573
+
2574
+ /**
2575
+ * @remarks
2576
+ * Description: 上传资产
2577
+ * Summary: 上传资产
2578
+ */
2579
+ async uploadMaasAssetEx(request: UploadMaasAssetRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UploadMaasAssetResponse> {
2580
+ Util.validateModel(request);
2581
+ return $tea.cast<UploadMaasAssetResponse>(await this.doRequest("1.0", "antdigital.creative.maas.asset.upload", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new UploadMaasAssetResponse({}));
2582
+ }
2583
+
2584
+ /**
2585
+ * @remarks
2586
+ * Description: 查询资产
2587
+ * Summary: 查询资产
2588
+ */
2589
+ async queryMaasAsset(request: QueryMaasAssetRequest): Promise<QueryMaasAssetResponse> {
2590
+ let runtime = new $Util.RuntimeOptions({ });
2591
+ let headers : {[key: string ]: string} = { };
2592
+ return await this.queryMaasAssetEx(request, headers, runtime);
2593
+ }
2594
+
2595
+ /**
2596
+ * @remarks
2597
+ * Description: 查询资产
2598
+ * Summary: 查询资产
2599
+ */
2600
+ async queryMaasAssetEx(request: QueryMaasAssetRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryMaasAssetResponse> {
2601
+ Util.validateModel(request);
2602
+ return $tea.cast<QueryMaasAssetResponse>(await this.doRequest("1.0", "antdigital.creative.maas.asset.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryMaasAssetResponse({}));
2603
+ }
2604
+
2605
+ /**
2606
+ * @remarks
2607
+ * Description: 创建视频任务
2608
+ * Summary: 创建视频任务
2609
+ */
2610
+ async pushMaasVideo(request: PushMaasVideoRequest): Promise<PushMaasVideoResponse> {
2611
+ let runtime = new $Util.RuntimeOptions({ });
2612
+ let headers : {[key: string ]: string} = { };
2613
+ return await this.pushMaasVideoEx(request, headers, runtime);
2614
+ }
2615
+
2616
+ /**
2617
+ * @remarks
2618
+ * Description: 创建视频任务
2619
+ * Summary: 创建视频任务
2620
+ */
2621
+ async pushMaasVideoEx(request: PushMaasVideoRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PushMaasVideoResponse> {
2622
+ Util.validateModel(request);
2623
+ return $tea.cast<PushMaasVideoResponse>(await this.doRequest("1.0", "antdigital.creative.maas.video.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushMaasVideoResponse({}));
2624
+ }
2625
+
2626
+ /**
2627
+ * @remarks
2628
+ * Description: 查询视频任务
2629
+ * Summary: 查询视频任务
2630
+ */
2631
+ async queryMaasVideo(request: QueryMaasVideoRequest): Promise<QueryMaasVideoResponse> {
2632
+ let runtime = new $Util.RuntimeOptions({ });
2633
+ let headers : {[key: string ]: string} = { };
2634
+ return await this.queryMaasVideoEx(request, headers, runtime);
2635
+ }
2636
+
2637
+ /**
2638
+ * @remarks
2639
+ * Description: 查询视频任务
2640
+ * Summary: 查询视频任务
2641
+ */
2642
+ async queryMaasVideoEx(request: QueryMaasVideoRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryMaasVideoResponse> {
2643
+ Util.validateModel(request);
2644
+ return $tea.cast<QueryMaasVideoResponse>(await this.doRequest("1.0", "antdigital.creative.maas.video.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryMaasVideoResponse({}));
2645
+ }
2646
+
2647
+ /**
2648
+ * @remarks
2649
+ * Description: 生成图片
2650
+ * Summary: 生成图片
2651
+ */
2652
+ async pushMaasImage(request: PushMaasImageRequest): Promise<PushMaasImageResponse> {
2653
+ let runtime = new $Util.RuntimeOptions({ });
2654
+ let headers : {[key: string ]: string} = { };
2655
+ return await this.pushMaasImageEx(request, headers, runtime);
2656
+ }
2657
+
2658
+ /**
2659
+ * @remarks
2660
+ * Description: 生成图片
2661
+ * Summary: 生成图片
2662
+ */
2663
+ async pushMaasImageEx(request: PushMaasImageRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PushMaasImageResponse> {
2664
+ Util.validateModel(request);
2665
+ return $tea.cast<PushMaasImageResponse>(await this.doRequest("1.0", "antdigital.creative.maas.image.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushMaasImageResponse({}));
2666
+ }
2667
+
2668
+ /**
2669
+ * @remarks
2670
+ * Description: 查询图片任务
2671
+ * Summary: 查询图片任务
2672
+ */
2673
+ async queryMaasImage(request: QueryMaasImageRequest): Promise<QueryMaasImageResponse> {
2674
+ let runtime = new $Util.RuntimeOptions({ });
2675
+ let headers : {[key: string ]: string} = { };
2676
+ return await this.queryMaasImageEx(request, headers, runtime);
2677
+ }
2678
+
2679
+ /**
2680
+ * @remarks
2681
+ * Description: 查询图片任务
2682
+ * Summary: 查询图片任务
2683
+ */
2684
+ async queryMaasImageEx(request: QueryMaasImageRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryMaasImageResponse> {
2685
+ Util.validateModel(request);
2686
+ return $tea.cast<QueryMaasImageResponse>(await this.doRequest("1.0", "antdigital.creative.maas.image.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryMaasImageResponse({}));
2687
+ }
2688
+
2689
+ /**
2690
+ * @remarks
2691
+ * Description: 创建音频任务
2692
+ * Summary: 创建音频任务
2693
+ */
2694
+ async pushMaasAudio(request: PushMaasAudioRequest): Promise<PushMaasAudioResponse> {
2695
+ let runtime = new $Util.RuntimeOptions({ });
2696
+ let headers : {[key: string ]: string} = { };
2697
+ return await this.pushMaasAudioEx(request, headers, runtime);
2698
+ }
2699
+
2700
+ /**
2701
+ * @remarks
2702
+ * Description: 创建音频任务
2703
+ * Summary: 创建音频任务
2704
+ */
2705
+ async pushMaasAudioEx(request: PushMaasAudioRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PushMaasAudioResponse> {
2706
+ Util.validateModel(request);
2707
+ return $tea.cast<PushMaasAudioResponse>(await this.doRequest("1.0", "antdigital.creative.maas.audio.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushMaasAudioResponse({}));
2708
+ }
2709
+
2710
+ /**
2711
+ * @remarks
2712
+ * Description: 查询音频任务
2713
+ * Summary: 查询音频任务
2714
+ */
2715
+ async queryMaasAudio(request: QueryMaasAudioRequest): Promise<QueryMaasAudioResponse> {
2716
+ let runtime = new $Util.RuntimeOptions({ });
2717
+ let headers : {[key: string ]: string} = { };
2718
+ return await this.queryMaasAudioEx(request, headers, runtime);
2719
+ }
2720
+
2721
+ /**
2722
+ * @remarks
2723
+ * Description: 查询音频任务
2724
+ * Summary: 查询音频任务
2725
+ */
2726
+ async queryMaasAudioEx(request: QueryMaasAudioRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryMaasAudioResponse> {
2727
+ Util.validateModel(request);
2728
+ return $tea.cast<QueryMaasAudioResponse>(await this.doRequest("1.0", "antdigital.creative.maas.audio.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryMaasAudioResponse({}));
2729
+ }
2730
+
2731
+ /**
2732
+ * @remarks
2733
+ * Description: 文本同步调用
2734
+ * Summary: 文本同步调用
2735
+ */
2736
+ async execMaasChatsync(request: ExecMaasChatsyncRequest): Promise<ExecMaasChatsyncResponse> {
2737
+ let runtime = new $Util.RuntimeOptions({ });
2738
+ let headers : {[key: string ]: string} = { };
2739
+ return await this.execMaasChatsyncEx(request, headers, runtime);
2740
+ }
2741
+
2742
+ /**
2743
+ * @remarks
2744
+ * Description: 文本同步调用
2745
+ * Summary: 文本同步调用
2746
+ */
2747
+ async execMaasChatsyncEx(request: ExecMaasChatsyncRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ExecMaasChatsyncResponse> {
2748
+ Util.validateModel(request);
2749
+ return $tea.cast<ExecMaasChatsyncResponse>(await this.doRequest("1.0", "antdigital.creative.maas.chatsync.exec", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ExecMaasChatsyncResponse({}));
2750
+ }
2751
+
2752
+ /**
2753
+ * @remarks
2754
+ * Description: 价格试算
2755
+ * Summary: 价格试算
2756
+ */
2757
+ async execMaasPrice(request: ExecMaasPriceRequest): Promise<ExecMaasPriceResponse> {
2758
+ let runtime = new $Util.RuntimeOptions({ });
2759
+ let headers : {[key: string ]: string} = { };
2760
+ return await this.execMaasPriceEx(request, headers, runtime);
2761
+ }
2762
+
2763
+ /**
2764
+ * @remarks
2765
+ * Description: 价格试算
2766
+ * Summary: 价格试算
2767
+ */
2768
+ async execMaasPriceEx(request: ExecMaasPriceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ExecMaasPriceResponse> {
2769
+ Util.validateModel(request);
2770
+ return $tea.cast<ExecMaasPriceResponse>(await this.doRequest("1.0", "antdigital.creative.maas.price.exec", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ExecMaasPriceResponse({}));
2771
+ }
2772
+
870
2773
  }