Async API Reference
Request and response description.
Last updated
Request and response description.
Last updated
This endpoint is asynchronous, it returns a response without waiting for an actual result. The actual result should be queried with another request. So you can request Image to Video generation and separately get the result after it's ready. See and to learn about request data.
Request
Once you have made the request to https://api.claid.ai/v1/video/generate
you will get a response with information about request status and some other details (listed below).
Request information shown in the response:
id
integer
Task ID.
status
string
Request processing status. For a valid request can only have one value: PROCESSING
.
result_url
string
URL of GET endpoint that can be used to get the result manually and get request status while it is still in process.
created_at
string
Exact time when the processing was requested.
request
object
The body of the request that was used for processing.
To get the result, you need to know the ID of the processing request. Or you can take a ready-to-use link from the result_url
property of the response body described above.
Once you have made the request to https://api.claid.ai/v1/video/generate/<task_id>
you will get a response with information about the status of your request. As soon as the processing is done, output video data will appear in the response.
Response data:
id
integer
Task ID.
status
string
Request processing status. Can have values: PROCESSING
, ERROR
, DONE
.
created_at
string
Exact time when the processing was requested.
request
object
The body of the request that was used for processing.
errors
list
List of errors, if any are occurred during image processing (status
will have ERROR
value), in other cases - will be empty.
result
object
Result object that is contain 2 properties input_object
and output_object
, in case of processing errors - will be empty. Details are listed below.
Video data shown in the response at data.result.output_object
:
ext
string
File extension. Will have mp4
value
mime
string
MIME type (also known as ‘media type’)
format
string
File format. Will have mp4
value
tmp_url
string
Temporary URL of a processed video. Will be empty if output
is specified
object_key
string
Video file path on the bucket. Will be empty if output
is not specified
object_bucket
string
Bucket where the video file is saved. Will be empty if output
is not specified
object_uri
string
S3/GCS video file identifier. Will be empty if output
is not specified
claid_storage_uri
string
Claid Storage file identifier. Will be empty if output
is not specified
errors
property item data:
error
string
Error message in text.
created_at
string
Exact time when the error was catched.
Response body
See the and to learn about headers.
See the and to learn about headers.
Get the status of the animation generation task
Generate an animation asynchronously
Customize the result output.
URL of the input image. Should be from 1 to 512 characters. Image must be accessible by our system.
storage://storage_1/path/image.jpg
Customize the video.