Veo 3.1 Reference-to-Video
curl --request POST \
--url https://api.sinancode.com/v1/generate/k/veo3-reference-to-video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"imageUrls": [
"https://example.com/reference1.jpg"
],
"prompt": "generate a video based on the reference images",
"enableTranslation": true,
"seeds": 12345,
"watermark": ""
}
'import requests
url = "https://api.sinancode.com/v1/generate/k/veo3-reference-to-video"
payload = {
"imageUrls": ["https://example.com/reference1.jpg"],
"prompt": "generate a video based on the reference images",
"enableTranslation": True,
"seeds": 12345,
"watermark": ""
}
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({
imageUrls: ['https://example.com/reference1.jpg'],
prompt: 'generate a video based on the reference images',
enableTranslation: true,
seeds: 12345,
watermark: ''
})
};
fetch('https://api.sinancode.com/v1/generate/k/veo3-reference-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.sinancode.com/v1/generate/k/veo3-reference-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([
'imageUrls' => [
'https://example.com/reference1.jpg'
],
'prompt' => 'generate a video based on the reference images',
'enableTranslation' => true,
'seeds' => 12345,
'watermark' => ''
]),
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.sinancode.com/v1/generate/k/veo3-reference-to-video"
payload := strings.NewReader("{\n \"imageUrls\": [\n \"https://example.com/reference1.jpg\"\n ],\n \"prompt\": \"generate a video based on the reference images\",\n \"enableTranslation\": true,\n \"seeds\": 12345,\n \"watermark\": \"\"\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.sinancode.com/v1/generate/k/veo3-reference-to-video")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"imageUrls\": [\n \"https://example.com/reference1.jpg\"\n ],\n \"prompt\": \"generate a video based on the reference images\",\n \"enableTranslation\": true,\n \"seeds\": 12345,\n \"watermark\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sinancode.com/v1/generate/k/veo3-reference-to-video")
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 \"imageUrls\": [\n \"https://example.com/reference1.jpg\"\n ],\n \"prompt\": \"generate a video based on the reference images\",\n \"enableTranslation\": true,\n \"seeds\": 12345,\n \"watermark\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "01234567-89ab-cdef-0123-456789abcdef"
}{
"error_code": "<string>",
"message": "<string>"
}{
"error_code": "<string>",
"message": "<string>"
}{
"error_code": "<string>",
"message": "<string>"
}{
"error_code": "<string>",
"message": "<string>"
}Video Generation - Veo 3
Veo 3.1 Reference to Video
Generate videos from 1-3 reference images using Google Veo 3.1 Fast model (async, only supports veo3_fast and 16:9)
POST
/
generate
/
k
/
veo3-reference-to-video
Veo 3.1 Reference-to-Video
curl --request POST \
--url https://api.sinancode.com/v1/generate/k/veo3-reference-to-video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"imageUrls": [
"https://example.com/reference1.jpg"
],
"prompt": "generate a video based on the reference images",
"enableTranslation": true,
"seeds": 12345,
"watermark": ""
}
'import requests
url = "https://api.sinancode.com/v1/generate/k/veo3-reference-to-video"
payload = {
"imageUrls": ["https://example.com/reference1.jpg"],
"prompt": "generate a video based on the reference images",
"enableTranslation": True,
"seeds": 12345,
"watermark": ""
}
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({
imageUrls: ['https://example.com/reference1.jpg'],
prompt: 'generate a video based on the reference images',
enableTranslation: true,
seeds: 12345,
watermark: ''
})
};
fetch('https://api.sinancode.com/v1/generate/k/veo3-reference-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.sinancode.com/v1/generate/k/veo3-reference-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([
'imageUrls' => [
'https://example.com/reference1.jpg'
],
'prompt' => 'generate a video based on the reference images',
'enableTranslation' => true,
'seeds' => 12345,
'watermark' => ''
]),
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.sinancode.com/v1/generate/k/veo3-reference-to-video"
payload := strings.NewReader("{\n \"imageUrls\": [\n \"https://example.com/reference1.jpg\"\n ],\n \"prompt\": \"generate a video based on the reference images\",\n \"enableTranslation\": true,\n \"seeds\": 12345,\n \"watermark\": \"\"\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.sinancode.com/v1/generate/k/veo3-reference-to-video")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"imageUrls\": [\n \"https://example.com/reference1.jpg\"\n ],\n \"prompt\": \"generate a video based on the reference images\",\n \"enableTranslation\": true,\n \"seeds\": 12345,\n \"watermark\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sinancode.com/v1/generate/k/veo3-reference-to-video")
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 \"imageUrls\": [\n \"https://example.com/reference1.jpg\"\n ],\n \"prompt\": \"generate a video based on the reference images\",\n \"enableTranslation\": true,\n \"seeds\": 12345,\n \"watermark\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "01234567-89ab-cdef-0123-456789abcdef"
}{
"error_code": "<string>",
"message": "<string>"
}{
"error_code": "<string>",
"message": "<string>"
}{
"error_code": "<string>",
"message": "<string>"
}{
"error_code": "<string>",
"message": "<string>"
}Generate style-consistent videos from reference images using Google DeepMind’s Veo 3.1 model.
Key Features:
- Multi-Image Reference - Support 1-3 reference images to control character, object, or style
- Style Transfer - Apply reference image style to generated videos
- Character Consistency - Ideal for creating multi-shot content with consistent characters
Authorizations
Please use your API Token for authentication
Body
application/json
Task parameters
Image URL list (required) - Reference image URLs (1-3 images)
Required array length:
1 - 3 elementsExample:
["https://example.com/reference1.jpg"]
Prompt (required) - Text description for video generation
Minimum string length:
1Example:
"generate a video based on the reference images"
Enable translation (optional) - Enable translation, default true
Example:
true
Random seed (optional) - Range 10000-99999
Required range:
10000 <= x <= 99999Example:
12345
Watermark (optional) - Watermark identifier
Example:
""
Response
OK
Task ID
Example:
"01234567-89ab-cdef-0123-456789abcdef"
⌘I