1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'RPC', 'product' => 'Green', 'version' => '2022-03-02'],
'directories' => [
'TextModerationPlus',
'TextModeration',
'ImageModeration',
'ImageAsyncModeration',
'DescribeImageModerationResult',
'VoiceModeration',
'VoiceModerationResult',
'VoiceModerationCancel',
'VideoModeration',
'VideoModerationResult',
'VideoModerationCancel',
'FileModeration',
'DescribeFileModerationResult',
[
'children' => ['DescribeImageResultExt', 'UrlAsyncModeration', 'DescribeUrlModerationResult', 'DescribeUploadToken', 'ImageBatchModeration', 'ManualCallback', 'ManualModeration', 'ManualModerationResult', 'DescribeMultimodalModerationResult', 'MultiModalAgent', 'MultiModalGuard', 'MultiModalGuardAsync', 'MultiModalGuardAsyncResult', 'MultiModalGuardForBase64', 'MultiModalGuardWs', 'MultimodalAsyncModeration'],
'type' => 'directory',
'title' => 'Others',
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'DescribeFileModerationResult' => [
'summary' => 'Document review results',
'methods' => ['post', 'get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '205895',
'abilityTreeNodes' => ['FEATURElvwang6CEZ66'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
'schema' => ['description' => 'The service for enhanced file moderation.', 'type' => 'string', 'required' => false, 'example' => 'document_detection', 'title' => ''],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
'schema' => ['description' => 'The parameters for the moderation service, specified as a JSON string.'."\n"
."\n"
.'- taskId: Required. The URL of the object to moderate. The URL must be accessible over the public network.', 'type' => 'string', 'required' => false, 'example' => '{\\"taskId\\":\\"vi_f_hPgx9PFIQISdlfA888hOFG-1yJq8v\\"}', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Response schema',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492'],
'Code' => ['description' => 'The return code. A value of 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'DataId' => ['description' => 'The ID of the data.', 'type' => 'string', 'example' => '26769ada6e264e7ba9aa048241e12be9', 'title' => ''],
'Url' => ['description' => 'The download URL for the file.', 'type' => 'string', 'example' => 'https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.pdf', 'title' => ''],
'DocType' => ['description' => 'The document type. This parameter is optional.', 'type' => 'string', 'example' => 'doc', 'title' => ''],
'PageResult' => [
'description' => 'A list of moderation results.',
'type' => 'array',
'items' => [
'description' => 'The result content.',
'type' => 'object',
'properties' => [
'PageNum' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'ImageUrl' => ['description' => 'The URL of the image.', 'type' => 'string', 'example' => 'https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.jpg', 'title' => ''],
'TextUrl' => ['description' => 'The URL where the text content is stored.', 'type' => 'string', 'example' => 'https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.txt', 'title' => ''],
'ImageResult' => [
'description' => 'The image moderation results.',
'type' => 'array',
'items' => [
'description' => 'The result content.',
'type' => 'object',
'properties' => [
'Description' => ['description' => 'The description.', 'type' => 'string', 'example' => '这个是标题', 'title' => ''],
'Service' => ['description' => 'The service that was called.', 'type' => 'string', 'example' => 'baselineCheck', 'title' => ''],
'Location' => [
'description' => 'The location information.',
'type' => 'object',
'properties' => [
'X' => ['description' => 'The X coordinate of the point.', 'type' => 'integer', 'format' => 'int32', 'example' => '11', 'title' => ''],
'Y' => ['description' => 'The Y-coordinate of the point.', 'type' => 'integer', 'format' => 'int32', 'example' => '22', 'title' => ''],
'W' => ['description' => 'The width of the detected area.', 'type' => 'integer', 'format' => 'int32', 'example' => '33', 'title' => ''],
'H' => ['description' => 'The height of the detected area.', 'type' => 'integer', 'format' => 'int32', 'example' => '44', 'title' => ''],
],
'title' => '',
'example' => '',
],
'LabelResult' => [
'description' => 'The label information.',
'type' => 'array',
'items' => [
'description' => 'The label information.',
'type' => 'object',
'properties' => [
'Label' => ['description' => 'The label.', 'type' => 'string', 'example' => 'nonlabel', 'title' => ''],
'Confidence' => ['description' => 'The confidence score.', 'type' => 'number', 'format' => 'float', 'example' => '25.0', 'title' => ''],
'Description' => ['description' => 'The description.', 'type' => 'string', 'example' => '这个是标题'."\n", 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'RiskLevel' => ['description' => 'The risk level.', 'type' => 'string', 'example' => 'high', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'TextResult' => [
'description' => 'The text moderation results.',
'type' => 'array',
'items' => [
'description' => 'The result content.',
'type' => 'object',
'properties' => [
'Description' => ['description' => 'The description.', 'type' => 'string', 'example' => '这是一个标题', 'title' => ''],
'Service' => ['description' => 'The service.', 'type' => 'string', 'example' => 'chat_detection', 'title' => ''],
'Text' => ['description' => 'The text content.', 'type' => 'string', 'example' => '吧啦吧啦', 'title' => ''],
'TextSegment' => ['description' => 'Information about the text segment.', 'type' => 'string', 'example' => '[0,999]', 'title' => ''],
'Labels' => ['description' => 'The value of the label.', 'type' => 'string', 'example' => 'porn', 'title' => ''],
'Descriptions' => ['description' => 'The description of the label.', 'type' => 'string', 'example' => '疑似广告内容', 'title' => ''],
'RiskWords' => ['description' => 'The risk keywords that were hit.', 'type' => 'string', 'example' => 'xxx', 'title' => ''],
'RiskTips' => ['description' => 'Details about the hit risk.', 'type' => 'string', 'example' => 'xxx', 'title' => ''],
'RiskLevel' => ['description' => 'The risk level.', 'type' => 'string', 'example' => 'high', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'PageSummary' => [
'description' => 'The summary information.',
'type' => 'object',
'properties' => [
'PageSum' => ['description' => 'The total number of pages.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'ImageSummary' => [
'description' => 'The image summary information.',
'type' => 'object',
'properties' => [
'RiskLevel' => ['description' => 'The risk level.', 'type' => 'string', 'example' => 'high', 'title' => ''],
'ImageLabels' => [
'description' => 'The image labels.',
'type' => 'array',
'items' => [
'description' => 'The image labels.',
'type' => 'object',
'properties' => [
'Label' => ['description' => 'The label.', 'type' => 'string', 'example' => 'contraband', 'title' => ''],
'LabelSum' => ['description' => 'The number of times the label appears.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'Description' => ['description' => 'The description of the label.', 'type' => 'string', 'example' => 'test', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'TextSummary' => [
'description' => 'The text summary information.',
'type' => 'object',
'properties' => [
'RiskLevel' => ['description' => 'The risk level.', 'type' => 'string', 'example' => 'high', 'title' => ''],
'TextLabels' => [
'description' => 'The text labels.',
'type' => 'array',
'items' => [
'description' => 'The text labels.',
'type' => 'object',
'properties' => [
'Label' => ['description' => 'The label.', 'type' => 'string', 'example' => 'contraband', 'title' => ''],
'LabelSum' => ['description' => 'The number of times the label appears.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'Description' => ['description' => 'The description of the label.', 'type' => 'string', 'example' => '未检测出风险', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'RiskLevel' => ['description' => 'The risk level.', 'type' => 'string', 'example' => 'high', 'title' => ''],
'AccountId' => ['description' => 'The AccountId specified in the request.', 'type' => 'string', 'example' => 'accountIdtest123', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-C8C7-4A01-B52E-FF6E24F53492\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"26769ada6e264e7ba9aa048241e12be9\\",\\n \\"Url\\": \\"https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.pdf\\",\\n \\"DocType\\": \\"doc\\",\\n \\"PageResult\\": [\\n {\\n \\"PageNum\\": 1,\\n \\"ImageUrl\\": \\"https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.jpg\\",\\n \\"TextUrl\\": \\"https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.txt\\",\\n \\"ImageResult\\": [\\n {\\n \\"Description\\": \\"这个是标题\\",\\n \\"Service\\": \\"baselineCheck\\",\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 33,\\n \\"H\\": 44\\n },\\n \\"LabelResult\\": [\\n {\\n \\"Label\\": \\"nonlabel\\",\\n \\"Confidence\\": 25,\\n \\"Description\\": \\"这个是标题\\\\n\\"\\n }\\n ],\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ],\\n \\"TextResult\\": [\\n {\\n \\"Description\\": \\"这是一个标题\\",\\n \\"Service\\": \\"chat_detection\\",\\n \\"Text\\": \\"吧啦吧啦\\",\\n \\"TextSegment\\": \\"[0,999]\\",\\n \\"Labels\\": \\"porn\\",\\n \\"Descriptions\\": \\"疑似广告内容\\",\\n \\"RiskWords\\": \\"xxx\\",\\n \\"RiskTips\\": \\"xxx\\",\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ]\\n }\\n ],\\n \\"PageSummary\\": {\\n \\"PageSum\\": 1,\\n \\"ImageSummary\\": {\\n \\"RiskLevel\\": \\"high\\",\\n \\"ImageLabels\\": [\\n {\\n \\"Label\\": \\"contraband\\",\\n \\"LabelSum\\": 1,\\n \\"Description\\": \\"test\\"\\n }\\n ]\\n },\\n \\"TextSummary\\": {\\n \\"RiskLevel\\": \\"high\\",\\n \\"TextLabels\\": [\\n {\\n \\"Label\\": \\"contraband\\",\\n \\"LabelSum\\": 1,\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ]\\n }\\n },\\n \\"RiskLevel\\": \\"high\\",\\n \\"AccountId\\": \\"accountIdtest123\\"\\n }\\n}","type":"json"}]',
'title' => 'Describe File Moderation Result',
'changeSet' => [
['createdAt' => '2025-01-09T12:54:53.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-09-13T08:40:00.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeFileModerationResult'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:DescribeFileModerationResult',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DescribeImageModerationResult' => [
'summary' => 'Retrieves the results of an Image Moderation Pro task.',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '198839',
'abilityTreeNodes' => ['FEATURElvwangLRLIH6'],
],
'parameters' => [
[
'name' => 'ReqId',
'in' => 'query',
'schema' => ['description' => 'The \\`ReqId\\` returned by the asynchronous Image Moderation Pro API.', 'type' => 'string', 'required' => false, 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Response schema',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'The unique ID of the request. Alibaba Cloud generates this ID for each request. Use this ID to troubleshoot and locate issues.', 'type' => 'string', 'example' => '2881AD4F-638B-52A3-BA20-F74C5B1CEAE3'],
'Code' => ['description' => 'The error code. This is the same as the HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Msg' => ['description' => 'The response message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'Data' => [
'description' => 'The results of the image content moderation.',
'type' => 'object',
'properties' => [
'DataId' => ['description' => 'The value of the \\`dataId\\` parameter specified in the API request. This field is not returned if \\`dataId\\` was not specified.', 'type' => 'string', 'example' => '2a5389eb-4ff8-4584-ac99-644e2a539aa1', 'title' => ''],
'Result' => [
'description' => 'The results of the image moderation, including risk labels and confidence scores.',
'type' => 'array',
'items' => [
'description' => 'A collection of results.',
'type' => 'object',
'properties' => [
'Label' => ['description' => 'The label returned after the image content is moderated.', 'type' => 'string', 'example' => 'violent_explosion', 'title' => ''],
'Confidence' => ['description' => 'The confidence score. The value ranges from 0 to 100. The value is accurate to two decimal places.', 'type' => 'number', 'format' => 'float', 'example' => '81.22', 'title' => ''],
'Description' => ['description' => 'The description.', 'type' => 'string', 'example' => '未检测出风险', 'title' => ''],
'RiskLevel' => ['description' => 'The risk level.', 'type' => 'string', 'example' => 'high', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'FrameNum' => ['description' => 'The number of result frames.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'Frame' => ['description' => 'Information about the image frames.', 'type' => 'string', 'example' => '[{"result":[{"confidence":81.22,"label":"violent_explosion"}]}]', 'title' => ''],
'ReqId' => ['description' => 'The \\`ReqId\\` returned by the asynchronous Image Moderation Pro API.', 'type' => 'string', 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C'."\n", 'title' => ''],
'RiskLevel' => ['description' => 'The risk level.', 'type' => 'string', 'example' => 'high', 'title' => ''],
'ManualTaskId' => ['description' => 'The ID of the manual review task.', 'type' => 'string', 'example' => 'xxxxx-xxxxx', 'title' => ''],
'AccountId' => ['description' => 'The AccountId specified in the request.', 'type' => 'string', 'example' => '123456789', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2881AD4F-638B-52A3-BA20-F74C5B1CEAE3\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"2a5389eb-4ff8-4584-ac99-644e2a539aa1\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Confidence\\": 81.22,\\n \\"Description\\": \\"未检测出风险\\",\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ],\\n \\"FrameNum\\": 1,\\n \\"Frame\\": \\"[{\\\\\\"result\\\\\\":[{\\\\\\"confidence\\\\\\":81.22,\\\\\\"label\\\\\\":\\\\\\"violent_explosion\\\\\\"}]}]\\",\\n \\"ReqId\\": \\"B0963D30-BAB4-562F-9ED0-7A23AEC51C7C\\\\n\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\",\\n \\"AccountId\\": \\"123456789\\"\\n }\\n}","type":"json"}]',
'title' => 'DescribeImageModerationResult',
'description' => '- Billing information: This operation is not billed.'."\n"
."\n"
.'- QPS limit: This operation is limited to 100 queries per second (QPS) for each user. If you exceed this limit, your API calls are throttled, which may affect your business. We recommend that you call this operation at a reasonable rate.',
'responseParamsDescription' => 'The following table describes the returned \\`code\\`. You are charged only for requests that return a code of 200. You are not charged for requests that return other codes.'."\n"
."\n"
.'| **Code** | **Description** |'."\n"
.'| -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |'."\n"
.'| 200 | The request is successful. |'."\n"
.'| 280 | Moderation is in progress. |'."\n"
.'| 400 | The request parameters are empty. |'."\n"
.'| 401 | The request parameters are invalid. |'."\n"
.'| 402 | The length of a request parameter is invalid. Check the parameter and try again. |'."\n"
.'| 403 | The request exceeds the QPS limit. Check and adjust the number of concurrent requests. |'."\n"
.'| 404 | An error occurred while downloading the image. Check the image or try again. |'."\n"
.'| 405 | The image download timed out. This can occur if the image is inaccessible. Check the image and try again. |'."\n"
.'| 406 | The image is too large. Resize the image and try again. |'."\n"
.'| 407 | The image format is not supported. Change the image format and try again. |'."\n"
.'| 408 | The account does not have permission to call this operation. This can happen if the service is not activated, the account has an overdue payment, or the account is not authorized. |'."\n"
.'| 409 | The specified `ReqId` does not exist. This can happen if the query interval is too short or the `ReqId` has expired. A `ReqId` is valid for 30 days. |'."\n"
.'| 500 | A system error occurred. |',
'changeSet' => [
['createdAt' => '2025-06-12T02:05:04.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2025-03-17T05:56:52.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-08-20T09:55:57.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-07-03T11:04:23.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-01-03T11:20:05.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-11-09T03:38:37.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeImageModerationResult'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:DescribeImageModerationResult',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DescribeImageResultExt' => [
'summary' => 'The enhanced image moderation auxiliary information API operation retrieves additional auxiliary information detected by the enhanced image moderation API operation, including OCR results and custom image library hit information.',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '178655',
'abilityTreeNodes' => ['FEATURElvwangLRLIH6'],
],
'parameters' => [
[
'name' => 'ReqId',
'in' => 'formData',
'schema' => ['description' => 'The requestId field returned by the enhanced image moderation API', 'type' => 'string', 'required' => false, 'example' => '638EDDC65C82AB39319A9F60', 'title' => ''],
],
[
'name' => 'InfoType',
'in' => 'formData',
'schema' => ['description' => 'The type of information to obtain. Multiple values are separated by commas. Valid values:'."\n"
."\n"
.'- customImage: custom image library hit information'."\n"
."\n"
.'- textInImage: text information in the image', 'type' => 'string', 'required' => false, 'example' => 'customImage,textInImage', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'The returned object.',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492'],
'Code' => ['description' => 'The status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Msg' => ['description' => 'The response message of the request.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'CustomImage' => [
'description' => 'The list of custom image library hit information.',
'type' => 'array',
'items' => [
'description' => 'The custom image library hit information.',
'type' => 'object',
'properties' => [
'ImageId' => ['description' => 'The image ID.', 'type' => 'string', 'example' => '123456', 'title' => ''],
'LibName' => ['description' => 'The image library name.', 'type' => 'string', 'example' => '图库123', 'title' => ''],
'LibId' => ['description' => 'The image library ID.', 'type' => 'string', 'example' => '123456', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'TextInImage' => [
'description' => 'The text information in the hit image.',
'type' => 'object',
'properties' => [
'OcrDatas' => [
'description' => 'The text information detected in the image.',
'type' => 'array',
'items' => ['description' => 'The text information.', 'type' => 'string', 'example' => 'abcd', 'title' => ''],
'title' => '',
'example' => '',
],
'RiskWords' => [
'description' => 'The hit risk keywords',
'type' => 'array',
'items' => ['description' => 'The text information.', 'type' => 'string', 'example' => 'abcd', 'title' => ''],
'title' => '',
'example' => '',
],
'CustomTexts' => [
'description' => 'When a custom text library is hit, the custom library ID, custom library name, and custom words are returned.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'LibId' => ['description' => 'The custom library ID', 'type' => 'string', 'example' => '123456', 'title' => ''],
'LibName' => ['description' => 'The custom library name.', 'type' => 'string', 'example' => '自定义库1', 'title' => ''],
'KeyWords' => ['description' => 'The custom words, multiple words are separated by commas.', 'type' => 'string', 'example' => '自定义词1,自定义词2', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'PublicFigure' => [
'description' => 'The list of figure information.',
'type' => 'array',
'items' => [
'description' => 'The figure information.',
'type' => 'object',
'properties' => [
'FigureId' => ['description' => 'The figure ID.', 'type' => 'string', 'example' => 'yzazhzou', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'DescribeImageResultExt',
'description' => 'This API operation must be used with the enhanced image moderation API. After you call the enhanced image moderation API operation, you can call this API operation to obtain additional detection information. This API operation is free of charge.',
'requestParamsDescription' => 'We recommend that you query 5 seconds after calling the enhanced image moderation API operation. The auxiliary information is stored for a maximum of 30 days. We recommend that you retrieve the auxiliary information when needed and store the logs properly.',
'changeSet' => [
['createdAt' => '2024-04-11T11:00:56.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-06-20T05:54:01.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeImageResultExt'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-greenweb:DescribeImageResultExt',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-C8C7-4A01-B52E-FF6E24F53492\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"CustomImage\\": [\\n {\\n \\"ImageId\\": \\"123456\\",\\n \\"LibName\\": \\"图库123\\",\\n \\"LibId\\": \\"123456\\"\\n }\\n ],\\n \\"TextInImage\\": {\\n \\"OcrDatas\\": [\\n \\"abcd\\"\\n ],\\n \\"RiskWords\\": [\\n \\"abcd\\"\\n ],\\n \\"CustomTexts\\": [\\n {\\n \\"LibId\\": \\"123456\\",\\n \\"LibName\\": \\"自定义库1\\",\\n \\"KeyWords\\": \\"自定义词1,自定义词2\\"\\n }\\n ]\\n },\\n \\"PublicFigure\\": [\\n {\\n \\"FigureId\\": \\"yzazhzou\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'DescribeMultimodalModerationResult' => [
'summary' => 'Query the results of an asynchronous multimodal moderation task.',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '198839',
'abilityTreeNodes' => ['FEATURElvwangLRLIH6'],
'autoTest' => true,
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'ReqId',
'in' => 'query',
'schema' => ['description' => 'The ReqId field returned by the asynchronous moderation API.', 'type' => 'string', 'required' => false, 'example' => 'AAAAA-BBBBB-AIXI-1314-CCCCC', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****', 'title' => ''],
'Code' => ['description' => 'The error code, which matches the HTTP status code.', 'type' => 'integer', 'format' => 'int64', 'example' => '200', 'title' => ''],
'Msg' => ['description' => 'The response message for this request.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'Data' => [
'type' => 'object',
'properties' => [
'CommentDatas' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'CommentDatas' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Results' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Description' => ['description' => 'Description of the Label field.', 'type' => 'string', 'example' => '疑似含有烟火类内容元素', 'title' => ''],
'Label' => ['description' => 'Risk label.', 'type' => 'string', 'example' => 'violent_explosion', 'title' => ''],
],
'description' => 'Moderation result.',
'title' => '',
'example' => '',
],
'description' => 'Comment moderation results.',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'description' => 'Moderation results.',
'title' => '',
'example' => '',
],
'Results' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Description' => ['description' => 'Description of the Label field.', 'type' => 'string', 'example' => '疑似含有烟火类内容元素', 'title' => ''],
'Label' => ['description' => 'Risk label.', 'type' => 'string', 'example' => 'violent_explosion', 'title' => ''],
],
'description' => 'Image moderation service type.',
'title' => '',
'example' => '',
],
'description' => 'Comment moderation results.',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'description' => 'Comment moderation results.',
'title' => '',
'example' => '',
],
'MainData' => [
'type' => 'object',
'properties' => [
'Results' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Description' => ['description' => 'Description of the Label field.', 'type' => 'string', 'example' => '疑似含有烟火类内容元素', 'title' => ''],
'Label' => ['description' => 'Risk label.', 'type' => 'string', 'example' => 'violent_explosion', 'title' => ''],
],
'description' => 'Moderation result.',
'title' => '',
'example' => '',
],
'description' => 'Main post moderation results.',
'title' => '',
'example' => '',
],
],
'description' => 'Main post moderation results.',
'title' => '',
'example' => '',
],
'ReqId' => ['description' => 'The ReqId field returned by the asynchronous moderation API.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****', 'title' => ''],
'RiskLevel' => ['description' => 'Risk level.', 'type' => 'string', 'example' => 'high', 'title' => ''],
'DataId' => ['description' => 'The dataId value passed in the API request. This field is absent if no dataId was provided in the request.', 'type' => 'string', 'example' => 'data1234', 'title' => ''],
],
'description' => 'The returned data.',
'title' => '',
'example' => '',
],
],
'title' => '',
'description' => 'Schema of Response',
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'DescribeMultimodalModerationResult',
'description' => '- Billing information: This API call is free.'."\n"
."\n"
.'- Query timeout: Wait 30 seconds after you submit an asynchronous moderation task before querying the result. Do not wait longer than 24 hours, or the result will be automatically deleted.'."\n"
."\n"
.'- This API has a per-user rate limiting limit of 10 requests per second. Exceeding this limit triggers rate limiting, which may affect your service. Call the API responsibly.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:DescribeMultimodalModerationResult',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"OK\\",\\n \\"Data\\": {\\n \\"CommentDatas\\": [\\n {\\n \\"CommentDatas\\": [\\n {\\n \\"Results\\": [\\n {\\n \\"Description\\": \\"疑似含有烟火类内容元素\\",\\n \\"Label\\": \\"violent_explosion\\"\\n }\\n ]\\n }\\n ],\\n \\"Results\\": [\\n {\\n \\"Description\\": \\"疑似含有烟火类内容元素\\",\\n \\"Label\\": \\"violent_explosion\\"\\n }\\n ]\\n }\\n ],\\n \\"MainData\\": {\\n \\"Results\\": [\\n {\\n \\"Description\\": \\"疑似含有烟火类内容元素\\",\\n \\"Label\\": \\"violent_explosion\\"\\n }\\n ]\\n },\\n \\"ReqId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"DataId\\": \\"data1234\\"\\n }\\n}","type":"json"}]',
],
'DescribeUploadToken' => [
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '186981',
'abilityTreeNodes' => ['FEATURElvwang78REFZ'],
],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
'Code' => ['description' => 'The return code. A value of 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '200'],
'Msg' => ['description' => 'The response message for the request.', 'type' => 'string', 'title' => '', 'example' => 'OK'],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'AccessKeyId' => ['description' => 'The AccessKey ID of the temporary credential for file upload.', 'type' => 'string', 'title' => '', 'example' => 'STS.NUEUjvDqMuvH6oQA1TXxxH4wVR'],
'AccessKeySecret' => ['description' => 'The temporary authorization secret.', 'type' => 'string', 'title' => '', 'example' => 'xxxx'],
'SecurityToken' => ['description' => 'The security token of the temporary credential for file upload.', 'type' => 'string', 'title' => '', 'example' => 'xxxx'],
'FileNamePrefix' => ['description' => 'The file prefix.', 'type' => 'string', 'title' => '', 'example' => 'upload/1xxb89/'],
'OssInternalEndPoint' => ['description' => 'The internal endpoint of OSS.', 'type' => 'string', 'title' => '', 'example' => 'https://oss-cn-shanghai-internal.aliyuncs.com'],
'OssInternetEndPoint' => ['description' => 'The Internet endpoint of OSS.', 'type' => 'string', 'title' => '', 'example' => 'https://oss-cn-shanghai.aliyuncs.com'],
'BucketName' => ['description' => 'The bucket name.', 'type' => 'string', 'title' => '', 'example' => 'oss-cip-shanghai'],
'Expiration' => ['description' => 'The expiration time.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1720577200'],
],
'title' => '',
],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'DescribeUploadToken',
'summary' => 'Retrieves an upload token.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeUploadToken'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:DescribeUploadToken',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"OK\\",\\n \\"Data\\": {\\n \\"AccessKeyId\\": \\"STS.NUEUjvDqMuvH6oQA1TXxxH4wVR\\",\\n \\"AccessKeySecret\\": \\"xxxx\\",\\n \\"SecurityToken\\": \\"xxxx\\",\\n \\"FileNamePrefix\\": \\"upload/1xxb89/\\",\\n \\"OssInternalEndPoint\\": \\"https://oss-cn-shanghai-internal.aliyuncs.com\\",\\n \\"OssInternetEndPoint\\": \\"https://oss-cn-shanghai.aliyuncs.com\\",\\n \\"BucketName\\": \\"oss-cip-shanghai\\",\\n \\"Expiration\\": 1720577200\\n }\\n}","type":"json"}]',
],
'DescribeUrlModerationResult' => [
'summary' => 'Queries moderation results based on the ReqId returned by asynchronous URL moderation.',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '211720',
'abilityTreeNodes' => ['FEATURElvwang7UL554'],
],
'parameters' => [
[
'name' => 'ReqId',
'in' => 'formData',
'schema' => ['description' => 'The ReqId field returned by the asynchronous URL moderation operation', 'type' => 'string', 'required' => false, 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The ID of this request.', 'type' => 'string', 'example' => '01F9144A-2088-5D87-935B-2DB865284B1A', 'title' => ''],
'Code' => ['description' => 'The return code. A value of 200 indicates success.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Msg' => ['description' => 'The response message of this request.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'DataId' => ['description' => 'The value of the dataId parameter passed in the API request. This field is not returned if the parameter is not passed in the request.', 'type' => 'string', 'example' => '26769ada6e264e7ba9aa048241e12be9', 'title' => ''],
'ReqId' => ['description' => 'The ReqId field returned by the asynchronous URL moderation operation', 'type' => 'string', 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C'."\n", 'title' => ''],
'Result' => [
'description' => 'The returned collection.',
'type' => 'array',
'items' => [
'description' => 'The returned collection.',
'type' => 'object',
'properties' => [
'Label' => ['description' => 'The label returned after URL moderation.', 'type' => 'string', 'example' => 'sexual_url', 'title' => ''],
'Confidence' => ['description' => 'The confidence score, ranging from 0 to 100, with two decimal places.', 'type' => 'number', 'format' => 'float', 'example' => '81.22', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'ExtraInfo' => [
'description' => 'Additional information.',
'type' => 'object',
'properties' => [
'IcpType' => ['description' => 'The ICP filing type.', 'type' => 'string', 'example' => '企业', 'title' => ''],
'IcpNo' => ['description' => 'The ICP filing number.', 'type' => 'string', 'example' => 'ICP备123456789', 'title' => ''],
'SiteType' => ['description' => 'The website type', 'type' => 'string', 'example' => 'game', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'DescribeUrlModerationResult',
'description' => '- Billing information: This operation is free of charge.'."\n"
."\n"
.'- Query timeout: We recommend that you set the query interval to 480 seconds (query the results 480 seconds after you submit the asynchronous moderation task). The maximum timeout period is 3 days. After this period, the results are automatically deleted.'."\n"
."\n"
.'- The QPS limit for this operation is 100 queries per second (QPS) per user. If the limit is exceeded, your API calls will be throttled, which may affect your business. Make sure you call the operation at a reasonable rate.',
'changeSet' => [
['createdAt' => '2024-07-25T09:34:53.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeUrlModerationResult'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:DescribeUrlModerationResult',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"01F9144A-2088-5D87-935B-2DB865284B1A\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"26769ada6e264e7ba9aa048241e12be9\\",\\n \\"ReqId\\": \\"B0963D30-BAB4-562F-9ED0-7A23AEC51C7C\\\\n\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"sexual_url\\",\\n \\"Confidence\\": 81.22\\n }\\n ],\\n \\"ExtraInfo\\": {\\n \\"IcpType\\": \\"企业\\",\\n \\"IcpNo\\": \\"ICP备123456789\\",\\n \\"SiteType\\": \\"game\\"\\n }\\n }\\n}","type":"json"}]',
],
'FileModeration' => [
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '204033',
'abilityTreeNodes' => ['FEATURElvwangCXKRID'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
'schema' => ['description' => 'The service supported by enhanced document moderation.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'document_detection'],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
'schema' => ['description' => 'The set of parameters required for the moderation service. The value must be a JSON string.'."\n"
."\n"
.'- url: Required. The URL of the object to be moderated. Make sure that the URL can be accessed over the Internet.'."\n"
.'- dataId: Optional. The data ID that corresponds to the moderated object.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '{"url":"https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.pdf"}'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'title' => '', 'example' => 'SUCCESS'],
'Code' => ['description' => 'The error code. This error code is the same as the HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '200'],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'TaskId' => ['description' => 'The task ID.', 'type' => 'string', 'title' => '', 'example' => 'xxxxx-xxxxx'],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'FileModeration',
'summary' => 'Moderates document content.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'FileModeration'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:FileModeration',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"TaskId\\": \\"xxxxx-xxxxx\\"\\n }\\n}","type":"json"}]',
],
'ImageAsyncModeration' => [
'summary' => 'This API is used for asynchronous image moderation. Asynchronous moderation tasks do not return detection results in real time. You can obtain the detection results using a callback or by polling. The detection results are retained for up to three days.',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '197491',
'abilityTreeNodes' => ['FEATURElvwang78REFZ'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'query',
'schema' => ['description' => 'The detection service supported by the enhanced image moderation feature. Valid values:'."\n"
."\n"
.'- baselineCheck: common baseline moderation'."\n"
."\n"
.'- baselineCheck\\_pro: common baseline moderation Professional Edition'."\n"
."\n"
.'- baselineCheck\\_cb: common baseline moderation for services outside China'."\n"
."\n"
.'- tonalityImprove: content administration moderation'."\n"
."\n"
.'- aigcCheck: AIGC image moderation'."\n"
."\n"
.'- profilePhotoCheck: profile picture moderation'."\n"
."\n"
.'- advertisingCheck: ad material moderation'."\n"
."\n"
.'- liveStreamCheck: video or live stream screenshot moderation', 'type' => 'string', 'required' => false, 'example' => 'baselineCheck', 'title' => ''],
],
[
'name' => 'ServiceParameters',
'in' => 'query',
'schema' => ['description' => 'A set of parameters related to the content to be moderated. The value must be a JSON string.', 'type' => 'string', 'required' => false, 'example' => '{"imageUrl":"https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png","dataId":"img123****"}', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request. This ID is a unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot and locate issues.', 'type' => 'string', 'example' => '4A926AE2-4C96-573F-824F-0532960799F8'],
'Code' => ['description' => 'The return code. A value of 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Msg' => ['description' => 'The response message for the current request.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'Data' => [
'description' => 'The result of the asynchronous image moderation.',
'type' => 'object',
'properties' => [
'ReqId' => ['description' => 'The reqId field returned by the enhanced asynchronous image moderation API. You can use this field to query the detection results.', 'type' => 'string', 'example' => 'A07B3DB9-D762-5C56-95B1-8EC55CF176D2', 'title' => ''],
'DataId' => ['description' => 'The value of dataId that you specified in the API request. If you did not specify this parameter in the request, this field is not returned.', 'type' => 'string', 'example' => 'fb5ffab1-993b-449f-b8d6-b97d5e3331f2', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'ImageAsyncModeration',
'description' => '- The following image formats are supported: PNG, JPG, JPEG, BMP, WEBP, TIFF, ICO, HEIC, and SVG.'."\n"
."\n"
.'- The image size cannot exceed 10 MB. The recommended image resolution is greater than 200 × 200 pixels. A low resolution may compromise the accuracy of the Content Moderation algorithm.'."\n"
."\n"
.'- The timeout period for image downloads is 3 seconds. If an image download exceeds this duration, a download timeout error is returned.',
'responseParamsDescription' => 'The following table describes the return codes.'."\n"
."\n"
.'| **Code** | **Description** |'."\n"
.'| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |'."\n"
.'| 200 | The request is successful. |'."\n"
.'| 400 | A required parameter is empty. |'."\n"
.'| 401 | A parameter is invalid. |'."\n"
.'| 402 | The length of a parameter does not meet the requirements. Check and modify the parameter. |'."\n"
.'| 403 | The number of queries per second (QPS) exceeds the limit. Check and adjust the number of concurrent requests. |'."\n"
.'| 408 | The account does not have the permissions to call the API. The service may not be activated for the account, the account may have an overdue payment, or the account is not granted the required permissions. |'."\n"
.'| 500 | A system error occurred. |',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ImageAsyncModeration'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:ImageAsyncModeration',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4A926AE2-4C96-573F-824F-0532960799F8\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"ReqId\\": \\"A07B3DB9-D762-5C56-95B1-8EC55CF176D2\\",\\n \\"DataId\\": \\"fb5ffab1-993b-449f-b8d6-b97d5e3331f2\\"\\n }\\n}","type":"json"}]',
],
'ImageBatchModeration' => [
'summary' => 'Batch Invocation of Images',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '214644',
'abilityTreeNodes' => ['FEATURElvwang78REFZ', 'FEATURElvwangRPPHPG', 'FEATURElvwangRBUEEU', 'FEATURElvwang7UTKSK', 'FEATURElvwangYHRCHH', 'FEATURElvwang8B97ZG', 'FEATURElvwangT9BDZM'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'Service',
'in' => 'query',
'schema' => ['description' => 'The detection services supported by Image Moderation Pro. Separate multiple services with commas. Valid values:'."\n"
."\n"
.'- baselineCheck: General baseline check'."\n"
."\n"
.'- baselineCheck\\_pro: General baseline check (Professional Edition)'."\n"
."\n"
.'- tonalityImprove: Content administration check'."\n"
."\n"
.'- aigcCheck: AIGC image check', 'type' => 'string', 'required' => false, 'example' => 'baselineCheck,tonalityImprove', 'title' => ''],
],
[
'name' => 'ServiceParameters',
'in' => 'query',
'schema' => ['description' => 'The parameters for the content to moderate.', 'type' => 'string', 'required' => false, 'example' => '{'."\n"
.' "imageUrl": "https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png",'."\n"
.' "dataId": "img123****"'."\n"
.' }', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Response body.',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'The unique ID of the request. Alibaba Cloud generates this ID for each request. Use this ID to troubleshoot issues.', 'type' => 'string', 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492'."\n"],
'Code' => ['description' => 'The return code. A value of 200 indicates success.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Msg' => ['description' => 'The response message for the request.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'Data' => [
'description' => 'The results of the image content moderation.',
'type' => 'object',
'properties' => [
'DataId' => ['description' => 'The data ID of the moderated object.', 'type' => 'string', 'example' => '26769ada6e264e7ba9aa048241e12be9', 'title' => ''],
'Results' => [
'description' => 'The detailed moderation results for each detection service. This is an array.',
'type' => 'array',
'items' => [
'description' => 'The data structure.',
'type' => 'object',
'properties' => [
'Service' => ['description' => 'The detection service supported by Image Moderation Pro.', 'type' => 'string', 'example' => 'baselineCheck', 'title' => ''],
'Result' => [
'description' => 'The results of the image detection, including threat labels and confidence scores. This is an array.',
'type' => 'array',
'items' => [
'description' => 'The data structure.',
'type' => 'object',
'properties' => [
'Label' => ['description' => 'The label returned after the image content moderation. An image may have multiple labels and scores.', 'type' => 'string', 'example' => 'violent_explosion', 'title' => ''],
'Confidence' => ['description' => 'The confidence score. The value ranges from 0 to 100, with two decimal places. Some labels do not have a confidence score.', 'type' => 'number', 'format' => 'float', 'example' => '81.22', 'title' => ''],
'Description' => ['description' => 'The description.', 'type' => 'string', 'example' => '未检测出风险', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Ext' => [
'description' => 'Additional reference information for the image.',
'type' => 'object',
'properties' => [
'TextInImage' => [
'description' => 'The text detected in the image.',
'type' => 'object',
'properties' => [
'OcrResult' => [
'description' => 'The information for each line of text recognized in the image.',
'type' => 'array',
'items' => [
'description' => 'The data structure.',
'type' => 'object',
'properties' => [
'Text' => ['description' => 'The text.', 'type' => 'string', 'example' => 'abcd', 'title' => ''],
'Location' => [
'description' => 'The coordinates of the text line.',
'type' => 'object',
'properties' => [
'X' => ['description' => 'The x-coordinate of the upper-left corner of the text area, in pixels. The origin (0,0) is the upper-left corner of the image.', 'type' => 'integer', 'format' => 'int32', 'example' => '11', 'title' => ''],
'Y' => ['description' => 'The y-coordinate of the upper-left corner of the text area, in pixels. The origin (0,0) is the upper-left corner of the image.', 'type' => 'integer', 'format' => 'int32', 'example' => '22', 'title' => ''],
'H' => ['description' => 'The height of the text area, in pixels.', 'type' => 'integer', 'format' => 'int32', 'example' => '33', 'title' => ''],
'W' => ['description' => 'The width of the text area, in pixels.', 'type' => 'integer', 'format' => 'int32', 'example' => '44', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'RiskWord' => [
'description' => 'The detected risk keywords.',
'type' => 'array',
'items' => ['description' => 'The text.', 'type' => 'string', 'example' => '火箭', 'title' => ''],
'title' => '',
'example' => '',
],
'CustomText' => [
'description' => 'If a custom text library is hit, the ID and name of the library, and the hit keywords are returned.',
'type' => 'array',
'items' => [
'description' => 'The data structure.',
'type' => 'object',
'properties' => [
'LibId' => ['description' => 'The ID of the custom library.', 'type' => 'string', 'example' => '123456', 'title' => ''],
'LibName' => ['description' => 'The name of the custom library.', 'type' => 'string', 'example' => '自定义库1', 'title' => ''],
'KeyWords' => ['description' => 'The custom keywords. Separate multiple keywords with a comma.', 'type' => 'string', 'example' => '自定义词1,自定义词2', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'CustomImage' => [
'description' => 'A list of hits in custom image libraries.',
'type' => 'array',
'items' => [
'description' => 'The data structure.',
'type' => 'object',
'properties' => [
'LibId' => ['description' => 'The ID of the custom library.', 'type' => 'string', 'example' => '1965304870002', 'title' => ''],
'ImageId' => ['description' => 'The ID of the hit custom image.', 'type' => 'string', 'example' => '1965304870002', 'title' => ''],
'LibName' => ['description' => 'The name of the hit custom image library.', 'type' => 'string', 'example' => '白名单', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'PublicFigure' => [
'description' => 'A list of public figures.',
'type' => 'array',
'items' => [
'description' => 'The data structure.',
'type' => 'object',
'properties' => [
'FigureName' => ['description' => 'The name of the recognized public figure.', 'type' => 'string', 'example' => 'xxxxx', 'title' => ''],
'FigureId' => ['description' => 'The ID of the recognized public figure.', 'type' => 'string', 'example' => '12324222', 'title' => ''],
'Location' => [
'description' => 'The location of the recognized object.',
'type' => 'array',
'items' => [
'description' => 'The data structure.',
'type' => 'object',
'properties' => [
'X' => ['description' => 'The x-coordinate of the upper-left corner of the area, in pixels. The origin (0,0) is the upper-left corner of the image.', 'type' => 'integer', 'format' => 'int32', 'example' => '11', 'title' => ''],
'Y' => ['description' => 'The y-coordinate of the upper-left corner of the area, in pixels. The origin (0,0) is the upper-left corner of the image.', 'type' => 'integer', 'format' => 'int32', 'example' => '22', 'title' => ''],
'W' => ['description' => 'The width of the area, in pixels.', 'type' => 'integer', 'format' => 'int32', 'example' => '330', 'title' => ''],
'H' => ['description' => 'The height of the area, in pixels.', 'type' => 'integer', 'format' => 'int32', 'example' => '440', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'LogoData' => [
'description' => 'Logo information.',
'type' => 'object',
'properties' => [
'Location' => [
'description' => 'The location of the recognized object.',
'type' => 'object',
'properties' => [
'X' => ['description' => 'The x-coordinate of the upper-left corner of the area, in pixels. The origin (0,0) is the upper-left corner of the image.', 'type' => 'integer', 'format' => 'int32', 'example' => '11', 'title' => ''],
'Y' => ['description' => 'The y-coordinate of the upper-left corner of the area, in pixels. The origin (0,0) is the upper-left corner of the image.', 'type' => 'integer', 'format' => 'int32', 'example' => '22', 'title' => ''],
'W' => ['description' => 'The width of the logo area, in pixels.', 'type' => 'integer', 'format' => 'int32', 'example' => '330', 'title' => ''],
'H' => ['description' => 'The height of the logo area, in pixels.', 'type' => 'integer', 'format' => 'int32', 'example' => '440', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Logo' => [
'description' => 'Identity information.',
'type' => 'array',
'items' => [
'description' => 'The data structure.',
'type' => 'object',
'properties' => [
'Label' => ['description' => 'The category of the logo.', 'type' => 'string', 'example' => 'logo_sns', 'title' => ''],
'Name' => ['description' => 'The name of the logo.', 'type' => 'string', 'example' => '阿里云', 'title' => ''],
'Confidence' => ['description' => 'The confidence score. The value ranges from 0 to 100, with two decimal places.', 'type' => 'number', 'format' => 'float', 'example' => '99.1', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'RiskLevel' => ['description' => 'The risk level.', 'type' => 'string', 'example' => 'high', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Result' => [
'description' => 'An array of results for the image moderation. The results contain parameters such as threat labels and confidence scores.',
'type' => 'array',
'items' => [
'description' => 'The data structure.',
'type' => 'object',
'properties' => [
'Label' => ['description' => 'The label returned after the image content moderation. An image may have multiple labels and scores.', 'type' => 'string', 'example' => 'violent_explosion', 'title' => ''],
'Confidence' => ['description' => 'The confidence score. The value ranges from 0 to 100, with two decimal places. Some labels do not have a confidence score.', 'type' => 'number', 'format' => 'float', 'example' => '81.22', 'title' => ''],
'Description' => ['description' => 'The description.', 'type' => 'string', 'example' => '未检测出风险', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'RiskLevel' => ['description' => 'The risk level.', 'type' => 'string', 'example' => 'high', 'title' => ''],
'ManualTaskId' => ['description' => 'The ID of the manual review task.', 'type' => 'string', 'example' => 'xxxxx-xxxxx', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-C8C7-4A01-B52E-FF6E24F53492\\\\n\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"26769ada6e264e7ba9aa048241e12be9\\",\\n \\"Results\\": [\\n {\\n \\"Service\\": \\"baselineCheck\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Confidence\\": 81.22,\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ],\\n \\"Ext\\": {\\n \\"TextInImage\\": {\\n \\"OcrResult\\": [\\n {\\n \\"Text\\": \\"abcd\\",\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"H\\": 33,\\n \\"W\\": 44\\n }\\n }\\n ],\\n \\"RiskWord\\": [\\n \\"火箭\\"\\n ],\\n \\"CustomText\\": [\\n {\\n \\"LibId\\": \\"123456\\",\\n \\"LibName\\": \\"自定义库1\\",\\n \\"KeyWords\\": \\"自定义词1,自定义词2\\"\\n }\\n ]\\n },\\n \\"CustomImage\\": [\\n {\\n \\"LibId\\": \\"1965304870002\\",\\n \\"ImageId\\": \\"1965304870002\\",\\n \\"LibName\\": \\"白名单\\"\\n }\\n ],\\n \\"PublicFigure\\": [\\n {\\n \\"FigureName\\": \\"xxxxx\\",\\n \\"FigureId\\": \\"12324222\\",\\n \\"Location\\": [\\n {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 330,\\n \\"H\\": 440\\n }\\n ]\\n }\\n ],\\n \\"LogoData\\": {\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 330,\\n \\"H\\": 440\\n },\\n \\"Logo\\": [\\n {\\n \\"Label\\": \\"logo_sns\\",\\n \\"Name\\": \\"阿里云\\",\\n \\"Confidence\\": 99.1\\n }\\n ]\\n }\\n },\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ],\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Confidence\\": 81.22,\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ],\\n \\"RiskLevel\\": \\"high\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\"\\n }\\n}","type":"json"}]',
'title' => 'ImageBatchModeration',
'requestParamsDescription' => '```'."\n"
.'{'."\n"
.' "Service": "baselineCheck,tonalityImprove",'."\n"
.' "ServiceParameters": {'."\n"
.' "imageUrl": "https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png",'."\n"
.' "dataId": "img123****"'."\n"
.' }'."\n"
.'}'."\n"
.'```',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "Msg": "success",'."\n"
.' "Code": 200,'."\n"
.' "Data": {'."\n"
.' "DataId": "img123****",'."\n"
.' "Result": ['."\n"
.' {'."\n"
.' "Label": "violent_explosion",'."\n"
.' "Confidence": 70,'."\n"
.' "Description": "Fireworks-related content"'."\n"
.' },'."\n"
.' {'."\n"
.' "Label": "violent_explosion_lib",'."\n"
.' "Confidence": 81,'."\n"
.' "Description": "Fireworks-related content_Hit in custom library"'."\n"
.' }'."\n"
.' ],'."\n"
.' "RiskLevel": "high",'."\n"
.' "Results": ['."\n"
.' {'."\n"
.' "Result": ['."\n"
.' {'."\n"
.' "Label": "violent_explosion",'."\n"
.' "Confidence": 70,'."\n"
.' "Description": "Fireworks-related content"'."\n"
.' }'."\n"
.' ],'."\n"
.' "RiskLevel": "high",'."\n"
.' "Service": "baselineCheck_pro"'."\n"
.' },'."\n"
.' {'."\n"
.' "Result": ['."\n"
.' {'."\n"
.' "Label": "violent_explosion_lib",'."\n"
.' "Confidence": 81,'."\n"
.' "Description": "Fireworks-related content_Hit in custom library"'."\n"
.' }'."\n"
.' ],'."\n"
.' "RiskLevel": "high",'."\n"
.' "Service": "baselineCheck"'."\n"
.' }'."\n"
.' ]'."\n"
.' },'."\n"
.' "RequestId": "ABCD1234-1234-1234-1234-1234XYZ"'."\n"
.'}'."\n"
.'```',
'changeSet' => [
['createdAt' => '2025-06-12T02:05:04.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-11-28T07:35:09.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ImageBatchModeration'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:ImageBatchModeration',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'ImageModeration' => [
'summary' => 'Image moderation',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '142557',
'abilityTreeNodes' => ['FEATURElvwang78REFZ'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
'schema' => [
'description' => 'The detection types supported by the enhanced image moderation feature. Valid values:'."\n"
."\n"
.'- baselineCheck: general baseline check'."\n"
."\n"
.'- baselineCheck\\_pro: general baseline check (Professional Edition)'."\n"
."\n"
.'- baselineCheck\\_cb: general baseline check (outside China)'."\n"
."\n"
.'- tonalityImprove: content administration check'."\n"
."\n"
.'- aigcCheck: AIGC image check'."\n"
."\n"
.'- aigcViolationDetection: AIGC image infringement detection'."\n"
."\n"
.'- aigcDetector: determines whether an image is generated by AIGC'."\n"
."\n"
.'- profilePhotoCheck: profile picture check'."\n"
."\n"
.'- postImageCheck: image check for posts and comments'."\n"
."\n"
.'- advertisingCheck: marketing material check'."\n"
."\n"
.'- liveStreamCheck: video/livestream screenshot check'."\n"
."\n"
.'- generalOcr: general image and text OCR'."\n"
."\n"
.'- generalRecognition: image object recognition'."\n"
."\n"
.'- postImageCheckByVL: image moderation service with large and small models'."\n"
."\n"
.'- postImageCheckByVL\\_cb: image moderation service with large and small models (outside China)'."\n"
."\n"
.'- baselineCheckByVL: general image moderation service with a large model',
'enumValueTitles' => [
'liveStreamCheck' => 'Video screenshot check', 'generalOcr' => 'General image and text OCR', 'postImageCheck' => 'Image check for posts and comments', 'postImageCheckByVL_cb' => 'Image moderation service with large and small models (outside China)', 'baselineCheck_pro' => 'General baseline check (Professional Edition)', 'advertisingCheck' => 'Marketing material check', 'baselineCheck_cb' => 'General baseline check (outside China)', 'tonalityImprove' => 'Content administration check', 'profilePhotoCheck' => 'Profile picture check', 'baselineCheck' => 'General baseline check',
'postImageCheckByVL' => 'Image moderation service with large and small models', 'generalRecognition' => 'Image object recognition', 'aigcCheck' => 'AIGC image check', 'aigcViolationDetection' => 'AIGC image infringement detection', 'baselineCheckByVL' => 'General image moderation service with a large model', 'aigcDetector' => 'Determines whether an image is generated by AIGC',
],
'type' => 'string',
'required' => false,
'example' => 'baselineCheck',
'title' => '',
],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
'schema' => ['description' => 'The parameters for the content to detect. The value is a JSON string.'."\n"
."\n"
.'- imageUrl: The URL of the object to detect. This parameter is required.'."\n"
."\n"
.'- dataId: The data ID of the object to detect. This parameter is optional.'."\n"
."\n"
.'- referer: The referer request header. This parameter is used for scenarios such as hotlink protection and is optional.', 'type' => 'string', 'required' => false, 'example' => '{"imageUrl":"https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png","dataId":"img1234567"}', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'The value returned in the body.',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The ID of the request. Alibaba Cloud generates a unique ID for each request. You can use the ID to troubleshoot issues.', 'type' => 'string', 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492', 'title' => ''],
'Code' => ['description' => 'The return code. A value of 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Msg' => ['description' => 'The message returned for the request.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'Data' => [
'description' => 'The results of the image content moderation.',
'type' => 'object',
'properties' => [
'DataId' => ['description' => 'The data ID of the detected object.'."\n"
."\n"
.'> If you specify the dataId parameter in the request, the corresponding dataId is returned.', 'type' => 'string', 'example' => 'fb5ffab1-993b-449f-b8d6-b97d5e3331f2', 'title' => ''],
'Result' => [
'description' => 'The results of the image moderation, including the threat labels and confidence levels. The value is an array.',
'type' => 'array',
'items' => [
'description' => 'The data structure.',
'type' => 'object',
'properties' => [
'Label' => ['description' => 'The label returned after the image content is moderated. Multiple labels and scores may be returned for a single image.', 'type' => 'string', 'example' => 'violent_explosion', 'title' => ''],
'Confidence' => ['description' => 'The confidence level. The value ranges from 0 to 100, with two decimal places retained. Some labels do not have a confidence level.', 'type' => 'number', 'format' => 'float', 'example' => '81.22', 'title' => ''],
'Description' => ['description' => 'The description.', 'type' => 'string', 'example' => '未检测出风险', 'title' => ''],
'RiskLevel' => ['description' => 'The threat level.', 'type' => 'string', 'example' => 'high', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Ext' => [
'description' => 'Auxiliary reference information for the image.',
'type' => 'object',
'properties' => [
'Recognition' => [
'description' => 'The results of image object recognition.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Classification' => ['description' => 'The category of the recognized object in the image.', 'type' => 'string', 'example' => '办公大楼'."\n", 'title' => ''],
'Confidence' => ['description' => 'The confidence level. The value ranges from 0 to 100, with two decimal places retained. No confidence level is returned when the value is nonLabel.', 'type' => 'number', 'format' => 'float', 'example' => '81.22'."\n"
."\n", 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'OcrResult' => [
'description' => 'The results of optical character recognition (OCR).',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Text' => ['description' => 'A single line of recognized text.', 'type' => 'string', 'example' => 'abcd', 'title' => ''],
'Location' => [
'description' => 'The coordinates of the text line.',
'type' => 'object',
'properties' => [
'X' => ['description' => 'The distance from the upper-left corner of the text area to the y-axis. The origin is the upper-left corner of the image. Unit: pixel.', 'type' => 'integer', 'format' => 'int32', 'example' => '11', 'title' => ''],
'Y' => ['description' => 'The distance from the upper-left corner of the text area to the x-axis. The origin is the upper-left corner of the image. Unit: pixel.', 'type' => 'integer', 'format' => 'int32', 'example' => '22', 'title' => ''],
'W' => ['description' => 'The width of the text area. Unit: pixel.', 'type' => 'integer', 'format' => 'int32', 'example' => '33', 'title' => ''],
'H' => ['description' => 'The height of the text area. Unit: pixel.', 'type' => 'integer', 'format' => 'int32', 'example' => '44', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'TextInImage' => [
'description' => 'The text information that is hit in the image.',
'type' => 'object',
'properties' => [
'OcrResult' => [
'description' => 'Each line of text recognized in the image.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Text' => ['description' => 'The text.', 'type' => 'string', 'example' => 'abcd', 'title' => ''],
'Location' => [
'description' => 'The coordinates of the text line.',
'type' => 'object',
'properties' => [
'X' => ['description' => 'The distance from the upper-left corner of the text area to the y-axis. The origin is the upper-left corner of the image. Unit: pixel.', 'type' => 'integer', 'format' => 'int32', 'example' => '11', 'title' => ''],
'Y' => ['description' => 'The distance from the upper-left corner of the text area to the x-axis. The origin is the upper-left corner of the image. Unit: pixel.', 'type' => 'integer', 'format' => 'int32', 'example' => '22', 'title' => ''],
'H' => ['description' => 'The height of the text area. Unit: pixel.', 'type' => 'integer', 'format' => 'int32', 'example' => '33', 'title' => ''],
'W' => ['description' => 'The width of the text area. Unit: pixel.', 'type' => 'integer', 'format' => 'int32', 'example' => '44', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'RiskWord' => [
'description' => 'The hit threat keywords.',
'type' => 'array',
'items' => ['description' => 'The text.', 'type' => 'string', 'example' => 'abcd', 'title' => ''],
'title' => '',
'example' => '',
],
'CustomText' => [
'description' => 'If a custom text library is hit, the custom library ID, custom library name, and custom word are returned.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'LibId' => ['description' => 'The custom library ID.', 'type' => 'string', 'example' => '123456'."\n", 'title' => ''],
'LibName' => ['description' => 'The name of the custom library.', 'type' => 'string', 'example' => '自定义库1'."\n", 'title' => ''],
'KeyWords' => ['description' => 'The custom words. Separate multiple words with commas.', 'type' => 'string', 'example' => '自定义词1,自定义词2'."\n", 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'CustomImage' => [
'description' => 'A list of hits from the custom image library.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'LibId' => ['description' => 'The ID of the hit custom image library.', 'type' => 'string', 'example' => '图库123'."\n", 'title' => ''],
'ImageId' => ['description' => 'The ID of the hit custom image.', 'type' => 'string', 'example' => '123456', 'title' => ''],
'LibName' => ['description' => 'The name of the hit custom image library.', 'type' => 'string', 'example' => '图库123'."\n", 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'PublicFigure' => [
'description' => 'A list of public figures.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'FigureName' => ['description' => 'The name of the detected public figure.', 'type' => 'string', 'example' => 'yzazhzou', 'title' => ''],
'FigureId' => ['description' => 'The ID of the detected public figure.', 'type' => 'string', 'example' => 'xxx001', 'title' => ''],
'Location' => [
'description' => 'The location of the identity.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'X' => ['description' => 'The distance from the upper-left corner of the detected area to the y-axis. The origin is the upper-left corner of the image. Unit: pixel.', 'type' => 'integer', 'format' => 'int32', 'example' => '11', 'title' => ''],
'Y' => ['description' => 'The distance from the upper-left corner of the detected area to the x-axis. The origin is the upper-left corner of the image. Unit: pixel.', 'type' => 'integer', 'format' => 'int32', 'example' => '22', 'title' => ''],
'W' => ['description' => 'The width of the detected area. Unit: pixel.', 'type' => 'integer', 'format' => 'int32', 'example' => '330', 'title' => ''],
'H' => ['description' => 'The height of the detected area. Unit: pixel.', 'type' => 'integer', 'format' => 'int32', 'example' => '440', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'LogoData' => [
'description' => 'The identity information.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Location' => [
'description' => 'The location of the logo.',
'type' => 'object',
'properties' => [
'X' => ['description' => 'The distance from the upper-left corner of the detected area to the y-axis. The origin is the upper-left corner of the image. Unit: pixel.', 'type' => 'integer', 'format' => 'int32', 'example' => '11', 'title' => ''],
'Y' => ['description' => 'The distance from the upper-left corner of the detected area to the x-axis. The origin is the upper-left corner of the image. Unit: pixel.', 'type' => 'integer', 'format' => 'int32', 'example' => '22', 'title' => ''],
'W' => ['description' => 'The width of the detected area. Unit: pixel.', 'type' => 'integer', 'format' => 'int32', 'example' => '330', 'title' => ''],
'H' => ['description' => 'The height of the detected area. Unit: pixel.', 'type' => 'integer', 'format' => 'int32', 'example' => '440', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Logo' => [
'description' => 'The identity information.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Label' => ['description' => 'The identity category.', 'type' => 'string', 'example' => 'logo_sns', 'title' => ''],
'Name' => ['description' => 'The identity name.', 'type' => 'string', 'example' => '钉钉', 'title' => ''],
'Confidence' => ['description' => 'The confidence score. The value ranges from 0 to 100, with two decimal places retained.', 'type' => 'number', 'format' => 'float', 'example' => '99.1', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'FaceData' => [
'description' => 'The facial attribute detection results.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Age' => ['description' => 'The detected age.', 'type' => 'integer', 'format' => 'int32', 'example' => '18', 'title' => ''],
'Bang' => [
'description' => 'The detection result for bangs.',
'type' => 'object',
'properties' => [
'Value' => ['description' => 'The detection result for bangs. Valid values:'."\n"
."\n"
.'- Has: The person has bangs.'."\n"
."\n"
.'- None: The person does not have bangs.', 'type' => 'string', 'example' => 'Has', 'title' => ''],
'Confidence' => ['description' => 'The confidence level of the bangs detection. The value ranges from 0 to 100. A higher value indicates a more reliable result.', 'type' => 'number', 'format' => 'float', 'example' => '81.88'."\n", 'title' => ''],
],
'title' => '',
'example' => '',
],
'Gender' => [
'description' => 'The gender detection result.',
'type' => 'object',
'properties' => [
'Value' => ['description' => 'The detected gender. Valid values:'."\n"
."\n"
.'- Male: male'."\n"
."\n"
.'- FeMale: female', 'type' => 'string', 'example' => 'FeMale', 'title' => ''],
'Confidence' => ['description' => 'The confidence level of the gender detection. The value ranges from 0 to 100. A higher value indicates a more reliable result.', 'type' => 'number', 'format' => 'float', 'example' => '81.88', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Glasses' => ['description' => 'Indicates whether the person is wearing glasses. Valid values:'."\n"
."\n"
.'- None: The person is not wearing glasses.'."\n"
."\n"
.'- Common: The person is wearing regular glasses.'."\n"
."\n"
.'- Sunglass: The person is wearing sunglasses.', 'type' => 'string', 'example' => 'Common', 'title' => ''],
'Hairstyle' => [
'description' => 'The hairstyle detection result.',
'type' => 'object',
'properties' => [
'Value' => ['description' => 'The detected hairstyle. Valid values:'."\n"
."\n"
.'- Bald: bald'."\n"
."\n"
.'- Long: long hair'."\n"
."\n"
.'- Short: short hair', 'type' => 'string', 'example' => 'Short', 'title' => ''],
'Confidence' => ['description' => 'The confidence level of the hairstyle detection. The value ranges from 0 to 100. A higher value indicates a more reliable result.', 'type' => 'number', 'format' => 'float', 'example' => '81.88'."\n"
."\n", 'title' => ''],
],
'title' => '',
'example' => '',
],
'Hat' => [
'description' => 'The result of hat detection.',
'type' => 'object',
'properties' => [
'Value' => ['description' => 'Indicates whether a hat is detected. Valid values:'."\n"
."\n"
.'- Wear: A hat is worn.'."\n"
."\n"
.'- None: No hat is worn.', 'type' => 'string', 'example' => 'Wear', 'title' => ''],
'Confidence' => ['description' => 'The confidence level of the hat detection. The value ranges from 0 to 100. A higher value indicates a more reliable result.', 'type' => 'number', 'format' => 'float', 'example' => '88.88'."\n"
."\n", 'title' => ''],
],
'title' => '',
'example' => '',
],
'Location' => [
'description' => 'The location of the face.',
'type' => 'object',
'properties' => [
'X' => ['description' => 'The distance from the upper-left corner of the face area to the y-axis. The origin is the upper-left corner of the image. Unit: pixel.', 'type' => 'integer', 'format' => 'int32', 'example' => '41'."\n"
."\n", 'title' => ''],
'Y' => ['description' => 'The distance from the upper-left corner of the face area to the x-axis. The origin is the upper-left corner of the image. Unit: pixel.', 'type' => 'integer', 'format' => 'int32', 'example' => '84', 'title' => ''],
'W' => ['description' => 'The width of the face area. Unit: pixel.', 'type' => 'integer', 'format' => 'int32', 'example' => '83', 'title' => ''],
'H' => ['description' => 'The height of the face area. Unit: pixel.', 'type' => 'integer', 'format' => 'int32', 'example' => '26', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Mask' => [
'description' => 'The result of mask detection.',
'type' => 'object',
'properties' => [
'Value' => ['description' => 'Indicates whether a mask is worn. Valid values:'."\n"
."\n"
.'- Wear: A mask is worn.'."\n"
."\n"
.'- None: No mask is worn.', 'type' => 'string', 'example' => 'Wear', 'title' => ''],
'Confidence' => ['description' => 'The confidence level of the mask detection. The value ranges from 0 to 100. A higher value indicates a more reliable result.', 'type' => 'number', 'format' => 'float', 'example' => '99.99', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Mustache' => [
'description' => 'The result of mustache detection.',
'type' => 'object',
'properties' => [
'Value' => ['description' => 'Indicates whether a mustache is present. Valid values:'."\n"
."\n"
.'- Has: A mustache is present.'."\n"
."\n"
.'- None: No mustache is present.', 'type' => 'string', 'example' => 'Has', 'title' => ''],
'Confidence' => ['description' => 'The confidence level of the mustache detection. The value ranges from 0 to 100. A higher value indicates a more reliable result.', 'type' => 'number', 'format' => 'float', 'example' => '99.99', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Quality' => [
'description' => 'The quality of the face image.',
'type' => 'object',
'properties' => [
'Blur' => ['description' => 'The blurriness of the face image. The value ranges from 0 to 100. A higher score indicates a blurrier image.'."\n"
."\n"
.'A value from 0 to 25 is recommended.', 'type' => 'number', 'format' => 'float', 'example' => '5.88'."\n"
."\n", 'title' => ''],
'Integrity' => ['description' => 'The integrity of the face. The value ranges from 0 to 100. A higher score indicates a more complete face.'."\n"
."\n"
.'A value from 80 to 100 is recommended.', 'type' => 'number', 'format' => 'float', 'example' => '100.0', 'title' => ''],
'Pitch' => ['description' => 'The pitch angle of the face.'."\n"
."\n"
.'A value from -30 to 30 is recommended.', 'type' => 'number', 'format' => 'float', 'example' => '5.88', 'title' => ''],
'Roll' => ['description' => 'The roll angle of the face.'."\n"
."\n"
.'A value from -30 to 30 is recommended.', 'type' => 'number', 'format' => 'float', 'example' => '5.18', 'title' => ''],
'Yaw' => ['description' => 'The yaw angle of the face.'."\n"
."\n"
.'A value from -30 to 30 is recommended.', 'type' => 'number', 'format' => 'float', 'example' => '5.18', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Smile' => ['description' => 'The degree of the smile. The value ranges from 0 to 100. A higher score indicates a wider smile.', 'type' => 'number', 'format' => 'float', 'example' => '85.88'."\n"
."\n", 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'VlContent' => [
'description' => 'The output content.',
'type' => 'object',
'properties' => [
'OutputText' => ['description' => 'The output content.', 'type' => 'string', 'example' => '这是一段描述', 'title' => ''],
],
'title' => '',
'example' => '',
],
'AigcData' => [
'type' => 'object',
'properties' => [
'AIGC' => [
'type' => 'object',
'properties' => [
'Label' => ['description' => 'Indicates whether the content is generated by artificial intelligence (AI). Valid values:'."\n"
."\n"
.'- 1: The content is generated by AI.'."\n"
."\n"
.'- 2: (For distribution platforms only) The content may be generated by AI.'."\n"
."\n"
.'- 3: (For distribution platforms only) The content is suspected to be generated by AI.', 'type' => 'string', 'example' => '1', 'title' => ''],
'ContentProducer' => ['description' => 'The code or name of the service provider, which identifies the content producer.', 'type' => 'string', 'example' => '001191******M000100Y43', 'title' => ''],
'ProduceID' => ['description' => 'The content production ID. This is a unique ID used on the production platform to trace the source of synthesized content.', 'type' => 'string', 'example' => '123******456'."\n"
."\n", 'title' => ''],
'ReservedCode1' => ['description' => 'A reserved field.'."\n"
."\n"
.'This field can store information that the generative service provider uses for security protection to ensure the integrity of content and identities. A hashing mechanism based on ContentProducer and ProduceID can be used to securely store and verify key information.', 'type' => 'string', 'example' => 'd41d**********427e'."\n", 'title' => ''],
'ContentPropagator' => ['description' => 'The name, ID, or code of the propagation platform. For services that provide AI-generated content, this can be the same as the value of ContentProducer.', 'type' => 'string', 'example' => '001191******M000100Y43', 'title' => ''],
'PropagateID' => ['description' => 'The content propagation ID. This is a unique ID that the propagation platform assigns to the distributed synthetic content.', 'type' => 'string', 'example' => '123******456'."\n", 'title' => ''],
'ReservedCode2' => ['description' => 'A reserved field.'."\n"
."\n"
.'This field can be used by content distribution service providers for security protection to ensure the integrity of content and identities. A hashing mechanism based on ContentProducer and ProduceID can be used to securely store and verify key information.', 'type' => 'string', 'example' => 'd41d**********427e', 'title' => ''],
],
'description' => 'The detection information for the implicit AIGC identity.',
'title' => '',
'example' => '',
],
],
'description' => 'The detection information for the implicit AIGC identity in the image.',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'RiskLevel' => ['description' => 'The threat level.', 'type' => 'string', 'example' => 'high', 'title' => ''],
'ManualTaskId' => ['description' => 'The ID of the manual review task.', 'type' => 'string', 'example' => 'xxxxx-xxxxx', 'title' => ''],
'AccountId' => ['description' => 'The AccountId specified in the request.', 'type' => 'string', 'example' => 'testaccountid123', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-C8C7-4A01-B52E-FF6E24F53492\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"OK\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"fb5ffab1-993b-449f-b8d6-b97d5e3331f2\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Confidence\\": 81.22,\\n \\"Description\\": \\"未检测出风险\\",\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ],\\n \\"Ext\\": {\\n \\"Recognition\\": [\\n {\\n \\"Classification\\": \\"办公大楼\\\\n\\",\\n \\"Confidence\\": 81.22\\n }\\n ],\\n \\"OcrResult\\": [\\n {\\n \\"Text\\": \\"abcd\\",\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 33,\\n \\"H\\": 44\\n }\\n }\\n ],\\n \\"TextInImage\\": {\\n \\"OcrResult\\": [\\n {\\n \\"Text\\": \\"abcd\\",\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"H\\": 33,\\n \\"W\\": 44\\n }\\n }\\n ],\\n \\"RiskWord\\": [\\n \\"abcd\\"\\n ],\\n \\"CustomText\\": [\\n {\\n \\"LibId\\": \\"123456\\\\n\\",\\n \\"LibName\\": \\"自定义库1\\\\n\\",\\n \\"KeyWords\\": \\"自定义词1,自定义词2\\\\n\\"\\n }\\n ]\\n },\\n \\"CustomImage\\": [\\n {\\n \\"LibId\\": \\"图库123\\\\n\\",\\n \\"ImageId\\": \\"123456\\",\\n \\"LibName\\": \\"图库123\\\\n\\"\\n }\\n ],\\n \\"PublicFigure\\": [\\n {\\n \\"FigureName\\": \\"yzazhzou\\",\\n \\"FigureId\\": \\"xxx001\\",\\n \\"Location\\": [\\n {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 330,\\n \\"H\\": 440\\n }\\n ]\\n }\\n ],\\n \\"LogoData\\": [\\n {\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 330,\\n \\"H\\": 440\\n },\\n \\"Logo\\": [\\n {\\n \\"Label\\": \\"logo_sns\\",\\n \\"Name\\": \\"钉钉\\",\\n \\"Confidence\\": 99.1\\n }\\n ]\\n }\\n ],\\n \\"FaceData\\": [\\n {\\n \\"Age\\": 18,\\n \\"Bang\\": {\\n \\"Value\\": \\"Has\\",\\n \\"Confidence\\": 81.88\\n },\\n \\"Gender\\": {\\n \\"Value\\": \\"FeMale\\",\\n \\"Confidence\\": 81.88\\n },\\n \\"Glasses\\": \\"Common\\",\\n \\"Hairstyle\\": {\\n \\"Value\\": \\"Short\\",\\n \\"Confidence\\": 81.88\\n },\\n \\"Hat\\": {\\n \\"Value\\": \\"Wear\\",\\n \\"Confidence\\": 88.88\\n },\\n \\"Location\\": {\\n \\"X\\": 41,\\n \\"Y\\": 84,\\n \\"W\\": 83,\\n \\"H\\": 26\\n },\\n \\"Mask\\": {\\n \\"Value\\": \\"Wear\\",\\n \\"Confidence\\": 99.99\\n },\\n \\"Mustache\\": {\\n \\"Value\\": \\"Has\\",\\n \\"Confidence\\": 99.99\\n },\\n \\"Quality\\": {\\n \\"Blur\\": 5.88,\\n \\"Integrity\\": 100,\\n \\"Pitch\\": 5.88,\\n \\"Roll\\": 5.18,\\n \\"Yaw\\": 5.18\\n },\\n \\"Smile\\": 85.88\\n }\\n ],\\n \\"VlContent\\": {\\n \\"OutputText\\": \\"这是一段描述\\"\\n },\\n \\"AigcData\\": {\\n \\"AIGC\\": {\\n \\"Label\\": \\"1\\",\\n \\"ContentProducer\\": \\"001191******M000100Y43\\",\\n \\"ProduceID\\": \\"123******456\\\\n\\\\n\\",\\n \\"ReservedCode1\\": \\"d41d**********427e\\\\n\\",\\n \\"ContentPropagator\\": \\"001191******M000100Y43\\",\\n \\"PropagateID\\": \\"123******456\\\\n\\",\\n \\"ReservedCode2\\": \\"d41d**********427e\\"\\n }\\n }\\n },\\n \\"RiskLevel\\": \\"high\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\",\\n \\"AccountId\\": \\"testaccountid123\\"\\n }\\n}","type":"json"}]',
'title' => 'ImageModeration',
'description' => 'Before you call this operation, complete the following steps:'."\n"
."\n"
.'1. [Activate AI Guardrails-Enhanced Edition](https://common-buy.aliyun.com/?commodityCode=lvwang_cip_public_cn).'."\n"
."\n"
.'2. Understand the [billing methods and pricing](https://help.aliyun.com/document_detail/467826.html?#section-h06-qz6-1pt) of the enhanced image moderation feature.'."\n"
."\n"
.'3. For more information about API usage and parameters, see the [API reference](https://help.aliyun.com/document_detail/467829.html).',
'requestParamsDescription' => 'Sample request parameters:'."\n"
."\n"
.'```JSON'."\n"
.'{'."\n"
.' "service": "baselineCheck",'."\n"
.' "serviceParameters": '."\n"
.' {'."\n"
.' "imageUrl": "https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png",'."\n"
.' "dataId": "img1234567"'."\n"
.' }'."\n"
.'}'."\n"
.'```',
'responseParamsDescription' => 'Sample response:'."\n"
."\n"
.'```'."\n"
.'{'."\n"
.' "Msg": "OK",'."\n"
.' "Code": 200,'."\n"
.' "Data": {'."\n"
.' "DataId": "img123****",'."\n"
.' "Result": ['."\n"
.' {'."\n"
.' "Label": "pornographic_adultContent",'."\n"
.' "Confidence": 81,'."\n"
.' "Description": "Adult pornographic content"'."\n"
.' },'."\n"
.' {'."\n"
.' "Label": "sexual_partialNudity",'."\n"
.' "Confidence": 98,'."\n"
.' "Description": "Partial nudity or sexual content"'."\n"
.' },'."\n"
.' {'."\n"
.' "Label": "violent_explosion",'."\n"
.' "Confidence": 70,'."\n"
.' "Description": "Fireworks content"'."\n"
.' },'."\n"
.' {'."\n"
.' "Label": "violent_explosion_lib",'."\n"
.' "Confidence": 81,'."\n"
.' "Description": "Fireworks content_hit custom library"'."\n"
.' }'."\n"
.' ],'."\n"
.' "RiskLevel": "high"'."\n"
.' },'."\n"
.' "RequestId": "ABCD1234-1234-1234-1234-1234XYZ"'."\n"
.'}'."\n"
.'```',
'extraInfo' => '无',
'changeSet' => [
['createdAt' => '2025-06-12T02:05:05.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2025-03-17T05:56:52.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-11-07T13:31:16.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-08-20T09:55:57.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-07-25T09:34:52.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-07-03T11:04:23.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-05-30T09:10:02.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-05-11T05:53:34.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-04-19T03:30:14.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-05-08T03:59:29.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ImageModeration'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-greenweb:ImageModeration',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'ManualCallback' => [
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '264346',
'abilityTreeNodes' => ['FEATURElvwangIBEW89', 'FEATURElvwangU90H4V', 'FEATURElvwangBBY7QM', 'FEATURElvwang870NMI'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'Code',
'in' => 'formData',
'schema' => ['description' => 'The code.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '200'],
],
[
'name' => 'Msg',
'in' => 'formData',
'schema' => ['description' => 'The message.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'OK'],
],
[
'name' => 'Checksum',
'in' => 'formData',
'schema' => ['description' => 'The checksum.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'abc'],
],
[
'name' => 'ReqId',
'in' => 'formData',
'schema' => ['description' => 'The ID of the platform request. This ID is used to troubleshoot issues.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C'],
],
[
'name' => 'Data',
'in' => 'formData',
'schema' => ['description' => 'The returned data.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '{\'Result\': [{\'Confidence\': 100.0, \'CustomizedHit\': [{\'KeyWords\': u\'\\u4fdd\\u969c,\\u6700\\u5927,\\u9ad8\\u7ea7\', \'LibName\': u\'\\u4f18\\u8def\\u654f\\u611f\\u8bcd\'}], \'Label\': \'customized\'}]}'],
],
[
'name' => 'Channel',
'in' => 'formData',
'schema' => [
'description' => 'The channel field.',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['ant' => 'ant'],
'title' => '',
'example' => 'ant',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'."\n"],
'Message' => ['description' => 'The message.', 'type' => 'string', 'title' => '', 'example' => 'SUCCESS'],
'Code' => ['description' => 'The error code.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '200'],
],
],
],
],
'title' => 'Manual Review Channel Callback Interface',
'extraInfo' => '无',
'summary' => 'The channel callback API for manual review results in Content Moderation.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '200', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ManualCallback'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:ManualCallback',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\\\n\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Code\\": 200\\n}","type":"json"}]',
],
'ManualModeration' => [
'summary' => 'Interface for submitting Content Moderation manual review requests',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '264342',
'abilityTreeNodes' => ['FEATURElvwangIBEW89', 'FEATURElvwangU90H4V', 'FEATURElvwangBBY7QM', 'FEATURElvwang870NMI'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
'schema' => ['description' => 'Service.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'imageManualCheck'],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
'schema' => ['description' => 'Parameters required by the moderation service, in JSON string format.'."\n"
."\n"
.'- url: The URL of the object to be inspected. Make sure the URL is accessible through the public network.'."\n"
.'- dataId: Optional. The data ID corresponding to the object being inspected.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '{"url": "https://talesofai.oss-cn-shanghai.aliyuncs.com/xxx.mp4", "dataId": "data1234"}'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
'Message' => ['description' => 'Error message', 'type' => 'string', 'title' => '', 'example' => 'SUCCESS'],
'Code' => ['description' => 'Status code', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '200'],
'Data' => [
'description' => 'The response data.',
'type' => 'object',
'properties' => [
'DataId' => ['description' => 'The value of dataId passed in the API request. This field is not present if no dataId was passed in the request.', 'type' => 'string', 'title' => '', 'example' => '2a5389eb-4ff8-4584-ac99-644e2a539aa1'],
'TaskId' => ['description' => 'The task ID', 'type' => 'string', 'title' => '', 'example' => 'xxxxx-xxxxx'],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'ManualModeration',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ManualModeration'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:ManualModeration',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"DataId\\": \\"2a5389eb-4ff8-4584-ac99-644e2a539aa1\\",\\n \\"TaskId\\": \\"xxxxx-xxxxx\\"\\n }\\n}","type":"json"}]',
],
'ManualModerationResult' => [
'summary' => 'Retrieves the manual review result.',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '264414',
'abilityTreeNodes' => ['FEATURElvwangIBEW89', 'FEATURElvwangU90H4V', 'FEATURElvwangBBY7QM', 'FEATURElvwang870NMI'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'ServiceParameters',
'in' => 'formData',
'schema' => ['description' => 'The parameter set required by the service, in JSON string format.'."\n"
.'- TaskId: The task ID returned when the task was submitted.', 'type' => 'string', 'required' => false, 'example' => '{\\"TaskId\\":\\"e5f2d886-4c23-440d-999c-bd98acde11b6\\"}', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'SUCCESS', 'title' => ''],
'Code' => ['description' => 'The error code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'RiskLevel' => ['description' => 'The risk level, returned based on the configured high and low risk scores. Valid values:'."\n"
."\n"
.'- high: High risk.'."\n"
.' '."\n"
.'- low: Low risk.'."\n"
."\n"
.'- none: No risk detected.', 'type' => 'string', 'example' => 'high', 'title' => ''],
'DataId' => ['description' => 'The value of dataId passed in the API request. This field is not returned if dataId was not specified in the request.', 'type' => 'string', 'example' => 'data1234', 'title' => ''],
'TaskId' => ['description' => 'The task ID.', 'type' => 'string', 'example' => 'xxxxx-xxxxx', 'title' => ''],
'ReviewCount' => ['title' => '', 'description' => 'The number of reviews.', 'type' => 'string', 'example' => '1'],
'Result' => [
'description' => 'The detailed label results.',
'type' => 'array',
'items' => [
'description' => 'The label item structure.',
'type' => 'object',
'properties' => [
'Label' => ['description' => 'The risk label.', 'type' => 'string', 'example' => 'violent_explosion', 'title' => ''],
'Description' => ['description' => 'The label description.', 'type' => 'string', 'example' => '未检测出风险', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'Retrieve content security manual review result',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ManualModerationResult'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:ManualModerationResult',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"RiskLevel\\": \\"high\\",\\n \\"DataId\\": \\"data1234\\",\\n \\"TaskId\\": \\"xxxxx-xxxxx\\",\\n \\"ReviewCount\\": \\"1\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
'translator' => 'machine',
],
'MultiModalAgent' => [
'summary' => 'This is the synchronous detection API for the multi-modal agent.',
'path' => '',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeNodes' => ['FEATURElvwang828K27'],
],
'parameters' => [
[
'name' => 'ServiceParameters',
'in' => 'formData',
'schema' => ['description' => 'The set of parameters for the auditing service. This includes the taskId of the detection task to query. You can specify only one taskId at a time.', 'type' => 'string', 'required' => false, 'example' => '{"content":"测试文本","dataId":"img1234567"}', 'title' => ''],
],
[
'name' => 'AppID',
'in' => 'formData',
'schema' => ['description' => 'The unique identifier of the whiteboard application. To get the whiteboard application ID, see [CreateApp](~~204234~~).', 'type' => 'string', 'required' => false, 'example' => 'txt_check_agent_01', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'Id of the request', 'type' => 'string', 'title' => '', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
'Code' => ['description' => 'The return code. A value of 200 indicates that the request was successful.', 'type' => 'string', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'SUCCESS', 'title' => ''],
'Data' => [
'type' => 'object',
'properties' => [
'DataId' => ['description' => 'The data ID.', 'type' => 'string', 'example' => '26769ada6e264e7ba9aa048241e12be9', 'title' => ''],
'RiskLevel' => ['description' => 'The risk level. The value is returned based on the configured high and low risk scores. Valid values:'."\n"
."\n"
.'- high: High risk'."\n"
."\n"
.'- medium: Medium risk'."\n"
."\n"
.'- low: Low risk'."\n"
."\n"
.'- none: No risk detected', 'type' => 'string', 'example' => 'high', 'title' => ''],
'Result' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Label' => ['description' => 'The risk label.', 'type' => 'string', 'example' => 'violent_explosion', 'title' => ''],
'Description' => ['description' => 'The description of the label.', 'type' => 'string', 'example' => '未检测出风险', 'title' => ''],
'Reason' => ['description' => 'A description of the result when the session is terminated.'."\n"
."\n"
.'- **SESSION\\_KILLED**: The session was successfully terminated.'."\n"
."\n"
.'- **SESSION\\_EXPIRED**: The session has expired.'."\n"
."\n"
.'- **SESSION\\_NO\\_PERMISSION**: The account used to terminate the session does not have sufficient permissions.'."\n"
."\n"
.'- **SESSION\\_ACCOUNT\\_ERROR**: The account or password used to terminate the session is incorrect.'."\n"
."\n"
.'- **SESSION\\_IGNORED\\_USER**: The session of an account that does not need to be terminated.'."\n"
."\n"
.'- **SESSION\\_INTERNAL\\_USER\\_OR\\_COMMAND**: The session or command of an Alibaba Cloud operations account.'."\n"
."\n"
.'- **SESSION\\_KILL\\_TASK\\_TIMEOUT**: A timeout occurred when terminating the session.'."\n"
."\n"
.'- **SESSION\\_OTHER\\_ERROR**: Other errors.', 'type' => 'string', 'example' => 'TRACER_SLB_ALL_DEST_WEIGHT_0', 'title' => ''],
],
'description' => 'The returned collection.',
'title' => '',
'example' => '',
],
'description' => 'The structure of the label item.',
'title' => '',
'example' => '',
],
'Usage' => [
'type' => 'object',
'properties' => [
'PromptLength' => ['description' => 'The length of the prompt.', 'type' => 'integer', 'format' => 'int64', 'example' => '100', 'title' => ''],
'ContentLength' => ['description' => 'The length of the content.', 'type' => 'integer', 'format' => 'int64', 'example' => '10', 'title' => ''],
'AgentDetail' => ['description' => 'Agent details.', 'type' => 'object', 'title' => '', 'example' => ''],
],
'description' => 'Token usage.',
'title' => '',
'example' => '',
],
],
'description' => 'The result of the image content detection.',
'title' => '',
'example' => '',
],
],
'title' => '',
'description' => 'Schema of Response',
'example' => '',
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You don\'t have permission.', 'description' => 'The current operation is not authorized. Please contact the main account to authorize the operation in the RAM console.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'MultiModalAgent',
'description' => 'This is the AI Guardrails agent.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:MultiModalAgent',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"26769ada6e264e7ba9aa048241e12be9\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Description\\": \\"未检测出风险\\",\\n \\"Reason\\": \\"TRACER_SLB_ALL_DEST_WEIGHT_0\\"\\n }\\n ],\\n \\"Usage\\": {\\n \\"PromptLength\\": 100,\\n \\"ContentLength\\": 10,\\n \\"AgentDetail\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n }\\n}","type":"json"}]',
],
'MultiModalGuard' => [
'path' => '',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeNodes' => ['FEATURElvwang828K27'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
'schema' => ['description' => 'The type of the moderation service. Valid values:'."\n"
."\n"
.'- query\\_security\\_check: AI input content moderation.'."\n"
."\n"
.'- response\\_security\\_check: AI-generated content moderation.', 'type' => 'string', 'required' => false, 'example' => 'query_security_check_pro', 'title' => ''],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
'schema' => ['description' => 'The set of parameters required for the moderation service. The value must be a JSON string.', 'type' => 'string', 'required' => false, 'example' => '- 文本:'."\n"
.'{'."\n"
.' "content": "test"'."\n"
.'}'."\n"
."\n"
.'- 图片:'."\n"
.'{'."\n"
.' "imageUrls": ["https://example.com/image.png"]'."\n"
.'}'."\n"
."\n"
.'- 文件:'."\n"
.'{'."\n"
.' "fileUrls": ["https://example.com/file.pdf"]'."\n"
.'}', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
'Code' => ['description' => 'The error code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'Detail' => [
'description' => 'The detection details.',
'type' => 'array',
'items' => [
'description' => 'The detection details.',
'type' => 'object',
'properties' => [
'Result' => [
'description' => 'The detection results.',
'type' => 'array',
'items' => [
'description' => 'The detection results.',
'type' => 'object',
'properties' => [
'Label' => ['description' => 'The label.', 'type' => 'string', 'example' => 'contraband_act', 'title' => ''],
'Description' => ['description' => 'The description of the label.', 'type' => 'string', 'example' => '疑似违禁行为', 'title' => ''],
'Confidence' => ['description' => 'The confidence score. Valid values: 0 to 100. The value is accurate to two decimal places.', 'type' => 'number', 'format' => 'float', 'example' => '100', 'title' => ''],
'Level' => ['description' => 'The risk level.', 'type' => 'string', 'example' => 'none', 'title' => ''],
'Ext' => ['description' => 'The extended information about the detection results.', 'type' => 'any', 'example' => '{}', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Type' => ['description' => 'The type.', 'type' => 'string', 'example' => 'contentModeration', 'title' => ''],
'Level' => ['description' => 'The risk level.', 'type' => 'string', 'example' => 'none', 'title' => ''],
'Suggestion' => ['description' => 'The moderation suggestion. Valid values: -**block**: The content is non-compliant. -**pass**: The content is compliant.', 'type' => 'string', 'example' => 'pass', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Suggestion' => ['description' => 'The moderation suggestion. Valid values: -block: The content is non-compliant. -pass: The content is compliant.', 'type' => 'string', 'example' => 'pass', 'title' => ''],
'DataId' => ['description' => 'The data ID of the detection object.', 'type' => 'string', 'example' => 'data1234', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You don\'t have permission.', 'description' => 'The current operation is not authorized. Please contact the main account to authorize the operation in the RAM console.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'MultiModalGuard',
'summary' => 'API for synchronous detection',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-greenweb:MultiModalGuard',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": {\\n \\"Detail\\": [\\n {\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"contraband_act\\",\\n \\"Description\\": \\"疑似违禁行为\\",\\n \\"Confidence\\": 100,\\n \\"Level\\": \\"none\\",\\n \\"Ext\\": \\"{}\\"\\n }\\n ],\\n \\"Type\\": \\"contentModeration\\",\\n \\"Level\\": \\"none\\",\\n \\"Suggestion\\": \\"pass\\"\\n }\\n ],\\n \\"Suggestion\\": \\"pass\\",\\n \\"DataId\\": \\"data1234\\"\\n }\\n}","type":"json"}]',
],
'MultiModalGuardAsync' => [
'summary' => 'An asynchronous multimodal AI safety guardrail API for audio and video. It provides comprehensive detection of non-compliant content, sensitive content, prompt injection attacks, malicious files, and malicious URLs.',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '187556',
'abilityTreeNodes' => ['FEATURElvwang53TCRC'],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
'schema' => ['description' => 'The moderation service type. Valid values: `audio_security_check` and `video_security_check`.', 'type' => 'string', 'example' => 'audio_security_check', 'title' => '', 'required' => false],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
'schema' => ['description' => 'The parameter set required for the moderation service.', 'type' => 'string', 'example' => '{"url": "https://testxxx.oss-cn-shanghai.aliyuncs.com/xxx.mp4", "dataId": "data1234"}', 'title' => '', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****', 'title' => ''],
'Message' => ['description' => 'The response message.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'Code' => ['description' => 'The response code. A value of 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Data' => [
'type' => 'object',
'properties' => [
'TaskId' => ['description' => 'The ID of the asynchronous task.', 'type' => 'string', 'example' => 'au_f_xxxxx', 'title' => ''],
'DataId' => ['description' => 'The custom data ID.', 'type' => 'string', 'example' => 'dataIdxxx', 'title' => ''],
],
'title' => '',
'description' => 'The response data.',
'example' => '',
],
],
'title' => '',
'description' => 'Response schema',
'example' => '',
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You don\'t have permission.', 'description' => 'The current operation is not authorized. Please contact the main account to authorize the operation in the RAM console.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'MultiModalGuardAsync',
'description' => 'If an API is subject to billing, add the following sentence in bold: "Before using this API, ensure that you fully understand the billing methods and pricing of the XXX product." The word "pricing" must be a hyperlink to https\\://www\\.aliyun.com/price/product#/ecs/detail.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Message\\": \\"OK\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"TaskId\\": \\"au_f_xxxxx\\",\\n \\"DataId\\": \\"dataIdxxx\\"\\n }\\n}","type":"json"}]',
],
'MultiModalGuardAsyncResult' => [
'summary' => 'This AI Security Guardrail API retrieves asynchronous multimodal results from both audio and video.',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '187919',
'abilityTreeNodes' => ['FEATURElvwang53TCRC'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
'schema' => ['description' => 'The moderation service to run.', 'type' => 'string', 'required' => false, 'example' => 'audio_security_check', 'title' => ''],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
'schema' => ['description' => 'The parameters for the moderation service, provided as a JSON string.', 'type' => 'string', 'required' => false, 'example' => '{'."\n"
.' "taskId": "au_f_xxxxx"'."\n"
.'}', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'."\n"],
'Code' => ['description' => 'The status code of the response.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The response message.', 'type' => 'string', 'example' => 'SUCCESS', 'title' => ''],
'Data' => [
'type' => 'object',
'properties' => [
'LiveId' => ['description' => 'The unique identifier for the live stream.', 'type' => 'string', 'example' => 'liveId', 'title' => ''],
'DataId' => ['description' => 'The value of the `dataId` parameter from the request. This field is omitted if `dataId` was not provided.', 'type' => 'string', 'example' => 'data1234', 'title' => ''],
'TaskId' => ['description' => 'The task ID.', 'type' => 'string', 'example' => 'vi_f_xxx', 'title' => ''],
'Suggestion' => ['description' => 'The recommended action. Valid values:'."\n"
."\n"
.'- `block`: Block the content.'."\n"
."\n"
.'- `pass`: Pass the content.'."\n"
."\n"
.'- `watch`: The content requires review.'."\n"
."\n"
.'- `mask`: Mask the content.', 'type' => 'string', 'example' => 'pass', 'title' => ''],
'AudioResult' => [
'type' => 'object',
'properties' => [
'Suggestion' => ['description' => 'The overall recommended action for the audio content.', 'type' => 'string', 'example' => 'pass', 'title' => ''],
'SliceNum' => ['description' => 'The slice count.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
'SliceDetails' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'StartTime' => ['description' => 'The start time of the audio slice, in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''],
'EndTime' => ['description' => 'The end time of the audio slice, in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '20', 'title' => ''],
'Url' => ['description' => 'The temporary URL of the audio slice.', 'type' => 'string', 'example' => 'http://xxxx.abc.wav', 'title' => ''],
'Text' => ['description' => 'The speech-to-text transcript of the audio slice.', 'type' => 'string', 'example' => '今天天气真不错', 'title' => ''],
'Suggestion' => ['description' => 'The recommended action. Valid values:'."\n"
."\n"
.'- `block`: Block the content.'."\n"
."\n"
.'- `pass`: Pass the content.'."\n"
."\n"
.'- `watch`: The content requires review.'."\n"
."\n"
.'- `mask`: Mask the content.', 'type' => 'string', 'example' => 'block', 'title' => ''],
'Detail' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Result' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Label' => ['description' => 'The label of the detection result.', 'type' => 'string', 'example' => 'drug', 'title' => ''],
'Description' => ['description' => 'The description of the label.', 'type' => 'string', 'example' => '毒品', 'title' => ''],
'Confidence' => ['description' => 'The confidence score, ranging from 0 to 100, accurate to two decimal places.', 'type' => 'number', 'format' => 'float', 'example' => '90', 'title' => ''],
'Level' => ['description' => 'The risk level. Valid values:'."\n"
."\n"
.'- `high`: High risk. If the content matches an entry in a custom keyword library, the risk level defaults to high.'."\n"
."\n"
.'- `medium`: Medium risk.'."\n"
."\n"
.'- `low`: Low risk.'."\n"
."\n"
.'- `none`: No risk detected.', 'type' => 'string', 'example' => 'high', 'title' => ''],
'Ext' => ['description' => 'Additional information about the detection result.', 'type' => 'any', 'example' => '{}', 'title' => ''],
],
'description' => 'A single detection result.',
'title' => '',
'example' => '',
],
'description' => 'A list of detection results.',
'title' => '',
'example' => '',
],
'Type' => ['description' => 'The detection type. Valid values:'."\n"
."\n"
.'- `contentModeration`: Content moderation.'."\n"
."\n"
.'- `promptAttack`: Prompt attack detection.'."\n"
."\n"
.'- `sensitiveData`: Sensitive data detection.'."\n"
."\n"
.'- `modelHallucination`: Model hallucination.'."\n"
."\n"
.'- `maliciousFile`: Malicious file detection.', 'type' => 'string', 'example' => 'contentModeration', 'title' => ''],
'Level' => ['description' => 'The risk level. Valid values:'."\n"
."\n"
.'- `high`: High risk. If the content matches an entry in a custom keyword library, the risk level defaults to high.'."\n"
."\n"
.'- `medium`: Medium risk.'."\n"
."\n"
.'- `low`: Low risk.'."\n"
."\n"
.'- `none`: No risk detected.', 'type' => 'string', 'example' => 'high', 'title' => ''],
'Suggestion' => ['description' => 'The recommended action. Valid values:'."\n"
."\n"
.'- `block`: Block the content.'."\n"
."\n"
.'- `pass`: Pass the content.'."\n"
."\n"
.'- `watch`: The content requires review.'."\n"
."\n"
.'- `mask`: Mask the content.', 'type' => 'string', 'example' => 'block', 'title' => ''],
],
'description' => 'Details for a single detection type.',
'title' => '',
'example' => '',
],
'description' => 'Detection details for the audio slice.',
'title' => '',
'example' => '',
],
],
'description' => 'Details for a single audio slice.',
'title' => '',
'example' => '',
],
'description' => 'Details for each audio slice.',
'title' => '',
'example' => '',
],
],
'description' => 'The audio moderation result.',
'title' => '',
'example' => '',
],
'FrameResult' => [
'type' => 'object',
'properties' => [
'SliceNum' => ['description' => 'The frame count.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
'Suggestion' => ['description' => 'The recommended action. Valid values:'."\n"
."\n"
.'- `block`: Block the content.'."\n"
."\n"
.'- `pass`: Pass the content.'."\n"
."\n"
.'- `watch`: The content requires review.'."\n"
."\n"
.'- `mask`: Mask the content.', 'type' => 'string', 'example' => 'pass', 'title' => ''],
'Frames' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Url' => ['description' => 'The temporary URL of the video frame.', 'type' => 'string', 'example' => 'https://xxx.jpeg', 'title' => ''],
'Offset' => ['description' => 'The time offset of the frame in the video, in seconds.', 'type' => 'number', 'format' => 'float', 'example' => '1.5', 'title' => ''],
'Suggestion' => ['description' => 'The recommended action. Valid values:'."\n"
."\n"
.'- `block`: Block the content.'."\n"
."\n"
.'- `pass`: Pass the content.'."\n"
."\n"
.'- `watch`: The content requires review.'."\n"
."\n"
.'- `mask`: Mask the content.', 'type' => 'string', 'example' => 'block', 'title' => ''],
'Timestamp' => ['description' => 'The absolute timestamp of the frame, in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1684559739000', 'title' => ''],
'Detail' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Result' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Label' => ['description' => 'The label of the detection result.', 'type' => 'string', 'example' => 'ad', 'title' => ''],
'Description' => ['description' => 'The description of the label.', 'type' => 'string', 'example' => '广告', 'title' => ''],
'Confidence' => ['description' => 'The confidence score, ranging from 0 to 100, accurate to two decimal places.', 'type' => 'number', 'format' => 'float', 'example' => '80', 'title' => ''],
'Level' => ['description' => 'The risk level. Valid values:'."\n"
."\n"
.'- `high`: High risk. If the content matches an entry in a custom keyword library, the risk level defaults to high.'."\n"
."\n"
.'- `medium`: Medium risk.'."\n"
."\n"
.'- `low`: Low risk.'."\n"
."\n"
.'- `none`: No risk detected.', 'type' => 'string', 'example' => 'loose', 'title' => ''],
'Ext' => ['description' => 'Additional information about the detection result.', 'type' => 'any', 'example' => '{}', 'title' => ''],
],
'description' => 'A single detection result.',
'title' => '',
'example' => '',
],
'description' => 'A list of detection results.',
'title' => '',
'example' => '',
],
'Type' => ['description' => 'The detection type. Valid values:'."\n"
."\n"
.'- `contentModeration`: Content moderation.'."\n"
."\n"
.'- `promptAttack`: Prompt attack detection.'."\n"
."\n"
.'- `sensitiveData`: Sensitive data detection.'."\n"
."\n"
.'- `modelHallucination`: Model hallucination.'."\n"
."\n"
.'- `maliciousFile`: Malicious file detection.', 'type' => 'string', 'example' => 'contentModeration', 'title' => ''],
'Level' => ['description' => 'The risk level. Valid values include:'."\n"
."\n"
.'- high: High risk. If a match is found in a custom dictionary, the risk level defaults to high.'."\n"
."\n"
.'- medium: Medium risk.'."\n"
."\n"
.'- low: Low risk.'."\n"
."\n"
.'- none: No risk detected.', 'type' => 'string', 'example' => 'low', 'title' => ''],
'Suggestion' => ['description' => 'Suggestion'."\n"
."\n"
.'- block: A suggestion to block.'."\n"
."\n"
.'- pass: A suggestion to pass.'."\n"
."\n"
.'- watch: A suggestion to watch.'."\n"
."\n"
.'- mask: A suggestion to mask.', 'type' => 'string', 'example' => 'watch', 'title' => ''],
],
'description' => 'Details for a single detection type.',
'title' => '',
'example' => '',
],
'description' => 'A list of detection results.',
'title' => '',
'example' => '',
],
],
'description' => 'The detection results for a video frame.',
'title' => '',
'example' => '',
],
'description' => 'The moderation results for video frames.',
'title' => '',
'example' => '',
],
],
'description' => 'The video frame moderation result.',
'title' => '',
'example' => '',
],
],
'description' => 'The response data.',
'title' => '',
'example' => '',
],
],
'title' => '',
'description' => 'The response schema.',
'example' => '',
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You don\'t have permission.', 'description' => 'The current operation is not authorized. Please contact the main account to authorize the operation in the RAM console.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'MultiModalGuardAsyncResult',
'description' => 'For APIs that incur charges, add the following sentence in bold at the beginning of the description: "Before you use this API, make sure that you fully understand the billing methods and pricing of the XXX product." Link the word \'pricing\' to https\\://www\\.aliyun.com/price/product#/ecs/detail.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\\\n\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Data\\": {\\n \\"LiveId\\": \\"liveId\\",\\n \\"DataId\\": \\"data1234\\",\\n \\"TaskId\\": \\"vi_f_xxx\\",\\n \\"Suggestion\\": \\"pass\\",\\n \\"AudioResult\\": {\\n \\"Suggestion\\": \\"pass\\",\\n \\"SliceNum\\": 2,\\n \\"SliceDetails\\": [\\n {\\n \\"StartTime\\": 0,\\n \\"EndTime\\": 20,\\n \\"Url\\": \\"http://xxxx.abc.wav\\",\\n \\"Text\\": \\"今天天气真不错\\",\\n \\"Suggestion\\": \\"block\\",\\n \\"Detail\\": [\\n {\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"drug\\",\\n \\"Description\\": \\"毒品\\",\\n \\"Confidence\\": 90,\\n \\"Level\\": \\"high\\",\\n \\"Ext\\": \\"{}\\"\\n }\\n ],\\n \\"Type\\": \\"contentModeration\\",\\n \\"Level\\": \\"high\\",\\n \\"Suggestion\\": \\"block\\"\\n }\\n ]\\n }\\n ]\\n },\\n \\"FrameResult\\": {\\n \\"SliceNum\\": 2,\\n \\"Suggestion\\": \\"pass\\",\\n \\"Frames\\": [\\n {\\n \\"Url\\": \\"https://xxx.jpeg\\",\\n \\"Offset\\": 1.5,\\n \\"Suggestion\\": \\"block\\",\\n \\"Timestamp\\": 1684559739000,\\n \\"Detail\\": [\\n {\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"ad\\",\\n \\"Description\\": \\"广告\\",\\n \\"Confidence\\": 80,\\n \\"Level\\": \\"loose\\",\\n \\"Ext\\": \\"{}\\"\\n }\\n ],\\n \\"Type\\": \\"contentModeration\\",\\n \\"Level\\": \\"low\\",\\n \\"Suggestion\\": \\"watch\\"\\n }\\n ]\\n }\\n ]\\n }\\n }\\n}","type":"json"}]',
],
'MultiModalGuardForBase64' => [
'path' => '',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeNodes' => ['FEATURElvwangTHWXLK', 'FEATURElvwang4DJRB7', 'FEATURElvwang5OIOPT', 'FEATURElvwangCXOBXW', 'FEATURElvwang08CDRQ', 'FEATURElvwang2AB5DH', 'FEATURElvwangZUTYIL', 'FEATURElvwangEZQESQ'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'Service',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'Service', 'type' => 'string', 'example' => 'query_security_check', 'required' => false],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
'schema' => ['title' => '', 'description' => 'The service parameters.', 'type' => 'string', 'example' => '{"content":"test"}', 'required' => false],
],
[
'name' => 'ImageBase64Str',
'in' => 'formData',
'schema' => ['title' => '', 'description' => 'The base64-encoded string of the image.', 'type' => 'string', 'example' => '{base64}', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => '', 'description' => 'The unique identifier of the request.', 'type' => 'string', 'example' => 'XXXX'],
'Code' => ['title' => '', 'description' => 'The error code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Message' => ['title' => '', 'description' => 'The error message.', 'type' => 'string', 'example' => 'OK'],
'Data' => [
'title' => '',
'description' => 'The response data.',
'type' => 'object',
'properties' => [
'Detail' => [
'title' => '',
'description' => 'The details.',
'type' => 'array',
'items' => [
'title' => '',
'description' => 'The detail object.',
'type' => 'object',
'properties' => [
'Result' => [
'title' => '',
'description' => 'The result.',
'type' => 'array',
'items' => [
'title' => '',
'description' => 'The first result in the detail data.',
'type' => 'object',
'properties' => [
'Label' => ['title' => '', 'description' => 'The label.', 'type' => 'string', 'example' => 'nonLable'],
'Description' => ['title' => '', 'description' => 'The description.', 'type' => 'string', 'example' => '未检测出风险'],
'Confidence' => ['title' => '', 'description' => 'The confidence level.', 'type' => 'number', 'format' => 'float', 'example' => '100'],
'Level' => ['title' => '', 'description' => 'The risk level.', 'type' => 'string', 'example' => 'low'],
'Ext' => ['title' => '', 'description' => 'The extension information.', 'type' => 'any', 'example' => 'json格式数据'],
],
'example' => '',
],
'example' => '',
],
'Type' => ['title' => '', 'description' => 'The category.', 'type' => 'string', 'example' => 'contentModeration'],
'Level' => ['title' => '', 'description' => 'The risk level.', 'type' => 'string', 'example' => 'low'],
'Suggestion' => ['title' => '', 'description' => 'The suggested action.', 'type' => 'string', 'example' => 'pass'],
],
'example' => '',
],
'example' => '',
],
'Suggestion' => ['title' => '', 'description' => 'The suggested action.', 'type' => 'string', 'example' => 'pass'],
'DataId' => ['title' => '', 'description' => 'The data ID.', 'type' => 'string', 'example' => 'xxx'],
],
'enumValueTitles' => [],
'example' => '',
],
],
'example' => '',
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You don\'t have permission.', 'description' => 'The current operation is not authorized. Please contact the main account to authorize the operation in the RAM console.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'Multimodal content moderation (Base64)',
'summary' => 'Performs synchronous multimodal content moderation. Supports base64-encoded image strings.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"XXXX\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": {\\n \\"Detail\\": [\\n {\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"nonLable\\",\\n \\"Description\\": \\"未检测出风险\\",\\n \\"Confidence\\": 100,\\n \\"Level\\": \\"low\\",\\n \\"Ext\\": \\"json格式数据\\"\\n }\\n ],\\n \\"Type\\": \\"contentModeration\\",\\n \\"Level\\": \\"low\\",\\n \\"Suggestion\\": \\"pass\\"\\n }\\n ],\\n \\"Suggestion\\": \\"pass\\",\\n \\"DataId\\": \\"xxx\\"\\n }\\n}","type":"json"}]',
],
'MultiModalGuardWs' => [
'path' => '',
'methods' => ['get'],
'schemes' => ['https', 'websocket'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeNodes' => ['FEATURElvwangTHWXLK', 'FEATURElvwang4DJRB7', 'FEATURElvwang5OIOPT', 'FEATURElvwangCXOBXW', 'FEATURElvwang08CDRQ', 'FEATURElvwangDTK4CB', 'FEATURElvwangE9ZR0N', 'FEATURElvwang2AB5DH', 'FEATURElvwangZUTYIL', 'FEATURElvwangEZQESQ', 'FEATURElvwangPB269G'],
'autoTest' => false,
'notSupportAutoTestReason' => 'websocket协议当前平台不支持自动化测试',
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'Service',
'in' => 'query',
'schema' => ['description' => 'The moderation service category. Valid values:'."\n"
."\n"
.'- query_security_check_pro: AI input content security detection (pro edition).'."\n"
.'- response_security_check_pro: AI-generated content security detection (pro edition).'."\n"
.'- img_query_security_check: AIGC input image security detection.'."\n"
.'- img_response_security_check: AIGC output image security detection.'."\n"
.'- text_img_mix_guard: Multimodal (text + image) hybrid security detection.'."\n"
.'- file_security_sync_check: AIGC input or output file security detection.'."\n"
.'- text_file_sec_sync_check: Multimodal (text + file) real-time security detection.', 'type' => 'string', 'required' => false, 'example' => 'query_security_check_pro', 'title' => ''],
],
[
'name' => 'ServiceParameters',
'in' => 'query',
'schema' => ['description' => 'The parameter set required by the moderation service, in JSON string format. The input parameter for text content is content (String), the input parameter for image content is imageUrls (JSONArray), and the input parameter for file content is fileUrls (JSONArray).', 'type' => 'string', 'required' => false, 'example' => '- 文本:'."\n"
.'{'."\n"
.' "content": "test"'."\n"
.'}'."\n"
."\n"
.'- 图片:'."\n"
.'{'."\n"
.' "imageUrls": ["https://example.com/image.png"]'."\n"
.'}'."\n"
."\n"
.'- 文件:'."\n"
.'{'."\n"
.' "fileUrls": ["https://example.com/file.pdf"]'."\n"
.'}', 'title' => ''],
],
[
'name' => 'ProtocolType',
'in' => 'query',
'schema' => ['description' => 'The protocol type. Valid values:'."\n"
."\n"
.'- OpenAI'."\n"
.'- DashScope'."\n"
.'- Anthropic', 'type' => 'string', 'required' => false, 'example' => 'DashScope', 'title' => ''],
],
[
'name' => 'ModelType',
'in' => 'query',
'schema' => ['description' => 'The model type. Valid values:'."\n"
."\n"
.'- LLM', 'type' => 'string', 'required' => false, 'example' => 'LLM', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => '552F83A7-80C9-17ED-B344-0E13F7D3BF00'],
],
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'AI safety guardrail multimodal detection webSocket API',
'summary' => 'Provides a WebSocket-based multimodal detection API for AI safety guardrails. This API supports content compliance detection, sensitive content detection, prompt attack detection, malicious file detection, malicious URL detection, and other comprehensive detection capabilities.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"552F83A7-80C9-17ED-B344-0E13F7D3BF00\\"\\n}","type":"json"}]',
],
'MultimodalAsyncModeration' => [
'summary' => 'Multimodal-Asynchronous Detection',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '211718',
'abilityTreeNodes' => ['FEATURElvwang7UL554'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'query',
'schema' => ['description' => 'The type of moderation service. Valid values:'."\n"
."\n"
.'- post\\_text\\_image\\_detection: multimodal moderation for post text and images'."\n"
."\n"
.'- profile\\_text\\_image\\_detection: multimodal moderation for profile picture and nickname', 'type' => 'string', 'required' => false, 'example' => 'post_text_image_detection', 'title' => ''],
],
[
'name' => 'ServiceParameters',
'in' => 'query',
'schema' => ['description' => 'The parameter set required by the moderation service. This value must be a JSON string.', 'type' => 'string', 'required' => false, 'example' => '{"mainData":{"mainContent":"testMainContent","mainTitle":"testMainTitle","mainImages":[{"imageUrl":"https://xxxx.com/001.jpg"}]}}', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'Id of the request', 'type' => 'string', 'title' => '', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
'Code' => ['description' => 'Return code. A value of 200 indicates success.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Msg' => ['description' => 'The response message for this request.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'Data' => [
'type' => 'object',
'properties' => [
'ReqId' => ['description' => 'The ReqId field returned by the URL asynchronous enhanced moderation API. Use this field to query moderation results.', 'type' => 'string', 'example' => 'A07B3DB9-D762-5C56-95B1-8EC55CF176D2', 'title' => ''],
'DataId' => ['description' => 'The value of dataId passed in the API request. This field is absent if dataId was not included in the request.', 'type' => 'string', 'example' => '26769ada6e264e7ba9aa048241e12be9', 'title' => ''],
],
'description' => 'Returned data.',
'title' => '',
'example' => '',
],
],
'title' => '',
'description' => 'Schema of Response',
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'MultimodalAsyncModeration',
'description' => 'The asynchronous URL moderation service supports two billing methods: pay-as-you-go and resource plan usage.'."\n"
."\n"
.'- After you activate the enhanced text moderation service, the default billing method is pay-as-you-go. You are billed daily based on actual usage. No charges apply if you do not invoke the service.'."\n"
."\n"
.'- If your moderation volume is large or your moderation needs are relatively stable, purchase a resource plan in advance. Larger resource plans offer greater discounts. You can stack multiple resource plans.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:MultimodalAsyncModeration',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"OK\\",\\n \\"Data\\": {\\n \\"ReqId\\": \\"A07B3DB9-D762-5C56-95B1-8EC55CF176D2\\",\\n \\"DataId\\": \\"26769ada6e264e7ba9aa048241e12be9\\"\\n }\\n}","type":"json"}]',
],
'TextModeration' => [
'summary' => 'This service uses dynamic policies and models to defend against adversarial content. It provides moderation services for various business scenarios and detects different types of violations.',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '128601',
'abilityTreeNodes' => ['FEATURElvwang8G4HBD'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
'schema' => [
'description' => 'The type of moderation service. Valid values:',
'enumValueTitles' => ['pgc_detection' => 'PGC general content moderation', 'nickname_detection' => 'User nickname moderation', 'comment_multilingual_pro' => 'Multilingual moderation for international business', 'chat_detection' => 'Private chat content moderation', 'ad_compliance_detection' => 'Ad compliance moderation', 'comment_detection' => 'Public chat comment moderation', 'ai_art_detection' => 'AIGC-related text moderation'],
'type' => 'string',
'docRequired' => true,
'required' => true,
'example' => 'nickname_detection',
'title' => '',
],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
'schema' => ['description' => 'The parameters for the moderation service. The value must be a JSON string.', 'type' => 'string', 'example' => '{"content":"The map is still black"}', 'required' => false, 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'The response body.',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
'Code' => ['description' => 'The response code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The response message for the request.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'Data' => [
'description' => 'The moderation result data.',
'type' => 'object',
'properties' => [
'labels' => ['description' => 'The moderation labels. If multiple labels are returned, they are separated by commas (,). Valid values: ad: advertisement profanity: profanity contraband: contraband sexual\\_content: sexual content violence: violent and terrorist content nonsense: meaningless content spam: spam negative\\_content: undesirable content cyberbullying: cyberbullying C\\_customized: A match in a custom library', 'type' => 'string', 'example' => 'porn', 'title' => ''],
'reason' => ['description' => 'A JSON string that contains the reason for the moderation result. The string includes the following fields:'."\n"
."\n"
.'1. riskTips: The sub-labels.'."\n"
."\n"
.'2. riskWords: The detected risk words.'."\n"
."\n"
.'3. adNums: The detected ad-related numbers.'."\n"
."\n"
.'4. customizedWords: The detected custom words.'."\n"
."\n"
.'5. customizedLibs: The names of the custom libraries that contain a match.'."\n"
."\n"
.'6. riskLevel: The risk level, which is recommended by the system. Valid values:'."\n"
."\n"
.'- high: high risk'."\n"
."\n"
.'- medium: medium risk'."\n"
."\n"
.'- low: low risk', 'type' => 'string', 'example' => '{\\"riskLevel\\":\\"high\\",\\"riskTips\\":\\"色情_低俗词\\",\\"riskWords\\":\\"色情服务\\"}', 'title' => ''],
'accountId' => ['description' => 'The \\`accountId\\` specified in the request.', 'type' => 'string', 'example' => '123456', 'title' => ''],
'deviceId' => ['description' => 'The \\`deviceId\\` specified in the request.', 'type' => 'string', 'example' => 'xxxxxx', 'title' => ''],
'dataId' => ['description' => 'The data ID of the moderated object.'."\n"
."\n"
.'> If you specify the dataId parameter in the request, its value is returned in this parameter.', 'type' => 'string', 'example' => 'text1234', 'title' => ''],
'descriptions' => ['description' => 'The description of the label.', 'type' => 'string', 'example' => '疑似广告内容', 'title' => ''],
'manualTaskId' => ['description' => 'The ID of the manual review task.', 'type' => 'string', 'example' => 'xxxxx-xxxxx', 'title' => ''],
'ext' => [
'type' => 'object',
'properties' => [
'llmContent' => [
'type' => 'object',
'properties' => [
'outputText' => ['description' => 'The output content.', 'type' => 'string', 'example' => '正常。文本中无风险内容。', 'title' => ''],
],
'description' => 'The output from the Large Language Model (LLM).',
'title' => '',
'example' => '',
],
],
'description' => 'Auxiliary reference information for the text.',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": {\\n \\"labels\\": \\"porn\\",\\n \\"reason\\": \\"{\\\\\\\\\\\\\\"riskLevel\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"high\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"riskTips\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"色情_低俗词\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"riskWords\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"色情服务\\\\\\\\\\\\\\"}\\",\\n \\"accountId\\": \\"123456\\",\\n \\"deviceId\\": \\"xxxxxx\\",\\n \\"dataId\\": \\"text1234\\",\\n \\"descriptions\\": \\"疑似广告内容\\",\\n \\"manualTaskId\\": \\"xxxxx-xxxxx\\",\\n \\"ext\\": {\\n \\"llmContent\\": {\\n \\"outputText\\": \\"正常。文本中无风险内容。\\"\\n }\\n }\\n }\\n}","type":"json"}]',
'title' => 'TextModeration',
'description' => 'Before you use this operation, review the [billing methods and pricing](https://help.aliyun.com/document_detail/464388.html?#section-itm-m2s-ugq) for Text Moderation Plus.',
'changeSet' => [
['createdAt' => '2025-06-12T02:05:04.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2025-01-06T10:54:43.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-05-08T03:59:29.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-01-03T02:55:25.000Z', 'description' => 'Response parameters changed, Response parameters changed'],
['createdAt' => '2022-11-30T02:27:56.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2022-08-02T11:31:05.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2022-06-02T01:46:57.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2022-03-24T02:48:39.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2022-03-24T02:48:39.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TextModeration'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-greenweb:TextModeration',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'translator' => 'machine',
],
'TextModerationPlus' => [
'summary' => 'Text Moderation Plus is an upgraded service that moderates the input instructions and generated text of large language models (LLMs). This service can retrieve standard answers for specific input instructions and lets you enable or disable moderation labels.',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '207632',
'abilityTreeNodes' => ['FEATURElvwangXYAQ5C'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
'schema' => [
'description' => 'The type of the moderation service.',
'enumValueTitles' => ['chat_detection_pro' => 'Detects content in private chats (Professional Edition).', 'llm_response_moderation' => 'Detects text generated by large language models (LLMs).', 'llm_query_moderation' => 'Detects text input to LLMs.', 'aigc_moderation_byllm' => 'The LLM service for text moderation in AI-generated content (AIGC) scenarios.', 'nickname_detection_pro' => 'Detects user nicknames (Professional Edition).', 'comment_detection_pro' => 'Detects content in public chats and comments (Professional Edition).', 'ugc_moderation_byllm' => 'The LLM service for text moderation in user-generated content (UGC) scenarios.', 'ad_compliance_detection_pro' => 'Detects ad compliance (Professional Edition).'],
'type' => 'string',
'required' => false,
'example' => 'ugc_moderation_byllm',
'title' => '',
],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
'schema' => ['description' => 'The set of parameters required for the moderation service. The value must be a JSON string.', 'type' => 'string', 'example' => '{"content":"Test content"}', 'required' => false, 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'The response schema.',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
'Code' => ['description' => 'The return code. A value of 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'A human-readable description of the error.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'Data' => [
'description' => 'The data that is returned.',
'type' => 'object',
'properties' => [
'Result' => [
'description' => 'The moderation results.',
'type' => 'array',
'items' => [
'description' => 'A collection is returned.',
'type' => 'object',
'properties' => [
'Label' => ['description' => 'The label.', 'type' => 'string', 'example' => 'porn', 'title' => ''],
'Confidence' => ['description' => 'The confidence score. The value ranges from 0 to 100. The value is accurate to two decimal places.', 'type' => 'number', 'format' => 'float', 'example' => '81.22', 'title' => ''],
'RiskWords' => ['description' => 'The risk keywords that were hit.', 'type' => 'string', 'example' => 'XXX', 'title' => ''],
'CustomizedHit' => [
'description' => 'The custom keywords that were hit.',
'type' => 'array',
'items' => [
'description' => 'The details of a custom keyword that was hit.',
'type' => 'object',
'properties' => [
'LibName' => ['description' => 'The name of the keyword library.', 'type' => 'string', 'example' => '测试词库', 'title' => ''],
'KeyWords' => ['description' => 'The keywords that were hit, separated by commas.', 'type' => 'string', 'example' => 'xxx', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Description' => ['description' => 'The description of the label.', 'type' => 'string', 'example' => '未检测出风险', 'title' => ''],
'RiskPositions' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'RiskWord' => ['description' => 'The non-compliant word.', 'type' => 'string', 'example' => '词A', 'title' => ''],
'StartPos' => ['description' => 'The start position of the non-compliant word.', 'type' => 'integer', 'format' => 'int32', 'example' => '4', 'title' => ''],
'EndPos' => ['description' => 'The end position of the non-compliant word.', 'type' => 'integer', 'format' => 'int32', 'example' => '6', 'title' => ''],
],
'description' => 'The position information of the risk words.',
'title' => '',
'example' => '',
],
'description' => 'The position information of the risk words.',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Advice' => [
'description' => 'The suggested actions.',
'type' => 'array',
'items' => [
'description' => 'The details of a suggested action.',
'type' => 'object',
'properties' => [
'Answer' => ['description' => 'The suggested answer.', 'type' => 'string', 'example' => 'XXX', 'title' => ''],
'HitLabel' => ['description' => 'The label that was hit.', 'type' => 'string', 'example' => 'XXX', 'title' => ''],
'HitLibName' => ['description' => 'The name of the keyword library that was hit.', 'type' => 'string', 'example' => 'XXX', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Score' => ['description' => 'The score.', 'type' => 'number', 'format' => 'float', 'example' => '1', 'title' => ''],
'RiskLevel' => ['description' => 'The risk level.', 'type' => 'string', 'example' => 'high', 'title' => ''],
'DataId' => ['description' => 'The ID of the data that was moderated.'."\n"
."\n"
.'> If you specify the \\`dataId\\` parameter in the request, the value of this parameter is returned.', 'type' => 'string', 'example' => 'text1234', 'title' => ''],
'SensitiveResult' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Label' => ['description' => 'The label.', 'type' => 'string', 'example' => '1234', 'title' => ''],
'SensitiveLevel' => ['description' => 'The sensitivity level.', 'type' => 'string', 'example' => 'S1', 'title' => ''],
'SensitiveData' => [
'type' => 'array',
'items' => ['description' => 'The sensitive data.', 'type' => 'string', 'example' => '上海', 'title' => ''],
'description' => 'The list of sensitive data.',
'title' => '',
'example' => '',
],
'Description' => ['description' => 'The description.', 'type' => 'string', 'example' => '省份', 'title' => ''],
],
'description' => 'The details of a sensitive data detection result.',
'title' => '',
'example' => '',
],
'description' => 'The sensitive data detection results.',
'title' => '',
'example' => '',
],
'AttackResult' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Label' => ['description' => 'The label.', 'type' => 'string', 'example' => 'safe', 'title' => ''],
'Confidence' => ['description' => 'The confidence score.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''],
'AttackLevel' => ['description' => 'The attack level.', 'type' => 'string', 'example' => 'none', 'title' => ''],
'Description' => ['description' => 'The description.', 'type' => 'string', 'example' => 'safe', 'title' => ''],
],
'description' => 'The details of a prompt attack detection result.',
'title' => '',
'example' => '',
],
'description' => 'The prompt attack detection results.',
'title' => '',
'example' => '',
],
'SensitiveLevel' => ['description' => 'The sensitivity level.', 'type' => 'string', 'example' => 'S0', 'title' => ''],
'AttackLevel' => ['description' => 'The attack level.', 'type' => 'string', 'example' => 'none', 'title' => ''],
'ManualTaskId' => ['description' => 'The ID of the manual review task.', 'type' => 'string', 'example' => 'xxxxx-xxxxx', 'title' => ''],
'DetectedLanguage' => ['description' => 'The detected language.', 'type' => 'string', 'example' => 'en', 'title' => ''],
'TranslatedContent' => ['description' => 'The translated content.', 'type' => 'string', 'example' => 'hello', 'title' => ''],
'AccountId' => ['description' => 'The AccountId from the request.', 'type' => 'string', 'example' => '123456789', 'title' => ''],
'Ext' => [
'type' => 'object',
'properties' => [
'LlmContent' => [
'type' => 'object',
'properties' => [
'OutputText' => ['description' => 'The output.', 'type' => 'string', 'example' => '正常。文本中无风险内容。', 'title' => ''],
],
'description' => 'The LLM output.',
'title' => '',
'example' => '',
],
],
'description' => 'The auxiliary information.',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": {\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"porn\\",\\n \\"Confidence\\": 81.22,\\n \\"RiskWords\\": \\"XXX\\",\\n \\"CustomizedHit\\": [\\n {\\n \\"LibName\\": \\"测试词库\\",\\n \\"KeyWords\\": \\"xxx\\"\\n }\\n ],\\n \\"Description\\": \\"未检测出风险\\",\\n \\"RiskPositions\\": [\\n {\\n \\"RiskWord\\": \\"词A\\",\\n \\"StartPos\\": 4,\\n \\"EndPos\\": 6\\n }\\n ]\\n }\\n ],\\n \\"Advice\\": [\\n {\\n \\"Answer\\": \\"XXX\\",\\n \\"HitLabel\\": \\"XXX\\",\\n \\"HitLibName\\": \\"XXX\\"\\n }\\n ],\\n \\"Score\\": 1,\\n \\"RiskLevel\\": \\"high\\",\\n \\"DataId\\": \\"text1234\\",\\n \\"SensitiveResult\\": [\\n {\\n \\"Label\\": \\"1234\\",\\n \\"SensitiveLevel\\": \\"S1\\",\\n \\"SensitiveData\\": [\\n \\"上海\\"\\n ],\\n \\"Description\\": \\"省份\\"\\n }\\n ],\\n \\"AttackResult\\": [\\n {\\n \\"Label\\": \\"safe\\",\\n \\"Confidence\\": 0,\\n \\"AttackLevel\\": \\"none\\",\\n \\"Description\\": \\"safe\\"\\n }\\n ],\\n \\"SensitiveLevel\\": \\"S0\\",\\n \\"AttackLevel\\": \\"none\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\",\\n \\"DetectedLanguage\\": \\"en\\",\\n \\"TranslatedContent\\": \\"hello\\",\\n \\"AccountId\\": \\"123456789\\",\\n \\"Ext\\": {\\n \\"LlmContent\\": {\\n \\"OutputText\\": \\"正常。文本中无风险内容。\\"\\n }\\n }\\n }\\n}","type":"json"}]',
'title' => 'TextModerationPlus',
'description' => 'Before you use this API, [activate AI Guardrails Pro](https://common-buy.aliyun.com/?commodityCode=lvwang_cip_public_cn) and make sure that you understand the [billing methods and pricing](https://help.aliyun.com/document_detail/2671445.html?#section-6od-32j-99n) for Text Moderation Plus.',
'changeSet' => [
['createdAt' => '2025-06-12T02:05:04.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2025-03-19T07:10:46.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2025-01-06T10:54:43.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-09-06T02:38:00.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-07-03T11:18:48.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-05-27T07:14:29.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TextModerationPlus'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:TextModerationPlus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'translator' => 'machine',
],
'UrlAsyncModeration' => [
'summary' => 'The URL asynchronous moderation service detects threats such as fraud, pornography, and gambling in URLs to protect the content ecosystem of your platform.',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '211718',
'abilityTreeNodes' => ['FEATURElvwang7UL554'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'query',
'schema' => ['description' => 'Service name: URL threat detection', 'type' => 'string', 'example' => 'url_detection_pro', 'required' => false, 'title' => ''],
],
[
'name' => 'ServiceParameters',
'in' => 'query',
'schema' => ['description' => 'The parameter set for the content moderation object. This parameter is a JSON string. For more information, see the description of ServiceParameters.', 'type' => 'string', 'required' => false, 'example' => '{'."\n"
.' "url": "https://help.aliyun.com/",'."\n"
.' "dataId": "url123******"'."\n"
.'}', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '6CF2815C-****-****-B52E-FF6E2****492'],
'Code' => ['description' => 'The return code. A value of 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Msg' => ['description' => 'The response message for the current request.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'ReqId' => ['description' => 'The ReqId field returned by the enhanced URL asynchronous moderation API. You can use this field to query the detection results.', 'type' => 'string', 'example' => 'A07B3DB9-D762-5C56-95B1-8EC55CF176D2', 'title' => ''],
'DataId' => ['description' => 'The value of dataId that you specified in the API request. If you did not specify this parameter in the request, this field is not returned.', 'type' => 'string', 'example' => '26769ada6e264e7ba9aa048241e12be9', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-****-****-B52E-FF6E2****492\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"ReqId\\": \\"A07B3DB9-D762-5C56-95B1-8EC55CF176D2\\",\\n \\"DataId\\": \\"26769ada6e264e7ba9aa048241e12be9\\"\\n }\\n}","type":"json"}]',
'title' => 'UrlAsyncModeration',
'description' => 'The URL asynchronous moderation service supports the pay-as-you-go and resource plan billing methods.'."\n"
."\n"
.'- After you activate the enhanced edition of Text Moderation, the default billing method is pay-as-you-go. You are charged CNY 30 per 10,000 calls based on your daily usage. No fees are incurred if you do not call the service.'."\n"
."\n"
.'- If you have many moderation requests or relatively fixed moderation requirements, we recommend that you purchase resource plans in advance. The larger the resource plan you purchase, the greater the discount you receive. You can purchase and use multiple resource plans.',
'requestParamsDescription' => '### Description of ServiceParameters'."\n"
."\n"
.'| **Name** | **Type** | **Required** | **Example** | **Description** |'."\n"
.'| ------------- | -------- | ------------ | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |'."\n"
.'| url | String | Yes | <https://help.aliyun.com/> | The URL to be detected. Note: Make sure that the URL is in a valid format. Make sure that you pass only one URL in each request. |'."\n"
.'| **dataId** | String | No | url123\\*\\*\\*\\* | The data ID of the detection object. The value can contain letters, digits, underscores (\\_), hyphens (-), and periods (.). The value can be up to 64 characters in length. You can use this ID to uniquely identify your business data. |'."\n"
.'| **callback** | String | No | http\\://www\\.aliyun.com | The callback URL that is used to receive the detection results. The URL can be an HTTP or HTTPS URL. If you do not specify this parameter, you must periodically poll the detection results. The callback interface must support the POST method, UTF-8 encoding, and the form parameters **ReqId**, **Checksum**, and **Content**. AI Guardrails sets **ReqId**, **Checksum**, and **Content** based on the following rules and formats, and calls your callback interface to return the detection results. - **ReqId**: The request ID that is returned after you submit an asynchronous detection task. - **Checksum**: A string that is generated using the SHA256 algorithm based on the user UID, seed, and content. The user UID is the ID of your Alibaba Cloud account. You can view the UID in the [Alibaba Cloud Management Console](https://account.console.aliyun.com/#/secure). For tamper-proofing, after you receive the pushed results, you can generate a string based on the preceding algorithm and compare the string with the value of **Checksum**. **Note** The user UID must be the UID of an Alibaba Cloud account, not the UID of a RAM user. - **Content**: A JSON string. You must parse and invert the string to a JSON object. For an example of the **Content** result, see the sample response of a query for detection results. **Note** After your server-side callback interface receives the results pushed by AI Guardrails, if the returned HTTP status code is 200, the results are received. Other HTTP status codes indicate that the results failed to be received. If the results fail to be received, AI Guardrails repeatedly pushes the detection results for a maximum of 16 times until the results are received. If the results are not received after 16 retries, AI Guardrails stops pushing the results. We recommend that you check the status of the callback interface. |'."\n"
.'| **seed** | String | No | abc\\*\\*\\*\\* | A random string. This value is used for the signature in the callback notification request. The value can contain letters, digits, and underscores (\\_). The value can be up to 64 characters in length. You can customize this parameter. You can use this parameter to verify that the request is initiated by the Alibaba Cloud AI Guardrails service when you receive a callback notification from AI Guardrails. **Note** If you use a callback, you must specify this parameter. |'."\n"
.'| **cryptType** | String | No | SHA256 | When you use a callback notification (callback), you can set the algorithm that is used to encrypt the content of the callback notification. AI Guardrails encrypts the returned result (a string that consists of the **user UID, seed, and content**) based on the encryption algorithm that you specify, and then sends the encrypted result to your callback URL. Valid values: ● **SHA256** (default): the SHA256 encryption algorithm. ● **SM3**: the SM3 encryption algorithm. A hexadecimal string that consists of lowercase letters and digits is returned. For example, if abc is encrypted using the SM3 algorithm, the encrypted string is returned. |',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UrlAsyncModeration'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:UrlAsyncModeration',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'translator' => 'manual',
],
'VideoModeration' => [
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '187556',
'abilityTreeNodes' => ['FEATURElvwang53TCRC'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
'schema' => [
'description' => 'The service code for video moderation.',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['liveStreamDetection' => '视频直播流审核', 'videoDetection' => '视频文件审核', 'liveStreamDetection_cb' => '视频直播流审核_海外版', 'videoDetection_cb' => '视频文件审核_海外版'],
'title' => '',
'example' => 'videoDetection',
],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
'schema' => ['description' => 'The parameters that are required for the moderation service. The value must be a JSON string.'."\n"
."\n"
.'- url: Required. The URL of the object to be moderated. Make sure that the URL can be accessed over the Internet.'."\n"
.'- dataId: Optional. The data ID of the object to be moderated.'."\n"
."\n"
.'For more information, see [ServiceParameter](https://help.aliyun.com/document_detail/2505810.html).', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '{"url": "https://talesofai.oss-cn-shanghai.aliyuncs.com/xxx.mp4", "dataId": "data1234"}'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
'Message' => ['description' => 'The response message.', 'type' => 'string', 'title' => '', 'example' => 'SUCCESS'],
'Code' => ['description' => 'The return code. A return code of 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '200'],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'TaskId' => ['description' => 'The task ID.', 'type' => 'string', 'title' => '', 'example' => 'xxxxx-xxxxx'],
'DataId' => ['description' => 'The value of the dataId parameter that you specified in the API request. This parameter is not returned if you did not specify the dataId parameter in the request.', 'type' => 'string', 'title' => '', 'example' => 'data1234'],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'VideoModeration',
'summary' => 'The enhanced video moderation feature of Content Moderation detects threats and non-compliant content in video files. Use this operation to submit a moderation task.',
'description' => 'Before you call this operation, make sure that you have activated the [enhanced Content Moderation](https://common-buy.aliyun.com/?commodityCode=lvwang_cip_public_cn) service and understand the [billing methods](https://help.aliyun.com/document_detail/2505807.html) and [pricing](https://www.aliyun.com/price/product?#/lvwang/detail/cdibag) of the enhanced video moderation feature.',
'changeSet' => [
['createdAt' => '2024-03-26T02:18:01.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VideoModeration'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:VideoModeration',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"TaskId\\": \\"xxxxx-xxxxx\\",\\n \\"DataId\\": \\"data1234\\"\\n }\\n}","type":"json"}]',
],
'VideoModerationCancel' => [
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '201471',
'abilityTreeNodes' => ['FEATURElvwang53TCRC'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
'schema' => [
'description' => 'The moderation service type.',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['liveStreamDetection' => '视频直播流检测', 'videoDetection' => '视频文件检测', 'liveStreamDetection_cb' => '视频直播流审核_海外版', 'videoDetection_cb' => '视频文件审核_海外版'],
'title' => '',
'example' => 'videoDetection',
],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
'schema' => ['description' => 'The TaskId of the task to be canceled.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '{\\"taskId\\":\\"vi_s_4O9gp7GfNQdx9GOqdekFmk-1z2RJT\\"}'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '6CF2815C-****-****-B52E-FF6E2****492'],
'Code' => ['description' => 'The status code. The status code 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '200'],
'Message' => ['description' => 'The message.', 'type' => 'string', 'title' => '', 'example' => 'OK'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'VideoModerationCancel',
'summary' => 'Cancels an ApsaraVideo Live moderation task.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VideoModerationCancel'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:VideoModerationCancel',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-****-****-B52E-FF6E2****492\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\"\\n}","type":"json"}]',
],
'VideoModerationResult' => [
'summary' => 'Retrieves the task result of an enhanced video content moderation node.',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '187919',
'abilityTreeNodes' => ['FEATURElvwang53TCRC'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
'schema' => [
'description' => 'The ServiceCode for video moderation.',
'enumValueTitles' => ['liveStreamDetection' => 'ApsaraVideo Live stream moderation', 'videoDetection' => 'video file moderation.', 'liveStreamDetection_cb' => 'ApsaraVideo Live stream moderation (international edition)', 'videoDetection_cb' => 'video file moderation (international edition)'],
'type' => 'string',
'required' => false,
'example' => 'videoDetection',
'title' => '',
],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
'schema' => ['description' => 'The parameter set required by the moderation service. taskId specifies the taskId of the moderation task to query. Only one taskId can be specified per request.', 'type' => 'string', 'required' => false, 'example' => '{"taskId":"au_f_8PoWiZKoLbczp5HRn69VdT-1y8@U5"}', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492'],
'Code' => ['description' => 'The return code. A value of 200 indicates success.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The return message.', 'type' => 'string', 'example' => 'success finished', 'title' => ''],
'Data' => [
'description' => 'The moderation result data.',
'type' => 'object',
'properties' => [
'LiveId' => ['description' => 'The unique ID of the live stream.', 'type' => 'string', 'example' => 'liveId', 'title' => ''],
'DataId' => ['description' => 'The value of dataId passed in the API request. This field is not returned if dataId was not specified in the request.', 'type' => 'string', 'example' => 'product_content-2055763', 'title' => ''],
'AudioResult' => [
'description' => 'The segmented results of video audio moderation.',
'type' => 'object',
'properties' => [
'SliceDetails' => [
'description' => 'The list of audio segments.',
'type' => 'array',
'items' => [
'description' => 'The segment details.',
'type' => 'object',
'properties' => [
'StartTime' => ['description' => 'The start time of the segment, in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''],
'EndTime' => ['description' => 'The end time of the segment, in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '30', 'title' => ''],
'StartTimestamp' => ['description' => 'The start timestamp, in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1659935002123', 'title' => ''],
'EndTimestamp' => ['description' => 'The end timestamp.', 'type' => 'integer', 'format' => 'int64', 'example' => '1685245261939', 'title' => ''],
'Url' => ['description' => 'The temporary URL of the audio segment file.', 'type' => 'string', 'example' => 'http://xxxx.abc.img', 'title' => ''],
'Text' => ['description' => 'The transcribed text of the audio segment.', 'type' => 'string', 'example' => '今天天气真不错', 'title' => ''],
'Labels' => ['description' => 'The violated labels that were hit.', 'type' => 'string', 'example' => 'porn', 'title' => ''],
'Score' => ['description' => 'The risk score. Default range: 0 to 99.', 'type' => 'number', 'format' => 'float', 'example' => '5', 'title' => ''],
'Extend' => ['description' => 'The extended field.', 'type' => 'string', 'example' => '{\\"consoleProduct\\":\\"slbnext\\"}', 'title' => ''],
'RiskTips' => ['description' => 'The details of the hit risk.', 'type' => 'string', 'example' => '""', 'title' => ''],
'RiskWords' => ['description' => 'The risk keywords that were hit.', 'type' => 'string', 'example' => '""', 'title' => ''],
'RiskLevel' => ['description' => 'The risk level, returned based on the configured high and low risk score thresholds. Valid values:'."\n"
."\n"
.'- high: High risk.'."\n"
."\n"
.'- medium: Medium risk.'."\n"
.' '."\n"
.'- low: Low risk.'."\n"
."\n"
.'- none: No risk detected.', 'type' => 'string', 'example' => 'high', 'title' => ''],
'Descriptions' => ['description' => 'The label descriptions.', 'type' => 'string', 'example' => '疑似违禁内容', 'title' => ''],
'Result' => [
'title' => '',
'description' => 'The text detection result.',
'type' => 'array',
'items' => [
'title' => '',
'description' => 'The individual result.',
'type' => 'object',
'properties' => [
'Label' => ['title' => '', 'description' => 'The label.', 'type' => 'string', 'example' => 'profanity'],
'Confidence' => ['title' => '', 'description' => 'The confidence level.', 'type' => 'number', 'format' => 'float', 'example' => '99.9'],
'RiskWords' => ['title' => '', 'description' => 'The hit risk content.', 'type' => 'string', 'example' => 'fxxk'],
'RiskLevel' => ['title' => '', 'description' => 'The risk level.', 'type' => 'string', 'example' => 'high'],
'CustomizedHit' => [
'title' => '',
'description' => 'The list of hit custom libraries.',
'type' => 'array',
'items' => [
'title' => '',
'description' => 'The hit custom library.',
'type' => 'object',
'properties' => [
'LibName' => ['title' => '', 'description' => 'The name of the custom library.', 'type' => 'string', 'example' => '备用词库02'],
'KeyWords' => ['title' => '', 'description' => 'The custom keywords.', 'type' => 'string', 'example' => 'fxxk'],
],
'example' => '',
],
'example' => '',
],
'Description' => ['title' => '', 'description' => 'The description.', 'type' => 'string', 'example' => '疑似违禁内容'],
'RiskPositions' => [
'title' => '',
'description' => 'The list of risk positions.',
'type' => 'array',
'items' => [
'title' => '',
'description' => 'The risk position.',
'type' => 'object',
'properties' => [
'RiskWord' => ['title' => '', 'description' => 'The detected sensitive word.', 'type' => 'string', 'example' => 'fxxk'],
'StartPos' => ['title' => '', 'description' => 'The start position.', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'EndPos' => ['title' => '', 'description' => 'The end position.', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
],
'example' => '',
],
'example' => '',
],
],
'example' => '',
],
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'AudioSummarys' => [
'description' => 'The audio label summary.',
'type' => 'array',
'items' => [
'description' => 'The object.',
'type' => 'object',
'properties' => [
'Label' => ['description' => 'The video audio label.', 'type' => 'string', 'example' => 'profanity', 'title' => ''],
'LabelSum' => ['description' => 'The number of times the label was detected.', 'type' => 'integer', 'format' => 'int32', 'example' => '8', 'title' => ''],
'Description' => ['description' => 'The label descriptions.', 'type' => 'string', 'example' => '疑似违禁内容', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'RiskLevel' => ['description' => 'The risk level, returned based on the configured high and low risk score thresholds. Valid values:'."\n"
."\n"
.'- high: High risk.'."\n"
."\n"
.'- medium: Medium risk.'."\n"
.' '."\n"
.'- low: Low risk.'."\n"
."\n"
.'- none: No risk detected.', 'type' => 'string', 'example' => 'high', 'title' => ''],
],
'title' => '',
'example' => '',
],
'FrameResult' => [
'description' => 'The list of video frame capture results.',
'type' => 'object',
'properties' => [
'FrameNum' => ['description' => 'The number of result frames.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
'Frames' => [
'description' => 'The information about video frames that contain hit labels.',
'type' => 'array',
'items' => [
'description' => 'The object.',
'type' => 'object',
'properties' => [
'TempUrl' => ['description' => 'The temporary access URL of the captured frame image.', 'type' => 'string', 'example' => 'http://xxxx.abc.jpg', 'title' => ''],
'Offset' => ['description' => 'The offset of the captured frame.', 'type' => 'number', 'format' => 'float', 'example' => '338', 'title' => ''],
'Results' => [
'description' => 'The frame detection result details.',
'type' => 'array',
'items' => [
'description' => 'The object.',
'type' => 'object',
'properties' => [
'Service' => ['description' => 'The image moderation service type.', 'type' => 'string', 'example' => 'tonalityImprove', 'title' => ''],
'Result' => [
'description' => 'The hit result details.',
'type' => 'array',
'items' => [
'description' => 'The object.',
'type' => 'object',
'properties' => [
'Confidence' => ['description' => 'The confidence score, ranging from 0 to 100, rounded to two decimal places.', 'type' => 'number', 'format' => 'float', 'example' => '50', 'title' => ''],
'Label' => ['description' => 'The classification of the detection result.', 'type' => 'string', 'example' => 'bloody', 'title' => ''],
'Description' => ['description' => 'The description of the Label field.', 'type' => 'string', 'example' => '未检测出风险', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'TextInImage' => ['description' => 'The text information detected in the hit image.', 'type' => 'object', 'title' => '', 'example' => ''],
'CustomImage' => [
'description' => 'The custom image library information returned when a custom image library is hit.',
'type' => 'array',
'items' => [
'description' => 'The object.',
'type' => 'object',
'properties' => [
'LibId' => ['description' => 'The ID of the hit custom image library.', 'type' => 'string', 'example' => '12345678', 'title' => ''],
'ImageId' => ['description' => 'The ID of the hit custom image.', 'type' => 'string', 'example' => '1234', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'PublicFigure' => [
'description' => 'The identified public figure codes returned when the video contains specific public figures.',
'type' => 'array',
'items' => [
'description' => 'The object.',
'type' => 'object',
'properties' => [
'FigureId' => ['description' => 'The code of the identified public figure.', 'type' => 'string', 'example' => 'xxx001', 'title' => ''],
'FigureName' => ['description' => 'The name of the identified public figure.', 'type' => 'string', 'example' => '张三', 'title' => ''],
'Location' => [
'description' => 'The location of the identified public figure.',
'type' => 'array',
'items' => [
'description' => 'The location object.',
'type' => 'object',
'properties' => [
'H' => ['description' => 'The height.', 'type' => 'integer', 'format' => 'int32', 'example' => '222', 'title' => ''],
'W' => ['description' => 'The width.', 'type' => 'integer', 'format' => 'int32', 'example' => '111', 'title' => ''],
'X' => ['description' => 'The x-coordinate of the starting point.', 'type' => 'integer', 'format' => 'int32', 'example' => '111', 'title' => ''],
'Y' => ['description' => 'The y-coordinate of the starting point.', 'type' => 'integer', 'format' => 'int32', 'example' => '222', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'LogoData' => [
'description' => 'The logo information returned when a logo is detected in the video.',
'type' => 'array',
'items' => [
'description' => 'The logo information object.',
'type' => 'object',
'properties' => [
'Location' => [
'description' => 'The text line and coordinate information.',
'type' => 'object',
'properties' => [
'X' => ['description' => 'The distance from the upper-left corner of the text area to the y-axis, with the upper-left corner of the image as the origin. Unit: pixels.', 'type' => 'integer', 'format' => 'int32', 'example' => '111', 'title' => ''],
'Y' => ['description' => 'The distance from the upper-left corner of the text area to the x-axis, with the upper-left corner of the image as the origin. Unit: pixels.', 'type' => 'integer', 'format' => 'int32', 'example' => '222', 'title' => ''],
'W' => ['description' => 'The width of the text area. Unit: pixels.', 'type' => 'integer', 'format' => 'int32', 'example' => '111', 'title' => ''],
'H' => ['description' => 'The height of the text area. Unit: pixels.', 'type' => 'integer', 'format' => 'int32', 'example' => '111', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Logo' => [
'description' => 'The logo information.',
'type' => 'array',
'items' => [
'description' => 'The logo object.',
'type' => 'object',
'properties' => [
'label' => ['description' => 'The hit label.', 'type' => 'string', 'example' => 'pt_logotoSocialNetwork', 'title' => ''],
'name' => ['description' => 'The logo name.', 'type' => 'string', 'example' => '**卫视', 'title' => ''],
'confidence' => ['description' => 'The confidence score, ranging from 0 to 100, rounded to two decimal places.', 'type' => 'integer', 'format' => 'int64', 'example' => '99.1', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'VlContent' => [
'title' => '',
'description' => 'The large model result.',
'type' => 'object',
'properties' => [
'OutputText' => ['title' => '', 'description' => 'The output text from the large model.', 'type' => 'string', 'example' => 'in the picture XXX'],
],
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Timestamp' => ['description' => 'The absolute timestamp. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1684559739000', 'title' => ''],
'RiskLevel' => ['description' => 'The risk level, returned based on the configured high and low risk score thresholds. Valid values:'."\n"
."\n"
.'- high: High risk.'."\n"
."\n"
.'- medium: Medium risk.'."\n"
.' '."\n"
.'- low: Low risk.'."\n"
."\n"
.'- none: No risk detected.', 'type' => 'string', 'example' => 'high', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'FrameSummarys' => [
'description' => 'The video frame label summary.',
'type' => 'array',
'items' => [
'description' => 'The video frame label object.',
'type' => 'object',
'properties' => [
'Label' => ['description' => 'The video frame label.', 'type' => 'string', 'example' => 'violent_armedForces', 'title' => ''],
'LabelSum' => ['description' => 'The number of times the label was detected.', 'type' => 'integer', 'format' => 'int32', 'example' => '8', 'title' => ''],
'Description' => ['description' => 'The description of the Label field.', 'type' => 'string', 'example' => '未检测出风险', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'RiskLevel' => ['description' => 'The risk level, returned based on the configured high and low risk score thresholds. Valid values:'."\n"
."\n"
.'- high: High risk.'."\n"
."\n"
.'- medium: Medium risk.'."\n"
.' '."\n"
.'- low: Low risk.'."\n"
."\n"
.'- none: No risk detected.', 'type' => 'string', 'example' => 'high', 'title' => ''],
],
'title' => '',
'example' => '',
],
'TaskId' => ['description' => 'The task ID.', 'type' => 'string', 'example' => 'xxxxx-xxxxx', 'title' => ''],
'RiskLevel' => ['description' => 'The risk level, returned based on the configured high and low risk score thresholds. Valid values:'."\n"
."\n"
.'- high: High risk.'."\n"
."\n"
.'- medium: Medium risk.'."\n"
.' '."\n"
.'- low: Low risk.'."\n"
."\n"
.'- none: No risk detected.', 'type' => 'string', 'example' => 'high', 'title' => ''],
'ManualTaskId' => ['description' => 'The manual review task ID.', 'type' => 'string', 'example' => 'xxxxx-xxxxx', 'title' => ''],
'Ext' => [
'title' => '',
'description' => 'The extended information.',
'type' => 'object',
'properties' => [
'AigcData' => [
'description' => 'The AIGC metadata detection result.',
'type' => 'object',
'properties' => [
'AIGC' => [
'description' => 'The AIGC metadata.',
'type' => 'object',
'properties' => [
'Label' => ['description' => 'Indicates whether the content is generated by artificial intelligence (AI). Valid values:'."\n"
."\n"
.'- 1: The content is AI-generated content (AIGC).'."\n"
."\n"
.'- 2: (Propagation platforms only) The content may be AI-generated content generation.'."\n"
."\n"
.'- 3: (Propagation platforms only) The content is suspected to be AI-generated content generation.', 'type' => 'string', 'example' => '1', 'title' => ''],
'ProduceID' => ['description' => 'The content production ID, a unique identifier used by the production platform to trace synthesized content.', 'type' => 'string', 'example' => '123******456'."\n"
."\n", 'title' => ''],
'ContentProducer' => ['description' => 'The code or name of the service provider, used to identify the content producer.', 'type' => 'string', 'example' => '001191******M000100Y43', 'title' => ''],
'PropagateID' => ['description' => 'The content propagation ID, a unique identifier assigned by the propagation platform to the distributed AI-generated content.', 'type' => 'string', 'example' => '123******456'."\n", 'title' => ''],
'ContentPropagator' => ['description' => 'The name, code, or identifier of the propagation platform. For services that provide artificial intelligence-generated content, this value can be the same as ContentProducer.', 'type' => 'string', 'example' => '001191******M000100Y43', 'title' => ''],
'ReservedCode1' => ['description' => 'A reserved field.'."\n"
."\n"
.'This field can store information used by the content generation service provider for self-initiated security protection and content/identifier integrity assurance. A hashing mechanism based on ContentProducer and ProduceID can be used to securely store and verify critical information.', 'type' => 'string', 'example' => 'd41d**********427e'."\n", 'title' => ''],
'ReservedCode2' => ['description' => 'A reserved field.'."\n"
."\n"
.'This field can be used by the content propagation service provider for self-initiated security protection and content/identifier integrity assurance. A hashing mechanism based on ContentProducer and ProduceID can be used to securely store and verify critical information.', 'type' => 'string', 'example' => 'd41d**********427e', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Result' => ['description' => 'The detection result.', 'type' => 'string', 'example' => 'None', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-C8C7-4A01-B52E-FF6E24F53492\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success finished\\",\\n \\"Data\\": {\\n \\"LiveId\\": \\"liveId\\",\\n \\"DataId\\": \\"product_content-2055763\\",\\n \\"AudioResult\\": {\\n \\"SliceDetails\\": [\\n {\\n \\"StartTime\\": 0,\\n \\"EndTime\\": 30,\\n \\"StartTimestamp\\": 1659935002123,\\n \\"EndTimestamp\\": 1685245261939,\\n \\"Url\\": \\"http://xxxx.abc.img\\",\\n \\"Text\\": \\"今天天气真不错\\",\\n \\"Labels\\": \\"porn\\",\\n \\"Score\\": 5,\\n \\"Extend\\": \\"{\\\\\\\\\\\\\\"consoleProduct\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"slbnext\\\\\\\\\\\\\\"}\\",\\n \\"RiskTips\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RiskWords\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"Descriptions\\": \\"疑似违禁内容\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"profanity\\",\\n \\"Confidence\\": 99.9,\\n \\"RiskWords\\": \\"fxxk\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"CustomizedHit\\": [\\n {\\n \\"LibName\\": \\"备用词库02\\",\\n \\"KeyWords\\": \\"fxxk\\"\\n }\\n ],\\n \\"Description\\": \\"疑似违禁内容\\",\\n \\"RiskPositions\\": [\\n {\\n \\"RiskWord\\": \\"fxxk\\",\\n \\"StartPos\\": 0,\\n \\"EndPos\\": 3\\n }\\n ]\\n }\\n ]\\n }\\n ],\\n \\"AudioSummarys\\": [\\n {\\n \\"Label\\": \\"profanity\\",\\n \\"LabelSum\\": 8,\\n \\"Description\\": \\"疑似违禁内容\\"\\n }\\n ],\\n \\"RiskLevel\\": \\"high\\"\\n },\\n \\"FrameResult\\": {\\n \\"FrameNum\\": 10,\\n \\"Frames\\": [\\n {\\n \\"TempUrl\\": \\"http://xxxx.abc.jpg\\",\\n \\"Offset\\": 338,\\n \\"Results\\": [\\n {\\n \\"Service\\": \\"tonalityImprove\\",\\n \\"Result\\": [\\n {\\n \\"Confidence\\": 50,\\n \\"Label\\": \\"bloody\\",\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ],\\n \\"TextInImage\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"CustomImage\\": [\\n {\\n \\"LibId\\": \\"12345678\\",\\n \\"ImageId\\": \\"1234\\"\\n }\\n ],\\n \\"PublicFigure\\": [\\n {\\n \\"FigureId\\": \\"xxx001\\",\\n \\"FigureName\\": \\"张三\\",\\n \\"Location\\": [\\n {\\n \\"H\\": 222,\\n \\"W\\": 111,\\n \\"X\\": 111,\\n \\"Y\\": 222\\n }\\n ]\\n }\\n ],\\n \\"LogoData\\": [\\n {\\n \\"Location\\": {\\n \\"X\\": 111,\\n \\"Y\\": 222,\\n \\"W\\": 111,\\n \\"H\\": 111\\n },\\n \\"Logo\\": [\\n {\\n \\"label\\": \\"pt_logotoSocialNetwork\\",\\n \\"name\\": \\"**卫视\\",\\n \\"confidence\\": 99.1\\n }\\n ]\\n }\\n ],\\n \\"VlContent\\": {\\n \\"OutputText\\": \\"in the picture XXX\\"\\n }\\n }\\n ],\\n \\"Timestamp\\": 1684559739000,\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ],\\n \\"FrameSummarys\\": [\\n {\\n \\"Label\\": \\"violent_armedForces\\",\\n \\"LabelSum\\": 8,\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ],\\n \\"RiskLevel\\": \\"high\\"\\n },\\n \\"TaskId\\": \\"xxxxx-xxxxx\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\",\\n \\"Ext\\": {\\n \\"AigcData\\": {\\n \\"AIGC\\": {\\n \\"Label\\": \\"1\\",\\n \\"ProduceID\\": \\"123******456\\\\n\\\\n\\",\\n \\"ContentProducer\\": \\"001191******M000100Y43\\",\\n \\"PropagateID\\": \\"123******456\\\\n\\",\\n \\"ContentPropagator\\": \\"001191******M000100Y43\\",\\n \\"ReservedCode1\\": \\"d41d**********427e\\\\n\\",\\n \\"ReservedCode2\\": \\"d41d**********427e\\"\\n },\\n \\"Result\\": \\"None\\"\\n }\\n }\\n }\\n}","type":"json"}]',
'title' => 'Query video moderation task results',
'description' => 'This operation is not billed. Set the polling interval to 30 seconds (query results 30 seconds after submitting the asynchronous moderation task). The maximum query window is 24 hours. After that, results are automatically deleted.',
'changeSet' => [
['createdAt' => '2025-06-12T02:05:04.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2025-03-13T01:43:03.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2025-01-09T12:40:10.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-09-23T13:28:56.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-03-26T02:18:01.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-12-27T10:12:17.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VideoModerationResult'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:VideoModerationResult',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'VoiceModeration' => [
'summary' => 'Submits a task for enhanced voice moderation.',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '162159',
'abilityTreeNodes' => ['FEATURElvwang6QCU1H', 'FEATURElvwangPAXR7J'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
'schema' => ['description' => 'The ServiceCode for voice moderation.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'audio_media_detection'],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
'schema' => ['description' => 'The set of parameters that are required for the moderation service. The value must be a JSON string.'."\n"
."\n"
.'url: Required. The URL of the object to be detected. Make sure that the URL is accessible over the Internet. dataId: Optional. The data ID of the object to be detected. For more information, see ServiceParameter.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '{"url": "http://aliyundoc.com/test.flv", "dataId": "data1234"}'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
'Code' => ['description' => 'The error code.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '200'],
'Message' => ['description' => 'The error message.', 'type' => 'string', 'title' => '', 'example' => 'SUCCESS'],
'Data' => [
'description' => 'The data structure of the returned task information.',
'type' => 'object',
'properties' => [
'TaskId' => ['description' => 'The task ID.', 'type' => 'string', 'title' => '', 'example' => 'xxxxx-xxxxx'],
'DataId' => ['description' => 'The value of the dataId parameter that you specify in the API request. If you do not specify this parameter in the request, this field is not returned.', 'type' => 'string', 'title' => '', 'example' => 'data1234'],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'VoiceModeration',
'changeSet' => [
['createdAt' => '2024-03-26T02:18:00.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-04-04T03:41:29.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VoiceModeration'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-greenweb:VoiceModeration',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Data\\": {\\n \\"TaskId\\": \\"xxxxx-xxxxx\\",\\n \\"DataId\\": \\"data1234\\"\\n }\\n}","type":"json"}]',
],
'VoiceModerationCancel' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '164076',
'abilityTreeNodes' => ['FEATURElvwang6QCU1H', 'FEATURElvwangPAXR7J'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
'schema' => ['description' => 'The type of moderation service. Valid values include \\`nickname\\_detection\\` for user nicknames. Other values are to be determined.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'nickname_detection'],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
'schema' => ['description' => 'The ID of the task that you want to cancel.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '{'."\n"
.' "taskId": "xxxxx-xxxx"'."\n"
.' }'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '4A926AE2-4C96-573F-824F-0532960799F8'],
'Code' => ['description' => 'The return code. A return code of 200 indicates that the request is successful.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '200'],
'Message' => ['description' => 'The response message.', 'type' => 'string', 'title' => '', 'example' => 'SUCCESS'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'VoiceModerationCancel',
'summary' => 'This operation cancels an enhanced voice moderation task.',
'changeSet' => [
['createdAt' => '2023-04-04T03:41:29.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VoiceModerationCancel'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:VoiceModerationCancel',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4A926AE2-4C96-573F-824F-0532960799F8\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"SUCCESS\\"\\n}","type":"json"}]',
],
'VoiceModerationResult' => [
'summary' => 'Retrieve the detection results for enhanced voice moderation.',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '162180',
'abilityTreeNodes' => ['FEATURElvwang6QCU1H', 'FEATURElvwangPAXR7J'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
'schema' => ['description' => 'The moderation service type. Supported values include `nickname_detection` for user nickname moderation. Support for more types is planned.', 'type' => 'string', 'docRequired' => true, 'title' => '', 'required' => true, 'example' => 'nickname_detection'],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
'schema' => ['description' => 'Parameters that the gateway sends to the backend service.'."\n"
."\n"
.'For more information, see [ServiceParameter](~~43988~~).', 'type' => 'string', 'title' => '', 'required' => false, 'example' => '暂无'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'The response schema.',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '2881AD4F-638B-52A3-BA20-F74C5B1CEAE3'],
'Code' => ['description' => 'The error code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The response message.', 'type' => 'string', 'example' => 'SUCCESS', 'title' => ''],
'Data' => [
'description' => 'The data returned.',
'type' => 'object',
'properties' => [
'Url' => ['description' => 'The task URL.', 'type' => 'string', 'example' => '暂无', 'title' => ''],
'LiveId' => ['description' => 'The unique ID of the live stream.', 'type' => 'string', 'example' => 'liveId', 'title' => ''],
'TaskId' => ['description' => 'The task ID.', 'type' => 'string', 'example' => 'kw24ihd0WGkdi5nniVZM@qOj-1x5Ibb', 'title' => ''],
'SliceDetails' => [
'description' => 'The slice results.',
'type' => 'array',
'items' => [
'description' => 'A slice result entry.',
'type' => 'object',
'properties' => [
'StartTime' => ['description' => 'The start time of the slice, in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''],
'EndTime' => ['description' => 'The end time of the slice, in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '10', 'title' => ''],
'StartTimestamp' => ['description' => 'The start timestamp of the slice, in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1678854649720', 'title' => ''],
'EndTimestamp' => ['description' => 'The end timestamp of the slice, in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1678854649720', 'title' => ''],
'Url' => ['description' => 'The temporary URL of the audio slice.', 'type' => 'string', 'example' => '暂无', 'title' => ''],
'Text' => ['description' => 'The transcribed text of the audio slice.', 'type' => 'string', 'example' => '今天天气真不错', 'title' => ''],
'Labels' => ['description' => 'The matched violation labels.', 'type' => 'string', 'example' => 'sexual_sounds', 'title' => ''],
'Score' => ['description' => 'The risk score. The value ranges from 0 to 99.', 'type' => 'number', 'format' => 'float', 'example' => '87.01', 'title' => ''],
'Extend' => ['description' => 'Extended information.', 'type' => 'string', 'example' => '{\\"riskWords\\":\\"色情服务\\","adNums":"\\","riskTips":"涉政_人物,涉政_红歌"}', 'title' => ''],
'RiskTips' => ['description' => 'Details about the matched risk.', 'type' => 'string', 'example' => '涉政_人物', 'title' => ''],
'RiskWords' => ['description' => 'The matched risk keywords.', 'type' => 'string', 'example' => '色情服务', 'title' => ''],
'OriginAlgoResult' => ['description' => 'A reserved field.', 'type' => 'object', 'title' => '', 'example' => ''],
'RiskLevel' => ['description' => 'The risk level, which is determined based on the configured thresholds for high and low risk scores. Valid values:'."\n"
."\n"
.'- `high`: high risk'."\n"
."\n"
.'- `medium`: medium risk'."\n"
."\n"
.'- `low`: low risk'."\n"
."\n"
.'- `none`: no risk detected', 'type' => 'string', 'example' => 'high', 'title' => ''],
'Descriptions' => ['description' => 'The description of the label.', 'type' => 'string', 'example' => '疑似违禁内容', 'title' => ''],
'Result' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Label' => ['description' => 'The label.', 'type' => 'string', 'title' => '', 'example' => 'ad'],
'Confidence' => ['description' => 'The confidence score.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '100.00'],
'RiskWords' => ['description' => 'The matched risky content.', 'type' => 'string', 'title' => '', 'example' => 'XX'],
'RiskLevel' => ['description' => 'The risk level.', 'type' => 'string', 'title' => '', 'example' => 'high'],
'CustomizedHit' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'LibName' => ['description' => 'The name of the custom library.', 'type' => 'string', 'title' => '', 'example' => 'insultLib'],
'KeyWords' => ['description' => 'The custom keyword.', 'type' => 'string', 'title' => '', 'example' => 'fxxk'],
],
'description' => 'A matched custom library.',
'title' => '',
'example' => '',
],
'description' => 'The matched custom libraries.',
'title' => '',
'example' => '',
],
'Description' => ['description' => 'The description.', 'type' => 'string', 'title' => '', 'example' => 'profanity'],
'RiskPositions' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'RiskWord' => ['description' => 'The detected sensitive word.', 'type' => 'string', 'title' => '', 'example' => 'fxxk'],
'StartPos' => ['description' => 'The start position.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'],
'EndPos' => ['description' => 'The end position.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '4'],
],
'description' => 'A risk position.',
'title' => '',
'example' => '',
],
'description' => 'A list of risk positions.',
'title' => '',
'example' => '',
],
],
'description' => 'A single result.',
'title' => '',
'example' => '',
],
'description' => 'The text detection results.',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'DataId' => ['description' => 'The value of the `dataId` parameter you specified in the request. This parameter is returned only if you specified it in the request.', 'type' => 'string', 'example' => 'data1234', 'title' => ''],
'RiskLevel' => ['description' => 'The risk level, which is determined based on the configured thresholds for high and low risk scores. Valid values:'."\n"
."\n"
.'- `high`: high risk'."\n"
."\n"
.'- `medium`: medium risk'."\n"
."\n"
.'- `low`: low risk'."\n"
."\n"
.'- `none`: no risk detected', 'type' => 'string', 'example' => 'high', 'title' => ''],
'ManualTaskId' => ['description' => 'The ID of the manual review task.', 'type' => 'string', 'example' => 'xxxxx-xxxxx', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2881AD4F-638B-52A3-BA20-F74C5B1CEAE3\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Data\\": {\\n \\"Url\\": \\"暂无\\",\\n \\"LiveId\\": \\"liveId\\",\\n \\"TaskId\\": \\"kw24ihd0WGkdi5nniVZM@qOj-1x5Ibb\\",\\n \\"SliceDetails\\": [\\n {\\n \\"StartTime\\": 0,\\n \\"EndTime\\": 10,\\n \\"StartTimestamp\\": 1678854649720,\\n \\"EndTimestamp\\": 1678854649720,\\n \\"Url\\": \\"暂无\\",\\n \\"Text\\": \\"今天天气真不错\\",\\n \\"Labels\\": \\"sexual_sounds\\",\\n \\"Score\\": 87.01,\\n \\"Extend\\": \\"{\\\\\\\\\\\\\\"riskWords\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"色情服务\\\\\\\\\\\\\\",\\\\\\"adNums\\\\\\":\\\\\\"\\\\\\\\\\\\\\",\\\\\\"riskTips\\\\\\":\\\\\\"涉政_人物,涉政_红歌\\\\\\"}\\",\\n \\"RiskTips\\": \\"涉政_人物\\",\\n \\"RiskWords\\": \\"色情服务\\",\\n \\"OriginAlgoResult\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"RiskLevel\\": \\"high\\",\\n \\"Descriptions\\": \\"疑似违禁内容\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"ad\\",\\n \\"Confidence\\": 100,\\n \\"RiskWords\\": \\"XX\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"CustomizedHit\\": [\\n {\\n \\"LibName\\": \\"insultLib\\",\\n \\"KeyWords\\": \\"fxxk\\"\\n }\\n ],\\n \\"Description\\": \\"profanity\\",\\n \\"RiskPositions\\": [\\n {\\n \\"RiskWord\\": \\"fxxk\\",\\n \\"StartPos\\": 1,\\n \\"EndPos\\": 4\\n }\\n ]\\n }\\n ]\\n }\\n ],\\n \\"DataId\\": \\"data1234\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\"\\n }\\n}","type":"json"}]',
'title' => 'VoiceModerationResult',
'changeSet' => [
['createdAt' => '2025-06-12T02:05:05.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2025-01-09T12:40:10.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-10-14T10:21:04.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2024-03-26T02:18:00.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-03-15T03:33:44.000Z', 'description' => 'Response parameters changed, Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VoiceModerationResult'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-greenweb:VoiceModerationResult',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
],
'endpoints' => [
['regionId' => 'cn-shenzhen', 'regionName' => 'China (Shenzhen)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'green-cip.cn-shenzhen.aliyuncs.com', 'endpoint' => 'green-cip.cn-shenzhen.aliyuncs.com', 'vpc' => 'green-cip-vpc.cn-shenzhen.aliyuncs.com'],
['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'green-cip.cn-beijing.aliyuncs.com', 'endpoint' => 'green-cip.cn-beijing.aliyuncs.com', 'vpc' => 'green-cip-vpc.cn-beijing.aliyuncs.com'],
['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'green-cip.cn-shanghai.aliyuncs.com', 'endpoint' => 'green-cip.cn-shanghai.aliyuncs.com', 'vpc' => 'green-cip-vpc.cn-shanghai.aliyuncs.com'],
['regionId' => 'cn-hongkong', 'regionName' => 'China (Hong Kong)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'green-cip.cn-hongkong.aliyuncs.com', 'endpoint' => 'green-cip.cn-hongkong.aliyuncs.com', 'vpc' => 'green-cip-vpc.cn-hongkong.aliyuncs.com'],
['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'green-cip.ap-southeast-1.aliyuncs.com', 'endpoint' => 'green-cip.ap-southeast-1.aliyuncs.com', 'vpc' => 'green-cip-vpc.ap-southeast-1.aliyuncs.com'],
['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'green-cip.cn-hangzhou.aliyuncs.com', 'endpoint' => 'green-cip.cn-hangzhou.aliyuncs.com', 'vpc' => 'green-cip-vpc.cn-hangzhou.aliyuncs.com'],
['regionId' => 'us-east-1', 'regionName' => 'US (Virginia)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'green-cip.us-east-1.aliyuncs.com', 'endpoint' => 'green-cip.us-east-1.aliyuncs.com', 'vpc' => 'green-cip-vpc.us-east-1.aliyuncs.com'],
['regionId' => 'eu-central-1', 'regionName' => 'Germany (Frankfurt)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'green-cip.eu-central-1.aliyuncs.com', 'endpoint' => 'green-cip.eu-central-1.aliyuncs.com', 'vpc' => 'green-cip-vpc.eu-central-1.aliyuncs.com'],
],
'errorCodes' => [
['code' => '408', 'message' => 'No permissions.', 'http_code' => 200, 'description' => 'The current operation is not authorized. Please contact the main account to authorize the operation in the RAM console.'],
['code' => '411', 'message' => 'You don\'t have permission.', 'http_code' => 403, 'description' => 'The current operation is not authorized. Please contact the main account to authorize the operation in the RAM console.'],
['code' => 'CustomServiceConfigServicesRequired', 'message' => 'Select at least one instrumentation configuration service when saving a multimodal service configuration.', 'http_code' => 400, 'description' => 'Select at least one instrumentation configuration service when saving a multimodal service configuration'],
['code' => 'NoPermission', 'message' => 'No permissions.', 'http_code' => 200, 'description' => 'The current operation is not authorized. Please contact the main account to authorize the operation in the RAM console.'],
['code' => 'NoPermission', 'message' => 'you don\'t have permission.', 'http_code' => 200, 'description' => 'The current operation is not authorized. Please contact the main account to authorize the operation in the RAM console.'."\n"],
['code' => 'NoPermission', 'message' => 'You don\'t have permission.', 'http_code' => 403, 'description' => 'The current operation is not authorized. Please contact the main account to authorize the operation in the RAM console.'],
['code' => 'NoPermission', 'message' => 'You don\'t have permission.', 'http_code' => 403, 'description' => 'The current operation is not authorized. Please contact the main account to authorize the operation in the RAM console.'],
['code' => 'OneFeatureRequired', 'message' => 'Keep at least one switch item when detecting an item configuration to turn off the switch item.', 'http_code' => 400, 'description' => 'Keep at least one switch item when detecting an item configuration to turn off the switch item'."\n"
."\n"],
['code' => 'ScanResultQueryFailed', 'message' => 'Data query failed.', 'http_code' => 200, 'description' => 'Data query failed'],
['code' => 'UserNotOwner', 'message' => 'No permission.', 'http_code' => 401, 'description' => 'No permission'],
['code' => 'USER_NOT_OWNER', 'message' => 'No permission.', 'http_code' => 401, 'description' => 'No permission'],
['code' => 'LibCountOverLimit', 'message' => 'The number of libraries has exceeded the limit.', 'http_code' => 400, 'description' => 'The number of libraries has exceeded the limit'],
['code' => 'InvalidRequestParameters', 'message' => 'Invalid request parameters.', 'http_code' => 400, 'description' => 'Invalid request parameters.'],
['code' => 'SampleCountOverLimit', 'message' => 'The number of samples has exceeded the limit.', 'http_code' => 400, 'description' => 'The number of samples has exceeded the limit.'],
],
'changeSet' => [
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'TextModerationPlus'],
],
'createdAt' => '2025-03-19T07:10:51.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeImageModerationResult'],
['description' => 'Response parameters changed', 'api' => 'ImageModeration'],
],
'createdAt' => '2025-03-17T05:57:01.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'VideoModerationResult'],
],
'createdAt' => '2025-03-13T01:43:10.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeFileModerationResult'],
],
'createdAt' => '2025-01-09T12:55:00.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'VideoModerationResult'],
['description' => 'Response parameters changed', 'api' => 'VoiceModerationResult'],
],
'createdAt' => '2025-01-09T12:40:18.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'TextModeration'],
['description' => 'Response parameters changed', 'api' => 'TextModerationPlus'],
],
'createdAt' => '2025-01-06T10:54:50.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'ImageBatchModeration'],
],
'createdAt' => '2024-11-28T07:35:15.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'ImageModeration'],
],
'createdAt' => '2024-11-07T13:31:25.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'VoiceModerationResult'],
],
'createdAt' => '2024-10-14T10:21:11.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'VideoModerationResult'],
],
'createdAt' => '2024-09-23T13:29:06.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeFileModerationResult'],
],
'createdAt' => '2024-09-13T08:40:18.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'TextModerationPlus'],
],
'createdAt' => '2024-09-06T02:38:08.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeImageModerationResult'],
['description' => 'Response parameters changed', 'api' => 'ImageModeration'],
],
'createdAt' => '2024-08-20T09:56:06.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeUrlModerationResult'],
['description' => 'Response parameters changed', 'api' => 'ImageModeration'],
],
'createdAt' => '2024-07-25T09:35:00.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'TextModerationPlus'],
],
'createdAt' => '2024-07-03T11:18:54.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeImageModerationResult'],
['description' => 'Response parameters changed', 'api' => 'ImageModeration'],
],
'createdAt' => '2024-07-03T11:04:30.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'ImageModeration'],
],
'createdAt' => '2024-05-30T09:10:09.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'TextModerationPlus'],
],
'createdAt' => '2024-05-27T07:14:34.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'ImageModeration'],
],
'createdAt' => '2024-05-11T05:53:39.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'ImageModeration'],
],
'createdAt' => '2024-04-19T03:30:20.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeImageResultExt'],
],
'createdAt' => '2024-04-11T11:01:03.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'VideoModeration'],
['description' => 'Response parameters changed', 'api' => 'VideoModerationResult'],
['description' => 'Response parameters changed', 'api' => 'VoiceModeration'],
['description' => 'Response parameters changed', 'api' => 'VoiceModerationResult'],
],
'createdAt' => '2024-03-26T02:18:07.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeImageModerationResult'],
],
'createdAt' => '2024-01-03T11:20:11.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'VideoModerationResult'],
],
'createdAt' => '2023-12-27T10:12:24.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeImageModerationResult'],
],
'createdAt' => '2023-11-09T03:38:43.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'DescribeImageResultExt'],
],
'createdAt' => '2023-06-20T05:54:26.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'ImageModeration'],
['description' => 'Response parameters changed', 'api' => 'TextModeration'],
],
'createdAt' => '2023-05-08T03:59:34.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'VoiceModeration'],
['description' => 'Response parameters changed', 'api' => 'VoiceModerationCancel'],
],
'createdAt' => '2023-04-04T03:41:34.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed, Response parameters changed', 'api' => 'VoiceModerationResult'],
],
'createdAt' => '2023-03-24T08:22:10.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed, Response parameters changed', 'api' => 'TextModeration'],
],
'createdAt' => '2023-01-03T02:55:48.000Z',
'description' => '接口返回更新',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'TextModeration'],
],
'createdAt' => '2022-11-30T02:29:17.000Z',
'description' => '日常稳定性更新',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'TextModeration'],
],
'createdAt' => '2022-08-02T11:31:16.000Z',
'description' => '接口更新',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'TextModeration'],
],
'createdAt' => '2022-06-02T01:47:32.000Z',
'description' => '接口更新',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'TextModeration'],
],
'createdAt' => '2022-05-18T03:45:12.000Z',
'description' => '接口更新',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'TextModeration'],
],
'createdAt' => '2022-04-26T06:34:52.000Z',
'description' => '新版本接口发布',
],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VoiceModerationResult'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VideoModerationResult'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeFileModerationResult'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeImageResultExt'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TextModerationPlus'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ImageAsyncModeration'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ManualModeration'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'FileModeration'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TextModeration'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VideoModerationCancel'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ImageBatchModeration'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VoiceModerationCancel'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeUrlModerationResult'],
['threshold' => '200', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ManualCallback'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ManualModerationResult'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeUploadToken'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VoiceModeration'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ImageModeration'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UrlAsyncModeration'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeImageModerationResult'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VideoModeration'],
],
],
'ram' => [
'productCode' => 'Aligreen',
'productName' => 'AI Guardrails',
'ramCodes' => ['yundun-greenweb'],
'ramLevel' => 'OPERATION',
'ramConditions' => [],
'ramActions' => [
[
'apiName' => 'VideoModerationResult',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:VideoModerationResult',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'FileModeration',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:FileModeration',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ImageAsyncModeration',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:ImageAsyncModeration',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'MultiModalGuardAsyncResult',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:MultiModalGuardAsyncResult',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ImageModeration',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-greenweb:ImageModeration',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeMultimodalModerationResult',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:DescribeMultimodalModerationResult',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'MultimodalAsyncModeration',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:MultimodalAsyncModeration',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeImageModerationResult',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:DescribeImageModerationResult',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeImageResultExt',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-greenweb:DescribeImageResultExt',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'VoiceModerationCancel',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:VoiceModerationCancel',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'VoiceModeration',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-greenweb:VoiceModeration',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeUploadToken',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:DescribeUploadToken',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'MultiModalGuardAsync',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:MultiModalGuardAsync',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ImageBatchModeration',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:ImageBatchModeration',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'TextModeration',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-greenweb:TextModeration',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeFileModerationResult',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:DescribeFileModerationResult',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'VoiceModerationResult',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-greenweb:VoiceModerationResult',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DescribeUrlModerationResult',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:DescribeUrlModerationResult',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ManualModeration',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:ManualModeration',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ManualModerationResult',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:ManualModerationResult',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'MultiModalGuard',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'yundun-greenweb:MultiModalGuard',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'TextModerationPlus',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:TextModerationPlus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'MultiModalAgent',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:MultiModalAgent',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'VideoModerationCancel',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:VideoModerationCancel',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'VideoModeration',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:VideoModeration',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ManualCallback',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:ManualCallback',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'UrlAsyncModeration',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'yundun-greenweb:UrlAsyncModeration',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'resourceTypes' => [],
],
];
|