video_to_video
curl --request POST \
--url https://api.maxapi.ai/runwayml/v1/video_to_video \
--header 'Content-Type: application/json' \
--data '
{
"videoUri": "http://example.com",
"promptText": "增加下雨效果",
"seed": 4294967295,
"model": "gen4_aleph",
"references": [
{
"type": "image",
"uri": "http://example.com"
}
],
"ratio": "1280:720",
"contentModeration": {
"publicFigureThreshold": "auto"
}
}
'import requests
url = "https://api.maxapi.ai/runwayml/v1/video_to_video"
payload = {
"videoUri": "http://example.com",
"promptText": "增加下雨效果",
"seed": 4294967295,
"model": "gen4_aleph",
"references": [
{
"type": "image",
"uri": "http://example.com"
}
],
"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({
videoUri: 'http://example.com',
promptText: '增加下雨效果',
seed: 4294967295,
model: 'gen4_aleph',
references: [{type: 'image', uri: 'http://example.com'}],
ratio: '1280:720',
contentModeration: {publicFigureThreshold: 'auto'}
})
};
fetch('https://api.maxapi.ai/runwayml/v1/video_to_video', 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/video_to_video"
payload := strings.NewReader("{\n \"videoUri\": \"http://example.com\",\n \"promptText\": \"增加下雨效果\",\n \"seed\": 4294967295,\n \"model\": \"gen4_aleph\",\n \"references\": [\n {\n \"type\": \"image\",\n \"uri\": \"http://example.com\"\n }\n ],\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/video_to_video")
.header("Content-Type", "application/json")
.body("{\n \"videoUri\": \"http://example.com\",\n \"promptText\": \"增加下雨效果\",\n \"seed\": 4294967295,\n \"model\": \"gen4_aleph\",\n \"references\": [\n {\n \"type\": \"image\",\n \"uri\": \"http://example.com\"\n }\n ],\n \"ratio\": \"1280:720\",\n \"contentModeration\": {\n \"publicFigureThreshold\": \"auto\"\n }\n}")
.asString();{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}video_to_video
POST
https://api.maxapi.ai
/
runwayml
/
v1
/
video_to_video
video_to_video
curl --request POST \
--url https://api.maxapi.ai/runwayml/v1/video_to_video \
--header 'Content-Type: application/json' \
--data '
{
"videoUri": "http://example.com",
"promptText": "增加下雨效果",
"seed": 4294967295,
"model": "gen4_aleph",
"references": [
{
"type": "image",
"uri": "http://example.com"
}
],
"ratio": "1280:720",
"contentModeration": {
"publicFigureThreshold": "auto"
}
}
'import requests
url = "https://api.maxapi.ai/runwayml/v1/video_to_video"
payload = {
"videoUri": "http://example.com",
"promptText": "增加下雨效果",
"seed": 4294967295,
"model": "gen4_aleph",
"references": [
{
"type": "image",
"uri": "http://example.com"
}
],
"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({
videoUri: 'http://example.com',
promptText: '增加下雨效果',
seed: 4294967295,
model: 'gen4_aleph',
references: [{type: 'image', uri: 'http://example.com'}],
ratio: '1280:720',
contentModeration: {publicFigureThreshold: 'auto'}
})
};
fetch('https://api.maxapi.ai/runwayml/v1/video_to_video', 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/video_to_video"
payload := strings.NewReader("{\n \"videoUri\": \"http://example.com\",\n \"promptText\": \"增加下雨效果\",\n \"seed\": 4294967295,\n \"model\": \"gen4_aleph\",\n \"references\": [\n {\n \"type\": \"image\",\n \"uri\": \"http://example.com\"\n }\n ],\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/video_to_video")
.header("Content-Type", "application/json")
.body("{\n \"videoUri\": \"http://example.com\",\n \"promptText\": \"增加下雨效果\",\n \"seed\": 4294967295,\n \"model\": \"gen4_aleph\",\n \"references\": [\n {\n \"type\": \"image\",\n \"uri\": \"http://example.com\"\n }\n ],\n \"ratio\": \"1280:720\",\n \"contentModeration\": {\n \"publicFigureThreshold\": \"auto\"\n }\n}")
.asString();{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Headers
Body
application/json
Response
200 - application/json
Request succeeded.