A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse. She wears sunglasses and red lipstick. She walks confidently and casually. The street is damp and reflective, creating a mirror effect of the colorful lights. Many pedestrians walk about.
/api/v1/runapi/text_to_video
运行信息
模型
提供方
Runapi
服务
Runapi
Endpoint
Text To Video
1. claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
2. 重启 Claude Code
3. 粘贴这个 prompt:生成一段视频:"A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse. She wears sunglasses and red lipstick. She walks confidently and casually. The street is damp and reflective, creating a mirror effect of the colorful lights. Many pedestrians walk about."
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt:生成一段视频:"A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse. She wears sunglasses and red lipstick. She walks confidently and casually. The street is damp and reflective, creating a mirror effect of the colorful lights. Many pedestrians walk about."
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt:生成一段视频:"A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse. She wears sunglasses and red lipstick. She walks confidently and casually. The street is damp and reflective, creating a mirror effect of the colorful lights. Many pedestrians walk about."
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt:生成一段视频:"A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse. She wears sunglasses and red lipstick. She walks confidently and casually. The street is damp and reflective, creating a mirror effect of the colorful lights. Many pedestrians walk about."
curl -X POST https://runapi.ai/api/v1/runapi/text_to_video \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"prompt": "A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse. She wears sunglasses and red lipstick. She walks confidently and casually. The street is damp and reflective, creating a mirror effect of the colorful lights. Many pedestrians walk about."
}
JSON
import { RunapiClient } from "@runapi.ai/runapi";
const client = new RunapiClient({
apiKey: process.env.RUNAPI_API_KEY,
});
const result = await client.textToVideo.run({
"prompt": "A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse. She wears sunglasses and red lipstick. She walks confidently and casually. The street is damp and reflective, creating a mirror effect of the colorful lights. Many pedestrians walk about."
});
console.log(result.id);
require "runapi/runapi"
client = RunApi::Runapi::Client.new
result = client.text_to_video.run(
prompt: "A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse. She wears sunglasses and red lipstick. She walks confidently and casually. The street is damp and reflective, creating a mirror effect of the colorful lights. Many pedestrians walk about."
)
puts result.id
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader("{\"prompt\":\"A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse. She wears sunglasses and red lipstick. She walks confidently and casually. The street is damp and reflective, creating a mirror effect of the colorful lights. Many pedestrians walk about.\"}")
req, err := http.NewRequestWithContext(context.Background(), http.MethodPost, "https://runapi.ai/api/v1/runapi/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)
}
Extreme close up of a 24 year old woman's eye blinking, standing in Marrakech during magic hour, cinematic film shot in 70mm, depth of field, vivid colors, cinematic
curl -X POST https://runapi.ai/api/v1/runapi/text_to_video \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"prompt": "Extreme close up of a 24 year old woman's eye blinking, standing in Marrakech during magic hour, cinematic film shot in 70mm, depth of field, vivid colors, cinematic"
}
JSON
A cinematic vertical shot (9:16) begins with a slow dolly in on a glass greenhouse at dawn, inside which delicate dew drops glisten on spiderwebs. A semi-transparent robotic hummingbird enters through broken glass, hovers near an orchid, and speaks in a whisper with mechanical echo.
curl -X POST https://runapi.ai/api/v1/runapi/text_to_video \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"prompt": "A cinematic vertical shot (9:16) begins with a slow dolly in on a glass greenhouse at dawn, inside which delicate dew drops glisten on spiderwebs. A semi-transparent robotic hummingbird enters through broken glass, hovers near an orchid, and speaks in a whisper with mechanical echo."
}
JSON
Hyperspeed timelapse: The camera ascends from street level to a rooftop, showcasing a city's transformation from day to night. Neon signs flicker to life, traffic becomes streams of light, and skyscrapers illuminate against the darkening sky.
curl -X POST https://runapi.ai/api/v1/runway/text_to_video \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "runway",
"prompt": "Hyperspeed timelapse: The camera ascends from street level to a rooftop, showcasing a city's transformation from day to night. Neon signs flicker to life, traffic becomes streams of light, and skyscrapers illuminate against the darkening sky."
}
JSON
Close-up portrait of a young woman wearing a hooded jacket, standing in a rainy city street at night, neon reflections, cinematic lighting, shallow depth of field, 35mm film look, slow dolly-in, smooth stabilized camera, ultra-detailed, no text, no watermark.
curl -X POST https://runapi.ai/api/v1/runapi/text_to_video \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"prompt": "Close-up portrait of a young woman wearing a hooded jacket, standing in a rainy city street at night, neon reflections, cinematic lighting, shallow depth of field, 35mm film look, slow dolly-in, smooth stabilized camera, ultra-detailed, no text, no watermark."
}
JSON
In the depths of a dense tropical jungle with dappled sunlight filtering through leaves, an explorer in a khaki jacket kneels brushing soil from ancient fragments, reveals shimmering symbols. Camera pushes from wide angle to close-up of his brown pupils dilating.
curl -X POST https://runapi.ai/api/v1/wan/text_to_video \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "wan-2.7-text-to-video",
"prompt": "In the depths of a dense tropical jungle with dappled sunlight filtering through leaves, an explorer in a khaki jacket kneels brushing soil from ancient fragments, reveals shimmering symbols. Camera pushes from wide angle to close-up of his brown pupils dilating."
}
JSON
Backlight, medium shot, sunset, soft light, silhouette, center composition, orbiting shot, the lens follows the character from back to front showing rugged cowboy clutching holster, looking alertly around desolate western ghost town.
curl -X POST https://runapi.ai/api/v1/wan/text_to_video \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "wan-2.7-text-to-video",
"prompt": "Backlight, medium shot, sunset, soft light, silhouette, center composition, orbiting shot, the lens follows the character from back to front showing rugged cowboy clutching holster, looking alertly around desolate western ghost town."
}
JSON