Video Generation

Installation

Python

pip install solvid

Authentication

  1. Get a key from https://api.solvid.xyz (coming soon)

  2. Pass it to client sdk by either

    1. setting SOLVID_API_KEY

    2. or passing auth_token to the client

Setting up client

Using SOLVID_API_KEY env variable

Python

from solvid import SolVid

client = SolVid()

Using auth_token parameter

Python

How do I get the video for a generation?

  • Right now the only supported way is via polling

  • The create endpoint returns an id which is an UUID V4

  • You can use it to poll for updates (you can see the video at generation.assets.video)

Usage Example

Python

Async library

Import and use AsyncSolvid

Python

For all the functions add await (eg. below)

Python

Text to Video

Python

Downloading a video

Python

With loop, aspect ratio

Python

Image to Video

☁️Image URL

You should upload and use your own cdn image urls, currently this is the only way to pass an image

With start frame

Python

With start frame, loop

Python

With ending frame

Python

With start and end keyframes

Python

Extend Video

Extend video

Extend is currently supported only for generated videos. Please make sure the generation is in completed state before passing it

Python

Reverse extend video

Generate video leading up to the provided video.

Extend is currently supported only for generated videos. Please make sure the generation is in completed state before passing it

Python

Extend a video with an end-frame

Extend is currently supported only for generated videos. Please make sure the generation is in completed state before passing it

Python

Reverse extend a video with a start-frame

Extend is currently supported only for generated videos. Please make sure the generation is in completed state before passing it

Python

Interpolate between 2 videos

Interpolate is currently supported only for generated videos. Please make sure the generation is in completed state before passing it

Python

Generations

Get generation with id

Python

List all generations

Python

Delete generation

Python

Camera Motions

📘How to use camera motion

Just add the camera motion value as part of prompt itself

Get all supported camera motions

Python

How to use camera motion

Camera is controlled by language in Dream Machine. You can find supported camera moves by calling the Camera Motions endpoint. This will return an array of supported camera motion strings (like "camera orbit left") which can be used in prompts. In addition to these exact strings, syntactically similar phrases also work, though there can be mismatches sometimes.

How to get a callback when generation has an update

  • It will get status updates (dreaming/completed/failed)

  • It will also get the video url as part of it when completed

  • It's a POST endpoint you can pass, and request body will have the generation object in it

  • It expected to be called multiple times for a status

  • If the endpoint returns a status code other than 200, it will be retried max 3 times with 100ms delay and the request has a 5s timeout

example

Python

Last updated