# Skill: effect/pip — "תמונה בתוך תמונה" (Picture-in-picture)

A second video or image in a small window — corner, floating, tilted, with a shadow.
וידאו או תמונה נוספים בחלון קטן — בפינה, מרחף, מוטה, עם צל.

Category: Layouts · פריסות מסך · a real preview: https://media.gpt.org.il/lookbook/effects/pip.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/pip             // x-wait-ms: 110000
{
  "video_url": "https://media.gpt.org.il/samples/sample-he.mp4",
  "start": 0.4,
  "duration": 3.6,
  "params": {
    "url": "https://media.gpt.org.il/lookbook/effects/assets/veo-car.mp4",
    "position": "bottom-right",
    "size": 46
  }
}
```

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": "pip",
      "params": {
        "url": "https://media.gpt.org.il/lookbook/effects/assets/veo-car.mp4",
        "position": "bottom-right",
        "size": 46
      },
      "start": 0.4,
      "duration": 3.6
    }
  ],
  "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 |
|---|---|---|---|
| `url` | **required** | string | The image or clip in the window |
| `position` | `"top-right"` | `top-left` · `top-right` · `bottom-left` · `bottom-right` · `center` | Where the window sits |
| `size` | `44` | 10–100 | Window width, % of the frame width |
| `rotate` | `-4` | -45–45 | Tilt, degrees |
| `float` | `1` | 0–10 | A gentle up-and-down drift, % of the height |
| `shadow` | `true` | boolean | A soft drop shadow |
| `fade_ms` | `250` | 0–2000 | Fade in and out, ms |

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