Expand video prompt
curl --request POST \
--url https://api.mountsea.ai/gemini/video/prompt/expand \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "a group of pigs flying in the sky"
}
'import requests
url = "https://api.mountsea.ai/gemini/video/prompt/expand"
payload = { "prompt": "a group of pigs flying in the sky" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({prompt: 'a group of pigs flying in the sky'})
};
fetch('https://api.mountsea.ai/gemini/video/prompt/expand', 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://api.mountsea.ai/gemini/video/prompt/expand",
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([
'prompt' => 'a group of pigs flying in the sky'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.mountsea.ai/gemini/video/prompt/expand"
payload := strings.NewReader("{\n \"prompt\": \"a group of pigs flying in the sky\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.mountsea.ai/gemini/video/prompt/expand")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"a group of pigs flying in the sky\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mountsea.ai/gemini/video/prompt/expand")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"a group of pigs flying in the sky\"\n}"
response = http.request(request)
puts response.read_body{
"originalPrompt": "a group of pigs flying in the sky",
"expandedPrompt": "## Living Diorama Scene: Swine Ascent\n\n**Scene:** A trio of miniature pigs..."
}视频 (Veo / Omni)
扩展视频提示词
Expands a simple video prompt into a detailed, cinematic description. This is a synchronous operation that returns the expanded prompt directly.
POST
/
gemini
/
video
/
prompt
/
expand
Expand video prompt
curl --request POST \
--url https://api.mountsea.ai/gemini/video/prompt/expand \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "a group of pigs flying in the sky"
}
'import requests
url = "https://api.mountsea.ai/gemini/video/prompt/expand"
payload = { "prompt": "a group of pigs flying in the sky" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({prompt: 'a group of pigs flying in the sky'})
};
fetch('https://api.mountsea.ai/gemini/video/prompt/expand', 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://api.mountsea.ai/gemini/video/prompt/expand",
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([
'prompt' => 'a group of pigs flying in the sky'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.mountsea.ai/gemini/video/prompt/expand"
payload := strings.NewReader("{\n \"prompt\": \"a group of pigs flying in the sky\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.mountsea.ai/gemini/video/prompt/expand")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"a group of pigs flying in the sky\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mountsea.ai/gemini/video/prompt/expand")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"a group of pigs flying in the sky\"\n}"
response = http.request(request)
puts response.read_body{
"originalPrompt": "a group of pigs flying in the sky",
"expandedPrompt": "## Living Diorama Scene: Swine Ascent\n\n**Scene:** A trio of miniature pigs..."
}概述
将简短的视频提示词扩展为详细的电影级描述。这是一个同步操作,直接返回扩展后的提示词 — 无需任务轮询。 使用此功能可以将简短提示词转换为丰富的场景描述,从而改善视频生成效果。示例
输入:a group of pigs flying in the sky
## Living Diorama Scene: Swine Ascent
**Scene:** A trio of miniature pigs soar gracefully through a vast,
sun-drenched sky filled with fluffy cumulus clouds...
授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
请求体
application/json
Original prompt to expand
示例:
"a group of pigs flying in the sky"