Control a character
curl --request POST \
--url https://api.maxapi.ai/runwayml/v1/character_performance \
--header 'Content-Type: application/json' \
--data '
{
"character": {
"type": "video",
"uri": "http://example.com"
},
"reference": {
"type": "video",
"uri": "http://example.com"
},
"bodyControl": true,
"expressionIntensity": 3,
"seed": 4294967295,
"model": "act_two",
"ratio": "1280:720",
"contentModeration": {
"publicFigureThreshold": "auto"
}
}
'import requests
url = "https://api.maxapi.ai/runwayml/v1/character_performance"
payload = {
"character": {
"type": "video",
"uri": "http://example.com"
},
"reference": {
"type": "video",
"uri": "http://example.com"
},
"bodyControl": True,
"expressionIntensity": 3,
"seed": 4294967295,
"model": "act_two",
"ratio": "1280:720",
"contentModeration": { "publicFigureThreshold": "auto" }
}
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({
character: {type: 'video', uri: 'http://example.com'},
reference: {type: 'video', uri: 'http://example.com'},
bodyControl: true,
expressionIntensity: 3,
seed: 4294967295,
model: 'act_two',
ratio: '1280:720',
contentModeration: {publicFigureThreshold: 'auto'}
})
};
fetch('https://api.maxapi.ai/runwayml/v1/character_performance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.maxapi.ai/runwayml/v1/character_performance"
payload := strings.NewReader("{\n \"character\": {\n \"type\": \"video\",\n \"uri\": \"http://example.com\"\n },\n \"reference\": {\n \"type\": \"video\",\n \"uri\": \"http://example.com\"\n },\n \"bodyControl\": true,\n \"expressionIntensity\": 3,\n \"seed\": 4294967295,\n \"model\": \"act_two\",\n \"ratio\": \"1280:720\",\n \"contentModeration\": {\n \"publicFigureThreshold\": \"auto\"\n }\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://api.maxapi.ai/runwayml/v1/character_performance")
.header("Content-Type", "application/json")
.body("{\n \"character\": {\n \"type\": \"video\",\n \"uri\": \"http://example.com\"\n },\n \"reference\": {\n \"type\": \"video\",\n \"uri\": \"http://example.com\"\n },\n \"bodyControl\": true,\n \"expressionIntensity\": 3,\n \"seed\": 4294967295,\n \"model\": \"act_two\",\n \"ratio\": \"1280:720\",\n \"contentModeration\": {\n \"publicFigureThreshold\": \"auto\"\n }\n}")
.asString();{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}POST
https://api.maxapi.ai
/
runwayml
/
v1
/
character_performance
Control a character
curl --request POST \
--url https://api.maxapi.ai/runwayml/v1/character_performance \
--header 'Content-Type: application/json' \
--data '
{
"character": {
"type": "video",
"uri": "http://example.com"
},
"reference": {
"type": "video",
"uri": "http://example.com"
},
"bodyControl": true,
"expressionIntensity": 3,
"seed": 4294967295,
"model": "act_two",
"ratio": "1280:720",
"contentModeration": {
"publicFigureThreshold": "auto"
}
}
'import requests
url = "https://api.maxapi.ai/runwayml/v1/character_performance"
payload = {
"character": {
"type": "video",
"uri": "http://example.com"
},
"reference": {
"type": "video",
"uri": "http://example.com"
},
"bodyControl": True,
"expressionIntensity": 3,
"seed": 4294967295,
"model": "act_two",
"ratio": "1280:720",
"contentModeration": { "publicFigureThreshold": "auto" }
}
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({
character: {type: 'video', uri: 'http://example.com'},
reference: {type: 'video', uri: 'http://example.com'},
bodyControl: true,
expressionIntensity: 3,
seed: 4294967295,
model: 'act_two',
ratio: '1280:720',
contentModeration: {publicFigureThreshold: 'auto'}
})
};
fetch('https://api.maxapi.ai/runwayml/v1/character_performance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.maxapi.ai/runwayml/v1/character_performance"
payload := strings.NewReader("{\n \"character\": {\n \"type\": \"video\",\n \"uri\": \"http://example.com\"\n },\n \"reference\": {\n \"type\": \"video\",\n \"uri\": \"http://example.com\"\n },\n \"bodyControl\": true,\n \"expressionIntensity\": 3,\n \"seed\": 4294967295,\n \"model\": \"act_two\",\n \"ratio\": \"1280:720\",\n \"contentModeration\": {\n \"publicFigureThreshold\": \"auto\"\n }\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://api.maxapi.ai/runwayml/v1/character_performance")
.header("Content-Type", "application/json")
.body("{\n \"character\": {\n \"type\": \"video\",\n \"uri\": \"http://example.com\"\n },\n \"reference\": {\n \"type\": \"video\",\n \"uri\": \"http://example.com\"\n },\n \"bodyControl\": true,\n \"expressionIntensity\": 3,\n \"seed\": 4294967295,\n \"model\": \"act_two\",\n \"ratio\": \"1280:720\",\n \"contentModeration\": {\n \"publicFigureThreshold\": \"auto\"\n }\n}")
.asString();{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}请求头
请求体
application/json
响应
200 - application/json
任务创建成功,返回可用于查询状态的任务 ID。
用于查询任务状态的 Runway 任务 ID。