Skip to content

Get Video URL

Sora video URL retrieval API for obtaining the final playback/download URL of a specified video task.


Overview

  • Method: GET
  • Path: /v1/videos/{task_id}/content
  • Content-Type: application/json
  • Category: Video Models (Video) / Sora Video

Authentication

  • Header: Authorization: Bearer <token>

Path Parameters

ParameterTypeRequiredDescription
task_idstringYesVideo task ID

Request Example

curl Example

bash
curl -X GET "https://api.gpt.ge/v1/videos/your_task_id/content" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $YOUR_TOKEN"

JavaScript (fetch) Example

javascript
fetch('https://api.gpt.ge/v1/videos/your_task_id/content', {
  method: 'GET',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer YOUR_TOKEN'
  }
})
  .then(res => res.json())
  .then(console.log)

Python Example (requests)

python
import requests

resp = requests.get(
    'https://api.gpt.ge/v1/videos/your_task_id/content',
    headers={
        'Content-Type': 'application/json',
        'Authorization': 'Bearer YOUR_TOKEN'
    }
)
print(resp.json())

Response Fields

FieldTypeDescription
idstringVideo task ID
urlstringVideo URL
expires_atintegerURL expiration timestamp
statusstringURL status

Success Response Example (200)

json
{
  "id": "video_68f082321ed08193a4eaf01376fa10bc0284bd663de64dc5",
  "url": "https://cdn.example.com/videos/video_68f082321ed08193a4eaf01376fa10bc0284bd663de64dc5.mp4",
  "expires_at": 1760596106,
  "status": "ready"
}