curl --request GET \
--url 'https://api.elkapi.com/v1/videos/task_1234567890/content' \
--header 'Authorization: Bearer <token>'
import requests
url = "https://api.elkapi.com/v1/videos/task_1234567890/content"
headers = {
"Authorization": "Bearer <token>"
}
response = requests.request("GET", url, headers=headers)
print(response.json())
const url = "https://api.elkapi.com/v1/videos/task_1234567890/content";
const headers = {
"Authorization": "Bearer <token>"
};
const response = await fetch(url, { method: "GET", headers });
console.log(await response.json());
"string"
{
"error": {
"message": "message",
"type": "type",
"param": "param",
"code": "code"
}
}
Sora 형식
비디오 콘텐츠 가져오기
- 완료된 비디오 작업의 비디오 파일 콘텐츠를 가져옵니다.
- 이 엔드포인트는 비디오 파일 스트림을 프록시해 반환합니다.
GET
/
v1
/
videos
/
{task_id}
/
content
curl --request GET \
--url 'https://api.elkapi.com/v1/videos/task_1234567890/content' \
--header 'Authorization: Bearer <token>'
import requests
url = "https://api.elkapi.com/v1/videos/task_1234567890/content"
headers = {
"Authorization": "Bearer <token>"
}
response = requests.request("GET", url, headers=headers)
print(response.json())
const url = "https://api.elkapi.com/v1/videos/task_1234567890/content";
const headers = {
"Authorization": "Bearer <token>"
};
const response = await fetch(url, { method: "GET", headers });
console.log(await response.json());
"string"
{
"error": {
"message": "message",
"type": "type",
"param": "param",
"code": "code"
}
}
curl --request GET \
--url 'https://api.elkapi.com/v1/videos/task_1234567890/content' \
--header 'Authorization: Bearer <token>'
import requests
url = "https://api.elkapi.com/v1/videos/task_1234567890/content"
headers = {
"Authorization": "Bearer <token>"
}
response = requests.request("GET", url, headers=headers)
print(response.json())
const url = "https://api.elkapi.com/v1/videos/task_1234567890/content";
const headers = {
"Authorization": "Bearer <token>"
};
const response = await fetch(url, { method: "GET", headers });
console.log(await response.json());
"string"
{
"error": {
"message": "message",
"type": "type",
"param": "param",
"code": "code"
}
}
Authorizations
string
필수
모든 엔드포인트는 Bearer Token 인증이 필요합니다.요청 헤더에 추가하세요:
Authorization: Bearer YOUR_API_KEY
Path Parameters
string
필수
비디오 작업 ID
⌘I