# Skill: effect/karaoke-sweep — "כתוביות קריוקי" (Karaoke sweep captions)

Captions where each word fills with colour as it is said — sweeping right to left in Hebrew.
כתוביות שבהן כל מילה מתמלאת בצבע בזמן שהיא נאמרת — מימין לשמאל בעברית.

Category: Text animations · אנימציות טקסט · a real preview: https://media.gpt.org.il/lookbook/effects/karaoke-sweep.mp4?v=mv19exzc
Price: **61 credits per finished minute**: the render (1 credit per second of 1080p output) + the transcript of the speech (≈ 1 a minute; none with `transcript_id` or `words`). Combined with captions, a hook or other effects: still one render, nothing more for combining.

Base URL: `https://apihub.co.il` · Auth: `Authorization: Bearer <API key>` · Docs: `/docs` (group "Video Effects")
Send `X-Tag: <job name>` on every call of one video; `GET /v1/usage?tag=<job name>` returns what it cost.
**Files are kept 24 hours** — download the finished video.

---

## 1. On its own — one call

```jsonc
POST /v1/effects/karaoke-sweep             // x-wait-ms: 110000
{
  "video_url": "https://media.gpt.org.il/samples/sample-he.mp4"
}
```

A normal render: `status: processing` → poll `GET /v1/executions/{id}` until `completed`, then read `output.url`.

When it plays: the whole video, or a stretch: `start` + `duration`, `at` + `duration`, or `during`.

## 2. With captions, a hook and other effects — the same render

```jsonc
POST /v1/studio/edit               // x-wait-ms: 110000
{
  "video_url": "<the video>",
  "language_code": "he",
  "effects": [
    {
      "id": "karaoke-sweep"
    }
  ],
  "audio": {
    "normalize": true
  },
  "output": {
    "aspect_ratio": "9:16",
    "resolution": "1080",
    "fit": "crop",
    "quality": "high"
  }
}
```

`effects` is a list: add more entries for more effects. The engine applies them by pipeline stage (cuts and time →
camera → grade and looks → overlays → text and captions → sound), never by their order in the list. An edit has one
`transition`, one `color` grade, one `music` bed, one `speed` and one caption style: two effects that set the same
one are refused with a message that names them.

## 3. Params

| param | default | range / options | what it does |
|---|---|---|---|
| `size` | `5.2` | 2–12 | Letter size, % of the frame height |
| `y` | `72` | 5–95 | Height of the line, % from the top |
| `color` | `"#FFFFFF"` | string | The words before they are said |
| `fill_color` | `"#D0F808"` | string | The colour that sweeps in |
| `outline_color` | `"#000000"` | string | The outline |
| `outline` | `9` | 0–30 | Outline, % of the letter size |
| `font` | `"Heebo"` | string | Font family — GET /v1/studio/fonts |
| `max_words` | `4` | 1–8 | Words on a line at most |

GET `/v1/effects/karaoke-sweep` returns the same as JSON (with the full body schema). Every field has a default; numbers
outside their range are refused with the field's name.
