# Docs for v2 can be found by changing the above selector ^
from together import Together
import os
client = Together(
api_key=os.environ.get("TOGETHER_API_KEY"),
)
response = client.videos.retrieve(video_id)
print(response.id){
"id": "<string>",
"model": "<string>",
"status": "in_progress",
"created_at": 123,
"size": "<string>",
"seconds": "<string>",
"object": "video",
"completed_at": 123,
"error": {
"message": "<string>",
"code": "<string>"
},
"outputs": {
"cost": 123,
"video_url": "<string>"
}
}Fetch video metadata
# Docs for v2 can be found by changing the above selector ^
from together import Together
import os
client = Together(
api_key=os.environ.get("TOGETHER_API_KEY"),
)
response = client.videos.retrieve(video_id)
print(response.id){
"id": "<string>",
"model": "<string>",
"status": "in_progress",
"created_at": 123,
"size": "<string>",
"seconds": "<string>",
"object": "video",
"completed_at": 123,
"error": {
"message": "<string>",
"code": "<string>"
},
"outputs": {
"cost": 123,
"video_url": "<string>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Identifier of video from create response.
Success
Structured information describing a generated video job.
Unique identifier for the video job.
The video generation model that produced the job.
Current lifecycle status of the video job.
in_progress, completed, failed Unix timestamp (seconds) for when the job was created.
The resolution of the generated video.
Duration of the generated clip in seconds.
The object type, which is always video.
video Unix timestamp (seconds) for when the job completed, if finished.
Error payload that explains why generation failed, if applicable.
Show child attributes
Available upon completion, the outputs provides the cost charged and the hosted url to access the video
Show child attributes
Was this page helpful?