runapi-core 0.2.2__tar.gz → 0.2.3__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.
Files changed (28) hide show
  1. {runapi_core-0.2.2 → runapi_core-0.2.3}/PKG-INFO +2 -2
  2. {runapi_core-0.2.2 → runapi_core-0.2.3}/pyproject.toml +1 -1
  3. {runapi_core-0.2.2 → runapi_core-0.2.3}/src/runapi/core/contract_gen.py +147 -14
  4. runapi_core-0.2.3/src/runapi/core/version.py +1 -0
  5. runapi_core-0.2.2/src/runapi/core/version.py +0 -1
  6. {runapi_core-0.2.2 → runapi_core-0.2.3}/README.md +0 -0
  7. {runapi_core-0.2.2 → runapi_core-0.2.3}/src/runapi/core/__init__.py +0 -0
  8. {runapi_core-0.2.2 → runapi_core-0.2.3}/src/runapi/core/auth.py +0 -0
  9. {runapi_core-0.2.2 → runapi_core-0.2.3}/src/runapi/core/config.py +0 -0
  10. {runapi_core-0.2.2 → runapi_core-0.2.3}/src/runapi/core/constants.py +0 -0
  11. {runapi_core-0.2.2 → runapi_core-0.2.3}/src/runapi/core/errors.py +0 -0
  12. {runapi_core-0.2.2 → runapi_core-0.2.3}/src/runapi/core/files.py +0 -0
  13. {runapi_core-0.2.2 → runapi_core-0.2.3}/src/runapi/core/http_client.py +0 -0
  14. {runapi_core-0.2.2 → runapi_core-0.2.3}/src/runapi/core/models.py +0 -0
  15. {runapi_core-0.2.2 → runapi_core-0.2.3}/src/runapi/core/multipart.py +0 -0
  16. {runapi_core-0.2.2 → runapi_core-0.2.3}/src/runapi/core/options.py +0 -0
  17. {runapi_core-0.2.2 → runapi_core-0.2.3}/src/runapi/core/polling.py +0 -0
  18. {runapi_core-0.2.2 → runapi_core-0.2.3}/src/runapi/core/py.typed +0 -0
  19. {runapi_core-0.2.2 → runapi_core-0.2.3}/src/runapi/core/resource.py +0 -0
  20. {runapi_core-0.2.2 → runapi_core-0.2.3}/src/runapi/core/response.py +0 -0
  21. {runapi_core-0.2.2 → runapi_core-0.2.3}/tests/test_auth.py +0 -0
  22. {runapi_core-0.2.2 → runapi_core-0.2.3}/tests/test_config.py +0 -0
  23. {runapi_core-0.2.2 → runapi_core-0.2.3}/tests/test_errors.py +0 -0
  24. {runapi_core-0.2.2 → runapi_core-0.2.3}/tests/test_files.py +0 -0
  25. {runapi_core-0.2.2 → runapi_core-0.2.3}/tests/test_http_client.py +0 -0
  26. {runapi_core-0.2.2 → runapi_core-0.2.3}/tests/test_models.py +0 -0
  27. {runapi_core-0.2.2 → runapi_core-0.2.3}/tests/test_polling.py +0 -0
  28. {runapi_core-0.2.2 → runapi_core-0.2.3}/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.2
3
+ Version: 0.2.3
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.2
10
+ Project-URL: Release Notes, https://github.com/runapi-ai/core-sdk/releases/tag/python%2Fv0.2.3
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.2"
22
+ "Release Notes" = "https://github.com/runapi-ai/core-sdk/releases/tag/python%2Fv0.2.3"
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"]
@@ -562,7 +633,7 @@ CONTRACT = {
562
633
  }
563
634
  },
564
635
  "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"],
636
+ "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-turbo-image-to-video"],
566
637
  "fields_by_model": {
567
638
  "kling-v2.1-master-image-to-video": {
568
639
  "duration_seconds": {
@@ -584,6 +655,17 @@ CONTRACT = {
584
655
  "enum": [5, 10]
585
656
  }
586
657
  },
658
+ "kling-v2.6": {
659
+ "aspect_ratio": {
660
+ "enum": ["16:9", "9:16", "1:1"]
661
+ },
662
+ "duration_seconds": {
663
+ "enum": [5, 10]
664
+ },
665
+ "mode": {
666
+ "enum": ["std", "pro"]
667
+ }
668
+ },
587
669
  "kling-v3-turbo-image-to-video": {
588
670
  "duration_seconds": {
589
671
  "enum": [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
@@ -611,7 +693,7 @@ CONTRACT = {
611
693
  }
612
694
  },
613
695
  "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"],
696
+ "models": ["kling-3.0", "kling-v2.1-master-text-to-video", "kling-v2.5-turbo-text-to-video-pro", "kling-v2.6", "kling-v3-turbo-text-to-video"],
615
697
  "fields_by_model": {
616
698
  "kling-3.0": {
617
699
  "aspect_ratio": {
@@ -640,6 +722,17 @@ CONTRACT = {
640
722
  "enum": [5, 10]
641
723
  }
642
724
  },
725
+ "kling-v2.6": {
726
+ "aspect_ratio": {
727
+ "enum": ["16:9", "9:16", "1:1"]
728
+ },
729
+ "duration_seconds": {
730
+ "enum": [5, 10]
731
+ },
732
+ "mode": {
733
+ "enum": ["std", "pro"]
734
+ }
735
+ },
643
736
  "kling-v3-turbo-text-to-video": {
644
737
  "aspect_ratio": {
645
738
  "enum": ["16:9", "9:16", "1:1"]
@@ -665,6 +758,12 @@ CONTRACT = {
665
758
  "midjourney-edit-image": {}
666
759
  }
667
760
  },
761
+ "midjourney/extend-video": {
762
+ "models": ["midjourney-image-to-video"],
763
+ "fields_by_model": {
764
+ "midjourney-image-to-video": {}
765
+ }
766
+ },
668
767
  "midjourney/get-seed": {
669
768
  "models": [],
670
769
  "fields_by_model": {
@@ -809,12 +908,12 @@ CONTRACT = {
809
908
  }
810
909
  }
811
910
  },
812
- "qwen-2/remix-image": {
813
- "models": ["qwen-2-remix-image"],
911
+ "qwen-2/text-to-image": {
912
+ "models": ["qwen-2-text-to-image"],
814
913
  "fields_by_model": {
815
- "qwen-2-remix-image": {
816
- "acceleration": {
817
- "enum": ["none", "regular", "high"]
914
+ "qwen-2-text-to-image": {
915
+ "aspect_ratio": {
916
+ "enum": ["1:1", "3:4", "4:3", "9:16", "16:9"]
818
917
  },
819
918
  "output_format": {
820
919
  "enum": ["png", "jpeg"]
@@ -822,12 +921,35 @@ CONTRACT = {
822
921
  }
823
922
  }
824
923
  },
825
- "qwen-2/text-to-image": {
826
- "models": ["qwen-2-text-to-image"],
924
+ "qwen-image/edit-image": {
925
+ "models": ["qwen-image-edit-image"],
827
926
  "fields_by_model": {
828
- "qwen-2-text-to-image": {
927
+ "qwen-image-edit-image": {
829
928
  "aspect_ratio": {
830
- "enum": ["1:1", "3:4", "4:3", "9:16", "16:9"]
929
+ "enum": ["1:1", "3:4", "9:16", "4:3", "16:9"]
930
+ },
931
+ "output_format": {
932
+ "enum": ["png", "jpeg"]
933
+ }
934
+ }
935
+ }
936
+ },
937
+ "qwen-image/remix-image": {
938
+ "models": ["qwen-image-remix-image"],
939
+ "fields_by_model": {
940
+ "qwen-image-remix-image": {
941
+ "output_format": {
942
+ "enum": ["png", "jpeg"]
943
+ }
944
+ }
945
+ }
946
+ },
947
+ "qwen-image/text-to-image": {
948
+ "models": ["qwen-image-text-to-image"],
949
+ "fields_by_model": {
950
+ "qwen-image-text-to-image": {
951
+ "aspect_ratio": {
952
+ "enum": ["1:1", "3:4", "9:16", "4:3", "16:9"]
831
953
  },
832
954
  "output_format": {
833
955
  "enum": ["png", "jpeg"]
@@ -1512,7 +1634,7 @@ CONTRACT = {
1512
1634
  }
1513
1635
  },
1514
1636
  "veo-3-1/text-to-video": {
1515
- "models": ["veo-3.1", "veo-3.1-fast"],
1637
+ "models": ["veo-3.1", "veo-3.1-fast", "veo-3.1-lite"],
1516
1638
  "fields_by_model": {
1517
1639
  "veo-3.1": {
1518
1640
  "aspect_ratio": {
@@ -1535,6 +1657,17 @@ CONTRACT = {
1535
1657
  "input_mode": {
1536
1658
  "enum": ["text", "first_and_last_frames", "reference"]
1537
1659
  }
1660
+ },
1661
+ "veo-3.1-lite": {
1662
+ "aspect_ratio": {
1663
+ "enum": ["16:9", "9:16"]
1664
+ },
1665
+ "duration_seconds": {
1666
+ "enum": [4, 6, 8]
1667
+ },
1668
+ "input_mode": {
1669
+ "enum": ["text", "first_and_last_frames", "reference"]
1670
+ }
1538
1671
  }
1539
1672
  }
1540
1673
  },
@@ -0,0 +1 @@
1
+ __version__ = "0.2.3"
@@ -1 +0,0 @@
1
- __version__ = "0.2.2"
File without changes