---
title: "Preview a caption style on one frame"
method: POST
path: "/v1/studio/captions/preview"
tags: ["Captions"]
---

# Preview a caption style on one frame

`POST /v1/studio/captions/preview`

## Request

- Base URL: `https://apihub.co.il`
- URL: `https://apihub.co.il/v1/studio/captions/preview`
- Auth: HTTP bearer

Renders a single JPG with sample text in a style over your video — to choose a look before rendering the whole video. Takes ~2 seconds.

**Billing:** One image · **Rate limit:** 30/min · **Asynchronous**

## Headers

- `Idempotency-Key` string
- `X-Tag` string
- `x-wait-ms` integer

## Request body

- object
  - `at` number: seconds into the video
  - `fit` 'crop' | 'blur' | 'pad'
  - `text` string: Sample caption text
  - `style` union: A preset id (GET /v1/studio/caption-styles) or a style object; `preset` + fields overrides a preset. A retired preset still works: it renders as the default with a warning
    - 'classic' | 'hormozi' | 'tiktok' | 'karaoke' | 'one-word' | 'marker' | 'news' | 'neon' | 'quiet' | 'pop' | 'typewriter' | 'bounce' | 'underline' | 'elegant' | 'handwritten' | 'comic' | 'sticker' | 'drama' | 'cinema' | 'shadow' | 'lime' | 'retro' | 'scale' | 'bubble' | 'sport' | 'minimal' | 'slide' | 'volt' | 'neon-glow' | 'marker-tape' | 'keyword-pop' | 'keyword-box' | 'editorial' | 'poster' | 'broadcast' | 'soft' | 'cards' | 'cards-bold' | 'cards-neon' | 'kinetic-pop' | 'fire' | 'gold' | 'glass' | 'vhs' | 'candy' | 'look-clean' | 'look-bold-lime' | 'look-night' | 'look-warm'
    - object
      - `x` number
      - `y` number
      - `font` string
      - `glow` number
      - `mode` 'line' | 'cards'
      - `size` number
      - `skew` number
      - `color` string
      - `fonts` string[]
      - `anchor` 'top' | 'center' | 'bottom'
      - `hollow` boolean
      - `italic` boolean
      - `margin` number
      - `preset` 'classic' | 'hormozi' | 'tiktok' | 'karaoke' | 'one-word' | 'marker' | 'news' | 'neon' | 'quiet' | 'pop' | 'typewriter' | 'bounce' | 'underline' | 'elegant' | 'handwritten' | 'comic' | 'sticker' | 'drama' | 'cinema' | 'shadow' | 'lime' | 'retro' | 'scale' | 'bubble' | 'sport' | 'minimal' | 'slide' | 'volt' | 'neon-glow' | 'marker-tape' | 'keyword-pop' | 'keyword-box' | 'editorial' | 'poster' | 'broadcast' | 'soft' | 'cards' | 'cards-bold' | 'cards-neon' | 'kinetic-pop' | 'fire' | 'gold' | 'glass' | 'vhs' | 'candy' | 'look-clean' | 'look-bold-lime' | 'look-night' | 'look-warm'
      - `shadow` number
      - `weight` integer
      - `outline` number
      - `palette` object[]
        - `color` string, required: Text colour of the card
        - `background` string, nullable: Box behind the whole card (null = none)
      - `grouping` integer
      - `keywords` string[]
      - `position` 'bottom' | 'center' | 'top'
      - `animation` 'none' | 'fade' | 'highlight' | 'karaoke' | 'pop' | 'bounce' | 'typewriter' | 'slide' | 'word'
      - `max_lines` integer
      - `max_words` integer
      - `uppercase` boolean
      - `background` string, nullable
      - `past_color` string, nullable
      - `side_margin` number
      - `word_radius` number
      - `active_color` string
      - `active_scale` number
      - `shadow_color` string
      - `active_rotate` number
      - `keyword_color` string
      - `keyword_scale` number
      - `outline_color` string
      - `future_opacity` number
      - `letter_spacing` number
      - `underline_color` string
      - `word_background` string, nullable
      - `active_underline` number
      - `active_background` string, nullable
      - `background_radius` number
      - `emphasize_numbers` boolean
      - `keyword_background` string, nullable
      - `max_chars_per_line` integer
      - `keyword_active_color` string
  - `video_url` string, uri, required: Public URL of the source video (mp4, mov, webm, mkv…) — or the `url` of a previous render
  - `resolution` '480' | '720' | '1080' | 'source'
  - `aspect_ratio` 'original' | '9:16' | '16:9' | '1:1' | '4:5' | '4:3'

## Response `200`

Completed (or 202 while processing)

- object
  - `id` string: Execution id — stable across internal retries; use it with GET /v1/executions/{id}
  - `status` 'pending' | 'processing' | 'completed' | 'partial' | 'failed' | 'cancelled' | 'timeout'
  - `operation` string
  - `tag` string, nullable: Your X-Tag, if sent
  - `created_at` string, date-time
  - `completed_at` string, date-time, nullable
  - `output` object: Operation result (see each operation). While a Studio render is processing: `stage` (queued · transcribing · downloading · preparing · cleaning_voice · mixing_audio · rendering · finishing), `phase` (the engine's: download · prepare · voice · audio · encode · qa · upload, or null), `progress` (a percent, 0–100) and `progress_fraction` (0–1), `eta_seconds` (seconds left, never below 0) and `estimate_seconds`
  - `error` string, nullable
  - `usage` object
    - `credits_charged` number, nullable
    - `credits_reserved` number
    - `estimated_credits` number
    - `cost_source` 'provider_reported' | 'calculated' | 'estimated' | 'null', nullable
    - `provider_usage` object, nullable: Normalised consumption, e.g. { VIDEO_SECOND: 22.4 }
  - `balance` object
    - `available` number
    - `reserved` number

## Other responses

- `202`: Processing — poll GET /v1/executions/{id}
- `400`: Invalid input
- `402`: Insufficient credits / project budget
- `404`: Resource not found (or not yours)
- `429`: Rate limited
- `503`: Service temporarily paused

---

[API](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai.md) · [All operations](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/revisions/a8caa42835ce?raw)
