Slow, smooth dolly zoom pushing gradually closer to the subject, maintaining focus, gentle forward movement over 4 seconds.
/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:生成一段视频:"Slow, smooth dolly zoom pushing gradually closer to the subject, maintaining focus, gentle forward movement over 4 seconds."
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt:生成一段视频:"Slow, smooth dolly zoom pushing gradually closer to the subject, maintaining focus, gentle forward movement over 4 seconds."
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt:生成一段视频:"Slow, smooth dolly zoom pushing gradually closer to the subject, maintaining focus, gentle forward movement over 4 seconds."
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt:生成一段视频:"Slow, smooth dolly zoom pushing gradually closer to the subject, maintaining focus, gentle forward movement over 4 seconds."
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": "Slow, smooth dolly zoom pushing gradually closer to the subject, maintaining focus, gentle forward movement over 4 seconds."
}
JSON
import { RunapiClient } from "@runapi.ai/runapi";
const client = new RunapiClient({
apiKey: process.env.RUNAPI_API_KEY,
});
const result = await client.textToVideo.run({
"prompt": "Slow, smooth dolly zoom pushing gradually closer to the subject, maintaining focus, gentle forward movement over 4 seconds."
});
console.log(result.id);
require "runapi/runapi"
client = RunApi::Runapi::Client.new
result = client.text_to_video.run(
prompt: "Slow, smooth dolly zoom pushing gradually closer to the subject, maintaining focus, gentle forward movement over 4 seconds."
)
puts result.id
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader("{\"prompt\":\"Slow, smooth dolly zoom pushing gradually closer to the subject, maintaining focus, gentle forward movement over 4 seconds.\"}")
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)
}