# Skill: effect/scramble-decode — "טקסט מתפענח" (Scramble decode)

Random characters shuffle and resolve into the real text letter by letter — the hacker reveal.
תווים אקראיים מתערבבים ומתפענחים לטקסט האמיתי אות אחרי אות — החשיפה בסגנון האקר.

Category: Text animations · אנימציות טקסט · a real preview: https://media.gpt.org.il/lookbook/effects/scramble-decode.mp4?v=mv19exzc
Price: **60 credits per finished minute**: the render itself — 1 credit per second of 1080p output. 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/scramble-decode             // x-wait-ms: 110000
{
  "video_url": "https://media.gpt.org.il/samples/sample-he.mp4",
  "text": "הגישה של 2026",
  "start": 0.2,
  "duration": 3.1,
  "params": {
    "y": 22,
    "size": 7.5,
    "duration_ms": 1100
  }
}
```

A normal render: `status: processing` → poll `GET /v1/executions/{id}` until `completed`, then read `output.url`.
Leave out `video_url` and the effect is drawn on a plain black canvas (9:16 unless `output.aspect_ratio` says otherwise).

When it plays: a stretch: `start` + `duration` (seconds of the finished video), or `at` (a word id) + `duration`, or `during` { from, to } (word ids).

## 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",
  "captions": {
    "style": "classic"
  },
  "effects": [
    {
      "id": "scramble-decode",
      "params": {
        "y": 22,
        "size": 7.5,
        "duration_ms": 1100,
        "text": "הגישה של 2026"
      },
      "start": 0.2,
      "duration": 3.1
    }
  ],
  "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 |
|---|---|---|---|
| `text` | **required** | string | The words |
| `size` | `6` | 2–30 | Letter size, % of the frame height |
| `color` | `"#FFFFFF"` | string | Text colour |
| `font` | `"Heebo"` | string | Font family — GET /v1/studio/fonts |
| `bold` | `true` | boolean | Bold |
| `y` | `30` | 2–98 | Height of the text's centre, % from the top |
| `outline` | `0` | 0–20 | An outline round the letters, % of the letter size (0 = none) |
| `outline_color` | `"#000000"` | string | The outline's colour |
| `shadow` | `true` | boolean | A soft shadow under the letters |
| `duration_ms` | `900` | 200–5000 | How long until the last letter resolves, ms |
| `order` | `"reading"` | `reading` · `random` | The order the letters resolve in |
| `charset` | `"auto"` | `auto` · `hebrew` · `latin` · `digits` · `symbols` · `custom` | What the letters shuffle through (auto = each letter's own script) |
| `custom_chars` | `""` | string | custom: the characters to shuffle through |
| `unresolved_color` | `"#7CFFB2"` | string | The colour of letters still shuffling |
| `step_ms` | `50` | 30–200 | How often a shuffling letter changes, ms |

GET `/v1/effects/scramble-decode` 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.
