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
| Parameter | Type | Required | Description |
|---|---|---|---|
| task_id | string | Yes | Video 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
| Field | Type | Description |
|---|---|---|
| id | string | Video task ID |
| url | string | Video URL |
| expires_at | integer | URL expiration timestamp |
| status | string | URL status |
Success Response Example (200)
json
{
"id": "video_68f082321ed08193a4eaf01376fa10bc0284bd663de64dc5",
"url": "https://cdn.example.com/videos/video_68f082321ed08193a4eaf01376fa10bc0284bd663de64dc5.mp4",
"expires_at": 1760596106,
"status": "ready"
}