Get video task status
GET
/v1/videos/{task_id}
package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://api.mirapi.ai/v1/videos/sora-2-123456"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}const url = 'https://api.mirapi.ai/v1/videos/sora-2-123456';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.mirapi.ai/v1/videos/sora-2-123456 \ --header 'Authorization: Bearer <token>'OpenAI-compatible endpoint for querying video task status.
Returns detailed status information for the video task.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”task_id
required
string
Video task ID
Example
sora-2-123456Responses
Section titled “Responses”Video task status returned
Media typeapplication/json
object
id
required
string
object
required
string
model
required
string
status
required
string
progress
required
integer
created_at
required
integer
seconds
required
string
Example
{ "id": "sora-2-123456", "object": "video", "model": "sora-2", "status": "queued", "progress": 0, "created_at": 1764347090922, "seconds": "8"}Task not found
Media typeapplication/json
object
error
object
message
Error message
string
type
Error type
string
param
Related parameter
string
code
Error code
string
Examplegenerated
{ "error": { "message": "example", "type": "example", "param": "example", "code": "example" }}