Sources

Add TikTok Overlay to Videos

You can use the layers prop to add a TikTok-style overlay to your videos.

const user = {
  name: 'Top Creator',
  username: 'topcreator',
  // ... other user fields
}

const task = await ittybit.tasks.create({
  kind: 'video',
  url: 'https://ittyb.it/sample.mp4',
  layers: [
    {
      kind: 'image',
      url: 'https://ittyb.it/icon.png',
      width: 80,
      height: 80,
      top: 20,
      left: 20,
    },
    {
      kind: 'text',
      text: `@${user.username}`,
      font: 'Inter',
      font_size: 20,
      color: '#ffffff',
      top: 120,
      left: 20,
    }
  ],
});

(See SDKs for install and initialization steps.)