module pixeltable.functions.runwayml
Pixeltable UDFs that wrap various endpoints from the RunwayML API. In order to use them, you must firstpip install runwayml and configure your RunwayML credentials by setting the RUNWAYML_API_SECRET environment
variable.
udf image_to_video()
Signature
pip install runwayml
prompt_image(pxt.Image): Input image to use as the first frame.model(pxt.String): The model to use.ratio(pxt.String): Aspect ratio of the generated video.prompt_text(pxt.String | None): Text description to guide generation.duration(pxt.Int | None): Duration in seconds.seed(pxt.Int | None): Seed for reproducibility.audio(pxt.Bool | None): Whether to generate audio.model_kwargs(pxt.Json | None): Additional API parameters.
pxt.Json: A dictionary containing the response and metadata.
udf text_to_image()
Signature
pip install runwayml
prompt_text(pxt.String): Text description of the image to generate.reference_images(pxt.Json): List of 1-3 reference images.model(pxt.String): The model to use.ratio(pxt.String): Aspect ratio of the generated image.seed(pxt.Int | None): Seed for reproducibility.model_kwargs(pxt.Json | None): Additional API parameters.
pxt.Json: A dictionary containing the response and metadata.
udf text_to_video()
Signature
pip install runwayml
prompt_text(pxt.String): Text description of the video to generate.model(pxt.String): The model to use.ratio(pxt.String): Aspect ratio of the generated video.duration(pxt.Int | None): Duration in seconds.audio(pxt.Bool | None): Whether to generate audio.model_kwargs(pxt.Json | None): Additional API parameters.
pxt.Json: A dictionary containing the response and metadata.
udf video_to_video()
Signature
pip install runwayml
video_uri(pxt.String): HTTPS URL to the input video.prompt_text(pxt.String): Text description of the transformation.model(pxt.String): The model to use.ratio(pxt.String): Aspect ratio of the output video.seed(pxt.Int | None): Seed for reproducibility.model_kwargs(pxt.Json | None): Additional API parameters.
pxt.Json: A dictionary containing the response and metadata.