runwayml 3.9.0__tar.gz → 3.10.0__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 (94) hide show
  1. runwayml-3.10.0/.release-please-manifest.json +3 -0
  2. {runwayml-3.9.0 → runwayml-3.10.0}/CHANGELOG.md +10 -0
  3. {runwayml-3.9.0 → runwayml-3.10.0}/PKG-INFO +1 -1
  4. {runwayml-3.9.0 → runwayml-3.10.0}/pyproject.toml +1 -1
  5. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_version.py +1 -1
  6. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/resources/text_to_image.py +10 -6
  7. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/types/organization_retrieve_response.py +21 -0
  8. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/types/organization_retrieve_usage_response.py +4 -2
  9. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/types/text_to_image_create_params.py +5 -3
  10. runwayml-3.9.0/.release-please-manifest.json +0 -3
  11. {runwayml-3.9.0 → runwayml-3.10.0}/.gitignore +0 -0
  12. {runwayml-3.9.0 → runwayml-3.10.0}/CONTRIBUTING.md +0 -0
  13. {runwayml-3.9.0 → runwayml-3.10.0}/LICENSE +0 -0
  14. {runwayml-3.9.0 → runwayml-3.10.0}/README.md +0 -0
  15. {runwayml-3.9.0 → runwayml-3.10.0}/SECURITY.md +0 -0
  16. {runwayml-3.9.0 → runwayml-3.10.0}/api.md +0 -0
  17. {runwayml-3.9.0 → runwayml-3.10.0}/bin/check-release-environment +0 -0
  18. {runwayml-3.9.0 → runwayml-3.10.0}/bin/publish-pypi +0 -0
  19. {runwayml-3.9.0 → runwayml-3.10.0}/examples/.keep +0 -0
  20. {runwayml-3.9.0 → runwayml-3.10.0}/examples/generate_image.py +0 -0
  21. {runwayml-3.9.0 → runwayml-3.10.0}/mypy.ini +0 -0
  22. {runwayml-3.9.0 → runwayml-3.10.0}/noxfile.py +0 -0
  23. {runwayml-3.9.0 → runwayml-3.10.0}/release-please-config.json +0 -0
  24. {runwayml-3.9.0 → runwayml-3.10.0}/requirements-dev.lock +0 -0
  25. {runwayml-3.9.0 → runwayml-3.10.0}/requirements.lock +0 -0
  26. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/__init__.py +0 -0
  27. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_base_client.py +0 -0
  28. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_client.py +0 -0
  29. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_compat.py +0 -0
  30. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_constants.py +0 -0
  31. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_exceptions.py +0 -0
  32. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_files.py +0 -0
  33. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_models.py +0 -0
  34. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_qs.py +0 -0
  35. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_resource.py +0 -0
  36. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_response.py +0 -0
  37. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_streaming.py +0 -0
  38. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_types.py +0 -0
  39. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_utils/__init__.py +0 -0
  40. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_utils/_logs.py +0 -0
  41. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_utils/_proxy.py +0 -0
  42. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_utils/_reflection.py +0 -0
  43. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_utils/_resources_proxy.py +0 -0
  44. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_utils/_streams.py +0 -0
  45. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_utils/_sync.py +0 -0
  46. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_utils/_transform.py +0 -0
  47. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_utils/_typing.py +0 -0
  48. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/_utils/_utils.py +0 -0
  49. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/lib/.keep +0 -0
  50. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/lib/polling.py +0 -0
  51. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/py.typed +0 -0
  52. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/resources/__init__.py +0 -0
  53. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/resources/character_performance.py +0 -0
  54. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/resources/image_to_video.py +0 -0
  55. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/resources/organization.py +0 -0
  56. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/resources/tasks.py +0 -0
  57. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/resources/video_to_video.py +0 -0
  58. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/resources/video_upscale.py +0 -0
  59. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/types/__init__.py +0 -0
  60. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/types/character_performance_create_params.py +0 -0
  61. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/types/character_performance_create_response.py +0 -0
  62. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/types/image_to_video_create_params.py +0 -0
  63. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/types/image_to_video_create_response.py +0 -0
  64. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/types/organization_retrieve_usage_params.py +0 -0
  65. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/types/task_retrieve_response.py +0 -0
  66. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/types/text_to_image_create_response.py +0 -0
  67. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/types/video_to_video_create_params.py +0 -0
  68. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/types/video_to_video_create_response.py +0 -0
  69. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/types/video_upscale_create_params.py +0 -0
  70. {runwayml-3.9.0 → runwayml-3.10.0}/src/runwayml/types/video_upscale_create_response.py +0 -0
  71. {runwayml-3.9.0 → runwayml-3.10.0}/tests/__init__.py +0 -0
  72. {runwayml-3.9.0 → runwayml-3.10.0}/tests/api_resources/__init__.py +0 -0
  73. {runwayml-3.9.0 → runwayml-3.10.0}/tests/api_resources/test_character_performance.py +0 -0
  74. {runwayml-3.9.0 → runwayml-3.10.0}/tests/api_resources/test_image_to_video.py +0 -0
  75. {runwayml-3.9.0 → runwayml-3.10.0}/tests/api_resources/test_organization.py +0 -0
  76. {runwayml-3.9.0 → runwayml-3.10.0}/tests/api_resources/test_tasks.py +0 -0
  77. {runwayml-3.9.0 → runwayml-3.10.0}/tests/api_resources/test_text_to_image.py +0 -0
  78. {runwayml-3.9.0 → runwayml-3.10.0}/tests/api_resources/test_video_to_video.py +0 -0
  79. {runwayml-3.9.0 → runwayml-3.10.0}/tests/api_resources/test_video_upscale.py +0 -0
  80. {runwayml-3.9.0 → runwayml-3.10.0}/tests/conftest.py +0 -0
  81. {runwayml-3.9.0 → runwayml-3.10.0}/tests/sample_file.txt +0 -0
  82. {runwayml-3.9.0 → runwayml-3.10.0}/tests/test_client.py +0 -0
  83. {runwayml-3.9.0 → runwayml-3.10.0}/tests/test_deepcopy.py +0 -0
  84. {runwayml-3.9.0 → runwayml-3.10.0}/tests/test_extract_files.py +0 -0
  85. {runwayml-3.9.0 → runwayml-3.10.0}/tests/test_files.py +0 -0
  86. {runwayml-3.9.0 → runwayml-3.10.0}/tests/test_models.py +0 -0
  87. {runwayml-3.9.0 → runwayml-3.10.0}/tests/test_qs.py +0 -0
  88. {runwayml-3.9.0 → runwayml-3.10.0}/tests/test_required_args.py +0 -0
  89. {runwayml-3.9.0 → runwayml-3.10.0}/tests/test_response.py +0 -0
  90. {runwayml-3.9.0 → runwayml-3.10.0}/tests/test_streaming.py +0 -0
  91. {runwayml-3.9.0 → runwayml-3.10.0}/tests/test_transform.py +0 -0
  92. {runwayml-3.9.0 → runwayml-3.10.0}/tests/test_utils/test_proxy.py +0 -0
  93. {runwayml-3.9.0 → runwayml-3.10.0}/tests/test_utils/test_typing.py +0 -0
  94. {runwayml-3.9.0 → runwayml-3.10.0}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "3.10.0"
3
+ }
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.10.0 (2025-08-05)
4
+
5
+ Full Changelog: [v3.9.0...v3.10.0](https://github.com/runwayml/sdk-python/compare/v3.9.0...v3.10.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** Add gen4_image_turbo model ([5d5aab2](https://github.com/runwayml/sdk-python/commit/5d5aab25530e4a59e4873143ee53191f1714ebdb))
10
+ * **readme:** Fix for readme example ([083bb47](https://github.com/runwayml/sdk-python/commit/083bb47e8634b156b4deabbe3030e100f8186b0d))
11
+ * **readme:** gen4_turbo ratio ([7a5a486](https://github.com/runwayml/sdk-python/commit/7a5a486a2bd05f105616ad68d490defc134d333c))
12
+
3
13
  ## 3.9.0 (2025-08-01)
4
14
 
5
15
  Full Changelog: [v3.8.0...v3.9.0](https://github.com/runwayml/sdk-python/compare/v3.8.0...v3.9.0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: runwayml
3
- Version: 3.9.0
3
+ Version: 3.10.0
4
4
  Summary: The official Python library for the runwayml API
5
5
  Project-URL: Homepage, https://github.com/runwayml/sdk-python
6
6
  Project-URL: Repository, https://github.com/runwayml/sdk-python
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "runwayml"
3
- version = "3.9.0"
3
+ version = "3.10.0"
4
4
  description = "The official Python library for the runwayml API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "runwayml"
4
- __version__ = "3.9.0" # x-release-please-version
4
+ __version__ = "3.10.0" # x-release-please-version
@@ -53,7 +53,7 @@ class TextToImageResource(SyncAPIResource):
53
53
  def create(
54
54
  self,
55
55
  *,
56
- model: Literal["gen4_image"],
56
+ model: Literal["gen4_image", "gen4_image_turbo"],
57
57
  prompt_text: str,
58
58
  ratio: Literal[
59
59
  "1920:1080",
@@ -96,8 +96,10 @@ class TextToImageResource(SyncAPIResource):
96
96
 
97
97
  content_moderation: Settings that affect the behavior of the content moderation system.
98
98
 
99
- reference_images: An array of images to be used as references for the generated image output. Up
100
- to three reference images can be provided for `gen4_image`.
99
+ reference_images: An array of up to three images to be used as references for the generated image
100
+ output.
101
+
102
+ For `gen4_image_turbo`, _at least one_ reference image is required.
101
103
 
102
104
  seed: If unspecified, a random number is chosen. Varying the seed integer is a way to
103
105
  get different results for the same other request parameters. Using the same seed
@@ -154,7 +156,7 @@ class AsyncTextToImageResource(AsyncAPIResource):
154
156
  async def create(
155
157
  self,
156
158
  *,
157
- model: Literal["gen4_image"],
159
+ model: Literal["gen4_image", "gen4_image_turbo"],
158
160
  prompt_text: str,
159
161
  ratio: Literal[
160
162
  "1920:1080",
@@ -197,8 +199,10 @@ class AsyncTextToImageResource(AsyncAPIResource):
197
199
 
198
200
  content_moderation: Settings that affect the behavior of the content moderation system.
199
201
 
200
- reference_images: An array of images to be used as references for the generated image output. Up
201
- to three reference images can be provided for `gen4_image`.
202
+ reference_images: An array of up to three images to be used as references for the generated image
203
+ output.
204
+
205
+ For `gen4_image_turbo`, _at least one_ reference image is required.
202
206
 
203
207
  seed: If unspecified, a random number is chosen. Varying the seed integer is a way to
204
208
  get different results for the same other request parameters. Using the same seed
@@ -14,6 +14,7 @@ __all__ = [
14
14
  "TierModelsGen3aTurbo",
15
15
  "TierModelsGen4Aleph",
16
16
  "TierModelsGen4Image",
17
+ "TierModelsGen4ImageTurbo",
17
18
  "TierModelsGen4Turbo",
18
19
  "TierModelsUpscaleV1",
19
20
  "Usage",
@@ -22,6 +23,7 @@ __all__ = [
22
23
  "UsageModelsGen3aTurbo",
23
24
  "UsageModelsGen4Aleph",
24
25
  "UsageModelsGen4Image",
26
+ "UsageModelsGen4ImageTurbo",
25
27
  "UsageModelsGen4Turbo",
26
28
  "UsageModelsUpscaleV1",
27
29
  ]
@@ -59,6 +61,14 @@ class TierModelsGen4Image(BaseModel):
59
61
  """The maximum number of generations that can be created each day for this model."""
60
62
 
61
63
 
64
+ class TierModelsGen4ImageTurbo(BaseModel):
65
+ max_concurrent_generations: int = FieldInfo(alias="maxConcurrentGenerations")
66
+ """The maximum number of generations that can be run concurrently for this model."""
67
+
68
+ max_daily_generations: int = FieldInfo(alias="maxDailyGenerations")
69
+ """The maximum number of generations that can be created each day for this model."""
70
+
71
+
62
72
  class TierModelsGen4Turbo(BaseModel):
63
73
  max_concurrent_generations: int = FieldInfo(alias="maxConcurrentGenerations")
64
74
  """The maximum number of generations that can be run concurrently for this model."""
@@ -88,6 +98,9 @@ class TierModels(BaseModel):
88
98
  gen4_image: Optional[TierModelsGen4Image] = None
89
99
  """Limits associated with the gen4_image model."""
90
100
 
101
+ gen4_image_turbo: Optional[TierModelsGen4ImageTurbo] = None
102
+ """Limits associated with the gen4_image_turbo model."""
103
+
91
104
  gen4_turbo: Optional[TierModelsGen4Turbo] = None
92
105
  """Limits associated with the gen4_turbo model."""
93
106
 
@@ -123,6 +136,11 @@ class UsageModelsGen4Image(BaseModel):
123
136
  """The number of generations that have been run for this model in the past day."""
124
137
 
125
138
 
139
+ class UsageModelsGen4ImageTurbo(BaseModel):
140
+ daily_generations: int = FieldInfo(alias="dailyGenerations")
141
+ """The number of generations that have been run for this model in the past day."""
142
+
143
+
126
144
  class UsageModelsGen4Turbo(BaseModel):
127
145
  daily_generations: int = FieldInfo(alias="dailyGenerations")
128
146
  """The number of generations that have been run for this model in the past day."""
@@ -146,6 +164,9 @@ class UsageModels(BaseModel):
146
164
  gen4_image: Optional[UsageModelsGen4Image] = None
147
165
  """Usage data for the gen4_image model."""
148
166
 
167
+ gen4_image_turbo: Optional[UsageModelsGen4ImageTurbo] = None
168
+ """Usage data for the gen4_image_turbo model."""
169
+
149
170
  gen4_turbo: Optional[UsageModelsGen4Turbo] = None
150
171
  """Usage data for the gen4_turbo model."""
151
172
 
@@ -15,7 +15,7 @@ class ResultUsedCredit(BaseModel):
15
15
  amount: int
16
16
  """The number of credits used for the model."""
17
17
 
18
- model: Literal["upscale_v1", "act_two", "gen4_image", "gen3a_turbo", "gen4_turbo", "gen4_aleph"]
18
+ model: Literal["upscale_v1", "act_two", "gen4_image", "gen3a_turbo", "gen4_turbo", "gen4_aleph", "gen4_image_turbo"]
19
19
  """The model whose usage resulted in the credit usage."""
20
20
 
21
21
 
@@ -31,7 +31,9 @@ class Result(BaseModel):
31
31
 
32
32
 
33
33
  class OrganizationRetrieveUsageResponse(BaseModel):
34
- models: List[Literal["upscale_v1", "act_two", "gen4_image", "gen3a_turbo", "gen4_turbo", "gen4_aleph"]]
34
+ models: List[
35
+ Literal["upscale_v1", "act_two", "gen4_image", "gen3a_turbo", "gen4_turbo", "gen4_aleph", "gen4_image_turbo"]
36
+ ]
35
37
  """The list of models with usage during the queried time range."""
36
38
 
37
39
  results: List[Result]
@@ -11,7 +11,7 @@ __all__ = ["TextToImageCreateParams", "ContentModeration", "ReferenceImage"]
11
11
 
12
12
 
13
13
  class TextToImageCreateParams(TypedDict, total=False):
14
- model: Required[Literal["gen4_image"]]
14
+ model: Required[Literal["gen4_image", "gen4_image_turbo"]]
15
15
  """The model variant to use."""
16
16
 
17
17
  prompt_text: Required[Annotated[str, PropertyInfo(alias="promptText")]]
@@ -46,9 +46,11 @@ class TextToImageCreateParams(TypedDict, total=False):
46
46
  """Settings that affect the behavior of the content moderation system."""
47
47
 
48
48
  reference_images: Annotated[Iterable[ReferenceImage], PropertyInfo(alias="referenceImages")]
49
- """An array of images to be used as references for the generated image output.
49
+ """
50
+ An array of up to three images to be used as references for the generated image
51
+ output.
50
52
 
51
- Up to three reference images can be provided for `gen4_image`.
53
+ For `gen4_image_turbo`, _at least one_ reference image is required.
52
54
  """
53
55
 
54
56
  seed: int
@@ -1,3 +0,0 @@
1
- {
2
- ".": "3.9.0"
3
- }
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