Video Generation
Installation
Python
pip install solvidAuthentication
Get a key from https://api.solvid.xyz (coming soon)
Pass it to client sdk by either
setting
SOLVID_API_KEYor passing
auth_tokento 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 URLYou 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
completedstate 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
completedstate 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
completedstate 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
completedstate before passing it
Python
Interpolate between 2 videos
Interpolate is currently supported only for generated videos. Please make sure the generation is in
completedstate before passing it
Python
Generations
Get generation with id
Python
List all generations
Python
Delete generation
Python
Camera Motions
📘How to use camera motionJust 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
POSTendpoint you can pass, and request body will have the generation object in itIt 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