huoshan v1 video generate
curl --request POST \
--url https://ai.pmock.com/api/ai/huoshan/v1/video/generate \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"content": [
{
"type": "<string>",
"text": "<string>",
"role": "<string>",
"image_url": {
"url": "<string>"
},
"video_url": {
"url": "<string>"
},
"audio_url": {
"url": "<string>"
},
"draft_task": {
"url": "<string>",
"id": "<string>"
}
}
],
"resolution": "<string>",
"ratio": "<string>",
"duration": 123,
"frames": 123,
"watermark": true,
"seed": 123,
"draft": true,
"priority": 123,
"tools": "<unknown>",
"omni_reference_task_type": "<string>",
"generate_audio": true,
"output_format": "<string>",
"camera_fixed": true,
"return_last_frame": true,
"service_tier": "<string>",
"execution_expires_after": 123,
"safety_identifier": "<string>"
}
'import requests
url = "https://ai.pmock.com/api/ai/huoshan/v1/video/generate"
payload = {
"model": "<string>",
"content": [
{
"type": "<string>",
"text": "<string>",
"role": "<string>",
"image_url": { "url": "<string>" },
"video_url": { "url": "<string>" },
"audio_url": { "url": "<string>" },
"draft_task": {
"url": "<string>",
"id": "<string>"
}
}
],
"resolution": "<string>",
"ratio": "<string>",
"duration": 123,
"frames": 123,
"watermark": True,
"seed": 123,
"draft": True,
"priority": 123,
"tools": "<unknown>",
"omni_reference_task_type": "<string>",
"generate_audio": True,
"output_format": "<string>",
"camera_fixed": True,
"return_last_frame": True,
"service_tier": "<string>",
"execution_expires_after": 123,
"safety_identifier": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
model: '<string>',
content: [
{
type: '<string>',
text: '<string>',
role: '<string>',
image_url: {url: '<string>'},
video_url: {url: '<string>'},
audio_url: {url: '<string>'},
draft_task: {url: '<string>', id: '<string>'}
}
],
resolution: '<string>',
ratio: '<string>',
duration: 123,
frames: 123,
watermark: true,
seed: 123,
draft: true,
priority: 123,
tools: '<unknown>',
omni_reference_task_type: '<string>',
generate_audio: true,
output_format: '<string>',
camera_fixed: true,
return_last_frame: true,
service_tier: '<string>',
execution_expires_after: 123,
safety_identifier: '<string>'
})
};
fetch('https://ai.pmock.com/api/ai/huoshan/v1/video/generate', 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://ai.pmock.com/api/ai/huoshan/v1/video/generate",
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>',
'content' => [
[
'type' => '<string>',
'text' => '<string>',
'role' => '<string>',
'image_url' => [
'url' => '<string>'
],
'video_url' => [
'url' => '<string>'
],
'audio_url' => [
'url' => '<string>'
],
'draft_task' => [
'url' => '<string>',
'id' => '<string>'
]
]
],
'resolution' => '<string>',
'ratio' => '<string>',
'duration' => 123,
'frames' => 123,
'watermark' => true,
'seed' => 123,
'draft' => true,
'priority' => 123,
'tools' => '<unknown>',
'omni_reference_task_type' => '<string>',
'generate_audio' => true,
'output_format' => '<string>',
'camera_fixed' => true,
'return_last_frame' => true,
'service_tier' => '<string>',
'execution_expires_after' => 123,
'safety_identifier' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://ai.pmock.com/api/ai/huoshan/v1/video/generate"
payload := strings.NewReader("{\n \"model\": \"<string>\",\n \"content\": [\n {\n \"type\": \"<string>\",\n \"text\": \"<string>\",\n \"role\": \"<string>\",\n \"image_url\": {\n \"url\": \"<string>\"\n },\n \"video_url\": {\n \"url\": \"<string>\"\n },\n \"audio_url\": {\n \"url\": \"<string>\"\n },\n \"draft_task\": {\n \"url\": \"<string>\",\n \"id\": \"<string>\"\n }\n }\n ],\n \"resolution\": \"<string>\",\n \"ratio\": \"<string>\",\n \"duration\": 123,\n \"frames\": 123,\n \"watermark\": true,\n \"seed\": 123,\n \"draft\": true,\n \"priority\": 123,\n \"tools\": \"<unknown>\",\n \"omni_reference_task_type\": \"<string>\",\n \"generate_audio\": true,\n \"output_format\": \"<string>\",\n \"camera_fixed\": true,\n \"return_last_frame\": true,\n \"service_tier\": \"<string>\",\n \"execution_expires_after\": 123,\n \"safety_identifier\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://ai.pmock.com/api/ai/huoshan/v1/video/generate")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"<string>\",\n \"content\": [\n {\n \"type\": \"<string>\",\n \"text\": \"<string>\",\n \"role\": \"<string>\",\n \"image_url\": {\n \"url\": \"<string>\"\n },\n \"video_url\": {\n \"url\": \"<string>\"\n },\n \"audio_url\": {\n \"url\": \"<string>\"\n },\n \"draft_task\": {\n \"url\": \"<string>\",\n \"id\": \"<string>\"\n }\n }\n ],\n \"resolution\": \"<string>\",\n \"ratio\": \"<string>\",\n \"duration\": 123,\n \"frames\": 123,\n \"watermark\": true,\n \"seed\": 123,\n \"draft\": true,\n \"priority\": 123,\n \"tools\": \"<unknown>\",\n \"omni_reference_task_type\": \"<string>\",\n \"generate_audio\": true,\n \"output_format\": \"<string>\",\n \"camera_fixed\": true,\n \"return_last_frame\": true,\n \"service_tier\": \"<string>\",\n \"execution_expires_after\": 123,\n \"safety_identifier\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ai.pmock.com/api/ai/huoshan/v1/video/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"<string>\",\n \"content\": [\n {\n \"type\": \"<string>\",\n \"text\": \"<string>\",\n \"role\": \"<string>\",\n \"image_url\": {\n \"url\": \"<string>\"\n },\n \"video_url\": {\n \"url\": \"<string>\"\n },\n \"audio_url\": {\n \"url\": \"<string>\"\n },\n \"draft_task\": {\n \"url\": \"<string>\",\n \"id\": \"<string>\"\n }\n }\n ],\n \"resolution\": \"<string>\",\n \"ratio\": \"<string>\",\n \"duration\": 123,\n \"frames\": 123,\n \"watermark\": true,\n \"seed\": 123,\n \"draft\": true,\n \"priority\": 123,\n \"tools\": \"<unknown>\",\n \"omni_reference_task_type\": \"<string>\",\n \"generate_audio\": true,\n \"output_format\": \"<string>\",\n \"camera_fixed\": true,\n \"return_last_frame\": true,\n \"service_tier\": \"<string>\",\n \"execution_expires_after\": 123,\n \"safety_identifier\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "<string>",
"data": {
"taskId": "<string>"
},
"traceId": "<string>"
}HuoShan
huoshan v1 video generate
huoshan v1 video generate
POST
/
ai
/
huoshan
/
v1
/
video
/
generate
huoshan v1 video generate
curl --request POST \
--url https://ai.pmock.com/api/ai/huoshan/v1/video/generate \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"content": [
{
"type": "<string>",
"text": "<string>",
"role": "<string>",
"image_url": {
"url": "<string>"
},
"video_url": {
"url": "<string>"
},
"audio_url": {
"url": "<string>"
},
"draft_task": {
"url": "<string>",
"id": "<string>"
}
}
],
"resolution": "<string>",
"ratio": "<string>",
"duration": 123,
"frames": 123,
"watermark": true,
"seed": 123,
"draft": true,
"priority": 123,
"tools": "<unknown>",
"omni_reference_task_type": "<string>",
"generate_audio": true,
"output_format": "<string>",
"camera_fixed": true,
"return_last_frame": true,
"service_tier": "<string>",
"execution_expires_after": 123,
"safety_identifier": "<string>"
}
'import requests
url = "https://ai.pmock.com/api/ai/huoshan/v1/video/generate"
payload = {
"model": "<string>",
"content": [
{
"type": "<string>",
"text": "<string>",
"role": "<string>",
"image_url": { "url": "<string>" },
"video_url": { "url": "<string>" },
"audio_url": { "url": "<string>" },
"draft_task": {
"url": "<string>",
"id": "<string>"
}
}
],
"resolution": "<string>",
"ratio": "<string>",
"duration": 123,
"frames": 123,
"watermark": True,
"seed": 123,
"draft": True,
"priority": 123,
"tools": "<unknown>",
"omni_reference_task_type": "<string>",
"generate_audio": True,
"output_format": "<string>",
"camera_fixed": True,
"return_last_frame": True,
"service_tier": "<string>",
"execution_expires_after": 123,
"safety_identifier": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
model: '<string>',
content: [
{
type: '<string>',
text: '<string>',
role: '<string>',
image_url: {url: '<string>'},
video_url: {url: '<string>'},
audio_url: {url: '<string>'},
draft_task: {url: '<string>', id: '<string>'}
}
],
resolution: '<string>',
ratio: '<string>',
duration: 123,
frames: 123,
watermark: true,
seed: 123,
draft: true,
priority: 123,
tools: '<unknown>',
omni_reference_task_type: '<string>',
generate_audio: true,
output_format: '<string>',
camera_fixed: true,
return_last_frame: true,
service_tier: '<string>',
execution_expires_after: 123,
safety_identifier: '<string>'
})
};
fetch('https://ai.pmock.com/api/ai/huoshan/v1/video/generate', 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://ai.pmock.com/api/ai/huoshan/v1/video/generate",
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>',
'content' => [
[
'type' => '<string>',
'text' => '<string>',
'role' => '<string>',
'image_url' => [
'url' => '<string>'
],
'video_url' => [
'url' => '<string>'
],
'audio_url' => [
'url' => '<string>'
],
'draft_task' => [
'url' => '<string>',
'id' => '<string>'
]
]
],
'resolution' => '<string>',
'ratio' => '<string>',
'duration' => 123,
'frames' => 123,
'watermark' => true,
'seed' => 123,
'draft' => true,
'priority' => 123,
'tools' => '<unknown>',
'omni_reference_task_type' => '<string>',
'generate_audio' => true,
'output_format' => '<string>',
'camera_fixed' => true,
'return_last_frame' => true,
'service_tier' => '<string>',
'execution_expires_after' => 123,
'safety_identifier' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://ai.pmock.com/api/ai/huoshan/v1/video/generate"
payload := strings.NewReader("{\n \"model\": \"<string>\",\n \"content\": [\n {\n \"type\": \"<string>\",\n \"text\": \"<string>\",\n \"role\": \"<string>\",\n \"image_url\": {\n \"url\": \"<string>\"\n },\n \"video_url\": {\n \"url\": \"<string>\"\n },\n \"audio_url\": {\n \"url\": \"<string>\"\n },\n \"draft_task\": {\n \"url\": \"<string>\",\n \"id\": \"<string>\"\n }\n }\n ],\n \"resolution\": \"<string>\",\n \"ratio\": \"<string>\",\n \"duration\": 123,\n \"frames\": 123,\n \"watermark\": true,\n \"seed\": 123,\n \"draft\": true,\n \"priority\": 123,\n \"tools\": \"<unknown>\",\n \"omni_reference_task_type\": \"<string>\",\n \"generate_audio\": true,\n \"output_format\": \"<string>\",\n \"camera_fixed\": true,\n \"return_last_frame\": true,\n \"service_tier\": \"<string>\",\n \"execution_expires_after\": 123,\n \"safety_identifier\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://ai.pmock.com/api/ai/huoshan/v1/video/generate")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"<string>\",\n \"content\": [\n {\n \"type\": \"<string>\",\n \"text\": \"<string>\",\n \"role\": \"<string>\",\n \"image_url\": {\n \"url\": \"<string>\"\n },\n \"video_url\": {\n \"url\": \"<string>\"\n },\n \"audio_url\": {\n \"url\": \"<string>\"\n },\n \"draft_task\": {\n \"url\": \"<string>\",\n \"id\": \"<string>\"\n }\n }\n ],\n \"resolution\": \"<string>\",\n \"ratio\": \"<string>\",\n \"duration\": 123,\n \"frames\": 123,\n \"watermark\": true,\n \"seed\": 123,\n \"draft\": true,\n \"priority\": 123,\n \"tools\": \"<unknown>\",\n \"omni_reference_task_type\": \"<string>\",\n \"generate_audio\": true,\n \"output_format\": \"<string>\",\n \"camera_fixed\": true,\n \"return_last_frame\": true,\n \"service_tier\": \"<string>\",\n \"execution_expires_after\": 123,\n \"safety_identifier\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ai.pmock.com/api/ai/huoshan/v1/video/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"<string>\",\n \"content\": [\n {\n \"type\": \"<string>\",\n \"text\": \"<string>\",\n \"role\": \"<string>\",\n \"image_url\": {\n \"url\": \"<string>\"\n },\n \"video_url\": {\n \"url\": \"<string>\"\n },\n \"audio_url\": {\n \"url\": \"<string>\"\n },\n \"draft_task\": {\n \"url\": \"<string>\",\n \"id\": \"<string>\"\n }\n }\n ],\n \"resolution\": \"<string>\",\n \"ratio\": \"<string>\",\n \"duration\": 123,\n \"frames\": 123,\n \"watermark\": true,\n \"seed\": 123,\n \"draft\": true,\n \"priority\": 123,\n \"tools\": \"<unknown>\",\n \"omni_reference_task_type\": \"<string>\",\n \"generate_audio\": true,\n \"output_format\": \"<string>\",\n \"camera_fixed\": true,\n \"return_last_frame\": true,\n \"service_tier\": \"<string>\",\n \"execution_expires_after\": 123,\n \"safety_identifier\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "<string>",
"data": {
"taskId": "<string>"
},
"traceId": "<string>"
}Body
application/json
model
Minimum string length:
1content
Minimum array length:
1Show child attributes
Show child attributes
resolution
ratio
duration
frames
watermark
seed
draft
priority
tools
omniReferenceTaskType
generateAudio
outputFormat
cameraFixed
returnLastFrame
serviceTier
executionExpiresAfter
safetyIdentifier
