runwayml 3.13.0__py3-none-any.whl → 3.14.0__py3-none-any.whl

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.
runwayml/_version.py CHANGED
@@ -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.13.0" # x-release-please-version
4
+ __version__ = "3.14.0" # x-release-please-version
@@ -100,9 +100,7 @@ class ImageToVideoResource(SyncAPIResource):
100
100
 
101
101
  content_moderation: Settings that affect the behavior of the content moderation system.
102
102
 
103
- `veo3` does not support this parameter.
104
-
105
- This field is allowed for the following model variants: `gen4_turbo`,
103
+ This field is allowed only for the following model variants: `gen4_turbo`,
106
104
  `gen3a_turbo`
107
105
 
108
106
  duration: The number of seconds of duration for the output video. `veo3` requires a
@@ -214,9 +212,7 @@ class AsyncImageToVideoResource(AsyncAPIResource):
214
212
 
215
213
  content_moderation: Settings that affect the behavior of the content moderation system.
216
214
 
217
- `veo3` does not support this parameter.
218
-
219
- This field is allowed for the following model variants: `gen4_turbo`,
215
+ This field is allowed only for the following model variants: `gen4_turbo`,
220
216
  `gen3a_turbo`
221
217
 
222
218
  duration: The number of seconds of duration for the output video. `veo3` requires a
@@ -53,7 +53,7 @@ class TextToImageResource(SyncAPIResource):
53
53
  def create(
54
54
  self,
55
55
  *,
56
- model: Literal["gen4_image_turbo", "gen4_image"],
56
+ model: Literal["gen4_image_turbo", "gen4_image", "gemini_2.5_flash"],
57
57
  prompt_text: str,
58
58
  ratio: Literal[
59
59
  "1920:1080",
@@ -72,6 +72,11 @@ class TextToImageResource(SyncAPIResource):
72
72
  "960:720",
73
73
  "720:960",
74
74
  "1680:720",
75
+ "1344:768",
76
+ "768:1344",
77
+ "1184:864",
78
+ "864:1184",
79
+ "1536:672",
75
80
  ],
76
81
  content_moderation: text_to_image_create_params.ContentModeration | NotGiven = NOT_GIVEN,
77
82
  reference_images: Iterable[text_to_image_create_params.ReferenceImage] | NotGiven = NOT_GIVEN,
@@ -92,10 +97,41 @@ class TextToImageResource(SyncAPIResource):
92
97
  prompt_text: A non-empty string up to 1000 characters (measured in UTF-16 code units). This
93
98
  should describe in detail what should appear in the output.
94
99
 
95
- ratio: The resolution of the output image(s).
100
+ ratio: The resolution of the output image.
101
+
102
+ `gen4_image_turbo`, `gen4_image` support the following values:
103
+
104
+ - `1920:1080`
105
+ - `1080:1920`
106
+ - `1024:1024`
107
+ - `1360:768`
108
+ - `1080:1080`
109
+ - `1168:880`
110
+ - `1440:1080`
111
+ - `1080:1440`
112
+ - `1808:768`
113
+ - `2112:912`
114
+ - `1280:720`
115
+ - `720:1280`
116
+ - `720:720`
117
+ - `960:720`
118
+ - `720:960`
119
+ - `1680:720`
120
+
121
+ `gemini_2.5_flash` supports the following values:
122
+
123
+ - `1344:768`
124
+ - `768:1344`
125
+ - `1024:1024`
126
+ - `1184:864`
127
+ - `864:1184`
128
+ - `1536:672`
96
129
 
97
130
  content_moderation: Settings that affect the behavior of the content moderation system.
98
131
 
132
+ This field is allowed only for the following model variants: `gen4_image_turbo`,
133
+ `gen4_image`
134
+
99
135
  reference_images: An array of up to three images to be used as references for the generated image
100
136
  output.
101
137
 
@@ -156,7 +192,7 @@ class AsyncTextToImageResource(AsyncAPIResource):
156
192
  async def create(
157
193
  self,
158
194
  *,
159
- model: Literal["gen4_image_turbo", "gen4_image"],
195
+ model: Literal["gen4_image_turbo", "gen4_image", "gemini_2.5_flash"],
160
196
  prompt_text: str,
161
197
  ratio: Literal[
162
198
  "1920:1080",
@@ -175,6 +211,11 @@ class AsyncTextToImageResource(AsyncAPIResource):
175
211
  "960:720",
176
212
  "720:960",
177
213
  "1680:720",
214
+ "1344:768",
215
+ "768:1344",
216
+ "1184:864",
217
+ "864:1184",
218
+ "1536:672",
178
219
  ],
179
220
  content_moderation: text_to_image_create_params.ContentModeration | NotGiven = NOT_GIVEN,
180
221
  reference_images: Iterable[text_to_image_create_params.ReferenceImage] | NotGiven = NOT_GIVEN,
@@ -195,10 +236,41 @@ class AsyncTextToImageResource(AsyncAPIResource):
195
236
  prompt_text: A non-empty string up to 1000 characters (measured in UTF-16 code units). This
196
237
  should describe in detail what should appear in the output.
197
238
 
198
- ratio: The resolution of the output image(s).
239
+ ratio: The resolution of the output image.
240
+
241
+ `gen4_image_turbo`, `gen4_image` support the following values:
242
+
243
+ - `1920:1080`
244
+ - `1080:1920`
245
+ - `1024:1024`
246
+ - `1360:768`
247
+ - `1080:1080`
248
+ - `1168:880`
249
+ - `1440:1080`
250
+ - `1080:1440`
251
+ - `1808:768`
252
+ - `2112:912`
253
+ - `1280:720`
254
+ - `720:1280`
255
+ - `720:720`
256
+ - `960:720`
257
+ - `720:960`
258
+ - `1680:720`
259
+
260
+ `gemini_2.5_flash` supports the following values:
261
+
262
+ - `1344:768`
263
+ - `768:1344`
264
+ - `1024:1024`
265
+ - `1184:864`
266
+ - `864:1184`
267
+ - `1536:672`
199
268
 
200
269
  content_moderation: Settings that affect the behavior of the content moderation system.
201
270
 
271
+ This field is allowed only for the following model variants: `gen4_image_turbo`,
272
+ `gen4_image`
273
+
202
274
  reference_images: An array of up to three images to be used as references for the generated image
203
275
  output.
204
276
 
@@ -49,9 +49,7 @@ class ImageToVideoCreateParams(TypedDict, total=False):
49
49
  content_moderation: Annotated[ContentModeration, PropertyInfo(alias="contentModeration")]
50
50
  """Settings that affect the behavior of the content moderation system.
51
51
 
52
- `veo3` does not support this parameter.
53
-
54
- This field is allowed for the following model variants: `gen4_turbo`,
52
+ This field is allowed only for the following model variants: `gen4_turbo`,
55
53
  `gen3a_turbo`
56
54
  """
57
55
 
@@ -11,6 +11,7 @@ __all__ = [
11
11
  "Tier",
12
12
  "TierModels",
13
13
  "TierModelsActTwo",
14
+ "TierModelsGemini2_5Flash",
14
15
  "TierModelsGen3aTurbo",
15
16
  "TierModelsGen4Aleph",
16
17
  "TierModelsGen4Image",
@@ -21,6 +22,7 @@ __all__ = [
21
22
  "Usage",
22
23
  "UsageModels",
23
24
  "UsageModelsActTwo",
25
+ "UsageModelsGemini2_5Flash",
24
26
  "UsageModelsGen3aTurbo",
25
27
  "UsageModelsGen4Aleph",
26
28
  "UsageModelsGen4Image",
@@ -39,6 +41,14 @@ class TierModelsActTwo(BaseModel):
39
41
  """The maximum number of generations that can be created each day for this model."""
40
42
 
41
43
 
44
+ class TierModelsGemini2_5Flash(BaseModel):
45
+ max_concurrent_generations: int = FieldInfo(alias="maxConcurrentGenerations")
46
+ """The maximum number of generations that can be run concurrently for this model."""
47
+
48
+ max_daily_generations: int = FieldInfo(alias="maxDailyGenerations")
49
+ """The maximum number of generations that can be created each day for this model."""
50
+
51
+
42
52
  class TierModelsGen3aTurbo(BaseModel):
43
53
  max_concurrent_generations: int = FieldInfo(alias="maxConcurrentGenerations")
44
54
  """The maximum number of generations that can be run concurrently for this model."""
@@ -99,6 +109,9 @@ class TierModels(BaseModel):
99
109
  act_two: Optional[TierModelsActTwo] = None
100
110
  """Limits associated with the act_two model."""
101
111
 
112
+ gemini_2_5_flash: Optional[TierModelsGemini2_5Flash] = FieldInfo(alias="gemini_2.5_flash", default=None)
113
+ """Limits associated with the gemini_2.5_flash model."""
114
+
102
115
  gen3a_turbo: Optional[TierModelsGen3aTurbo] = None
103
116
  """Limits associated with the gen3a_turbo model."""
104
117
 
@@ -134,6 +147,11 @@ class UsageModelsActTwo(BaseModel):
134
147
  """The number of generations that have been run for this model in the past day."""
135
148
 
136
149
 
150
+ class UsageModelsGemini2_5Flash(BaseModel):
151
+ daily_generations: int = FieldInfo(alias="dailyGenerations")
152
+ """The number of generations that have been run for this model in the past day."""
153
+
154
+
137
155
  class UsageModelsGen3aTurbo(BaseModel):
138
156
  daily_generations: int = FieldInfo(alias="dailyGenerations")
139
157
  """The number of generations that have been run for this model in the past day."""
@@ -173,6 +191,9 @@ class UsageModels(BaseModel):
173
191
  act_two: Optional[UsageModelsActTwo] = None
174
192
  """Usage data for the act_two model."""
175
193
 
194
+ gemini_2_5_flash: Optional[UsageModelsGemini2_5Flash] = FieldInfo(alias="gemini_2.5_flash", default=None)
195
+ """Usage data for the gemini_2.5_flash model."""
196
+
176
197
  gen3a_turbo: Optional[UsageModelsGen3aTurbo] = None
177
198
  """Usage data for the gen3a_turbo model."""
178
199
 
@@ -16,7 +16,15 @@ class ResultUsedCredit(BaseModel):
16
16
  """The number of credits used for the model."""
17
17
 
18
18
  model: Literal[
19
- "act_two", "gen3a_turbo", "gen4_aleph", "gen4_image", "gen4_image_turbo", "gen4_turbo", "upscale_v1", "veo3"
19
+ "act_two",
20
+ "gemini_2.5_flash",
21
+ "gen3a_turbo",
22
+ "gen4_aleph",
23
+ "gen4_image",
24
+ "gen4_image_turbo",
25
+ "gen4_turbo",
26
+ "upscale_v1",
27
+ "veo3",
20
28
  ]
21
29
  """The model whose usage resulted in the credit usage."""
22
30
 
@@ -35,7 +43,15 @@ class Result(BaseModel):
35
43
  class OrganizationRetrieveUsageResponse(BaseModel):
36
44
  models: List[
37
45
  Literal[
38
- "act_two", "gen3a_turbo", "gen4_aleph", "gen4_image", "gen4_image_turbo", "gen4_turbo", "upscale_v1", "veo3"
46
+ "act_two",
47
+ "gemini_2.5_flash",
48
+ "gen3a_turbo",
49
+ "gen4_aleph",
50
+ "gen4_image",
51
+ "gen4_image_turbo",
52
+ "gen4_turbo",
53
+ "upscale_v1",
54
+ "veo3",
39
55
  ]
40
56
  ]
41
57
  """The list of models with usage during the queried time range."""
@@ -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_turbo", "gen4_image"]]
14
+ model: Required[Literal["gen4_image_turbo", "gen4_image", "gemini_2.5_flash"]]
15
15
  """The model variant to use."""
16
16
 
17
17
  prompt_text: Required[Annotated[str, PropertyInfo(alias="promptText")]]
@@ -38,12 +38,50 @@ class TextToImageCreateParams(TypedDict, total=False):
38
38
  "960:720",
39
39
  "720:960",
40
40
  "1680:720",
41
+ "1344:768",
42
+ "768:1344",
43
+ "1184:864",
44
+ "864:1184",
45
+ "1536:672",
41
46
  ]
42
47
  ]
43
- """The resolution of the output image(s)."""
48
+ """The resolution of the output image.
49
+
50
+ `gen4_image_turbo`, `gen4_image` support the following values:
51
+
52
+ - `1920:1080`
53
+ - `1080:1920`
54
+ - `1024:1024`
55
+ - `1360:768`
56
+ - `1080:1080`
57
+ - `1168:880`
58
+ - `1440:1080`
59
+ - `1080:1440`
60
+ - `1808:768`
61
+ - `2112:912`
62
+ - `1280:720`
63
+ - `720:1280`
64
+ - `720:720`
65
+ - `960:720`
66
+ - `720:960`
67
+ - `1680:720`
68
+
69
+ `gemini_2.5_flash` supports the following values:
70
+
71
+ - `1344:768`
72
+ - `768:1344`
73
+ - `1024:1024`
74
+ - `1184:864`
75
+ - `864:1184`
76
+ - `1536:672`
77
+ """
44
78
 
45
79
  content_moderation: Annotated[ContentModeration, PropertyInfo(alias="contentModeration")]
46
- """Settings that affect the behavior of the content moderation system."""
80
+ """Settings that affect the behavior of the content moderation system.
81
+
82
+ This field is allowed only for the following model variants: `gen4_image_turbo`,
83
+ `gen4_image`
84
+ """
47
85
 
48
86
  reference_images: Annotated[Iterable[ReferenceImage], PropertyInfo(alias="referenceImages")]
49
87
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: runwayml
3
- Version: 3.13.0
3
+ Version: 3.14.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
@@ -11,7 +11,7 @@ runwayml/_resource.py,sha256=BF-j3xY5eRTKmuTxg8eDhLtLP4MLB1phDh_B6BKipKA,1112
11
11
  runwayml/_response.py,sha256=WxjSEXX-j01ZhlSxYyMCVSEKxo20pgy40RA7iyski8M,28800
12
12
  runwayml/_streaming.py,sha256=NSVuAgknVQWU1cgZEjQn01IdZKKynb5rOeYp5Lo-OEQ,10108
13
13
  runwayml/_types.py,sha256=x9kxQosdf8uFYdVp9BA2p97HMcdp9M4oky-BbC5t1TU,7298
14
- runwayml/_version.py,sha256=CEGjtibUX-JE-j8KICFnMXu1tb9uqrEZGa2RgPGlTBw,161
14
+ runwayml/_version.py,sha256=emHDPS6mhVFiE4rUxJ5vj3jWYeOhXGCD11qtMCQXqxk,161
15
15
  runwayml/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  runwayml/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
17
17
  runwayml/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
@@ -29,23 +29,23 @@ runwayml/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
29
29
  runwayml/lib/polling.py,sha256=4fF0gP-h4iR0jvxWifsqtR1iH9vRoKEgGykkaZNT9Ek,4743
30
30
  runwayml/resources/__init__.py,sha256=VH2pNFyx5LAk5NugfO2XI-zG0IXRIILLlURn_KVfA4w,4323
31
31
  runwayml/resources/character_performance.py,sha256=8KBZQuht5CKDeqk89UCIWw7EMqt6iB-It0iIFejOJ-M,10905
32
- runwayml/resources/image_to_video.py,sha256=WJ3dC_0pbxbXGVSlhhv-eNb5qIqgmUtytqC4dwztpYY,11668
32
+ runwayml/resources/image_to_video.py,sha256=5azI4bF-U6ooYhGiz3OYhVlRR1bW9Xk6Miu8eu_h4RI,11568
33
33
  runwayml/resources/organization.py,sha256=iPwFFz8nltHXea0uFJd-700657xgJdnEJiWAwXVNDqY,10581
34
34
  runwayml/resources/tasks.py,sha256=mjdBqB1G4u9v3xB_9yn6aIdvsDmawxSNcTENkMpKSms,10146
35
- runwayml/resources/text_to_image.py,sha256=KG7MhfA2YvA8tdGAlH54gVUl9OwvsAuuOlV_KvIN1i0,10338
35
+ runwayml/resources/text_to_image.py,sha256=r70rbRqELhn4XTbawXef3QcKUxLfXgfP5bd_WFb8f1w,12344
36
36
  runwayml/resources/text_to_video.py,sha256=cQzDY2TzliUYhGBh2M6S6_f9TcwHSFxLwwY7f80OIZY,8564
37
37
  runwayml/resources/video_to_video.py,sha256=Obl7vrfwgcRC9bWUylVWVYc3r99aJt0I7NHhuhPvPus,10121
38
38
  runwayml/resources/video_upscale.py,sha256=8Mz_g5Swxmgp14jfcfexurUYpPi73q_iU-9D1jOddt0,7691
39
39
  runwayml/types/__init__.py,sha256=UTMpvsnh_66TPQ_2hKTFbS5zKI-UqGvpmO6XQV7B4lA,1762
40
40
  runwayml/types/character_performance_create_params.py,sha256=TYmR-YCK8_4fomSoqtC8dT1iIR7z2gMQvtu9u-FatQ4,3266
41
41
  runwayml/types/character_performance_create_response.py,sha256=QIJUfqWraZTJmX67zu3VQevBoFxDPmUh74C-_EelHy8,280
42
- runwayml/types/image_to_video_create_params.py,sha256=R2CCeoachKMPP9WQWL2vaIeccZvAAJqITk8EkY-IHpc,3208
42
+ runwayml/types/image_to_video_create_params.py,sha256=b96f5j13VE2CojJ6wTNk4lUqahw7zep8FZ3ezGpypO8,3168
43
43
  runwayml/types/image_to_video_create_response.py,sha256=WvZHbZxxJz8KerRNogzb1RYBrxa1x0iCPDi9-LCpHyE,345
44
- runwayml/types/organization_retrieve_response.py,sha256=lxRz8lIoVnhQxj52Y5tauREgRTQ83onKBUekbiTNYiI,7683
44
+ runwayml/types/organization_retrieve_response.py,sha256=Mx80Xu99d7t_aVyEl9Q8TqgF1CEp08o6X8LkzV3XOAc,8659
45
45
  runwayml/types/organization_retrieve_usage_params.py,sha256=vF5GUqaDqY1x6W2RzJ923jspuZyoNgCUaoLI3mW25zg,999
46
- runwayml/types/organization_retrieve_usage_response.py,sha256=pqYVyqV0qw4ChO-MvzQC3MdyppZovWxpqgJGcPrJbpA,1238
46
+ runwayml/types/organization_retrieve_usage_response.py,sha256=jKd73nkM2R6Zlp5vv60nRs32YiwXwWFZ3du-7FzXxkI,1440
47
47
  runwayml/types/task_retrieve_response.py,sha256=v8y2bLxsW6srzScW-B3Akv72q_PI_NQmduGrGRQMHds,2139
48
- runwayml/types/text_to_image_create_params.py,sha256=jr05UPEioRRbBES48dFUDl4zzlw83nh1rNa-o_UV-xc,2857
48
+ runwayml/types/text_to_image_create_params.py,sha256=tcxQOR1_24smxqTUXXXRPfsOG3eSjgqqUglVPH1167o,3610
49
49
  runwayml/types/text_to_image_create_response.py,sha256=koMzUg82dYFQPp77wln3UR1z8WO2sHCNMWGgoQ9Id8M,262
50
50
  runwayml/types/text_to_video_create_params.py,sha256=SyZtoIVD2cjzWZQWkxDAC1CXFh2VTTfw3M4HV-FqoXc,1107
51
51
  runwayml/types/text_to_video_create_response.py,sha256=hgsHI1iKdm1GxDyrdjlpCZtC6DWphHbHy8JUQYq9lgs,262
@@ -53,7 +53,7 @@ runwayml/types/video_to_video_create_params.py,sha256=0qfsIDlcTpqn9eiY-7X0J1NuDQ
53
53
  runwayml/types/video_to_video_create_response.py,sha256=CXgAUmnPIZOxCW_macIBPOC8MZYQpq9a5_jteSkeBt8,264
54
54
  runwayml/types/video_upscale_create_params.py,sha256=Ta3BNQy9aeTUBU5Ui-CMJtF32HeNRqbNpqjAAOKXyks,743
55
55
  runwayml/types/video_upscale_create_response.py,sha256=zf-79HbJa68dUHltBiZjVtnW_U6HUI-htmkTm5URBSU,264
56
- runwayml-3.13.0.dist-info/METADATA,sha256=xsV_YfEgJ3icEE3Shjn6xYMkXCuRBwTY9gcBueX4n54,15158
57
- runwayml-3.13.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
58
- runwayml-3.13.0.dist-info/licenses/LICENSE,sha256=baeFj6izBWIm6A5_7N3-WAsy_VYpDF05Dd4zS1zsfZI,11338
59
- runwayml-3.13.0.dist-info/RECORD,,
56
+ runwayml-3.14.0.dist-info/METADATA,sha256=5X1-fZRAF2hidPYIcyoXSAzBeIh2d7k3XrOa1WnBrsE,15158
57
+ runwayml-3.14.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
58
+ runwayml-3.14.0.dist-info/licenses/LICENSE,sha256=baeFj6izBWIm6A5_7N3-WAsy_VYpDF05Dd4zS1zsfZI,11338
59
+ runwayml-3.14.0.dist-info/RECORD,,