Video Generation
Authentication
Get a key from https://api.solvid.xyz (coming soon)
Use the key as Bearer token to call any of the API endpoints
Authorization: Bearer <solvid_api_key>
API Reference
Text to Video
shell
curl --request POST \
--url https://api.solvid.xyz/dream-machine/v1/generations \
--header 'accept: application/json' \
--header 'authorization: Bearer luma-xxxx' \
--header 'content-type: application/json' \
--data '
{
"prompt": "an old lady laughing underwater, wearing a scuba diving suit"
}
'Downloading a video
Shell
With loop, aspect ratio
Shell
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
Shell
With start frame, loop, aspect ratio
Shell
With ending frame
Shell
With start and end keyframes
Shell
Extend Video
Extend video
Extend is currently supported only for generated videos. Please make sure the generation is in
completedstate before passing it
Shell
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
Shell
List all generations
Shell
Delete generation
Shell
Camera Motions
📘How to use camera motionJust add the camera motion value as part of prompt itself
Get all supported camera motions
Shell
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.
Example Response
Shell
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
Shell
Last updated