Skip to main content
POST
/
remix
async function processVideo(
videoUrl: string,
parameters: object,
apiKey: string
): Promise<any> {
const baseUrl = 'https://www.topyappers.com';

const response = await fetch(`${baseUrl}/api/v1/remix`, {
method: 'POST',
headers: {
'x-ty-api-key': apiKey,
'Content-Type': 'application/json',
},
body: JSON.stringify({
video_url: videoUrl,
parameters: parameters,
}),
});

if (!response.ok) {
throw new Error(`API error: ${response.status}`);
}

return await response.json();
}

// Usage
const result = await processVideo(
'https://example.com/video.mp4',
{ playbackSpeed: 1.2 },
'YOUR_API_KEY'
);
{
"data": {
"inputVideoUrl": "https://storage.topyappers.com/video-abc123.mp4",
"result": "Video processing initiated"
}
}

Authorizations

x-ty-api-key
string
header
required

API key for TopYappers API authentication

Body

application/json
video_url
string<uri>
required

Publicly accessible URL to the video file (MP4, MOV, AVI, WebM)

Example:

"https://example.com/video.mp4"

parameters
object

Optional video processing parameters. All parameters have default values.

Example:
{
"playbackSpeed": 1.2,
"brightness": 0.1,
"contrast": 1.1,
"saturation": 1.2,
"hue": 15,
"zoomFactor": 1.05
}

Response

Video processing initiated successfully

data
object