Developer Platform

Build, integrate, and automate with the TikTok AI Factory API and SDKs.

API Keys

Generate API keys in your workspace settings. Pro plan required.

Configure

Webhooks

Real-time event notifications for video completion, publishing, and more.

Configure

TypeScript SDK

First-class TypeScript support with full type definitions. Coming soon.

REST API Reference

MethodEndpointDescription
POST/api/auth/registerCreate a new user account
POST/api/auth/loginAuthenticate and get token
GET/api/workspacesList user workspaces
POST/api/workspaces/:id/videosSubmit video generation
GET/api/workspaces/:id/videosList generated videos
POST/api/workspaces/:id/publishing/jobsCreate publish job
GET/api/plansList subscription plans (public)
GET/api/templatesList marketplace templates (public)

TypeScript SDK (Preview)

// TikTok AI Factory — JavaScript SDK
import { TikTokAIFactory } from '@tiktok-vf/sdk';

const client = new TikTokAIFactory({
  apiKey: 'tf_sk_xxxxxxxxxxxxxxxx',
});

// Generate a video
const video = await client.videos.generate({
  productName: 'My Skincare Product',
  scriptType: 'ugc',
  language: 'en',
  provider: 'seedance',
});

// Check status
const status = await client.videos.getStatus(video.id);

// Download
if (status === 'completed') {
  await client.videos.download(video.id, './output.mp4');
}

SDK Clients Coming Soon

Official SDK packages for JavaScript/TypeScript, Python, PHP, and Go are in development.