Developer Platform
Build, integrate, and automate with the TikTok AI Factory API and SDKs.
TypeScript SDK
First-class TypeScript support with full type definitions. Coming soon.
REST API Reference
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/auth/register | Create a new user account |
| POST | /api/auth/login | Authenticate and get token |
| GET | /api/workspaces | List user workspaces |
| POST | /api/workspaces/:id/videos | Submit video generation |
| GET | /api/workspaces/:id/videos | List generated videos |
| POST | /api/workspaces/:id/publishing/jobs | Create publish job |
| GET | /api/plans | List subscription plans (public) |
| GET | /api/templates | List 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.