---
title: Three separate five-second segments, three — 2.5 Prompt | RunAPI | RunAPI
description: Copy this RunAPI prompt, view agent setup steps, and use API code for 2.5.
url: https://runapi.ai/prompts/prm_Z2j9MezP8BN0CZwA8rWwJQnx.md
canonical: https://runapi.ai/prompts/prm_Z2j9MezP8BN0CZwA8rWwJQnx
locale: en
site: RunAPI
image: https://runapi.ai/assets/opengraph-bfaaa0f0.png
prompt_id: 12400
model: '2.5'
modality: video
endpoint: "/api/v1/2.5/text_to_video"
---

> HTML version: https://runapi.ai/prompts/prm_Z2j9MezP8BN0CZwA8rWwJQnx
> Site index for agents: https://runapi.ai/llms.txt


# Three separate five-second segments, three

Copy this RunAPI prompt, view agent setup steps, and use API code for 2.5.

**Prompts** · Video

## Prompt

```text
Three separate five-second segments, three different casts, real-time speed throughout, 16:9. 0.0s to 5.0s — 1939 frontier town. An adult man gallops flat out down the packed-dirt main street at 45 km/h, wooden storefronts and hitching rails flying past on both sides. A second man on horseback rides hard behind him, closing. Dust at 50% density. Townspeople scatter onto the boardwalk. WS, 63° FOV, camera vehicle running parallel at the same speed, lens 1.2 m off the ground. 2.5s HARD CUT. CU, 29° FOV, locked tripod, eye-level. The lead rider extends a revolver back past his right shoulder and fires once behind him — jaw set, brows pulled down and together, eyes narrowed against the dust. Muzzle flash blooms and dies, smoke tears sideways past his face. Single flat report, a wooden sign splinters off-screen. Wardrobe: dust-caked tan canvas duster, black flat-brim hat with cord under the chin, red neckerchief at the collar. The rider behind him in a dark long coat and wide grey hat. Lighting: hard single key from high camera-left, 5600K, deep unfilled shadows. Look: dense saturated dye-transfer color process, fine gate weave, 1.37:1 pillarbox masking inside the frame. 5.0s HARD CUT. 5.0s to 10.0s — 1962 roadside diner. An adult woman sits on the left side of a booth, an adult man on the right, laminate table between them, chrome napkin holder in the foreground, a coral sedan parked outside the plate window behind him. She grips a coffee cup in her right hand, knuckles pale, tears already on her cheeks, mascara running, chest heaving between breaths. He sits rigid, eyes down. MS two-shot, 63° FOV, locked tripod, eye-level, 1.6 m from the table edge. Woman, shouting through tears: 'You were seeing her! I know everything!' — mid-alto breaking into a shout. 7.5s HARD CUT. MCU of the woman, 29° FOV, head and shoulders, slow dolly-in of 25 cm. She slams the cup down onto the table — cup stays flat, coffee jumps out and settles, contact shadow visible under the base. Her mouth stays open on the last word, lower lip trembling, breath catching in short gasps. Cutlery rattles at a neighbouring table, two other diners turn their heads, one first and the other a beat later. Man, off-screen, immediately: 'You're wrong!' — low baritone, raised, defensive. She stares at him, breath shaking, saying nothing. Wardrobe: turquoise cotton dress with a buttoned collar and short sleeves, cream cardigan over the left shoulder only, tall lacquered beehive, black winged liner, coral lipstick. Opposite her, white short-sleeve button shirt with rolled cuffs, pomaded side part. Lighting: daylight through the window camera-right, 4000K, soft fill off the white tabletop. Look: warm amber-shifted film stock, soft contrast, anamorphic oval highlights, 2.35:1 letterbox masking inside the frame. 10.0s HARD CUT. 10.0s to 15.0s — 2004 night city street. Street after rain, tarmac wet and mirror-black with neon and headlamps reflected in it. A parked car idles with tyre smoke at 60% density rolling out from under it. Eight to ten adults in their twenties stand around it, rim-lit only, moving on the beat with staggered timing — one nods first, two more join a half-beat behind. WS, 84° FOV, handheld, lens 40 cm off the tarmac, frame canted 12° clockwise, operator walking backwards at 4 km/h. An adult man strides straight at the lens on the beat, right hand cutting the air on each downbeat, mouthing his verse. 12.5s HARD CUT. MCU, 18° FOV, head and shoulders, handheld with 1-2 cm tremor, frame canted 8° counter-clockwise. An adult woman raises her chin and sings the hook straight into the lens. Gold hoops and layered necklaces swing on the beat, reflected neon slides across pink satin. Wardrobe: man in a white cotton tank top and straight-leg blue denim jeans, thick gold rope chain, white fitted cap turned to the right, black ink tattoos on the right knuckles. Woman in a pink satin top and a blue denim skirt with a wide studded belt, gold hoop earrings, layered gold necklaces, gold bangles on the right wrist, glossy pink lipstick, heavy shimmer eye makeup, long polished nails. Crowd in sports jerseys, leather and denim jackets, knit tops, fitted caps, tracksuits, white sneakers. Audio: mid-2000s club hip-hop, heavy sub-bass, syncopated snare, 92 BPM. Male rap verse over the wide, female sung hook over the close, model-generated lyrics with open vowels. Lighting: sodium streetlamp behind camera-left, warm patches on faces, headlamps as cold backlight, 3200K against 8500K rim. Look: cyan-desaturated shadows, crushed blacks, visible fine grain, 1.85:1 masking. Cuts land only at the six specified points. No on-screen text, no subtitles.
```

<!-- prompt-detail-slot: generation-parameters -->
<!-- /prompt-detail-slot: generation-parameters -->

<!-- prompt-detail-slot: generate-cta -->

### Generate this prompt

| Model | 2.5 |
|---|---|
| Estimated cost | Pricing pending |
| Endpoint | `/api/v1/2.5/text_to_video` |

[Sign in to generate](https://runapi.ai/login)

Your generated image will appear here
<!-- /prompt-detail-slot: generate-cta -->

<!-- prompt-detail-slot: prompt-breakdown -->

## Prompt Breakdown

### Subject

Three separate five-second segments, three

### Atmosphere

music / Video

### Technical

2.5 / 2.5 / Text To Video / /api/v1/2.5/text_to_video

### Style

anamorphic, club-hip-hop, diner, frontier-town, hard-cut, horseback, neon, revolver

<!-- /prompt-detail-slot: prompt-breakdown -->

<!-- prompt-detail-slot: supported-models -->
## Models That Support This Prompt

| Modality | Model | Price | Try |
|---|---|---|---|
| Video | HappyHorse/happyhorse-1.0-r2v | $0.18-$0.32 / second | [Try](https://runapi.ai/models/happyhorse/1.0-r2v.md) |
| Video | HappyHorse/happyhorse-1.0-t2v | $0.18-$0.32 / second | [Try](https://runapi.ai/models/happyhorse/1.0-t2v.md) |
| Video | HappyHorse/happyhorse-character | $0.24-$0.41 / second | [Try](https://runapi.ai/models/happyhorse/character.md) |
| Video | HappyHorse/happyhorse-text-to-video | $0.24-$0.41 / second | [Try](https://runapi.ai/models/happyhorse/text-to-video.md) |
| Video | Wan/wan-2.2-a14b-text-to-video-turbo | $0.30-$0.60 / video | [Try](https://runapi.ai/models/wan/2.2-a14b-text-to-video-turbo.md) |

<!-- /prompt-detail-slot: supported-models -->

## RUN DETAILS

| Field | Value |
|---|---|
| Model | `2.5` |
| Modality | Video |
| Category | music |
| Tags | anamorphic, club-hip-hop, diner, frontier-town, hard-cut, horseback, neon, revolver |

## Use with an agent

### Claude Code

1. claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
2. Restart Claude Code
3. Paste this prompt: Generate a video: "Three separate five-second segments, three different casts, real-time speed throughout, 16:9. 0.0s to 5.0s — 1939 frontier town. An adult man gallops flat out down the packed-dirt main street at 45 km/h, wooden storefronts and hitching rails flying past on both sides. A second man on horseback rides hard behind him, closing. Dust at 50% density. Townspeople scatter onto the boardwalk. WS, 63° FOV, camera vehicle running parallel at the same speed, lens 1.2 m off the ground. 2.5s HARD CUT. CU, 29° FOV, locked tripod, eye-level. The lead rider extends a revolver back past his right shoulder and fires once behind him — jaw set, brows pulled down and together, eyes narrowed against the dust. Muzzle flash blooms and dies, smoke tears sideways past his face. Single flat report, a wooden sign splinters off-screen. Wardrobe: dust-caked tan canvas duster, black flat-brim hat with cord under the chin, red neckerchief at the collar. The rider behind him in a dark long coat and wide grey hat. Lighting: hard single key from high camera-left, 5600K, deep unfilled shadows. Look: dense saturated dye-transfer color process, fine gate weave, 1.37:1 pillarbox masking inside the frame. 5.0s HARD CUT. 5.0s to 10.0s — 1962 roadside diner. An adult woman sits on the left side of a booth, an adult man on the right, laminate table between them, chrome napkin holder in the foreground, a coral sedan parked outside the plate window behind him. She grips a coffee cup in her right hand, knuckles pale, tears already on her cheeks, mascara running, chest heaving between breaths. He sits rigid, eyes down. MS two-shot, 63° FOV, locked tripod, eye-level, 1.6 m from the table edge. Woman, shouting through tears: 'You were seeing her! I know everything!' — mid-alto breaking into a shout. 7.5s HARD CUT. MCU of the woman, 29° FOV, head and shoulders, slow dolly-in of 25 cm. She slams the cup down onto the table — cup stays flat, coffee jumps out and settles, contact shadow visible under the base. Her mouth stays open on the last word, lower lip trembling, breath catching in short gasps. Cutlery rattles at a neighbouring table, two other diners turn their heads, one first and the other a beat later. Man, off-screen, immediately: 'You're wrong!' — low baritone, raised, defensive. She stares at him, breath shaking, saying nothing. Wardrobe: turquoise cotton dress with a buttoned collar and short sleeves, cream cardigan over the left shoulder only, tall lacquered beehive, black winged liner, coral lipstick. Opposite her, white short-sleeve button shirt with rolled cuffs, pomaded side part. Lighting: daylight through the window camera-right, 4000K, soft fill off the white tabletop. Look: warm amber-shifted film stock, soft contrast, anamorphic oval highlights, 2.35:1 letterbox masking inside the frame. 10.0s HARD CUT. 10.0s to 15.0s — 2004 night city street. Street after rain, tarmac wet and mirror-black with neon and headlamps reflected in it. A parked car idles with tyre smoke at 60% density rolling out from under it. Eight to ten adults in their twenties stand around it, rim-lit only, moving on the beat with staggered timing — one nods first, two more join a half-beat behind. WS, 84° FOV, handheld, lens 40 cm off the tarmac, frame canted 12° clockwise, operator walking backwards at 4 km/h. An adult man strides straight at the lens on the beat, right hand cutting the air on each downbeat, mouthing his verse. 12.5s HARD CUT. MCU, 18° FOV, head and shoulders, handheld with 1-2 cm tremor, frame canted 8° counter-clockwise. An adult woman raises her chin and sings the hook straight into the lens. Gold hoops and layered necklaces swing on the beat, reflected neon slides across pink satin. Wardrobe: man in a white cotton tank top and straight-leg blue denim jeans, thick gold rope chain, white fitted cap turned to the right, black ink tattoos on the right knuckles. Woman in a pink satin top and a blue denim skirt with a wide studded belt, gold hoop earrings, layered gold necklaces, gold bangles on the right wrist, glossy pink lipstick, heavy shimmer eye makeup, long polished nails. Crowd in sports jerseys, leather and denim jackets, knit tops, fitted caps, tracksuits, white sneakers. Audio: mid-2000s club hip-hop, heavy sub-bass, syncopated snare, 92 BPM. Male rap verse over the wide, female sung hook over the close, model-generated lyrics with open vowels. Lighting: sodium streetlamp behind camera-left, warm patches on faces, headlamps as cold backlight, 3200K against 8500K rim. Look: cyan-desaturated shadows, crushed blacks, visible fine grain, 1.85:1 masking. Cuts land only at the six specified points. No on-screen text, no subtitles."

### Codex

1. codex plugin install runapi-mcp@agents
2. Restart Codex
3. Paste this prompt: Generate a video: "Three separate five-second segments, three different casts, real-time speed throughout, 16:9. 0.0s to 5.0s — 1939 frontier town. An adult man gallops flat out down the packed-dirt main street at 45 km/h, wooden storefronts and hitching rails flying past on both sides. A second man on horseback rides hard behind him, closing. Dust at 50% density. Townspeople scatter onto the boardwalk. WS, 63° FOV, camera vehicle running parallel at the same speed, lens 1.2 m off the ground. 2.5s HARD CUT. CU, 29° FOV, locked tripod, eye-level. The lead rider extends a revolver back past his right shoulder and fires once behind him — jaw set, brows pulled down and together, eyes narrowed against the dust. Muzzle flash blooms and dies, smoke tears sideways past his face. Single flat report, a wooden sign splinters off-screen. Wardrobe: dust-caked tan canvas duster, black flat-brim hat with cord under the chin, red neckerchief at the collar. The rider behind him in a dark long coat and wide grey hat. Lighting: hard single key from high camera-left, 5600K, deep unfilled shadows. Look: dense saturated dye-transfer color process, fine gate weave, 1.37:1 pillarbox masking inside the frame. 5.0s HARD CUT. 5.0s to 10.0s — 1962 roadside diner. An adult woman sits on the left side of a booth, an adult man on the right, laminate table between them, chrome napkin holder in the foreground, a coral sedan parked outside the plate window behind him. She grips a coffee cup in her right hand, knuckles pale, tears already on her cheeks, mascara running, chest heaving between breaths. He sits rigid, eyes down. MS two-shot, 63° FOV, locked tripod, eye-level, 1.6 m from the table edge. Woman, shouting through tears: 'You were seeing her! I know everything!' — mid-alto breaking into a shout. 7.5s HARD CUT. MCU of the woman, 29° FOV, head and shoulders, slow dolly-in of 25 cm. She slams the cup down onto the table — cup stays flat, coffee jumps out and settles, contact shadow visible under the base. Her mouth stays open on the last word, lower lip trembling, breath catching in short gasps. Cutlery rattles at a neighbouring table, two other diners turn their heads, one first and the other a beat later. Man, off-screen, immediately: 'You're wrong!' — low baritone, raised, defensive. She stares at him, breath shaking, saying nothing. Wardrobe: turquoise cotton dress with a buttoned collar and short sleeves, cream cardigan over the left shoulder only, tall lacquered beehive, black winged liner, coral lipstick. Opposite her, white short-sleeve button shirt with rolled cuffs, pomaded side part. Lighting: daylight through the window camera-right, 4000K, soft fill off the white tabletop. Look: warm amber-shifted film stock, soft contrast, anamorphic oval highlights, 2.35:1 letterbox masking inside the frame. 10.0s HARD CUT. 10.0s to 15.0s — 2004 night city street. Street after rain, tarmac wet and mirror-black with neon and headlamps reflected in it. A parked car idles with tyre smoke at 60% density rolling out from under it. Eight to ten adults in their twenties stand around it, rim-lit only, moving on the beat with staggered timing — one nods first, two more join a half-beat behind. WS, 84° FOV, handheld, lens 40 cm off the tarmac, frame canted 12° clockwise, operator walking backwards at 4 km/h. An adult man strides straight at the lens on the beat, right hand cutting the air on each downbeat, mouthing his verse. 12.5s HARD CUT. MCU, 18° FOV, head and shoulders, handheld with 1-2 cm tremor, frame canted 8° counter-clockwise. An adult woman raises her chin and sings the hook straight into the lens. Gold hoops and layered necklaces swing on the beat, reflected neon slides across pink satin. Wardrobe: man in a white cotton tank top and straight-leg blue denim jeans, thick gold rope chain, white fitted cap turned to the right, black ink tattoos on the right knuckles. Woman in a pink satin top and a blue denim skirt with a wide studded belt, gold hoop earrings, layered gold necklaces, gold bangles on the right wrist, glossy pink lipstick, heavy shimmer eye makeup, long polished nails. Crowd in sports jerseys, leather and denim jackets, knit tops, fitted caps, tracksuits, white sneakers. Audio: mid-2000s club hip-hop, heavy sub-bass, syncopated snare, 92 BPM. Male rap verse over the wide, female sung hook over the close, model-generated lyrics with open vowels. Lighting: sodium streetlamp behind camera-left, warm patches on faces, headlamps as cold backlight, 3200K against 8500K rim. Look: cyan-desaturated shadows, crushed blacks, visible fine grain, 1.85:1 masking. Cuts land only at the six specified points. No on-screen text, no subtitles."

### Cursor

1. npx @runapi.ai/mcp init cursor
2. Restart Cursor
3. Paste this prompt: Generate a video: "Three separate five-second segments, three different casts, real-time speed throughout, 16:9. 0.0s to 5.0s — 1939 frontier town. An adult man gallops flat out down the packed-dirt main street at 45 km/h, wooden storefronts and hitching rails flying past on both sides. A second man on horseback rides hard behind him, closing. Dust at 50% density. Townspeople scatter onto the boardwalk. WS, 63° FOV, camera vehicle running parallel at the same speed, lens 1.2 m off the ground. 2.5s HARD CUT. CU, 29° FOV, locked tripod, eye-level. The lead rider extends a revolver back past his right shoulder and fires once behind him — jaw set, brows pulled down and together, eyes narrowed against the dust. Muzzle flash blooms and dies, smoke tears sideways past his face. Single flat report, a wooden sign splinters off-screen. Wardrobe: dust-caked tan canvas duster, black flat-brim hat with cord under the chin, red neckerchief at the collar. The rider behind him in a dark long coat and wide grey hat. Lighting: hard single key from high camera-left, 5600K, deep unfilled shadows. Look: dense saturated dye-transfer color process, fine gate weave, 1.37:1 pillarbox masking inside the frame. 5.0s HARD CUT. 5.0s to 10.0s — 1962 roadside diner. An adult woman sits on the left side of a booth, an adult man on the right, laminate table between them, chrome napkin holder in the foreground, a coral sedan parked outside the plate window behind him. She grips a coffee cup in her right hand, knuckles pale, tears already on her cheeks, mascara running, chest heaving between breaths. He sits rigid, eyes down. MS two-shot, 63° FOV, locked tripod, eye-level, 1.6 m from the table edge. Woman, shouting through tears: 'You were seeing her! I know everything!' — mid-alto breaking into a shout. 7.5s HARD CUT. MCU of the woman, 29° FOV, head and shoulders, slow dolly-in of 25 cm. She slams the cup down onto the table — cup stays flat, coffee jumps out and settles, contact shadow visible under the base. Her mouth stays open on the last word, lower lip trembling, breath catching in short gasps. Cutlery rattles at a neighbouring table, two other diners turn their heads, one first and the other a beat later. Man, off-screen, immediately: 'You're wrong!' — low baritone, raised, defensive. She stares at him, breath shaking, saying nothing. Wardrobe: turquoise cotton dress with a buttoned collar and short sleeves, cream cardigan over the left shoulder only, tall lacquered beehive, black winged liner, coral lipstick. Opposite her, white short-sleeve button shirt with rolled cuffs, pomaded side part. Lighting: daylight through the window camera-right, 4000K, soft fill off the white tabletop. Look: warm amber-shifted film stock, soft contrast, anamorphic oval highlights, 2.35:1 letterbox masking inside the frame. 10.0s HARD CUT. 10.0s to 15.0s — 2004 night city street. Street after rain, tarmac wet and mirror-black with neon and headlamps reflected in it. A parked car idles with tyre smoke at 60% density rolling out from under it. Eight to ten adults in their twenties stand around it, rim-lit only, moving on the beat with staggered timing — one nods first, two more join a half-beat behind. WS, 84° FOV, handheld, lens 40 cm off the tarmac, frame canted 12° clockwise, operator walking backwards at 4 km/h. An adult man strides straight at the lens on the beat, right hand cutting the air on each downbeat, mouthing his verse. 12.5s HARD CUT. MCU, 18° FOV, head and shoulders, handheld with 1-2 cm tremor, frame canted 8° counter-clockwise. An adult woman raises her chin and sings the hook straight into the lens. Gold hoops and layered necklaces swing on the beat, reflected neon slides across pink satin. Wardrobe: man in a white cotton tank top and straight-leg blue denim jeans, thick gold rope chain, white fitted cap turned to the right, black ink tattoos on the right knuckles. Woman in a pink satin top and a blue denim skirt with a wide studded belt, gold hoop earrings, layered gold necklaces, gold bangles on the right wrist, glossy pink lipstick, heavy shimmer eye makeup, long polished nails. Crowd in sports jerseys, leather and denim jackets, knit tops, fitted caps, tracksuits, white sneakers. Audio: mid-2000s club hip-hop, heavy sub-bass, syncopated snare, 92 BPM. Male rap verse over the wide, female sung hook over the close, model-generated lyrics with open vowels. Lighting: sodium streetlamp behind camera-left, warm patches on faces, headlamps as cold backlight, 3200K against 8500K rim. Look: cyan-desaturated shadows, crushed blacks, visible fine grain, 1.85:1 masking. Cuts land only at the six specified points. No on-screen text, no subtitles."

### Windsurf

1. npx @runapi.ai/mcp init windsurf
2. Restart Windsurf
3. Paste this prompt: Generate a video: "Three separate five-second segments, three different casts, real-time speed throughout, 16:9. 0.0s to 5.0s — 1939 frontier town. An adult man gallops flat out down the packed-dirt main street at 45 km/h, wooden storefronts and hitching rails flying past on both sides. A second man on horseback rides hard behind him, closing. Dust at 50% density. Townspeople scatter onto the boardwalk. WS, 63° FOV, camera vehicle running parallel at the same speed, lens 1.2 m off the ground. 2.5s HARD CUT. CU, 29° FOV, locked tripod, eye-level. The lead rider extends a revolver back past his right shoulder and fires once behind him — jaw set, brows pulled down and together, eyes narrowed against the dust. Muzzle flash blooms and dies, smoke tears sideways past his face. Single flat report, a wooden sign splinters off-screen. Wardrobe: dust-caked tan canvas duster, black flat-brim hat with cord under the chin, red neckerchief at the collar. The rider behind him in a dark long coat and wide grey hat. Lighting: hard single key from high camera-left, 5600K, deep unfilled shadows. Look: dense saturated dye-transfer color process, fine gate weave, 1.37:1 pillarbox masking inside the frame. 5.0s HARD CUT. 5.0s to 10.0s — 1962 roadside diner. An adult woman sits on the left side of a booth, an adult man on the right, laminate table between them, chrome napkin holder in the foreground, a coral sedan parked outside the plate window behind him. She grips a coffee cup in her right hand, knuckles pale, tears already on her cheeks, mascara running, chest heaving between breaths. He sits rigid, eyes down. MS two-shot, 63° FOV, locked tripod, eye-level, 1.6 m from the table edge. Woman, shouting through tears: 'You were seeing her! I know everything!' — mid-alto breaking into a shout. 7.5s HARD CUT. MCU of the woman, 29° FOV, head and shoulders, slow dolly-in of 25 cm. She slams the cup down onto the table — cup stays flat, coffee jumps out and settles, contact shadow visible under the base. Her mouth stays open on the last word, lower lip trembling, breath catching in short gasps. Cutlery rattles at a neighbouring table, two other diners turn their heads, one first and the other a beat later. Man, off-screen, immediately: 'You're wrong!' — low baritone, raised, defensive. She stares at him, breath shaking, saying nothing. Wardrobe: turquoise cotton dress with a buttoned collar and short sleeves, cream cardigan over the left shoulder only, tall lacquered beehive, black winged liner, coral lipstick. Opposite her, white short-sleeve button shirt with rolled cuffs, pomaded side part. Lighting: daylight through the window camera-right, 4000K, soft fill off the white tabletop. Look: warm amber-shifted film stock, soft contrast, anamorphic oval highlights, 2.35:1 letterbox masking inside the frame. 10.0s HARD CUT. 10.0s to 15.0s — 2004 night city street. Street after rain, tarmac wet and mirror-black with neon and headlamps reflected in it. A parked car idles with tyre smoke at 60% density rolling out from under it. Eight to ten adults in their twenties stand around it, rim-lit only, moving on the beat with staggered timing — one nods first, two more join a half-beat behind. WS, 84° FOV, handheld, lens 40 cm off the tarmac, frame canted 12° clockwise, operator walking backwards at 4 km/h. An adult man strides straight at the lens on the beat, right hand cutting the air on each downbeat, mouthing his verse. 12.5s HARD CUT. MCU, 18° FOV, head and shoulders, handheld with 1-2 cm tremor, frame canted 8° counter-clockwise. An adult woman raises her chin and sings the hook straight into the lens. Gold hoops and layered necklaces swing on the beat, reflected neon slides across pink satin. Wardrobe: man in a white cotton tank top and straight-leg blue denim jeans, thick gold rope chain, white fitted cap turned to the right, black ink tattoos on the right knuckles. Woman in a pink satin top and a blue denim skirt with a wide studded belt, gold hoop earrings, layered gold necklaces, gold bangles on the right wrist, glossy pink lipstick, heavy shimmer eye makeup, long polished nails. Crowd in sports jerseys, leather and denim jackets, knit tops, fitted caps, tracksuits, white sneakers. Audio: mid-2000s club hip-hop, heavy sub-bass, syncopated snare, 92 BPM. Male rap verse over the wide, female sung hook over the close, model-generated lyrics with open vowels. Lighting: sodium streetlamp behind camera-left, warm patches on faces, headlamps as cold backlight, 3200K against 8500K rim. Look: cyan-desaturated shadows, crushed blacks, visible fine grain, 1.85:1 masking. Cuts land only at the six specified points. No on-screen text, no subtitles."

<!-- api-example-tabs-slot -->

<!-- ## API examples -->
## Generate via API

### curl

```curl
curl -X POST https://runapi.ai/api/v1/2.5/text_to_video \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "model": "2.5",
  "prompt": "Three separate five-second segments, three different casts, real-time speed throughout, 16:9. 0.0s to 5.0s — 1939 frontier town. An adult man gallops flat out down the packed-dirt main street at 45 km/h, wooden storefronts and hitching rails flying past on both sides. A second man on horseback rides hard behind him, closing. Dust at 50% density. Townspeople scatter onto the boardwalk. WS, 63° FOV, camera vehicle running parallel at the same speed, lens 1.2 m off the ground. 2.5s HARD CUT. CU, 29° FOV, locked tripod, eye-level. The lead rider extends a revolver back past his right shoulder and fires once behind him — jaw set, brows pulled down and together, eyes narrowed against the dust. Muzzle flash blooms and dies, smoke tears sideways past his face. Single flat report, a wooden sign splinters off-screen. Wardrobe: dust-caked tan canvas duster, black flat-brim hat with cord under the chin, red neckerchief at the collar. The rider behind him in a dark long coat and wide grey hat. Lighting: hard single key from high camera-left, 5600K, deep unfilled shadows. Look: dense saturated dye-transfer color process, fine gate weave, 1.37:1 pillarbox masking inside the frame. 5.0s HARD CUT. 5.0s to 10.0s — 1962 roadside diner. An adult woman sits on the left side of a booth, an adult man on the right, laminate table between them, chrome napkin holder in the foreground, a coral sedan parked outside the plate window behind him. She grips a coffee cup in her right hand, knuckles pale, tears already on her cheeks, mascara running, chest heaving between breaths. He sits rigid, eyes down. MS two-shot, 63° FOV, locked tripod, eye-level, 1.6 m from the table edge. Woman, shouting through tears: 'You were seeing her! I know everything!' — mid-alto breaking into a shout. 7.5s HARD CUT. MCU of the woman, 29° FOV, head and shoulders, slow dolly-in of 25 cm. She slams the cup down onto the table — cup stays flat, coffee jumps out and settles, contact shadow visible under the base. Her mouth stays open on the last word, lower lip trembling, breath catching in short gasps. Cutlery rattles at a neighbouring table, two other diners turn their heads, one first and the other a beat later. Man, off-screen, immediately: 'You're wrong!' — low baritone, raised, defensive. She stares at him, breath shaking, saying nothing. Wardrobe: turquoise cotton dress with a buttoned collar and short sleeves, cream cardigan over the left shoulder only, tall lacquered beehive, black winged liner, coral lipstick. Opposite her, white short-sleeve button shirt with rolled cuffs, pomaded side part. Lighting: daylight through the window camera-right, 4000K, soft fill off the white tabletop. Look: warm amber-shifted film stock, soft contrast, anamorphic oval highlights, 2.35:1 letterbox masking inside the frame. 10.0s HARD CUT. 10.0s to 15.0s — 2004 night city street. Street after rain, tarmac wet and mirror-black with neon and headlamps reflected in it. A parked car idles with tyre smoke at 60% density rolling out from under it. Eight to ten adults in their twenties stand around it, rim-lit only, moving on the beat with staggered timing — one nods first, two more join a half-beat behind. WS, 84° FOV, handheld, lens 40 cm off the tarmac, frame canted 12° clockwise, operator walking backwards at 4 km/h. An adult man strides straight at the lens on the beat, right hand cutting the air on each downbeat, mouthing his verse. 12.5s HARD CUT. MCU, 18° FOV, head and shoulders, handheld with 1-2 cm tremor, frame canted 8° counter-clockwise. An adult woman raises her chin and sings the hook straight into the lens. Gold hoops and layered necklaces swing on the beat, reflected neon slides across pink satin. Wardrobe: man in a white cotton tank top and straight-leg blue denim jeans, thick gold rope chain, white fitted cap turned to the right, black ink tattoos on the right knuckles. Woman in a pink satin top and a blue denim skirt with a wide studded belt, gold hoop earrings, layered gold necklaces, gold bangles on the right wrist, glossy pink lipstick, heavy shimmer eye makeup, long polished nails. Crowd in sports jerseys, leather and denim jackets, knit tops, fitted caps, tracksuits, white sneakers. Audio: mid-2000s club hip-hop, heavy sub-bass, syncopated snare, 92 BPM. Male rap verse over the wide, female sung hook over the close, model-generated lyrics with open vowels. Lighting: sodium streetlamp behind camera-left, warm patches on faces, headlamps as cold backlight, 3200K against 8500K rim. Look: cyan-desaturated shadows, crushed blacks, visible fine grain, 1.85:1 masking. Cuts land only at the six specified points. No on-screen text, no subtitles."
}
JSON
```

### Node.js

```javascript
import { 25Client } from "@runapi.ai/2.5";

const client = new 25Client({
  apiKey: process.env.RUNAPI_API_KEY,
});

const result = await client.textToVideo.run({
  "model": "2.5",
  "prompt": "Three separate five-second segments, three different casts, real-time speed throughout, 16:9. 0.0s to 5.0s — 1939 frontier town. An adult man gallops flat out down the packed-dirt main street at 45 km/h, wooden storefronts and hitching rails flying past on both sides. A second man on horseback rides hard behind him, closing. Dust at 50% density. Townspeople scatter onto the boardwalk. WS, 63° FOV, camera vehicle running parallel at the same speed, lens 1.2 m off the ground. 2.5s HARD CUT. CU, 29° FOV, locked tripod, eye-level. The lead rider extends a revolver back past his right shoulder and fires once behind him — jaw set, brows pulled down and together, eyes narrowed against the dust. Muzzle flash blooms and dies, smoke tears sideways past his face. Single flat report, a wooden sign splinters off-screen. Wardrobe: dust-caked tan canvas duster, black flat-brim hat with cord under the chin, red neckerchief at the collar. The rider behind him in a dark long coat and wide grey hat. Lighting: hard single key from high camera-left, 5600K, deep unfilled shadows. Look: dense saturated dye-transfer color process, fine gate weave, 1.37:1 pillarbox masking inside the frame. 5.0s HARD CUT. 5.0s to 10.0s — 1962 roadside diner. An adult woman sits on the left side of a booth, an adult man on the right, laminate table between them, chrome napkin holder in the foreground, a coral sedan parked outside the plate window behind him. She grips a coffee cup in her right hand, knuckles pale, tears already on her cheeks, mascara running, chest heaving between breaths. He sits rigid, eyes down. MS two-shot, 63° FOV, locked tripod, eye-level, 1.6 m from the table edge. Woman, shouting through tears: 'You were seeing her! I know everything!' — mid-alto breaking into a shout. 7.5s HARD CUT. MCU of the woman, 29° FOV, head and shoulders, slow dolly-in of 25 cm. She slams the cup down onto the table — cup stays flat, coffee jumps out and settles, contact shadow visible under the base. Her mouth stays open on the last word, lower lip trembling, breath catching in short gasps. Cutlery rattles at a neighbouring table, two other diners turn their heads, one first and the other a beat later. Man, off-screen, immediately: 'You're wrong!' — low baritone, raised, defensive. She stares at him, breath shaking, saying nothing. Wardrobe: turquoise cotton dress with a buttoned collar and short sleeves, cream cardigan over the left shoulder only, tall lacquered beehive, black winged liner, coral lipstick. Opposite her, white short-sleeve button shirt with rolled cuffs, pomaded side part. Lighting: daylight through the window camera-right, 4000K, soft fill off the white tabletop. Look: warm amber-shifted film stock, soft contrast, anamorphic oval highlights, 2.35:1 letterbox masking inside the frame. 10.0s HARD CUT. 10.0s to 15.0s — 2004 night city street. Street after rain, tarmac wet and mirror-black with neon and headlamps reflected in it. A parked car idles with tyre smoke at 60% density rolling out from under it. Eight to ten adults in their twenties stand around it, rim-lit only, moving on the beat with staggered timing — one nods first, two more join a half-beat behind. WS, 84° FOV, handheld, lens 40 cm off the tarmac, frame canted 12° clockwise, operator walking backwards at 4 km/h. An adult man strides straight at the lens on the beat, right hand cutting the air on each downbeat, mouthing his verse. 12.5s HARD CUT. MCU, 18° FOV, head and shoulders, handheld with 1-2 cm tremor, frame canted 8° counter-clockwise. An adult woman raises her chin and sings the hook straight into the lens. Gold hoops and layered necklaces swing on the beat, reflected neon slides across pink satin. Wardrobe: man in a white cotton tank top and straight-leg blue denim jeans, thick gold rope chain, white fitted cap turned to the right, black ink tattoos on the right knuckles. Woman in a pink satin top and a blue denim skirt with a wide studded belt, gold hoop earrings, layered gold necklaces, gold bangles on the right wrist, glossy pink lipstick, heavy shimmer eye makeup, long polished nails. Crowd in sports jerseys, leather and denim jackets, knit tops, fitted caps, tracksuits, white sneakers. Audio: mid-2000s club hip-hop, heavy sub-bass, syncopated snare, 92 BPM. Male rap verse over the wide, female sung hook over the close, model-generated lyrics with open vowels. Lighting: sodium streetlamp behind camera-left, warm patches on faces, headlamps as cold backlight, 3200K against 8500K rim. Look: cyan-desaturated shadows, crushed blacks, visible fine grain, 1.85:1 masking. Cuts land only at the six specified points. No on-screen text, no subtitles."
});
console.log(result.id);
```

### Python

```python
import json
import os
import requests

response = requests.post(
    "https://runapi.ai/api/v1/2.5/text_to_video",
    headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
    json=json.loads("{\n  \"model\": \"2.5\",\n  \"prompt\": \"Three separate five-second segments, three different casts, real-time speed throughout, 16:9. 0.0s to 5.0s — 1939 frontier town. An adult man gallops flat out down the packed-dirt main street at 45 km/h, wooden storefronts and hitching rails flying past on both sides. A second man on horseback rides hard behind him, closing. Dust at 50% density. Townspeople scatter onto the boardwalk. WS, 63° FOV, camera vehicle running parallel at the same speed, lens 1.2 m off the ground. 2.5s HARD CUT. CU, 29° FOV, locked tripod, eye-level. The lead rider extends a revolver back past his right shoulder and fires once behind him — jaw set, brows pulled down and together, eyes narrowed against the dust. Muzzle flash blooms and dies, smoke tears sideways past his face. Single flat report, a wooden sign splinters off-screen. Wardrobe: dust-caked tan canvas duster, black flat-brim hat with cord under the chin, red neckerchief at the collar. The rider behind him in a dark long coat and wide grey hat. Lighting: hard single key from high camera-left, 5600K, deep unfilled shadows. Look: dense saturated dye-transfer color process, fine gate weave, 1.37:1 pillarbox masking inside the frame. 5.0s HARD CUT. 5.0s to 10.0s — 1962 roadside diner. An adult woman sits on the left side of a booth, an adult man on the right, laminate table between them, chrome napkin holder in the foreground, a coral sedan parked outside the plate window behind him. She grips a coffee cup in her right hand, knuckles pale, tears already on her cheeks, mascara running, chest heaving between breaths. He sits rigid, eyes down. MS two-shot, 63° FOV, locked tripod, eye-level, 1.6 m from the table edge. Woman, shouting through tears: 'You were seeing her! I know everything!' — mid-alto breaking into a shout. 7.5s HARD CUT. MCU of the woman, 29° FOV, head and shoulders, slow dolly-in of 25 cm. She slams the cup down onto the table — cup stays flat, coffee jumps out and settles, contact shadow visible under the base. Her mouth stays open on the last word, lower lip trembling, breath catching in short gasps. Cutlery rattles at a neighbouring table, two other diners turn their heads, one first and the other a beat later. Man, off-screen, immediately: 'You're wrong!' — low baritone, raised, defensive. She stares at him, breath shaking, saying nothing. Wardrobe: turquoise cotton dress with a buttoned collar and short sleeves, cream cardigan over the left shoulder only, tall lacquered beehive, black winged liner, coral lipstick. Opposite her, white short-sleeve button shirt with rolled cuffs, pomaded side part. Lighting: daylight through the window camera-right, 4000K, soft fill off the white tabletop. Look: warm amber-shifted film stock, soft contrast, anamorphic oval highlights, 2.35:1 letterbox masking inside the frame. 10.0s HARD CUT. 10.0s to 15.0s — 2004 night city street. Street after rain, tarmac wet and mirror-black with neon and headlamps reflected in it. A parked car idles with tyre smoke at 60% density rolling out from under it. Eight to ten adults in their twenties stand around it, rim-lit only, moving on the beat with staggered timing — one nods first, two more join a half-beat behind. WS, 84° FOV, handheld, lens 40 cm off the tarmac, frame canted 12° clockwise, operator walking backwards at 4 km/h. An adult man strides straight at the lens on the beat, right hand cutting the air on each downbeat, mouthing his verse. 12.5s HARD CUT. MCU, 18° FOV, head and shoulders, handheld with 1-2 cm tremor, frame canted 8° counter-clockwise. An adult woman raises her chin and sings the hook straight into the lens. Gold hoops and layered necklaces swing on the beat, reflected neon slides across pink satin. Wardrobe: man in a white cotton tank top and straight-leg blue denim jeans, thick gold rope chain, white fitted cap turned to the right, black ink tattoos on the right knuckles. Woman in a pink satin top and a blue denim skirt with a wide studded belt, gold hoop earrings, layered gold necklaces, gold bangles on the right wrist, glossy pink lipstick, heavy shimmer eye makeup, long polished nails. Crowd in sports jerseys, leather and denim jackets, knit tops, fitted caps, tracksuits, white sneakers. Audio: mid-2000s club hip-hop, heavy sub-bass, syncopated snare, 92 BPM. Male rap verse over the wide, female sung hook over the close, model-generated lyrics with open vowels. Lighting: sodium streetlamp behind camera-left, warm patches on faces, headlamps as cold backlight, 3200K against 8500K rim. Look: cyan-desaturated shadows, crushed blacks, visible fine grain, 1.85:1 masking. Cuts land only at the six specified points. No on-screen text, no subtitles.\"\n}")
)
response.raise_for_status()
print(response.json()["id"])
```

### PHP

```php
<?php

$ch = curl_init("https://runapi.ai/api/v1/2.5/text_to_video");
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer " . getenv("RUNAPI_API_KEY"),
        "Content-Type: application/json",
    ],
    CURLOPT_POSTFIELDS => "{\n  \"model\": \"2.5\",\n  \"prompt\": \"Three separate five-second segments, three different casts, real-time speed throughout, 16:9. 0.0s to 5.0s — 1939 frontier town. An adult man gallops flat out down the packed-dirt main street at 45 km/h, wooden storefronts and hitching rails flying past on both sides. A second man on horseback rides hard behind him, closing. Dust at 50% density. Townspeople scatter onto the boardwalk. WS, 63° FOV, camera vehicle running parallel at the same speed, lens 1.2 m off the ground. 2.5s HARD CUT. CU, 29° FOV, locked tripod, eye-level. The lead rider extends a revolver back past his right shoulder and fires once behind him — jaw set, brows pulled down and together, eyes narrowed against the dust. Muzzle flash blooms and dies, smoke tears sideways past his face. Single flat report, a wooden sign splinters off-screen. Wardrobe: dust-caked tan canvas duster, black flat-brim hat with cord under the chin, red neckerchief at the collar. The rider behind him in a dark long coat and wide grey hat. Lighting: hard single key from high camera-left, 5600K, deep unfilled shadows. Look: dense saturated dye-transfer color process, fine gate weave, 1.37:1 pillarbox masking inside the frame. 5.0s HARD CUT. 5.0s to 10.0s — 1962 roadside diner. An adult woman sits on the left side of a booth, an adult man on the right, laminate table between them, chrome napkin holder in the foreground, a coral sedan parked outside the plate window behind him. She grips a coffee cup in her right hand, knuckles pale, tears already on her cheeks, mascara running, chest heaving between breaths. He sits rigid, eyes down. MS two-shot, 63° FOV, locked tripod, eye-level, 1.6 m from the table edge. Woman, shouting through tears: 'You were seeing her! I know everything!' — mid-alto breaking into a shout. 7.5s HARD CUT. MCU of the woman, 29° FOV, head and shoulders, slow dolly-in of 25 cm. She slams the cup down onto the table — cup stays flat, coffee jumps out and settles, contact shadow visible under the base. Her mouth stays open on the last word, lower lip trembling, breath catching in short gasps. Cutlery rattles at a neighbouring table, two other diners turn their heads, one first and the other a beat later. Man, off-screen, immediately: 'You're wrong!' — low baritone, raised, defensive. She stares at him, breath shaking, saying nothing. Wardrobe: turquoise cotton dress with a buttoned collar and short sleeves, cream cardigan over the left shoulder only, tall lacquered beehive, black winged liner, coral lipstick. Opposite her, white short-sleeve button shirt with rolled cuffs, pomaded side part. Lighting: daylight through the window camera-right, 4000K, soft fill off the white tabletop. Look: warm amber-shifted film stock, soft contrast, anamorphic oval highlights, 2.35:1 letterbox masking inside the frame. 10.0s HARD CUT. 10.0s to 15.0s — 2004 night city street. Street after rain, tarmac wet and mirror-black with neon and headlamps reflected in it. A parked car idles with tyre smoke at 60% density rolling out from under it. Eight to ten adults in their twenties stand around it, rim-lit only, moving on the beat with staggered timing — one nods first, two more join a half-beat behind. WS, 84° FOV, handheld, lens 40 cm off the tarmac, frame canted 12° clockwise, operator walking backwards at 4 km/h. An adult man strides straight at the lens on the beat, right hand cutting the air on each downbeat, mouthing his verse. 12.5s HARD CUT. MCU, 18° FOV, head and shoulders, handheld with 1-2 cm tremor, frame canted 8° counter-clockwise. An adult woman raises her chin and sings the hook straight into the lens. Gold hoops and layered necklaces swing on the beat, reflected neon slides across pink satin. Wardrobe: man in a white cotton tank top and straight-leg blue denim jeans, thick gold rope chain, white fitted cap turned to the right, black ink tattoos on the right knuckles. Woman in a pink satin top and a blue denim skirt with a wide studded belt, gold hoop earrings, layered gold necklaces, gold bangles on the right wrist, glossy pink lipstick, heavy shimmer eye makeup, long polished nails. Crowd in sports jerseys, leather and denim jackets, knit tops, fitted caps, tracksuits, white sneakers. Audio: mid-2000s club hip-hop, heavy sub-bass, syncopated snare, 92 BPM. Male rap verse over the wide, female sung hook over the close, model-generated lyrics with open vowels. Lighting: sodium streetlamp behind camera-left, warm patches on faces, headlamps as cold backlight, 3200K against 8500K rim. Look: cyan-desaturated shadows, crushed blacks, visible fine grain, 1.85:1 masking. Cuts land only at the six specified points. No on-screen text, no subtitles.\"\n}",
    CURLOPT_RETURNTRANSFER => true,
]);

$response = json_decode(curl_exec($ch), true);
curl_close($ch);
echo $response["id"] . PHP_EOL;
```

### Java

```java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

var request = HttpRequest.newBuilder(URI.create("https://runapi.ai/api/v1/2.5/text_to_video"))
    .header("Authorization", "Bearer " + System.getenv("RUNAPI_API_KEY"))
    .header("Content-Type", "application/json")
    .POST(HttpRequest.BodyPublishers.ofString("{\n  \"model\": \"2.5\",\n  \"prompt\": \"Three separate five-second segments, three different casts, real-time speed throughout, 16:9. 0.0s to 5.0s — 1939 frontier town. An adult man gallops flat out down the packed-dirt main street at 45 km/h, wooden storefronts and hitching rails flying past on both sides. A second man on horseback rides hard behind him, closing. Dust at 50% density. Townspeople scatter onto the boardwalk. WS, 63° FOV, camera vehicle running parallel at the same speed, lens 1.2 m off the ground. 2.5s HARD CUT. CU, 29° FOV, locked tripod, eye-level. The lead rider extends a revolver back past his right shoulder and fires once behind him — jaw set, brows pulled down and together, eyes narrowed against the dust. Muzzle flash blooms and dies, smoke tears sideways past his face. Single flat report, a wooden sign splinters off-screen. Wardrobe: dust-caked tan canvas duster, black flat-brim hat with cord under the chin, red neckerchief at the collar. The rider behind him in a dark long coat and wide grey hat. Lighting: hard single key from high camera-left, 5600K, deep unfilled shadows. Look: dense saturated dye-transfer color process, fine gate weave, 1.37:1 pillarbox masking inside the frame. 5.0s HARD CUT. 5.0s to 10.0s — 1962 roadside diner. An adult woman sits on the left side of a booth, an adult man on the right, laminate table between them, chrome napkin holder in the foreground, a coral sedan parked outside the plate window behind him. She grips a coffee cup in her right hand, knuckles pale, tears already on her cheeks, mascara running, chest heaving between breaths. He sits rigid, eyes down. MS two-shot, 63° FOV, locked tripod, eye-level, 1.6 m from the table edge. Woman, shouting through tears: 'You were seeing her! I know everything!' — mid-alto breaking into a shout. 7.5s HARD CUT. MCU of the woman, 29° FOV, head and shoulders, slow dolly-in of 25 cm. She slams the cup down onto the table — cup stays flat, coffee jumps out and settles, contact shadow visible under the base. Her mouth stays open on the last word, lower lip trembling, breath catching in short gasps. Cutlery rattles at a neighbouring table, two other diners turn their heads, one first and the other a beat later. Man, off-screen, immediately: 'You're wrong!' — low baritone, raised, defensive. She stares at him, breath shaking, saying nothing. Wardrobe: turquoise cotton dress with a buttoned collar and short sleeves, cream cardigan over the left shoulder only, tall lacquered beehive, black winged liner, coral lipstick. Opposite her, white short-sleeve button shirt with rolled cuffs, pomaded side part. Lighting: daylight through the window camera-right, 4000K, soft fill off the white tabletop. Look: warm amber-shifted film stock, soft contrast, anamorphic oval highlights, 2.35:1 letterbox masking inside the frame. 10.0s HARD CUT. 10.0s to 15.0s — 2004 night city street. Street after rain, tarmac wet and mirror-black with neon and headlamps reflected in it. A parked car idles with tyre smoke at 60% density rolling out from under it. Eight to ten adults in their twenties stand around it, rim-lit only, moving on the beat with staggered timing — one nods first, two more join a half-beat behind. WS, 84° FOV, handheld, lens 40 cm off the tarmac, frame canted 12° clockwise, operator walking backwards at 4 km/h. An adult man strides straight at the lens on the beat, right hand cutting the air on each downbeat, mouthing his verse. 12.5s HARD CUT. MCU, 18° FOV, head and shoulders, handheld with 1-2 cm tremor, frame canted 8° counter-clockwise. An adult woman raises her chin and sings the hook straight into the lens. Gold hoops and layered necklaces swing on the beat, reflected neon slides across pink satin. Wardrobe: man in a white cotton tank top and straight-leg blue denim jeans, thick gold rope chain, white fitted cap turned to the right, black ink tattoos on the right knuckles. Woman in a pink satin top and a blue denim skirt with a wide studded belt, gold hoop earrings, layered gold necklaces, gold bangles on the right wrist, glossy pink lipstick, heavy shimmer eye makeup, long polished nails. Crowd in sports jerseys, leather and denim jackets, knit tops, fitted caps, tracksuits, white sneakers. Audio: mid-2000s club hip-hop, heavy sub-bass, syncopated snare, 92 BPM. Male rap verse over the wide, female sung hook over the close, model-generated lyrics with open vowels. Lighting: sodium streetlamp behind camera-left, warm patches on faces, headlamps as cold backlight, 3200K against 8500K rim. Look: cyan-desaturated shadows, crushed blacks, visible fine grain, 1.85:1 masking. Cuts land only at the six specified points. No on-screen text, no subtitles.\"\n}"))
    .build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

### Ruby

```ruby
require "json"
require "net/http"

uri = URI("https://runapi.ai/api/v1/2.5/text_to_video")
request = Net::HTTP::Post.new(uri)
request["Authorization"] = "Bearer " + ENV.fetch("RUNAPI_API_KEY")
request["Content-Type"] = "application/json"
request.body = "{\n  \"model\": \"2.5\",\n  \"prompt\": \"Three separate five-second segments, three different casts, real-time speed throughout, 16:9. 0.0s to 5.0s — 1939 frontier town. An adult man gallops flat out down the packed-dirt main street at 45 km/h, wooden storefronts and hitching rails flying past on both sides. A second man on horseback rides hard behind him, closing. Dust at 50% density. Townspeople scatter onto the boardwalk. WS, 63° FOV, camera vehicle running parallel at the same speed, lens 1.2 m off the ground. 2.5s HARD CUT. CU, 29° FOV, locked tripod, eye-level. The lead rider extends a revolver back past his right shoulder and fires once behind him — jaw set, brows pulled down and together, eyes narrowed against the dust. Muzzle flash blooms and dies, smoke tears sideways past his face. Single flat report, a wooden sign splinters off-screen. Wardrobe: dust-caked tan canvas duster, black flat-brim hat with cord under the chin, red neckerchief at the collar. The rider behind him in a dark long coat and wide grey hat. Lighting: hard single key from high camera-left, 5600K, deep unfilled shadows. Look: dense saturated dye-transfer color process, fine gate weave, 1.37:1 pillarbox masking inside the frame. 5.0s HARD CUT. 5.0s to 10.0s — 1962 roadside diner. An adult woman sits on the left side of a booth, an adult man on the right, laminate table between them, chrome napkin holder in the foreground, a coral sedan parked outside the plate window behind him. She grips a coffee cup in her right hand, knuckles pale, tears already on her cheeks, mascara running, chest heaving between breaths. He sits rigid, eyes down. MS two-shot, 63° FOV, locked tripod, eye-level, 1.6 m from the table edge. Woman, shouting through tears: 'You were seeing her! I know everything!' — mid-alto breaking into a shout. 7.5s HARD CUT. MCU of the woman, 29° FOV, head and shoulders, slow dolly-in of 25 cm. She slams the cup down onto the table — cup stays flat, coffee jumps out and settles, contact shadow visible under the base. Her mouth stays open on the last word, lower lip trembling, breath catching in short gasps. Cutlery rattles at a neighbouring table, two other diners turn their heads, one first and the other a beat later. Man, off-screen, immediately: 'You're wrong!' — low baritone, raised, defensive. She stares at him, breath shaking, saying nothing. Wardrobe: turquoise cotton dress with a buttoned collar and short sleeves, cream cardigan over the left shoulder only, tall lacquered beehive, black winged liner, coral lipstick. Opposite her, white short-sleeve button shirt with rolled cuffs, pomaded side part. Lighting: daylight through the window camera-right, 4000K, soft fill off the white tabletop. Look: warm amber-shifted film stock, soft contrast, anamorphic oval highlights, 2.35:1 letterbox masking inside the frame. 10.0s HARD CUT. 10.0s to 15.0s — 2004 night city street. Street after rain, tarmac wet and mirror-black with neon and headlamps reflected in it. A parked car idles with tyre smoke at 60% density rolling out from under it. Eight to ten adults in their twenties stand around it, rim-lit only, moving on the beat with staggered timing — one nods first, two more join a half-beat behind. WS, 84° FOV, handheld, lens 40 cm off the tarmac, frame canted 12° clockwise, operator walking backwards at 4 km/h. An adult man strides straight at the lens on the beat, right hand cutting the air on each downbeat, mouthing his verse. 12.5s HARD CUT. MCU, 18° FOV, head and shoulders, handheld with 1-2 cm tremor, frame canted 8° counter-clockwise. An adult woman raises her chin and sings the hook straight into the lens. Gold hoops and layered necklaces swing on the beat, reflected neon slides across pink satin. Wardrobe: man in a white cotton tank top and straight-leg blue denim jeans, thick gold rope chain, white fitted cap turned to the right, black ink tattoos on the right knuckles. Woman in a pink satin top and a blue denim skirt with a wide studded belt, gold hoop earrings, layered gold necklaces, gold bangles on the right wrist, glossy pink lipstick, heavy shimmer eye makeup, long polished nails. Crowd in sports jerseys, leather and denim jackets, knit tops, fitted caps, tracksuits, white sneakers. Audio: mid-2000s club hip-hop, heavy sub-bass, syncopated snare, 92 BPM. Male rap verse over the wide, female sung hook over the close, model-generated lyrics with open vowels. Lighting: sodium streetlamp behind camera-left, warm patches on faces, headlamps as cold backlight, 3200K against 8500K rim. Look: cyan-desaturated shadows, crushed blacks, visible fine grain, 1.85:1 masking. Cuts land only at the six specified points. No on-screen text, no subtitles.\"\n}"

response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }
puts JSON.parse(response.body).fetch("id")
```

### Go

```go
package main

import (
  "context"
  "fmt"
  "log"
  "net/http"
  "os"
  "strings"
)

func main() {
  body := strings.NewReader("{\"model\":\"2.5\",\"prompt\":\"Three separate five-second segments, three different casts, real-time speed throughout, 16:9. 0.0s to 5.0s — 1939 frontier town. An adult man gallops flat out down the packed-dirt main street at 45 km/h, wooden storefronts and hitching rails flying past on both sides. A second man on horseback rides hard behind him, closing. Dust at 50% density. Townspeople scatter onto the boardwalk. WS, 63° FOV, camera vehicle running parallel at the same speed, lens 1.2 m off the ground. 2.5s HARD CUT. CU, 29° FOV, locked tripod, eye-level. The lead rider extends a revolver back past his right shoulder and fires once behind him — jaw set, brows pulled down and together, eyes narrowed against the dust. Muzzle flash blooms and dies, smoke tears sideways past his face. Single flat report, a wooden sign splinters off-screen. Wardrobe: dust-caked tan canvas duster, black flat-brim hat with cord under the chin, red neckerchief at the collar. The rider behind him in a dark long coat and wide grey hat. Lighting: hard single key from high camera-left, 5600K, deep unfilled shadows. Look: dense saturated dye-transfer color process, fine gate weave, 1.37:1 pillarbox masking inside the frame. 5.0s HARD CUT. 5.0s to 10.0s — 1962 roadside diner. An adult woman sits on the left side of a booth, an adult man on the right, laminate table between them, chrome napkin holder in the foreground, a coral sedan parked outside the plate window behind him. She grips a coffee cup in her right hand, knuckles pale, tears already on her cheeks, mascara running, chest heaving between breaths. He sits rigid, eyes down. MS two-shot, 63° FOV, locked tripod, eye-level, 1.6 m from the table edge. Woman, shouting through tears: 'You were seeing her! I know everything!' — mid-alto breaking into a shout. 7.5s HARD CUT. MCU of the woman, 29° FOV, head and shoulders, slow dolly-in of 25 cm. She slams the cup down onto the table — cup stays flat, coffee jumps out and settles, contact shadow visible under the base. Her mouth stays open on the last word, lower lip trembling, breath catching in short gasps. Cutlery rattles at a neighbouring table, two other diners turn their heads, one first and the other a beat later. Man, off-screen, immediately: 'You're wrong!' — low baritone, raised, defensive. She stares at him, breath shaking, saying nothing. Wardrobe: turquoise cotton dress with a buttoned collar and short sleeves, cream cardigan over the left shoulder only, tall lacquered beehive, black winged liner, coral lipstick. Opposite her, white short-sleeve button shirt with rolled cuffs, pomaded side part. Lighting: daylight through the window camera-right, 4000K, soft fill off the white tabletop. Look: warm amber-shifted film stock, soft contrast, anamorphic oval highlights, 2.35:1 letterbox masking inside the frame. 10.0s HARD CUT. 10.0s to 15.0s — 2004 night city street. Street after rain, tarmac wet and mirror-black with neon and headlamps reflected in it. A parked car idles with tyre smoke at 60% density rolling out from under it. Eight to ten adults in their twenties stand around it, rim-lit only, moving on the beat with staggered timing — one nods first, two more join a half-beat behind. WS, 84° FOV, handheld, lens 40 cm off the tarmac, frame canted 12° clockwise, operator walking backwards at 4 km/h. An adult man strides straight at the lens on the beat, right hand cutting the air on each downbeat, mouthing his verse. 12.5s HARD CUT. MCU, 18° FOV, head and shoulders, handheld with 1-2 cm tremor, frame canted 8° counter-clockwise. An adult woman raises her chin and sings the hook straight into the lens. Gold hoops and layered necklaces swing on the beat, reflected neon slides across pink satin. Wardrobe: man in a white cotton tank top and straight-leg blue denim jeans, thick gold rope chain, white fitted cap turned to the right, black ink tattoos on the right knuckles. Woman in a pink satin top and a blue denim skirt with a wide studded belt, gold hoop earrings, layered gold necklaces, gold bangles on the right wrist, glossy pink lipstick, heavy shimmer eye makeup, long polished nails. Crowd in sports jerseys, leather and denim jackets, knit tops, fitted caps, tracksuits, white sneakers. Audio: mid-2000s club hip-hop, heavy sub-bass, syncopated snare, 92 BPM. Male rap verse over the wide, female sung hook over the close, model-generated lyrics with open vowels. Lighting: sodium streetlamp behind camera-left, warm patches on faces, headlamps as cold backlight, 3200K against 8500K rim. Look: cyan-desaturated shadows, crushed blacks, visible fine grain, 1.85:1 masking. Cuts land only at the six specified points. No on-screen text, no subtitles.\"}")
  req, err := http.NewRequestWithContext(context.Background(), http.MethodPost, "https://runapi.ai/api/v1/2.5/text_to_video", body)
  if err != nil {
    log.Fatal(err)
  }

  req.Header.Set("Authorization", "Bearer "+os.Getenv("RUNAPI_API_KEY"))
  req.Header.Set("Content-Type", "application/json")

  resp, err := http.DefaultClient.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  defer resp.Body.Close()

  fmt.Println(resp.Status)
}
```

### CLI

```cli
$ runapi generate \
    --model 2.5 \
    --prompt "Three separate five-second segments, three different casts, real-time speed throughout, 16:9. 0.0s to 5.0s — 1939 frontier town. An adult man gallops flat out down the packed-dirt main street at 45 km/h, wooden storefronts and hitching rails flying past on both sides. A second man on horseback rides hard behind him, closing. Dust at 50% density. Townspeople scatter onto the boardwalk. WS, 63° FOV, camera vehicle running parallel at the same speed, lens 1.2 m off the ground. 2.5s HARD CUT. CU, 29° FOV, locked tripod, eye-level. The lead rider extends a revolver back past his right shoulder and fires once behind him — jaw set, brows pulled down and together, eyes narrowed against the dust. Muzzle flash blooms and dies, smoke tears sideways past his face. Single flat report, a wooden sign splinters off-screen. Wardrobe: dust-caked tan canvas duster, black flat-brim hat with cord under the chin, red neckerchief at the collar. The rider behind him in a dark long coat and wide grey hat. Lighting: hard single key from high camera-left, 5600K, deep unfilled shadows. Look: dense saturated dye-transfer color process, fine gate weave, 1.37:1 pillarbox masking inside the frame. 5.0s HARD CUT. 5.0s to 10.0s — 1962 roadside diner. An adult woman sits on the left side of a booth, an adult man on the right, laminate table between them, chrome napkin holder in the foreground, a coral sedan parked outside the plate window behind him. She grips a coffee cup in her right hand, knuckles pale, tears already on her cheeks, mascara running, chest heaving between breaths. He sits rigid, eyes down. MS two-shot, 63° FOV, locked tripod, eye-level, 1.6 m from the table edge. Woman, shouting through tears: 'You were seeing her! I know everything!' — mid-alto breaking into a shout. 7.5s HARD CUT. MCU of the woman, 29° FOV, head and shoulders, slow dolly-in of 25 cm. She slams the cup down onto the table — cup stays flat, coffee jumps out and settles, contact shadow visible under the base. Her mouth stays open on the last word, lower lip trembling, breath catching in short gasps. Cutlery rattles at a neighbouring table, two other diners turn their heads, one first and the other a beat later. Man, off-screen, immediately: 'You're wrong!' — low baritone, raised, defensive. She stares at him, breath shaking, saying nothing. Wardrobe: turquoise cotton dress with a buttoned collar and short sleeves, cream cardigan over the left shoulder only, tall lacquered beehive, black winged liner, coral lipstick. Opposite her, white short-sleeve button shirt with rolled cuffs, pomaded side part. Lighting: daylight through the window camera-right, 4000K, soft fill off the white tabletop. Look: warm amber-shifted film stock, soft contrast, anamorphic oval highlights, 2.35:1 letterbox masking inside the frame. 10.0s HARD CUT. 10.0s to 15.0s — 2004 night city street. Street after rain, tarmac wet and mirror-black with neon and headlamps reflected in it. A parked car idles with tyre smoke at 60% density rolling out from under it. Eight to ten adults in their twenties stand around it, rim-lit only, moving on the beat with staggered timing — one nods first, two more join a half-beat behind. WS, 84° FOV, handheld, lens 40 cm off the tarmac, frame canted 12° clockwise, operator walking backwards at 4 km/h. An adult man strides straight at the lens on the beat, right hand cutting the air on each downbeat, mouthing his verse. 12.5s HARD CUT. MCU, 18° FOV, head and shoulders, handheld with 1-2 cm tremor, frame canted 8° counter-clockwise. An adult woman raises her chin and sings the hook straight into the lens. Gold hoops and layered necklaces swing on the beat, reflected neon slides across pink satin. Wardrobe: man in a white cotton tank top and straight-leg blue denim jeans, thick gold rope chain, white fitted cap turned to the right, black ink tattoos on the right knuckles. Woman in a pink satin top and a blue denim skirt with a wide studded belt, gold hoop earrings, layered gold necklaces, gold bangles on the right wrist, glossy pink lipstick, heavy shimmer eye makeup, long polished nails. Crowd in sports jerseys, leather and denim jackets, knit tops, fitted caps, tracksuits, white sneakers. Audio: mid-2000s club hip-hop, heavy sub-bass, syncopated snare, 92 BPM. Male rap verse over the wide, female sung hook over the close, model-generated lyrics with open vowels. Lighting: sodium streetlamp behind camera-left, warm patches on faces, headlamps as cold backlight, 3200K against 8500K rim. Look: cyan-desaturated shadows, crushed blacks, visible fine grain, 1.85:1 masking. Cuts land only at the six specified points. No on-screen text, no subtitles." \
    --wait
```

<!-- /api-example-tabs-slot -->

## More prompts like this

- [Create a 30-second cinematic commercial for a](https://runapi.ai/prompts/prm_W0Z7vkad4vKWcNoPyqKpJrxg.md) — `2.5`
- [Viral Video Reuse](https://runapi.ai/prompts/prm_pexzREbkyNPQuaax8dMo5lZn.md) — `2.5`
- [@Image 1 defines the young woman's face](https://runapi.ai/prompts/prm_9vxNwzoeD3O3sA9qDd6XAVO7.md) — `2.5`

## Prompt questions

### Can I modify this prompt?

Yes. Use it as a starting point and adjust parameters, add details, or combine it with your own ideas.

### Which model should I choose?

Each model has different strengths. Compare the available models and choose the one that best matches the output you need.

### How much does it cost?

Pricing varies by model. See the estimated cost above the Generate button.

## Building with a team?

We're here to help with enterprise setup, integrations, and technical questions.

[Contact Us](https://runapi.ai/contact.md)


---

## More from RunAPI

- [Home](https://runapi.ai/.md)
### Product
- [Model Catalog](https://runapi.ai/models.md)
- [Pricing](https://runapi.ai/pricing.md)
- [Providers](https://runapi.ai/models#all-models)
- [Prompt Gallery](https://runapi.ai/prompts.md)
### Developers
- [Documentation](https://runapi.ai/docs/guides)
- [SDKs](https://runapi.ai/sdk.md)
- [CLI](https://runapi.ai/cli.md)
- [MCP Server](https://runapi.ai/mcp.md)
- [x402](https://runapi.ai/x402.md)
### Guides
- [Claude Code vs Cursor](https://runapi.ai/claude-code-vs-cursor.md)
- [Cursor API Setup](https://runapi.ai/cursor-api-setup.md)
- [RunAPI vs OpenRouter](https://runapi.ai/openrouter-alternative.md)
### Company
- [Enterprise](https://runapi.ai/contact.md)
- [Contact](https://runapi.ai/contact.md)
### Legal
- [Terms](https://runapi.ai/terms.md)
- [Privacy](https://runapi.ai/privacy.md)
- [Site index for agents](https://runapi.ai/llms.txt)

Contact: contact@runapi.ai

## Structured data

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/icon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Home",
        "item": "https://runapi.ai/"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Prompts",
        "item": "https://runapi.ai/prompts"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "Video",
        "item": "https://runapi.ai/prompts/video"
      },
      {
        "@type": "ListItem",
        "position": 4,
        "name": "Three separate five-second segments, three",
        "item": "https://runapi.ai/prompts/prm_Z2j9MezP8BN0CZwA8rWwJQnx"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "Can I modify this prompt?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Yes. Use it as a starting point and adjust parameters, add details, or combine it with your own ideas."
        }
      },
      {
        "@type": "Question",
        "name": "Which model should I choose?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Each model has different strengths. Compare the available models and choose the one that best matches the output you need."
        }
      },
      {
        "@type": "Question",
        "name": "How much does it cost?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Pricing varies by model. See the estimated cost above the Generate button."
        }
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "CreativeWork",
    "name": "Three separate five-second segments, three",
    "text": "Three separate five-second segments, three different casts, real-time speed throughout, 16:9. 0.0s to 5.0s — 1939 frontier town. An adult man gallops flat out down the packed-dirt main street at 45 km/h, wooden storefronts and hitching rails flying past on both sides. A second man on horseback rides hard behind him, closing. Dust at 50% density. Townspeople scatter onto the boardwalk. WS, 63° FOV, camera vehicle running parallel at the same speed, lens 1.2 m off the ground. 2.5s HARD CUT. CU, 29° FOV, locked tripod, eye-level. The lead rider extends a revolver back past his right shoulder and fires once behind him — jaw set, brows pulled down and together, eyes narrowed against the dust. Muzzle flash blooms and dies, smoke tears sideways past his face. Single flat report, a wooden sign splinters off-screen. Wardrobe: dust-caked tan canvas duster, black flat-brim hat with cord under the chin, red neckerchief at the collar. The rider behind him in a dark long coat and wide grey hat. Lighting: hard single key from high camera-left, 5600K, deep unfilled shadows. Look: dense saturated dye-transfer color process, fine gate weave, 1.37:1 pillarbox masking inside the frame. 5.0s HARD CUT. 5.0s to 10.0s — 1962 roadside diner. An adult woman sits on the left side of a booth, an adult man on the right, laminate table between them, chrome napkin holder in the foreground, a coral sedan parked outside the plate window behind him. She grips a coffee cup in her right hand, knuckles pale, tears already on her cheeks, mascara running, chest heaving between breaths. He sits rigid, eyes down. MS two-shot, 63° FOV, locked tripod, eye-level, 1.6 m from the table edge. Woman, shouting through tears: 'You were seeing her! I know everything!' — mid-alto breaking into a shout. 7.5s HARD CUT. MCU of the woman, 29° FOV, head and shoulders, slow dolly-in of 25 cm. She slams the cup down onto the table — cup stays flat, coffee jumps out and settles, contact shadow visible under the base. Her mouth stays open on the last word, lower lip trembling, breath catching in short gasps. Cutlery rattles at a neighbouring table, two other diners turn their heads, one first and the other a beat later. Man, off-screen, immediately: 'You're wrong!' — low baritone, raised, defensive. She stares at him, breath shaking, saying nothing. Wardrobe: turquoise cotton dress with a buttoned collar and short sleeves, cream cardigan over the left shoulder only, tall lacquered beehive, black winged liner, coral lipstick. Opposite her, white short-sleeve button shirt with rolled cuffs, pomaded side part. Lighting: daylight through the window camera-right, 4000K, soft fill off the white tabletop. Look: warm amber-shifted film stock, soft contrast, anamorphic oval highlights, 2.35:1 letterbox masking inside the frame. 10.0s HARD CUT. 10.0s to 15.0s — 2004 night city street. Street after rain, tarmac wet and mirror-black with neon and headlamps reflected in it. A parked car idles with tyre smoke at 60% density rolling out from under it. Eight to ten adults in their twenties stand around it, rim-lit only, moving on the beat with staggered timing — one nods first, two more join a half-beat behind. WS, 84° FOV, handheld, lens 40 cm off the tarmac, frame canted 12° clockwise, operator walking backwards at 4 km/h. An adult man strides straight at the lens on the beat, right hand cutting the air on each downbeat, mouthing his verse. 12.5s HARD CUT. MCU, 18° FOV, head and shoulders, handheld with 1-2 cm tremor, frame canted 8° counter-clockwise. An adult woman raises her chin and sings the hook straight into the lens. Gold hoops and layered necklaces swing on the beat, reflected neon slides across pink satin. Wardrobe: man in a white cotton tank top and straight-leg blue denim jeans, thick gold rope chain, white fitted cap turned to the right, black ink tattoos on the right knuckles. Woman in a pink satin top and a blue denim skirt with a wide studded belt, gold hoop earrings, layered gold necklaces, gold bangles on the right wrist, glossy pink lipstick, heavy shimmer eye makeup, long polished nails. Crowd in sports jerseys, leather and denim jackets, knit tops, fitted caps, tracksuits, white sneakers. Audio: mid-2000s club hip-hop, heavy sub-bass, syncopated snare, 92 BPM. Male rap verse over the wide, female sung hook over the close, model-generated lyrics with open vowels. Lighting: sodium streetlamp behind camera-left, warm patches on faces, headlamps as cold backlight, 3200K against 8500K rim. Look: cyan-desaturated shadows, crushed blacks, visible fine grain, 1.85:1 masking. Cuts land only at the six specified points. No on-screen text, no subtitles.",
    "image": null,
    "about": [
      "video",
      "2.5",
      "music"
    ]
  }
]
```
