Image to video
curl --request POST \
--url https://api.omniall.ai/runwayml/v1/image_to_video \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"promptImage": "https://example.com/ref.png",
"seed": 999999999,
"model": "gen3a_turbo",
"promptText": "Camera slowly pushes in, cinematic light",
"watermark": false,
"duration": 5,
"ratio": "768:1280"
}
'import requests
url = "https://api.omniall.ai/runwayml/v1/image_to_video"
payload = {
"promptImage": "https://example.com/ref.png",
"seed": 999999999,
"model": "gen3a_turbo",
"promptText": "Camera slowly pushes in, cinematic light",
"watermark": False,
"duration": 5,
"ratio": "768:1280"
}
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({
promptImage: 'https://example.com/ref.png',
seed: 999999999,
model: 'gen3a_turbo',
promptText: 'Camera slowly pushes in, cinematic light',
watermark: false,
duration: 5,
ratio: '768:1280'
})
};
fetch('https://api.omniall.ai/runwayml/v1/image_to_video', 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.omniall.ai/runwayml/v1/image_to_video",
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([
'promptImage' => 'https://example.com/ref.png',
'seed' => 999999999,
'model' => 'gen3a_turbo',
'promptText' => 'Camera slowly pushes in, cinematic light',
'watermark' => false,
'duration' => 5,
'ratio' => '768:1280'
]),
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://api.omniall.ai/runwayml/v1/image_to_video"
payload := strings.NewReader("{\n \"promptImage\": \"https://example.com/ref.png\",\n \"seed\": 999999999,\n \"model\": \"gen3a_turbo\",\n \"promptText\": \"Camera slowly pushes in, cinematic light\",\n \"watermark\": false,\n \"duration\": 5,\n \"ratio\": \"768:1280\"\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://api.omniall.ai/runwayml/v1/image_to_video")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"promptImage\": \"https://example.com/ref.png\",\n \"seed\": 999999999,\n \"model\": \"gen3a_turbo\",\n \"promptText\": \"Camera slowly pushes in, cinematic light\",\n \"watermark\": false,\n \"duration\": 5,\n \"ratio\": \"768:1280\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.omniall.ai/runwayml/v1/image_to_video")
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 \"promptImage\": \"https://example.com/ref.png\",\n \"seed\": 999999999,\n \"model\": \"gen3a_turbo\",\n \"promptText\": \"Camera slowly pushes in, cinematic light\",\n \"watermark\": false,\n \"duration\": 5,\n \"ratio\": \"768:1280\"\n}"
response = http.request(request)
puts response.read_body{
"id": "task_xxxxxxxxxxxxxxx",
"status": "PENDING"
}Official format
Image to video (official)
Official-style image-to-video.
Path: POST https://api.omniall.ai/runwayml/v1/image_to_video
Auth: Authorization: Bearer sk-...
POST
/
runwayml
/
v1
/
image_to_video
Image to video
curl --request POST \
--url https://api.omniall.ai/runwayml/v1/image_to_video \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"promptImage": "https://example.com/ref.png",
"seed": 999999999,
"model": "gen3a_turbo",
"promptText": "Camera slowly pushes in, cinematic light",
"watermark": false,
"duration": 5,
"ratio": "768:1280"
}
'import requests
url = "https://api.omniall.ai/runwayml/v1/image_to_video"
payload = {
"promptImage": "https://example.com/ref.png",
"seed": 999999999,
"model": "gen3a_turbo",
"promptText": "Camera slowly pushes in, cinematic light",
"watermark": False,
"duration": 5,
"ratio": "768:1280"
}
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({
promptImage: 'https://example.com/ref.png',
seed: 999999999,
model: 'gen3a_turbo',
promptText: 'Camera slowly pushes in, cinematic light',
watermark: false,
duration: 5,
ratio: '768:1280'
})
};
fetch('https://api.omniall.ai/runwayml/v1/image_to_video', 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.omniall.ai/runwayml/v1/image_to_video",
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([
'promptImage' => 'https://example.com/ref.png',
'seed' => 999999999,
'model' => 'gen3a_turbo',
'promptText' => 'Camera slowly pushes in, cinematic light',
'watermark' => false,
'duration' => 5,
'ratio' => '768:1280'
]),
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://api.omniall.ai/runwayml/v1/image_to_video"
payload := strings.NewReader("{\n \"promptImage\": \"https://example.com/ref.png\",\n \"seed\": 999999999,\n \"model\": \"gen3a_turbo\",\n \"promptText\": \"Camera slowly pushes in, cinematic light\",\n \"watermark\": false,\n \"duration\": 5,\n \"ratio\": \"768:1280\"\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://api.omniall.ai/runwayml/v1/image_to_video")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"promptImage\": \"https://example.com/ref.png\",\n \"seed\": 999999999,\n \"model\": \"gen3a_turbo\",\n \"promptText\": \"Camera slowly pushes in, cinematic light\",\n \"watermark\": false,\n \"duration\": 5,\n \"ratio\": \"768:1280\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.omniall.ai/runwayml/v1/image_to_video")
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 \"promptImage\": \"https://example.com/ref.png\",\n \"seed\": 999999999,\n \"model\": \"gen3a_turbo\",\n \"promptText\": \"Camera slowly pushes in, cinematic light\",\n \"watermark\": false,\n \"duration\": 5,\n \"ratio\": \"768:1280\"\n}"
response = http.request(request)
puts response.read_body{
"id": "task_xxxxxxxxxxxxxxx",
"status": "PENDING"
}Headers
Bearer API key.
Example:
"Bearer sk-..."
Body
application/json
Model id, e.g. gen3a_turbo, gen4_turbo.
Example:
"gen3a_turbo"
Reference image URL or list of URLs.
Prompt text.
Duration seconds (5 or 10). Default often 10.
Available options:
5, 10 Random seed.
Required range:
0 <= x <= 999999999Whether to include watermark.
Aspect / pixel ratio, e.g. 768:1280, 1280:720.