Gemini Omni 1.1 VIP
curl --request POST \
--url https://toapis.com/v1/videos \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"prompt": "<string>",
"duration": 123,
"resolution": "<string>",
"aspect_ratio": "<string>",
"image_urls": [
"<string>"
],
"generation_type": "<string>",
"video_urls": [
"<string>"
]
}
'import requests
url = "https://toapis.com/v1/videos"
payload = {
"model": "<string>",
"prompt": "<string>",
"duration": 123,
"resolution": "<string>",
"aspect_ratio": "<string>",
"image_urls": ["<string>"],
"generation_type": "<string>",
"video_urls": ["<string>"]
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: '<string>',
prompt: '<string>',
duration: 123,
resolution: '<string>',
aspect_ratio: '<string>',
image_urls: ['<string>'],
generation_type: '<string>',
video_urls: ['<string>']
})
};
fetch('https://toapis.com/v1/videos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://toapis.com/v1/videos",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => '<string>',
'prompt' => '<string>',
'duration' => 123,
'resolution' => '<string>',
'aspect_ratio' => '<string>',
'image_urls' => [
'<string>'
],
'generation_type' => '<string>',
'video_urls' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://toapis.com/v1/videos"
payload := strings.NewReader("{\n \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"image_urls\": [\n \"<string>\"\n ],\n \"generation_type\": \"<string>\",\n \"video_urls\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://toapis.com/v1/videos")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"image_urls\": [\n \"<string>\"\n ],\n \"generation_type\": \"<string>\",\n \"video_urls\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://toapis.com/v1/videos")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"image_urls\": [\n \"<string>\"\n ],\n \"generation_type\": \"<string>\",\n \"video_urls\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "vid_example",
"object": "generation.task",
"model": "gemini-omni-1.1-flash-preview-vip",
"status": "queued",
"created_at": 1789600000
}
Gemini Omni Flash
Gemini Omni 1.1 VIP
VIP는 텍스트, 이미지 및 참조 영상 입력을 지원합니다. 4 / 6 / 8 / 10초와 360p / 720p / 1080p / 4k를 선택하며 기본은 6초 / 720p입니다. 참조 영상이 있으면 길이를 생략합니다.
POST
/
v1
/
videos
Gemini Omni 1.1 VIP
curl --request POST \
--url https://toapis.com/v1/videos \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"prompt": "<string>",
"duration": 123,
"resolution": "<string>",
"aspect_ratio": "<string>",
"image_urls": [
"<string>"
],
"generation_type": "<string>",
"video_urls": [
"<string>"
]
}
'import requests
url = "https://toapis.com/v1/videos"
payload = {
"model": "<string>",
"prompt": "<string>",
"duration": 123,
"resolution": "<string>",
"aspect_ratio": "<string>",
"image_urls": ["<string>"],
"generation_type": "<string>",
"video_urls": ["<string>"]
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: '<string>',
prompt: '<string>',
duration: 123,
resolution: '<string>',
aspect_ratio: '<string>',
image_urls: ['<string>'],
generation_type: '<string>',
video_urls: ['<string>']
})
};
fetch('https://toapis.com/v1/videos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://toapis.com/v1/videos",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => '<string>',
'prompt' => '<string>',
'duration' => 123,
'resolution' => '<string>',
'aspect_ratio' => '<string>',
'image_urls' => [
'<string>'
],
'generation_type' => '<string>',
'video_urls' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://toapis.com/v1/videos"
payload := strings.NewReader("{\n \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"image_urls\": [\n \"<string>\"\n ],\n \"generation_type\": \"<string>\",\n \"video_urls\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://toapis.com/v1/videos")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"image_urls\": [\n \"<string>\"\n ],\n \"generation_type\": \"<string>\",\n \"video_urls\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://toapis.com/v1/videos")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"image_urls\": [\n \"<string>\"\n ],\n \"generation_type\": \"<string>\",\n \"video_urls\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "vid_example",
"object": "generation.task",
"model": "gemini-omni-1.1-flash-preview-vip",
"status": "queued",
"created_at": 1789600000
}
VIP는 텍스트, 이미지 및 참조 영상 입력을 지원합니다. 4 / 6 / 8 / 10초와 360p / 720p / 1080p / 4k를 선택하며 기본은 6초 / 720p입니다. 참조 영상이 있으면 길이를 생략합니다.
일반 | Official 문서
플랫폼 API Key를 사용하세요. 중국 본토에서는 https://toapis.cn을 사용할 수 있습니다.
요청 매개변수
string
필수
Bearer YOUR_API_KEYstring
필수
gemini-omni-1.1-flash-preview-vipstring
필수
필수 동영상 설명.
integer
기본값:"6"
VIP는 4 / 6 / 8 / 10초, 기본 6초. video_urls가 있으면 duration과 seconds를 생략합니다.
string
기본값:"720p"
VIP는 360p / 720p / 1080p / 4k, 기본 720p. 대소문자를 구분하지 않습니다.
string
기본값:"16:9"
16:9 또는 9:16, 기본 16:9.
string[]
VIP frame은 1개, reference는 1개 또는 3개. 시작 및 끝 이미지 2개는 지원하지 않습니다. 이미지가 없으면 generation_type을 생략합니다.
string
VIP 전용. frame은 첫 프레임, reference는 참조 이미지. 생략하면 이미지 1개는 frame, 3개는 reference입니다.
string[]
VIP 전용, 공개 HTTP(S) 영상 URL 최대 1개. 이미지와 함께 사용 가능합니다. 길이는 원본 영상을 따르며 duration과 seconds를 생략합니다.
로컬 미디어는 먼저 업로드하여 공개 URL을 얻습니다. base64나 로컬 경로를 보내지 마세요.
요청 예시
- VIP
- VIP VIDREF
curl https://toapis.com/v1/videos \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "gemini-omni-1.1-flash-preview-vip",
"prompt": "A cinematic tracking shot through a sunlit city",
"duration": 8,
"resolution": "360p",
"aspect_ratio": "9:16",
"generation_type": "reference",
"image_urls": [
"https://example.com/a.png",
"https://example.com/b.png",
"https://example.com/c.png"
]
}'
curl https://toapis.com/v1/videos \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "gemini-omni-1.1-flash-preview-vip",
"prompt": "The same scene at night with neon lights",
"resolution": "4k",
"aspect_ratio": "16:9",
"generation_type": "reference",
"image_urls": ["https://example.com/image.png"],
"video_urls": ["https://example.com/video.mp4"]
}'
결과 조회
반환된 id는 플랫폼 작업 ID입니다. GET /v1/videos/로 완료 결과를 조회합니다. 공급업체 task_id나 조회 API는 사용하지 않습니다.curl https://toapis.com/v1/videos/YOUR_TASK_ID \
-H 'Authorization: Bearer YOUR_API_KEY'
{
"id": "vid_example",
"object": "generation.task",
"model": "gemini-omni-1.1-flash-preview-vip",
"status": "queued",
"created_at": 1789600000
}