# Director Frame Gen

> Prepare a Vidjutsu clone starting image by extracting source frame zero, creating or reusing a tenant-owned character, and composing the frame through the tenant-scoped Gateway.

- Skill: `tfcbot/director-frame-gen` (Agent Skill)
- Install (CLI): `npx skillmds@latest add tfcbot/director-frame-gen`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tfcbot/director-frame-gen/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tfcbot (https://skillmd.com/u/tfcbot)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tfcbot/director-frame-gen

---


# Director — Frame Gen

Create the identity-locked starting image required by Kling Motion Control.

## 1. Extract frame zero

Use the raw API so frame zero is sent as the required numeric array. The call is
synchronous:

```http
POST https://api.vidjutsu.ai/v1/extract
Authorization: Bearer <VIDJUTSU_API_KEY>
Content-Type: application/json

{"mediaUrl":"<staged source URL>","frames":[0]}
```

Use `frames[0].url` as `firstFrame`. Extract is limited to 100 requests/day.

## 2. Resolve a reusable character

Prefer an existing tenant-owned character ID. Otherwise create one once:

```http
POST https://api.vidjutsu.ai/v1/characters
Authorization: Bearer <VIDJUTSU_API_KEY>
Content-Type: application/json

{"prompt":"<identity description>","referenceImageUrl":"<optional HTTPS image>"}
```

Store the synchronous response `{id,imageUrl,model}` and reuse `id`.

## 3. Create the starting image

```http
POST https://api.vidjutsu.ai/v1/clones/starting-image
Authorization: Bearer <VIDJUTSU_API_KEY>
Content-Type: application/json

{
  "firstFrame": "<frames[0].url>",
  "characterId": "<char_...>",
  "prompt": "Replace only the performer identity while preserving pose, framing, lighting, clothing silhouette, background, and composition."
}
```

This call is synchronous and returns `{imageUrl,model}`. Vidjutsu sends the two
images through the authenticated tenant's scoped Gateway allocation and
enforces removal of captions, watermarks, and platform UI.

## Rules

- `firstFrame`, `characterId`, and `prompt` are all required.
- Do not send legacy identity-image or source-video fields.
- Do not call an image provider directly.
- Reuse completed extraction, character, and starting-image results.
- These stages share the 50/day clone admission group and have no separate
  per-operation charge.

