Quickstart
const token = "<paste-your-token-here>";
const api = "https://app.colossyan.com/api/v1";
const job = {
videoCreative: {
settings: {
name: "My first video",
videoSize: {
width: 1920,
height: 1080
}
},
scenes: [
{
tracks: [
{
type: "actor",
position: { x: 420, y: 0 },
size: { width: 1080, height: 1080 },
actor: "karen",
text: "This is my first video generated with Colossyan! Amazing!",
speakerId: "aquXcfLbkxpW4BBI5qKm"
}
]
}
]
}
};
const response = await fetch(`${api}/video-generation-jobs`, {
method: "POST",
headers: {
Authorization: `Bearer ${token}`,
"Content-Type": "application/json",
},
body: JSON.stringify(job),
});
const result = await response.json();
console.log(result); // { id, videoId }Last updated
Was this helpful?