5-Minute Quickstart
Install the official TypeScript SDK and trigger your first asynchronous AI generation job.
1. Install SDK
npm install @creatoros/sdk
2. Initialize & Query
import { CreatorOSClient } from '@creatoros/sdk';
const client = new CreatorOSClient({
apiKey: process.env.CREATOROS_API_KEY, // e.g. 'cos_live_...'
workspaceId: 'ws_your_workspace_id',
});
// Submit an asynchronous AI generation job and poll for completion
const job = await client.aiGenerations.submitAndPoll({
type: 'HOOK',
prompt: '10 second TikTok hook about productivity hacks for creators',
});
console.log('Result:', job.result?.generatedContent);