curl --request POST \
--url https://api.sinancode.com/v1/generate/k/veo3-image-to-video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"imageUrls": [
"https://example.com/image1.jpg"
],
"prompt": "animate the scene with smooth camera movement",
"aspectRatio": "16:9",
"enableTranslation": true,
"model": "veo3_fast",
"seeds": 12345,
"watermark": ""
}
'import requests
url = "https://api.sinancode.com/v1/generate/k/veo3-image-to-video"
payload = {
"imageUrls": ["https://example.com/image1.jpg"],
"prompt": "animate the scene with smooth camera movement",
"aspectRatio": "16:9",
"enableTranslation": True,
"model": "veo3_fast",
"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/image1.jpg'],
prompt: 'animate the scene with smooth camera movement',
aspectRatio: '16:9',
enableTranslation: true,
model: 'veo3_fast',
seeds: 12345,
watermark: ''
})
};
fetch('https://api.sinancode.com/v1/generate/k/veo3-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.sinancode.com/v1/generate/k/veo3-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([
'imageUrls' => [
'https://example.com/image1.jpg'
],
'prompt' => 'animate the scene with smooth camera movement',
'aspectRatio' => '16:9',
'enableTranslation' => true,
'model' => 'veo3_fast',
'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-image-to-video"
payload := strings.NewReader("{\n \"imageUrls\": [\n \"https://example.com/image1.jpg\"\n ],\n \"prompt\": \"animate the scene with smooth camera movement\",\n \"aspectRatio\": \"16:9\",\n \"enableTranslation\": true,\n \"model\": \"veo3_fast\",\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-image-to-video")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"imageUrls\": [\n \"https://example.com/image1.jpg\"\n ],\n \"prompt\": \"animate the scene with smooth camera movement\",\n \"aspectRatio\": \"16:9\",\n \"enableTranslation\": true,\n \"model\": \"veo3_fast\",\n \"seeds\": 12345,\n \"watermark\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sinancode.com/v1/generate/k/veo3-image-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/image1.jpg\"\n ],\n \"prompt\": \"animate the scene with smooth camera movement\",\n \"aspectRatio\": \"16:9\",\n \"enableTranslation\": true,\n \"model\": \"veo3_fast\",\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>"
}Veo 3.1 Image to Video
Generate videos from 1-2 images using Google Veo 3.1 model (async), supports first-last frame interpolation
curl --request POST \
--url https://api.sinancode.com/v1/generate/k/veo3-image-to-video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"imageUrls": [
"https://example.com/image1.jpg"
],
"prompt": "animate the scene with smooth camera movement",
"aspectRatio": "16:9",
"enableTranslation": true,
"model": "veo3_fast",
"seeds": 12345,
"watermark": ""
}
'import requests
url = "https://api.sinancode.com/v1/generate/k/veo3-image-to-video"
payload = {
"imageUrls": ["https://example.com/image1.jpg"],
"prompt": "animate the scene with smooth camera movement",
"aspectRatio": "16:9",
"enableTranslation": True,
"model": "veo3_fast",
"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/image1.jpg'],
prompt: 'animate the scene with smooth camera movement',
aspectRatio: '16:9',
enableTranslation: true,
model: 'veo3_fast',
seeds: 12345,
watermark: ''
})
};
fetch('https://api.sinancode.com/v1/generate/k/veo3-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.sinancode.com/v1/generate/k/veo3-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([
'imageUrls' => [
'https://example.com/image1.jpg'
],
'prompt' => 'animate the scene with smooth camera movement',
'aspectRatio' => '16:9',
'enableTranslation' => true,
'model' => 'veo3_fast',
'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-image-to-video"
payload := strings.NewReader("{\n \"imageUrls\": [\n \"https://example.com/image1.jpg\"\n ],\n \"prompt\": \"animate the scene with smooth camera movement\",\n \"aspectRatio\": \"16:9\",\n \"enableTranslation\": true,\n \"model\": \"veo3_fast\",\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-image-to-video")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"imageUrls\": [\n \"https://example.com/image1.jpg\"\n ],\n \"prompt\": \"animate the scene with smooth camera movement\",\n \"aspectRatio\": \"16:9\",\n \"enableTranslation\": true,\n \"model\": \"veo3_fast\",\n \"seeds\": 12345,\n \"watermark\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sinancode.com/v1/generate/k/veo3-image-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/image1.jpg\"\n ],\n \"prompt\": \"animate the scene with smooth camera movement\",\n \"aspectRatio\": \"16:9\",\n \"enableTranslation\": true,\n \"model\": \"veo3_fast\",\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>"
}- Dual Mode Support - Single-image animation or start-to-end frame transition modes
- Character Consistency - Maintain character appearance across scenes
- Audio Sync - Automatically generate matching sound effects and ambient audio
- HD Output - 1080P quality with realistic physics effects
Authorizations
Please use your API Token for authentication
Body
Task parameters
Image URL list (required) - Image URLs for video generation 1 image: generate video from single image; 2 images: generate video from first and last frames
1 - 2 elements["https://example.com/image1.jpg"]
Prompt (required) - Text description for video generation
1"animate the scene with smooth camera movement"
aspect ratio(optional)- videoaspect ratio,default 16:9
16:9, 9:16, Auto "16:9"
Enable translation (optional) - Enable translation, default true
true
Model (optional) - veo3 (quality priority) or veo3_fast (speed priority), default veo3_fast
veo3, veo3_fast "veo3_fast"
Random seed (optional) - Range 10000-99999
10000 <= x <= 9999912345
Watermark (optional) - Watermark identifier
""
Response
OK
Task ID
"01234567-89ab-cdef-0123-456789abcdef"