# Skill: effect/spotlight — "החשכה והדגשה" (Dim & spotlight)

Everything dims except one area — a face, a line of text, a product — which stays bright.
הכול מחשיך חוץ מאזור אחד — פנים, שורת טקסט, מוצר — שנשאר מואר.

Category: Overlays & graphics · שכבות וגרפיקה · a real preview: https://media.gpt.org.il/lookbook/effects/spotlight.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/spotlight             // x-wait-ms: 110000
{
  "video_url": "https://media.gpt.org.il/samples/sample-he.mp4",
  "start": 0.5,
  "duration": 3.3,
  "params": {
    "rect": {
      "x": 35,
      "y": 30,
      "width": 55,
      "height": 35
    }
  },
  "output": {
    "resolution": "720",
    "aspect_ratio": "9:16",
    "quality": "standard"
  }
}
```

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

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": "spotlight",
      "params": {
        "rect": {
          "x": 35,
          "y": 30,
          "width": 55,
          "height": 35
        }
      },
      "start": 0.5,
      "duration": 3.3
    }
  ],
  "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 |
|---|---|---|---|
| `rect` | `{"x":20,"y":10,"width":60,"height":36}` | object | The area that stays bright (% of the frame) |
| `dim` | `0.6` | 0.1–0.9 | How dark the rest gets |
| `highlight` | `null` | value | A tint over the bright area, #RRGGBBAA (null = none) |
| `fade_ms` | `300` | 0–1500 | Fade in and out, ms |

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