const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: '<string>',
prompt: '<string>',
seconds: 123,
size: '<string>',
quality: '<string>',
input_reference: '<string>',
input_reference_mime_type: '<string>',
input: {
image: '<string>',
video: '<string>',
last_frame: '<string>',
reference_images: [
{
reference_type: '<string>',
image: '<string>',
uri: '<string>',
url: '<string>'
}
]
},
input_image: '<string>',
input_video: '<string>',
last_frame: '<string>',
input_last_frame: '<string>',
reference_images: [{}],
duration: 60,
duration_seconds: 123,
ratio: '<string>',
aspect_ratio: '<string>',
resolution: '<string>',
negative_prompt: '<string>',
sample_count: 123,
number_of_videos: 123,
seed: 123,
person_generation: '<string>',
generate_audio: true,
enhance_prompt: true,
output_storage_uri: '<string>',
provider: {
order: ['<string>'],
only: ['<string>'],
ignore: ['<string>'],
include_alpha: true
}
})
};
fetch('https://api.phaseo.app/v1/videos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));