Retrieve a video
package main
import (
"context"
"fmt"
"github.com/openai/openai-go"
)
func main() {
client := openai.NewClient()
video, err := client.Videos.Get(context.TODO(), "video_123")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", video.ID)
}
{
"id": "video_123",
"object": "video",
"model": "sora-2",
"status": "queued",
"progress": 0,
"created_at": 1712697600,
"completed_at": null,
"error": null,
"expires_at": null,
"prompt": "A calico cat playing a piano on stage",
"remixed_from_video_id": null,
"size": "720x1280",
"seconds": "4"
}
Returns Examples
{
"id": "video_123",
"object": "video",
"model": "sora-2",
"status": "queued",
"progress": 0,
"created_at": 1712697600,
"completed_at": null,
"error": null,
"expires_at": null,
"prompt": "A calico cat playing a piano on stage",
"remixed_from_video_id": null,
"size": "720x1280",
"seconds": "4"
}