runwayml 3.9.0__py3-none-any.whl → 3.10.1__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.9.0" # x-release-please-version
4
+ __version__ = "3.10.1" # 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,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: runwayml
3
- Version: 3.9.0
3
+ Version: 3.10.1
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=YL6SdhLq5SHlT644GjzDwOJ_Slyr8QDRCoacOp4trhI,6199
14
- runwayml/_version.py,sha256=bPNrY-Cow4juf6v-qxwx6J5M9RxUZLYFaRxeGRgEfTw,160
14
+ runwayml/_version.py,sha256=wI3TsbW2T6UA_RVy_M_NgD5Vgc9ox-sizfNOIMRR7-c,161
15
15
  runwayml/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  runwayml/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
17
17
  runwayml/_utils/_logs.py,sha256=ZfS5W59hdqEBVV86lNrk28PhvUxtHOzs9JqiLhSu0pI,780
@@ -30,7 +30,7 @@ runwayml/resources/character_performance.py,sha256=8KBZQuht5CKDeqk89UCIWw7EMqt6i
30
30
  runwayml/resources/image_to_video.py,sha256=O6YbnD7QEE_YK5UeRDq8RzWwiuS5nTQSAkCl9RvZe74,10880
31
31
  runwayml/resources/organization.py,sha256=iPwFFz8nltHXea0uFJd-700657xgJdnEJiWAwXVNDqY,10581
32
32
  runwayml/resources/tasks.py,sha256=mjdBqB1G4u9v3xB_9yn6aIdvsDmawxSNcTENkMpKSms,10146
33
- runwayml/resources/text_to_image.py,sha256=rBGhDHYBvC7dHKn4bemhbj5l7hxBzk81m4t6lvZPjVI,10234
33
+ runwayml/resources/text_to_image.py,sha256=p3Gq7GyoSuziFuoGmQ1VILVMeBGqwAJn6-er3C3YsMI,10338
34
34
  runwayml/resources/video_to_video.py,sha256=Obl7vrfwgcRC9bWUylVWVYc3r99aJt0I7NHhuhPvPus,10121
35
35
  runwayml/resources/video_upscale.py,sha256=8Mz_g5Swxmgp14jfcfexurUYpPi73q_iU-9D1jOddt0,7691
36
36
  runwayml/types/__init__.py,sha256=ve_d68f-Qs6UW9hflrdvex1pyi7yvo3afYNsqq__6sY,1572
@@ -38,17 +38,17 @@ runwayml/types/character_performance_create_params.py,sha256=TYmR-YCK8_4fomSoqtC
38
38
  runwayml/types/character_performance_create_response.py,sha256=QIJUfqWraZTJmX67zu3VQevBoFxDPmUh74C-_EelHy8,280
39
39
  runwayml/types/image_to_video_create_params.py,sha256=6M_xJRx0ws8nQ0a3k3jEICDm-WXJUG9j-j1UIxAAg-s,2869
40
40
  runwayml/types/image_to_video_create_response.py,sha256=WvZHbZxxJz8KerRNogzb1RYBrxa1x0iCPDi9-LCpHyE,345
41
- runwayml/types/organization_retrieve_response.py,sha256=1uyOoDEhLP9Zk1bIhXWcKHw0cWAF4qqEPyjPD_SV4m4,6019
41
+ runwayml/types/organization_retrieve_response.py,sha256=lq6QVzkOl77unf-TFOAoUxclSAW-7QC-Bu3NlvwXjz4,6905
42
42
  runwayml/types/organization_retrieve_usage_params.py,sha256=vF5GUqaDqY1x6W2RzJ923jspuZyoNgCUaoLI3mW25zg,999
43
- runwayml/types/organization_retrieve_usage_response.py,sha256=vDniY6WSmq-6EZXjjO4gd_i0spKlwYczZkWOVxqOnq8,1132
43
+ runwayml/types/organization_retrieve_usage_response.py,sha256=yHqBM1EknT2Sb_04eCBRnLoHgZeo8wph4t6Dy6aZYMs,1186
44
44
  runwayml/types/task_retrieve_response.py,sha256=v8y2bLxsW6srzScW-B3Akv72q_PI_NQmduGrGRQMHds,2139
45
- runwayml/types/text_to_image_create_params.py,sha256=Bhsz0lZl-Cy9ANTDHdKi45UzkthTzzCK1K0OP2KbmQE,2811
45
+ runwayml/types/text_to_image_create_params.py,sha256=Uk3-aCu8LhlmsYpFXBfw5wUAzNFDbjBVnLWoRTu2esQ,2857
46
46
  runwayml/types/text_to_image_create_response.py,sha256=koMzUg82dYFQPp77wln3UR1z8WO2sHCNMWGgoQ9Id8M,262
47
47
  runwayml/types/video_to_video_create_params.py,sha256=0qfsIDlcTpqn9eiY-7X0J1NuDQMYzsLu-e_fmKhNljU,2357
48
48
  runwayml/types/video_to_video_create_response.py,sha256=CXgAUmnPIZOxCW_macIBPOC8MZYQpq9a5_jteSkeBt8,264
49
49
  runwayml/types/video_upscale_create_params.py,sha256=Ta3BNQy9aeTUBU5Ui-CMJtF32HeNRqbNpqjAAOKXyks,743
50
50
  runwayml/types/video_upscale_create_response.py,sha256=zf-79HbJa68dUHltBiZjVtnW_U6HUI-htmkTm5URBSU,264
51
- runwayml-3.9.0.dist-info/METADATA,sha256=WNjEzurZ74HRf8sbEoptRl6QWtZwNzSTgC7nUdwSHEM,15157
52
- runwayml-3.9.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
53
- runwayml-3.9.0.dist-info/licenses/LICENSE,sha256=baeFj6izBWIm6A5_7N3-WAsy_VYpDF05Dd4zS1zsfZI,11338
54
- runwayml-3.9.0.dist-info/RECORD,,
51
+ runwayml-3.10.1.dist-info/METADATA,sha256=RfAePyPhUwlibCBEoSroF4sA10wsKJ_8sRNBpmheBQ4,15158
52
+ runwayml-3.10.1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
53
+ runwayml-3.10.1.dist-info/licenses/LICENSE,sha256=baeFj6izBWIm6A5_7N3-WAsy_VYpDF05Dd4zS1zsfZI,11338
54
+ runwayml-3.10.1.dist-info/RECORD,,