Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 65
configured_endpoints: 67
24 changes: 24 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,30 @@ Methods:

- <code title="post /v1/text_to_image">client.text_to_image.<a href="./src/runwayml/resources/text_to_image.py">create</a>(\*\*<a href="src/runwayml/types/text_to_image_create_params.py">params</a>) -> <a href="./src/runwayml/types/text_to_image_create_response.py">TextToImageCreateResponse</a></code>

# ImageToVector

Types:

```python
from runwayml.types import ImageToVectorCreateResponse
```

Methods:

- <code title="post /v1/image_to_vector">client.image_to_vector.<a href="./src/runwayml/resources/image_to_vector.py">create</a>(\*\*<a href="src/runwayml/types/image_to_vector_create_params.py">params</a>) -> <a href="./src/runwayml/types/image_to_vector_create_response.py">ImageToVectorCreateResponse</a></code>

# TextToMusic

Types:

```python
from runwayml.types import TextToMusicCreateResponse
```

Methods:

- <code title="post /v1/text_to_music">client.text_to_music.<a href="./src/runwayml/resources/text_to_music.py">create</a>(\*\*<a href="src/runwayml/types/text_to_music_create_params.py">params</a>) -> <a href="./src/runwayml/types/text_to_music_create_response.py">TextToMusicCreateResponse</a></code>

# CharacterPerformance

Types:
Expand Down
88 changes: 88 additions & 0 deletions src/runwayml/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,15 @@
avatar_videos,
image_upscale,
text_to_image,
text_to_music,
text_to_video,
video_upscale,
voice_dubbing,
image_to_video,
text_to_speech,
video_to_audio,
video_to_video,
image_to_vector,
voice_isolation,
speech_to_speech,
realtime_sessions,
Expand All @@ -78,13 +80,15 @@
from .resources.avatar_videos import AvatarVideosResource, AsyncAvatarVideosResource
from .resources.image_upscale import ImageUpscaleResource, AsyncImageUpscaleResource
from .resources.text_to_image import TextToImageResource, AsyncTextToImageResource
from .resources.text_to_music import TextToMusicResource, AsyncTextToMusicResource
from .resources.text_to_video import TextToVideoResource, AsyncTextToVideoResource
from .resources.video_upscale import VideoUpscaleResource, AsyncVideoUpscaleResource
from .resources.voice_dubbing import VoiceDubbingResource, AsyncVoiceDubbingResource
from .resources.image_to_video import ImageToVideoResource, AsyncImageToVideoResource
from .resources.text_to_speech import TextToSpeechResource, AsyncTextToSpeechResource
from .resources.video_to_audio import VideoToAudioResource, AsyncVideoToAudioResource
from .resources.video_to_video import VideoToVideoResource, AsyncVideoToVideoResource
from .resources.image_to_vector import ImageToVectorResource, AsyncImageToVectorResource
from .resources.voice_isolation import VoiceIsolationResource, AsyncVoiceIsolationResource
from .resources.speech_to_speech import SpeechToSpeechResource, AsyncSpeechToSpeechResource
from .resources.generate.generate import GenerateResource, AsyncGenerateResource
Expand Down Expand Up @@ -231,6 +235,20 @@ def text_to_image(self) -> TextToImageResource:

return TextToImageResource(self)

@cached_property
def image_to_vector(self) -> ImageToVectorResource:
"""These endpoints all kick off tasks to create generations."""
from .resources.image_to_vector import ImageToVectorResource

return ImageToVectorResource(self)

@cached_property
def text_to_music(self) -> TextToMusicResource:
"""These endpoints all kick off tasks to create generations."""
from .resources.text_to_music import TextToMusicResource

return TextToMusicResource(self)

@cached_property
def character_performance(self) -> CharacterPerformanceResource:
"""These endpoints all kick off tasks to create generations."""
Expand Down Expand Up @@ -600,6 +618,20 @@ def text_to_image(self) -> AsyncTextToImageResource:

return AsyncTextToImageResource(self)

@cached_property
def image_to_vector(self) -> AsyncImageToVectorResource:
"""These endpoints all kick off tasks to create generations."""
from .resources.image_to_vector import AsyncImageToVectorResource

return AsyncImageToVectorResource(self)

@cached_property
def text_to_music(self) -> AsyncTextToMusicResource:
"""These endpoints all kick off tasks to create generations."""
from .resources.text_to_music import AsyncTextToMusicResource

return AsyncTextToMusicResource(self)

@cached_property
def character_performance(self) -> AsyncCharacterPerformanceResource:
"""These endpoints all kick off tasks to create generations."""
Expand Down Expand Up @@ -905,6 +937,20 @@ def text_to_image(self) -> text_to_image.TextToImageResourceWithRawResponse:

return TextToImageResourceWithRawResponse(self._client.text_to_image)

@cached_property
def image_to_vector(self) -> image_to_vector.ImageToVectorResourceWithRawResponse:
"""These endpoints all kick off tasks to create generations."""
from .resources.image_to_vector import ImageToVectorResourceWithRawResponse

return ImageToVectorResourceWithRawResponse(self._client.image_to_vector)

@cached_property
def text_to_music(self) -> text_to_music.TextToMusicResourceWithRawResponse:
"""These endpoints all kick off tasks to create generations."""
from .resources.text_to_music import TextToMusicResourceWithRawResponse

return TextToMusicResourceWithRawResponse(self._client.text_to_music)

@cached_property
def character_performance(self) -> character_performance.CharacterPerformanceResourceWithRawResponse:
"""These endpoints all kick off tasks to create generations."""
Expand Down Expand Up @@ -1095,6 +1141,20 @@ def text_to_image(self) -> text_to_image.AsyncTextToImageResourceWithRawResponse

return AsyncTextToImageResourceWithRawResponse(self._client.text_to_image)

@cached_property
def image_to_vector(self) -> image_to_vector.AsyncImageToVectorResourceWithRawResponse:
"""These endpoints all kick off tasks to create generations."""
from .resources.image_to_vector import AsyncImageToVectorResourceWithRawResponse

return AsyncImageToVectorResourceWithRawResponse(self._client.image_to_vector)

@cached_property
def text_to_music(self) -> text_to_music.AsyncTextToMusicResourceWithRawResponse:
"""These endpoints all kick off tasks to create generations."""
from .resources.text_to_music import AsyncTextToMusicResourceWithRawResponse

return AsyncTextToMusicResourceWithRawResponse(self._client.text_to_music)

@cached_property
def character_performance(self) -> character_performance.AsyncCharacterPerformanceResourceWithRawResponse:
"""These endpoints all kick off tasks to create generations."""
Expand Down Expand Up @@ -1285,6 +1345,20 @@ def text_to_image(self) -> text_to_image.TextToImageResourceWithStreamingRespons

return TextToImageResourceWithStreamingResponse(self._client.text_to_image)

@cached_property
def image_to_vector(self) -> image_to_vector.ImageToVectorResourceWithStreamingResponse:
"""These endpoints all kick off tasks to create generations."""
from .resources.image_to_vector import ImageToVectorResourceWithStreamingResponse

return ImageToVectorResourceWithStreamingResponse(self._client.image_to_vector)

@cached_property
def text_to_music(self) -> text_to_music.TextToMusicResourceWithStreamingResponse:
"""These endpoints all kick off tasks to create generations."""
from .resources.text_to_music import TextToMusicResourceWithStreamingResponse

return TextToMusicResourceWithStreamingResponse(self._client.text_to_music)

@cached_property
def character_performance(self) -> character_performance.CharacterPerformanceResourceWithStreamingResponse:
"""These endpoints all kick off tasks to create generations."""
Expand Down Expand Up @@ -1475,6 +1549,20 @@ def text_to_image(self) -> text_to_image.AsyncTextToImageResourceWithStreamingRe

return AsyncTextToImageResourceWithStreamingResponse(self._client.text_to_image)

@cached_property
def image_to_vector(self) -> image_to_vector.AsyncImageToVectorResourceWithStreamingResponse:
"""These endpoints all kick off tasks to create generations."""
from .resources.image_to_vector import AsyncImageToVectorResourceWithStreamingResponse

return AsyncImageToVectorResourceWithStreamingResponse(self._client.image_to_vector)

@cached_property
def text_to_music(self) -> text_to_music.AsyncTextToMusicResourceWithStreamingResponse:
"""These endpoints all kick off tasks to create generations."""
from .resources.text_to_music import AsyncTextToMusicResourceWithStreamingResponse

return AsyncTextToMusicResourceWithStreamingResponse(self._client.text_to_music)

@cached_property
def character_performance(self) -> character_performance.AsyncCharacterPerformanceResourceWithStreamingResponse:
"""These endpoints all kick off tasks to create generations."""
Expand Down
28 changes: 28 additions & 0 deletions src/runwayml/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@
TextToImageResourceWithStreamingResponse,
AsyncTextToImageResourceWithStreamingResponse,
)
from .text_to_music import (
TextToMusicResource,
AsyncTextToMusicResource,
TextToMusicResourceWithRawResponse,
AsyncTextToMusicResourceWithRawResponse,
TextToMusicResourceWithStreamingResponse,
AsyncTextToMusicResourceWithStreamingResponse,
)
from .text_to_video import (
TextToVideoResource,
AsyncTextToVideoResource,
Expand Down Expand Up @@ -176,6 +184,14 @@
VideoToVideoResourceWithStreamingResponse,
AsyncVideoToVideoResourceWithStreamingResponse,
)
from .image_to_vector import (
ImageToVectorResource,
AsyncImageToVectorResource,
ImageToVectorResourceWithRawResponse,
AsyncImageToVectorResourceWithRawResponse,
ImageToVectorResourceWithStreamingResponse,
AsyncImageToVectorResourceWithStreamingResponse,
)
from .voice_isolation import (
VoiceIsolationResource,
AsyncVoiceIsolationResource,
Expand Down Expand Up @@ -268,6 +284,18 @@
"AsyncTextToImageResourceWithRawResponse",
"TextToImageResourceWithStreamingResponse",
"AsyncTextToImageResourceWithStreamingResponse",
"ImageToVectorResource",
"AsyncImageToVectorResource",
"ImageToVectorResourceWithRawResponse",
"AsyncImageToVectorResourceWithRawResponse",
"ImageToVectorResourceWithStreamingResponse",
"AsyncImageToVectorResourceWithStreamingResponse",
"TextToMusicResource",
"AsyncTextToMusicResource",
"TextToMusicResourceWithRawResponse",
"AsyncTextToMusicResourceWithRawResponse",
"TextToMusicResourceWithStreamingResponse",
"AsyncTextToMusicResourceWithStreamingResponse",
"CharacterPerformanceResource",
"AsyncCharacterPerformanceResource",
"CharacterPerformanceResourceWithRawResponse",
Expand Down
Loading
Loading