HappyHorse 1.1
curl --request POST \
--url https://api.snapgen.org/v1/videos \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.snapgen.org/v1/videos"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.snapgen.org/v1/videos', 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.snapgen.org/v1/videos",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.snapgen.org/v1/videos"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.snapgen.org/v1/videos")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.snapgen.org/v1/videos")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyHappyHorse
HappyHorse 1.1
Create a 3–15 second HappyHorse video from a prompt, a first frame or image references.
POST
/
v1
/
videos
HappyHorse 1.1
curl --request POST \
--url https://api.snapgen.org/v1/videos \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.snapgen.org/v1/videos"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.snapgen.org/v1/videos', 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.snapgen.org/v1/videos",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.snapgen.org/v1/videos"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.snapgen.org/v1/videos")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.snapgen.org/v1/videos")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyUse
Send the request to
Current launch prices are $0.26 per output second at 720P and $0.33 at 1080P.
The requested duration and resolution determine the reservation. Availability and
current pricing come from the Catalog; a missing
channel is not silently replaced with another video model.
happyhorse-1.1 with a prompt of up to 2,500 characters. Set seconds to an
integer from 3 to 15 and choose 720P or 1080P. Supported aspect_ratio values
are 16:9, 9:16, 1:1, 4:3 and 3:4.
For image-to-video, provide first_frame_image. For reference generation, provide
one to nine image_urls. These two input forms are mutually exclusive. References
must be publicly reachable image URLs. This contract does not accept source video,
audio references or a caller-selected upstream model.
{
"model": "happyhorse-1.1",
"prompt": "An illustrated forest, morning light, a slow camera move past the trees.",
"seconds": 3,
"resolution": "720P",
"aspect_ratio": "16:9"
}
https://api.snapgen.org/v1/videos with your Bearer key and a
unique Idempotency-Key. Query GET /v1/tasks/{id}
for the result. An image reference is optional; the first-frame form is:
{
"model": "happyhorse-1.1",
"prompt": "Keep the scene consistent and move gently through the forest.",
"first_frame_image": "https://your-cdn.example/forest.png",
"seconds": 5,
"resolution": "1080P",
"aspect_ratio": "16:9"
}