runapi-core 0.2.2__tar.gz → 0.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {runapi_core-0.2.2 → runapi_core-0.2.4}/PKG-INFO +2 -2
- {runapi_core-0.2.2 → runapi_core-0.2.4}/pyproject.toml +1 -1
- {runapi_core-0.2.2 → runapi_core-0.2.4}/src/runapi/core/contract_gen.py +220 -15
- runapi_core-0.2.4/src/runapi/core/version.py +1 -0
- runapi_core-0.2.2/src/runapi/core/version.py +0 -1
- {runapi_core-0.2.2 → runapi_core-0.2.4}/README.md +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/src/runapi/core/__init__.py +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/src/runapi/core/auth.py +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/src/runapi/core/config.py +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/src/runapi/core/constants.py +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/src/runapi/core/errors.py +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/src/runapi/core/files.py +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/src/runapi/core/http_client.py +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/src/runapi/core/models.py +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/src/runapi/core/multipart.py +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/src/runapi/core/options.py +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/src/runapi/core/polling.py +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/src/runapi/core/py.typed +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/src/runapi/core/resource.py +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/src/runapi/core/response.py +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/tests/test_auth.py +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/tests/test_config.py +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/tests/test_errors.py +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/tests/test_files.py +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/tests/test_http_client.py +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/tests/test_models.py +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/tests/test_polling.py +0 -0
- {runapi_core-0.2.2 → runapi_core-0.2.4}/tests/test_resource.py +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: runapi-core
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: RunAPI core SDK for JavaScript, Python, Ruby, Go, Java, and PHP
|
|
5
5
|
Project-URL: Homepage, https://runapi.ai/models
|
|
6
6
|
Project-URL: Documentation, https://runapi.ai/docs#runapi-sdks
|
|
7
7
|
Project-URL: Source, https://github.com/runapi-ai/core-sdk
|
|
8
8
|
Project-URL: Issues, https://github.com/runapi-ai/core-sdk/issues
|
|
9
9
|
Project-URL: Changelog, https://github.com/runapi-ai/core-sdk/blob/main/CHANGELOG.md
|
|
10
|
-
Project-URL: Release Notes, https://github.com/runapi-ai/core-sdk/releases/tag/python%2Fv0.2.
|
|
10
|
+
Project-URL: Release Notes, https://github.com/runapi-ai/core-sdk/releases/tag/python%2Fv0.2.4
|
|
11
11
|
Author-email: RunAPI <contact@runapi.ai>
|
|
12
12
|
License-Expression: Apache-2.0
|
|
13
13
|
Keywords: api,core,golang,gradle,java,maven,pypi,python,ruby,runapi,runapi-ai,sdk,typescript
|
|
@@ -19,7 +19,7 @@ Documentation = "https://runapi.ai/docs#runapi-sdks"
|
|
|
19
19
|
Source = "https://github.com/runapi-ai/core-sdk"
|
|
20
20
|
Issues = "https://github.com/runapi-ai/core-sdk/issues"
|
|
21
21
|
Changelog = "https://github.com/runapi-ai/core-sdk/blob/main/CHANGELOG.md"
|
|
22
|
-
"Release Notes" = "https://github.com/runapi-ai/core-sdk/releases/tag/python%2Fv0.2.
|
|
22
|
+
"Release Notes" = "https://github.com/runapi-ai/core-sdk/releases/tag/python%2Fv0.2.4"
|
|
23
23
|
|
|
24
24
|
[tool.hatch.version]
|
|
25
25
|
path = "src/runapi/core/version.py"
|
|
@@ -108,6 +108,56 @@ CONTRACT = {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
|
+
"flux/remix-image": {
|
|
112
|
+
"models": ["flux-dev", "flux-pro"],
|
|
113
|
+
"fields_by_model": {
|
|
114
|
+
"flux-dev": {
|
|
115
|
+
"aspect_ratio": {
|
|
116
|
+
"enum": ["1:1", "4:3", "3:4", "16:9", "9:16", "3:2", "2:3"]
|
|
117
|
+
},
|
|
118
|
+
"output_count": {
|
|
119
|
+
"enum": [1]
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"flux-pro": {
|
|
123
|
+
"aspect_ratio": {
|
|
124
|
+
"enum": ["1:1", "4:3", "3:4", "16:9", "9:16", "3:2", "2:3"]
|
|
125
|
+
},
|
|
126
|
+
"output_count": {
|
|
127
|
+
"enum": [1]
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"flux/text-to-image": {
|
|
133
|
+
"models": ["flux-2-klein", "flux-dev", "flux-pro"],
|
|
134
|
+
"fields_by_model": {
|
|
135
|
+
"flux-2-klein": {
|
|
136
|
+
"aspect_ratio": {
|
|
137
|
+
"enum": ["1:1", "4:3", "3:4", "16:9", "9:16", "3:2", "2:3"]
|
|
138
|
+
},
|
|
139
|
+
"output_count": {
|
|
140
|
+
"enum": [1]
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"flux-dev": {
|
|
144
|
+
"aspect_ratio": {
|
|
145
|
+
"enum": ["1:1", "4:3", "3:4", "16:9", "9:16", "3:2", "2:3"]
|
|
146
|
+
},
|
|
147
|
+
"output_count": {
|
|
148
|
+
"enum": [1]
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"flux-pro": {
|
|
152
|
+
"aspect_ratio": {
|
|
153
|
+
"enum": ["1:1", "4:3", "3:4", "16:9", "9:16", "3:2", "2:3"]
|
|
154
|
+
},
|
|
155
|
+
"output_count": {
|
|
156
|
+
"enum": [1]
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
111
161
|
"gemini-omni/create-audio": {
|
|
112
162
|
"models": ["gemini-omni-audio"],
|
|
113
163
|
"fields_by_model": {
|
|
@@ -367,8 +417,13 @@ CONTRACT = {
|
|
|
367
417
|
}
|
|
368
418
|
},
|
|
369
419
|
"happyhorse/image-to-video": {
|
|
370
|
-
"models": ["happyhorse-image-to-video"],
|
|
420
|
+
"models": ["happyhorse-1.0-i2v", "happyhorse-image-to-video"],
|
|
371
421
|
"fields_by_model": {
|
|
422
|
+
"happyhorse-1.0-i2v": {
|
|
423
|
+
"output_resolution": {
|
|
424
|
+
"enum": ["720p", "1080p"]
|
|
425
|
+
}
|
|
426
|
+
},
|
|
372
427
|
"happyhorse-image-to-video": {
|
|
373
428
|
"output_resolution": {
|
|
374
429
|
"enum": ["720p", "1080p"]
|
|
@@ -377,8 +432,24 @@ CONTRACT = {
|
|
|
377
432
|
}
|
|
378
433
|
},
|
|
379
434
|
"happyhorse/text-to-video": {
|
|
380
|
-
"models": ["happyhorse-character", "happyhorse-text-to-video"],
|
|
435
|
+
"models": ["happyhorse-1.0-r2v", "happyhorse-1.0-t2v", "happyhorse-character", "happyhorse-text-to-video"],
|
|
381
436
|
"fields_by_model": {
|
|
437
|
+
"happyhorse-1.0-r2v": {
|
|
438
|
+
"aspect_ratio": {
|
|
439
|
+
"enum": ["16:9", "9:16", "1:1", "4:3", "3:4"]
|
|
440
|
+
},
|
|
441
|
+
"output_resolution": {
|
|
442
|
+
"enum": ["720p", "1080p"]
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
"happyhorse-1.0-t2v": {
|
|
446
|
+
"aspect_ratio": {
|
|
447
|
+
"enum": ["16:9", "9:16", "1:1", "4:3", "3:4"]
|
|
448
|
+
},
|
|
449
|
+
"output_resolution": {
|
|
450
|
+
"enum": ["720p", "1080p"]
|
|
451
|
+
}
|
|
452
|
+
},
|
|
382
453
|
"happyhorse-character": {
|
|
383
454
|
"aspect_ratio": {
|
|
384
455
|
"enum": ["16:9", "9:16", "1:1", "4:3", "3:4"]
|
|
@@ -561,8 +632,23 @@ CONTRACT = {
|
|
|
561
632
|
"kling-v1-avatar-standard": {}
|
|
562
633
|
}
|
|
563
634
|
},
|
|
635
|
+
"kling/extend-video": {
|
|
636
|
+
"models": ["kling-v2.5-turbo-image-to-video-pro", "kling-v2.5-turbo-text-to-video-pro"],
|
|
637
|
+
"fields_by_model": {
|
|
638
|
+
"kling-v2.5-turbo-image-to-video-pro": {
|
|
639
|
+
"mode": {
|
|
640
|
+
"enum": ["std", "pro"]
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
"kling-v2.5-turbo-text-to-video-pro": {
|
|
644
|
+
"mode": {
|
|
645
|
+
"enum": ["std", "pro"]
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
},
|
|
564
650
|
"kling/image-to-video": {
|
|
565
|
-
"models": ["kling-v2.1-master-image-to-video", "kling-v2.1-pro", "kling-v2.1-standard", "kling-v2.5-turbo-image-to-video-pro", "kling-v3-turbo-image-to-video"],
|
|
651
|
+
"models": ["kling-v2.1-master-image-to-video", "kling-v2.1-pro", "kling-v2.1-standard", "kling-v2.5-turbo-image-to-video-pro", "kling-v2.6", "kling-v3-omni", "kling-v3-turbo-image-to-video"],
|
|
566
652
|
"fields_by_model": {
|
|
567
653
|
"kling-v2.1-master-image-to-video": {
|
|
568
654
|
"duration_seconds": {
|
|
@@ -584,6 +670,28 @@ CONTRACT = {
|
|
|
584
670
|
"enum": [5, 10]
|
|
585
671
|
}
|
|
586
672
|
},
|
|
673
|
+
"kling-v2.6": {
|
|
674
|
+
"aspect_ratio": {
|
|
675
|
+
"enum": ["16:9", "9:16", "1:1"]
|
|
676
|
+
},
|
|
677
|
+
"duration_seconds": {
|
|
678
|
+
"enum": [5, 10]
|
|
679
|
+
},
|
|
680
|
+
"mode": {
|
|
681
|
+
"enum": ["std", "pro"]
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
"kling-v3-omni": {
|
|
685
|
+
"aspect_ratio": {
|
|
686
|
+
"enum": ["16:9", "9:16", "1:1"]
|
|
687
|
+
},
|
|
688
|
+
"duration_seconds": {
|
|
689
|
+
"enum": [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
|
|
690
|
+
},
|
|
691
|
+
"output_resolution": {
|
|
692
|
+
"enum": ["720p", "1080p", "4k"]
|
|
693
|
+
}
|
|
694
|
+
},
|
|
587
695
|
"kling-v3-turbo-image-to-video": {
|
|
588
696
|
"duration_seconds": {
|
|
589
697
|
"enum": [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
|
|
@@ -611,7 +719,7 @@ CONTRACT = {
|
|
|
611
719
|
}
|
|
612
720
|
},
|
|
613
721
|
"kling/text-to-video": {
|
|
614
|
-
"models": ["kling-3.0", "kling-v2.1-master-text-to-video", "kling-v2.5-turbo-text-to-video-pro", "kling-v3-turbo-text-to-video"],
|
|
722
|
+
"models": ["kling-3.0", "kling-v2.1-master-text-to-video", "kling-v2.5-turbo-text-to-video-pro", "kling-v2.6", "kling-v3-omni", "kling-v3-turbo-text-to-video"],
|
|
615
723
|
"fields_by_model": {
|
|
616
724
|
"kling-3.0": {
|
|
617
725
|
"aspect_ratio": {
|
|
@@ -640,6 +748,28 @@ CONTRACT = {
|
|
|
640
748
|
"enum": [5, 10]
|
|
641
749
|
}
|
|
642
750
|
},
|
|
751
|
+
"kling-v2.6": {
|
|
752
|
+
"aspect_ratio": {
|
|
753
|
+
"enum": ["16:9", "9:16", "1:1"]
|
|
754
|
+
},
|
|
755
|
+
"duration_seconds": {
|
|
756
|
+
"enum": [5, 10]
|
|
757
|
+
},
|
|
758
|
+
"mode": {
|
|
759
|
+
"enum": ["std", "pro"]
|
|
760
|
+
}
|
|
761
|
+
},
|
|
762
|
+
"kling-v3-omni": {
|
|
763
|
+
"aspect_ratio": {
|
|
764
|
+
"enum": ["16:9", "9:16", "1:1"]
|
|
765
|
+
},
|
|
766
|
+
"duration_seconds": {
|
|
767
|
+
"enum": [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
|
|
768
|
+
},
|
|
769
|
+
"output_resolution": {
|
|
770
|
+
"enum": ["720p", "1080p", "4k"]
|
|
771
|
+
}
|
|
772
|
+
},
|
|
643
773
|
"kling-v3-turbo-text-to-video": {
|
|
644
774
|
"aspect_ratio": {
|
|
645
775
|
"enum": ["16:9", "9:16", "1:1"]
|
|
@@ -665,6 +795,12 @@ CONTRACT = {
|
|
|
665
795
|
"midjourney-edit-image": {}
|
|
666
796
|
}
|
|
667
797
|
},
|
|
798
|
+
"midjourney/extend-video": {
|
|
799
|
+
"models": ["midjourney-image-to-video"],
|
|
800
|
+
"fields_by_model": {
|
|
801
|
+
"midjourney-image-to-video": {}
|
|
802
|
+
}
|
|
803
|
+
},
|
|
668
804
|
"midjourney/get-seed": {
|
|
669
805
|
"models": [],
|
|
670
806
|
"fields_by_model": {
|
|
@@ -787,12 +923,47 @@ CONTRACT = {
|
|
|
787
923
|
}
|
|
788
924
|
},
|
|
789
925
|
"producer/text-to-music": {
|
|
790
|
-
"models": ["fuzz-2.0"],
|
|
926
|
+
"models": ["fuzz-0.8", "fuzz-1.0", "fuzz-1.0-pro", "fuzz-1.1", "fuzz-1.1-pro", "fuzz-2.0", "fuzz-2.0-pro", "fuzz-2.0-raw"],
|
|
791
927
|
"fields_by_model": {
|
|
928
|
+
"fuzz-0.8": {
|
|
929
|
+
"vocal_mode": {
|
|
930
|
+
"enum": ["exact_lyrics", "instrumental"]
|
|
931
|
+
}
|
|
932
|
+
},
|
|
933
|
+
"fuzz-1.0": {
|
|
934
|
+
"vocal_mode": {
|
|
935
|
+
"enum": ["exact_lyrics", "instrumental"]
|
|
936
|
+
}
|
|
937
|
+
},
|
|
938
|
+
"fuzz-1.0-pro": {
|
|
939
|
+
"vocal_mode": {
|
|
940
|
+
"enum": ["exact_lyrics", "instrumental"]
|
|
941
|
+
}
|
|
942
|
+
},
|
|
943
|
+
"fuzz-1.1": {
|
|
944
|
+
"vocal_mode": {
|
|
945
|
+
"enum": ["exact_lyrics", "instrumental"]
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
"fuzz-1.1-pro": {
|
|
949
|
+
"vocal_mode": {
|
|
950
|
+
"enum": ["exact_lyrics", "instrumental"]
|
|
951
|
+
}
|
|
952
|
+
},
|
|
792
953
|
"fuzz-2.0": {
|
|
793
954
|
"vocal_mode": {
|
|
794
955
|
"enum": ["exact_lyrics", "instrumental"]
|
|
795
956
|
}
|
|
957
|
+
},
|
|
958
|
+
"fuzz-2.0-pro": {
|
|
959
|
+
"vocal_mode": {
|
|
960
|
+
"enum": ["exact_lyrics", "instrumental"]
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
"fuzz-2.0-raw": {
|
|
964
|
+
"vocal_mode": {
|
|
965
|
+
"enum": ["exact_lyrics", "instrumental"]
|
|
966
|
+
}
|
|
796
967
|
}
|
|
797
968
|
}
|
|
798
969
|
},
|
|
@@ -809,12 +980,12 @@ CONTRACT = {
|
|
|
809
980
|
}
|
|
810
981
|
}
|
|
811
982
|
},
|
|
812
|
-
"qwen-2/
|
|
813
|
-
"models": ["qwen-2-
|
|
983
|
+
"qwen-2/text-to-image": {
|
|
984
|
+
"models": ["qwen-2-text-to-image"],
|
|
814
985
|
"fields_by_model": {
|
|
815
|
-
"qwen-2-
|
|
816
|
-
"
|
|
817
|
-
"enum": ["
|
|
986
|
+
"qwen-2-text-to-image": {
|
|
987
|
+
"aspect_ratio": {
|
|
988
|
+
"enum": ["1:1", "3:4", "4:3", "9:16", "16:9"]
|
|
818
989
|
},
|
|
819
990
|
"output_format": {
|
|
820
991
|
"enum": ["png", "jpeg"]
|
|
@@ -822,12 +993,35 @@ CONTRACT = {
|
|
|
822
993
|
}
|
|
823
994
|
}
|
|
824
995
|
},
|
|
825
|
-
"qwen-
|
|
826
|
-
"models": ["qwen-
|
|
996
|
+
"qwen-image/edit-image": {
|
|
997
|
+
"models": ["qwen-image-edit-image"],
|
|
827
998
|
"fields_by_model": {
|
|
828
|
-
"qwen-
|
|
999
|
+
"qwen-image-edit-image": {
|
|
829
1000
|
"aspect_ratio": {
|
|
830
|
-
"enum": ["1:1", "3:4", "
|
|
1001
|
+
"enum": ["1:1", "3:4", "9:16", "4:3", "16:9"]
|
|
1002
|
+
},
|
|
1003
|
+
"output_format": {
|
|
1004
|
+
"enum": ["png", "jpeg"]
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
},
|
|
1009
|
+
"qwen-image/remix-image": {
|
|
1010
|
+
"models": ["qwen-image-remix-image"],
|
|
1011
|
+
"fields_by_model": {
|
|
1012
|
+
"qwen-image-remix-image": {
|
|
1013
|
+
"output_format": {
|
|
1014
|
+
"enum": ["png", "jpeg"]
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
},
|
|
1019
|
+
"qwen-image/text-to-image": {
|
|
1020
|
+
"models": ["qwen-image-text-to-image"],
|
|
1021
|
+
"fields_by_model": {
|
|
1022
|
+
"qwen-image-text-to-image": {
|
|
1023
|
+
"aspect_ratio": {
|
|
1024
|
+
"enum": ["1:1", "3:4", "9:16", "4:3", "16:9"]
|
|
831
1025
|
},
|
|
832
1026
|
"output_format": {
|
|
833
1027
|
"enum": ["png", "jpeg"]
|
|
@@ -1512,7 +1706,7 @@ CONTRACT = {
|
|
|
1512
1706
|
}
|
|
1513
1707
|
},
|
|
1514
1708
|
"veo-3-1/text-to-video": {
|
|
1515
|
-
"models": ["veo-3.1", "veo-3.1-fast"],
|
|
1709
|
+
"models": ["veo-3.1", "veo-3.1-fast", "veo-3.1-lite"],
|
|
1516
1710
|
"fields_by_model": {
|
|
1517
1711
|
"veo-3.1": {
|
|
1518
1712
|
"aspect_ratio": {
|
|
@@ -1535,6 +1729,17 @@ CONTRACT = {
|
|
|
1535
1729
|
"input_mode": {
|
|
1536
1730
|
"enum": ["text", "first_and_last_frames", "reference"]
|
|
1537
1731
|
}
|
|
1732
|
+
},
|
|
1733
|
+
"veo-3.1-lite": {
|
|
1734
|
+
"aspect_ratio": {
|
|
1735
|
+
"enum": ["16:9", "9:16"]
|
|
1736
|
+
},
|
|
1737
|
+
"duration_seconds": {
|
|
1738
|
+
"enum": [4, 6, 8]
|
|
1739
|
+
},
|
|
1740
|
+
"input_mode": {
|
|
1741
|
+
"enum": ["text", "first_and_last_frames", "reference"]
|
|
1742
|
+
}
|
|
1538
1743
|
}
|
|
1539
1744
|
}
|
|
1540
1745
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.4"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.2.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|