[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-runway-rw-integrate-video":3,"mdc--rcp5un-key":35,"related-org-runway-rw-integrate-video":6914,"related-repo-runway-rw-integrate-video":7080},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":24,"repoUrl":25,"updatedAt":26,"license":27,"forks":28,"topics":29,"repo":30,"sourceUrl":33,"mdContent":34},"rw-integrate-video","integrate Runway video generation APIs","Help users integrate Runway video generation APIs (text-to-video, image-to-video, video-to-video)",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"runway","Runway","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Frunway.png","runwayml",[13,17,18,21],{"name":14,"slug":15,"type":16},"Creative","creative","tag",{"name":9,"slug":8,"type":16},{"name":19,"slug":20,"type":16},"API Development","api-development",{"name":22,"slug":23,"type":16},"Video","video",57,"https:\u002F\u002Fgithub.com\u002Frunwayml\u002Fskills","2026-04-08T04:42:12.526583",null,15,[],{"repoUrl":25,"stars":24,"forks":28,"topics":31,"description":32},[],"for Runway coding agent skills","https:\u002F\u002Fgithub.com\u002Frunwayml\u002Fskills\u002Ftree\u002FHEAD\u002Fskills\u002Frw-integrate-video","---\nname: rw-integrate-video\ndescription: \"Help users integrate Runway video generation APIs (text-to-video, image-to-video, video-to-video)\"\nuser-invocable: false\nallowed-tools: Read, Grep, Glob, Edit, Write\n---\n\n# Integrate Video Generation\n\n> **PREREQUISITE:** Run `+rw-check-compatibility` first. Run `+rw-fetch-api-reference` to load the latest API reference before integrating. Requires `+rw-setup-api-key` for API credentials. Requires `+rw-integrate-uploads` when the user has local files to use as input.\n\nHelp users add Runway video generation to their server-side code.\n\n## Available Models\n\n| Model | Best For | Input | Cost | Speed |\n|-------|----------|-------|------|-------|\n| `seedance2` | Reference image and video, long duration | Text, Image, and\u002For Video | 36 credits\u002Fsec | Standard |\n| `gen4.5` | High quality, general purpose | Text and\u002For Image | 12 credits\u002Fsec | Standard |\n| `gen4_turbo` | Fast, image-driven | Image required | 5 credits\u002Fsec | Fast |\n| `gen4_aleph` | Video editing\u002Ftransformation | Video + Text\u002FImage | 15 credits\u002Fsec | Standard |\n| `veo3` | Premium Google model | Text\u002FImage | 40 credits\u002Fsec | Standard |\n| `veo3.1` | High quality Google model | Text\u002FImage | 20-40 credits\u002Fsec | Standard |\n| `veo3.1_fast` | Fast Google model | Text\u002FImage | 10-15 credits\u002Fsec | Fast |\n\n**Model selection guidance:**\n- Default recommendation: **`gen4.5`** — best balance of quality and cost\n- **Product ads \u002F e-commerce:** **`seedance2`** — up to 15s, supports reference image and video\n- Budget-conscious: **`gen4_turbo`** (requires image) or **`veo3.1_fast`**\n- Highest quality: **`veo3`** (most expensive)\n- Video-to-video editing: **`gen4_aleph`** or **`seedance2`**\n\n## Security\n\n`promptImage`, `promptVideo`, `videoUri`, and `references[].uri` are **fetched server-side by the Runway API** — treat them like any outbound fetch:\n\n- **Prefer `runway:\u002F\u002F` URIs** from `+rw-integrate-uploads` — scoped to your account, no arbitrary web content.\n- **If accepting URLs from clients**, validate first: require `https:\u002F\u002F`, allowlist trusted hosts, reject private addresses. See the Express.js example below.\n- **Never forward `req.body.imageUrl`** (or similar) straight into `promptImage` \u002F `promptVideo`. The SDK snippets below use raw URLs for brevity — they aren't production templates.\n- Treat generated outputs as untrusted when piping into downstream automations — ingested media influences the result.\n\n## Endpoints\n\n### Text-to-Video: `POST \u002Fv1\u002Ftext_to_video`\n\nGenerate video from a text prompt only.\n\n**Compatible models:** `seedance2`, `gen4.5`, `veo3`, `veo3.1`, `veo3.1_fast`\n\n```javascript\n\u002F\u002F Node.js SDK\nimport RunwayML from '@runwayml\u002Fsdk';\n\nconst client = new RunwayML();\n\nconst task = await client.textToVideo.create({\n  model: 'gen4.5',\n  promptText: 'A golden retriever running through a field of wildflowers at sunset',\n  ratio: '1280:720',\n  duration: 5\n}).waitForTaskOutput();\n\n\u002F\u002F task.output is an array of signed URLs\nconst videoUrl = task.output[0];\n```\n\n```python\n# Python SDK\nfrom runwayml import RunwayML\n\nclient = RunwayML()\n\ntask = client.text_to_video.create(\n    model='gen4.5',\n    prompt_text='A golden retriever running through a field of wildflowers at sunset',\n    ratio='1280:720',\n    duration=5\n).wait_for_task_output()\n\nvideo_url = task.output[0]\n```\n\n### Image-to-Video: `POST \u002Fv1\u002Fimage_to_video`\n\nAnimate a still image into a video.\n\n**Compatible models:** `seedance2`, `gen4.5`, `gen4_turbo`, `veo3`, `veo3.1`, `veo3.1_fast`\n\n**Recommended:** upload via `+rw-integrate-uploads` and pass the returned `runway:\u002F\u002F` URI.\n\n```javascript\n\u002F\u002F Node.js SDK — preferred flow\nimport fs from 'fs';\n\nconst upload = await client.uploads.createEphemeral(\n  fs.createReadStream('\u002Fpath\u002Fto\u002Fimage.jpg')\n);\n\nconst task = await client.imageToVideo.create({\n  model: 'gen4.5',\n  promptImage: upload.runwayUri,\n  promptText: 'The scene comes to life with gentle wind',\n  ratio: '1280:720',\n  duration: 5\n}).waitForTaskOutput();\n```\n\nExternal URLs also work — only pass origins you control (see Security):\n\n```javascript\nconst task = await client.imageToVideo.create({\n  model: 'gen4.5',\n  promptImage: 'https:\u002F\u002Fcdn.yourapp.com\u002Flandscape.jpg',\n  promptText: 'Camera slowly pans right revealing a mountain range',\n  ratio: '1280:720',\n  duration: 5\n}).waitForTaskOutput();\n```\n\n```python\n# Python SDK\ntask = client.image_to_video.create(\n    model='gen4.5',\n    prompt_image='https:\u002F\u002Fcdn.yourapp.com\u002Flandscape.jpg',\n    prompt_text='Camera slowly pans right revealing a mountain range',\n    ratio='1280:720',\n    duration=5\n).wait_for_task_output()\n```\n\n### Video-to-Video: `POST \u002Fv1\u002Fvideo_to_video`\n\nTransform an existing video with a text prompt and\u002For reference image.\n\n**Compatible models:** `gen4_aleph`, `seedance2`\n\n```javascript\n\u002F\u002F Node.js SDK — gen4_aleph\nconst task = await client.videoToVideo.create({\n  model: 'gen4_aleph',\n  videoUri: 'https:\u002F\u002Fcdn.yourapp.com\u002Fsource.mp4',\n  promptText: 'Transform into an animated cartoon style',\n}).waitForTaskOutput();\n```\n\n```javascript\n\u002F\u002F Node.js SDK — seedance2 video-to-video (with optional image reference)\nconst task = await client.videoToVideo.create({\n  model: 'seedance2',\n  promptVideo: 'https:\u002F\u002Fcdn.yourapp.com\u002Finput.mp4',\n  promptText: 'Transform into a warm golden sunset scene',\n  references: [{ type: 'image', uri: 'https:\u002F\u002Fcdn.yourapp.com\u002Fstyle_ref.jpg' }]\n}).waitForTaskOutput();\n```\n\n> **seedance2 VTV input requirements:** max 15 seconds, max 32 MB, min 720p resolution, MP4 recommended.\n\n### Seedance 2\n\nSeedance 2 supports text-to-video, image-to-video (two modes), and video-to-video. It uses pixel-based ratios: `1280:720`, `720:1280`, `960:960`, `1112:834`, `834:1112`, `1470:630`, `992:432`, `864:496`, `752:560`, `640:640`, `560:752`, `496:864`.\n\n#### Text-to-Video\n\n```javascript\nconst task = await client.textToVideo.create({\n  model: 'seedance2',\n  promptText: 'A calm ocean wave gently crashing on a sandy beach at sunset',\n  duration: 5,\n  ratio: '1280:720'\n}).waitForTaskOutput();\n```\n\n#### Image-to-Video — Mode 1: First \u002F Last Frame\n\nUse a specific image as the first and\u002For last frame. The `references` field **cannot** be used in this mode.\n\n```javascript\nconst task = await client.imageToVideo.create({\n  model: 'seedance2',\n  promptText: 'Smooth transition from day to night in a cozy mountain cabin',\n  promptImage: [\n    { uri: 'https:\u002F\u002Fcdn.yourapp.com\u002Fimage.jpg', position: 'first' },\n    { uri: 'https:\u002F\u002Fcdn.yourapp.com\u002Fimage2.jpg', position: 'last' }\n  ],\n  duration: 4,\n  ratio: '1280:720'\n}).waitForTaskOutput();\n```\n\n`promptImage` is an array of objects with `uri` (required) and `position` (`\"first\"` or `\"last\"`, defaults to first).\n\n#### Image-to-Video — Mode 2: Image Reference\n\nUse an image as a stylistic\u002Fcontent reference rather than a literal frame. `promptImage` is still required (as a URI string or single-item array).\n\n```javascript\nconst task = await client.imageToVideo.create({\n  model: 'seedance2',\n  promptText: 'Smooth transition from day to night in a cozy mountain cabin',\n  promptImage: 'https:\u002F\u002Fcdn.yourapp.com\u002Fimage.jpg',\n  references: [{ type: 'image', uri: 'https:\u002F\u002Fcdn.yourapp.com\u002Freference.jpg' }],\n  duration: 4,\n  ratio: '1280:720'\n}).waitForTaskOutput();\n```\n\n> These two ITV modes are **mutually exclusive** — you cannot use `position` in `promptImage` and `references` in the same request.\n\n#### Video-to-Video\n\nTransform an existing video guided by a text prompt, optionally with an image reference.\n\n```python\ntask = client.video_to_video.create(\n    model='seedance2',\n    prompt_video='https:\u002F\u002Fcdn.yourapp.com\u002Finput.mp4',\n    prompt_text='Transform into a warm golden sunset scene',\n    references=[{'type': 'image', 'uri': 'https:\u002F\u002Fcdn.yourapp.com\u002Fstyle_ref.jpg'}]\n).wait_for_task_output()\n```\n\n> **VTV input requirements:** max 15 seconds, max 32 MB, min 720p resolution, MP4 recommended.\n\n#### Seedance 2 Parameters\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `model` | string | Yes | Must be `\"seedance2\"` |\n| `promptText` | string | Yes | Text description of the desired video |\n| `duration` | number | Yes (TTV\u002FITV) | Duration in seconds |\n| `ratio` | string | Yes (TTV\u002FITV) | `1280:720`, `720:1280`, `960:960`, `1112:834`, `834:1112`, `1470:630` |\n| `promptImage` | string or array | Yes (ITV) | URI string or array of `{ uri, position? }` objects |\n| `promptVideo` | string | Yes (seedance2 VTV) | Input video URI (seedance2 only) |\n| `videoUri` | string | Yes (gen4_aleph VTV) | Input video URI (gen4_aleph only) |\n| `references` | array | No | Image references — `[{ type: \"image\", uri: \"...\" }]` (ITV Mode 2 and VTV only) |\n\n### Character Performance: `POST \u002Fv1\u002Fcharacter_performance`\n\nAnimate a character with facial\u002Fbody performance.\n\n**Compatible models:** `act_two`\n\n```javascript\nconst task = await client.characterPerformance.create({\n  model: 'act_two',\n  promptImage: 'https:\u002F\u002Fcdn.yourapp.com\u002Fcharacter.jpg',\n  promptPerformance: 'https:\u002F\u002Fcdn.yourapp.com\u002Fperformance.mp4',\n  ratio: '1280:720',\n  duration: 5\n}).waitForTaskOutput();\n```\n\n## Common Parameters\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `model` | string | Model ID (required) |\n| `promptText` | string | Text prompt describing the video |\n| `promptImage` | string | URL, data URI, or `runway:\u002F\u002F` URI of input image |\n| `ratio` | string | Aspect ratio, e.g. `'1280:720'`, `'720:1280'` |\n| `duration` | number | Video length in seconds (2-15, model-dependent) |\n\n## Integration Pattern\n\nWhen helping the user integrate, follow this pattern:\n\n1. **Determine the use case** — What type of video generation? (text-to-video, image-to-video, etc.)\n2. **Prefer uploads over URLs** — Default to `+rw-integrate-uploads` so inputs are `runway:\u002F\u002F` URIs. External URLs only from origins you control (see Security).\n3. **Select the model** — Recommend based on quality\u002Fcost\u002Fspeed needs\n4. **Write the server-side handler** — Create an API route or server function\n5. **Handle the output** — Download and store the video, don't serve signed URLs to clients\n6. **Add error handling** — Wrap in try\u002Fcatch, handle `TaskFailedError`\n\n### Example: Express.js API Route\n\n```javascript\nimport RunwayML from '@runwayml\u002Fsdk';\nimport express from 'express';\n\nconst client = new RunwayML();\nconst app = express();\napp.use(express.json());\n\n\u002F\u002F `runway:\u002F\u002F` URIs bypass this check; external URLs must match the allowlist.\nconst ALLOWED_MEDIA_HOSTS = new Set(['cdn.yourapp.com', 'uploads.yourapp.com']);\n\nfunction assertTrustedMediaUrl(raw) {\n  const u = new URL(raw);\n  if (u.protocol !== 'https:') throw new Error('https required');\n  if (!ALLOWED_MEDIA_HOSTS.has(u.hostname)) throw new Error('untrusted media host');\n  return u.toString();\n}\n\napp.post('\u002Fapi\u002Fgenerate-video', async (req, res) => {\n  try {\n    const { prompt, imageUrl, model = 'gen4.5', duration = 5 } = req.body;\n\n    const params = {\n      model,\n      promptText: prompt,\n      ratio: '1280:720',\n      duration\n    };\n\n    let task;\n    if (imageUrl) {\n      task = await client.imageToVideo.create({\n        ...params,\n        promptImage: assertTrustedMediaUrl(imageUrl)\n      }).waitForTaskOutput();\n    } else {\n      task = await client.textToVideo.create(params).waitForTaskOutput();\n    }\n\n    res.json({ videoUrl: task.output[0] });\n  } catch (error) {\n    console.error('Video generation failed:', error);\n    res.status(400).json({ error: error.message });\n  }\n});\n```\n\n> For browser uploads: POST files to your server, upload via `+rw-integrate-uploads`, and pass the `runway:\u002F\u002F` URI. Don't accept raw URLs from the browser.\n\n### Example: Next.js API Route\n\n```typescript\n\u002F\u002F app\u002Fapi\u002Fgenerate-video\u002Froute.ts\nimport RunwayML from '@runwayml\u002Fsdk';\nimport { NextRequest, NextResponse } from 'next\u002Fserver';\n\nconst client = new RunwayML();\n\nexport async function POST(request: NextRequest) {\n  const { prompt, imageUrl } = await request.json();\n\n  try {\n    const task = imageUrl\n      ? await client.imageToVideo.create({\n          model: 'gen4.5',\n          promptImage: imageUrl,\n          promptText: prompt,\n          ratio: '1280:720',\n          duration: 5\n        }).waitForTaskOutput()\n      : await client.textToVideo.create({\n          model: 'gen4.5',\n          promptText: prompt,\n          ratio: '1280:720',\n          duration: 5\n        }).waitForTaskOutput();\n\n    return NextResponse.json({ videoUrl: task.output[0] });\n  } catch (error) {\n    return NextResponse.json(\n      { error: error instanceof Error ? error.message : 'Generation failed' },\n      { status: 500 }\n    );\n  }\n}\n```\n\n### Example: FastAPI Route\n\n```python\nfrom fastapi import FastAPI, HTTPException\nfrom pydantic import BaseModel\nfrom runwayml import RunwayML\n\napp = FastAPI()\nclient = RunwayML()\n\nclass VideoRequest(BaseModel):\n    prompt: str\n    image_url: str | None = None\n    model: str = \"gen4.5\"\n    duration: int = 5\n\n@app.post(\"\u002Fapi\u002Fgenerate-video\")\nasync def generate_video(req: VideoRequest):\n    try:\n        if req.image_url:\n            task = client.image_to_video.create(\n                model=req.model,\n                prompt_image=req.image_url,\n                prompt_text=req.prompt,\n                ratio=\"1280:720\",\n                duration=req.duration\n            ).wait_for_task_output()\n        else:\n            task = client.text_to_video.create(\n                model=req.model,\n                prompt_text=req.prompt,\n                ratio=\"1280:720\",\n                duration=req.duration\n            ).wait_for_task_output()\n\n        return {\"video_url\": task.output[0]}\n    except Exception as e:\n        raise HTTPException(status_code=500, detail=str(e))\n```\n\n## Tips\n\n- **Output URLs expire in 24-48 hours.** Download videos to your own storage (S3, GCS, local filesystem) immediately after generation.\n- **`gen4_turbo` requires an image** — it cannot do text-only generation.\n- **Video-to-video models:** `gen4_aleph` and `seedance2` — use for editing\u002Ftransforming existing videos.\n- **Duration varies by model.** Most models support 2-10 seconds; seedance2 supports up to 15 seconds.\n- **`waitForTaskOutput()` has a default 10-minute timeout.** For long-running generations, you may want to implement your own polling loop or increase the timeout.\n- **For local files**, always use `+rw-integrate-uploads` to upload first, then pass the `runway:\u002F\u002F` URI.\n",{"data":36,"body":39},{"name":4,"description":6,"user-invocable":37,"allowed-tools":38},false,"Read, Grep, Glob, Edit, Write",{"type":40,"children":41},"root",[42,51,100,105,112,372,380,481,487,528,609,615,628,633,671,1055,1165,1177,1182,1225,1249,1610,1615,1821,1887,1899,1904,1923,2097,2351,2364,2370,2458,2465,2645,2651,2671,2996,3037,3043,3055,3335,3371,3377,3382,3436,3448,3454,3747,3759,3764,3778,3986,3992,4136,4142,4147,4231,4237,5627,5649,5655,6521,6527,6803,6809,6908],{"type":43,"tag":44,"props":45,"children":47},"element","h1",{"id":46},"integrate-video-generation",[48],{"type":49,"value":50},"text","Integrate Video Generation",{"type":43,"tag":52,"props":53,"children":54},"blockquote",{},[55],{"type":43,"tag":56,"props":57,"children":58},"p",{},[59,65,67,74,76,82,84,90,92,98],{"type":43,"tag":60,"props":61,"children":62},"strong",{},[63],{"type":49,"value":64},"PREREQUISITE:",{"type":49,"value":66}," Run ",{"type":43,"tag":68,"props":69,"children":71},"code",{"className":70},[],[72],{"type":49,"value":73},"+rw-check-compatibility",{"type":49,"value":75}," first. Run ",{"type":43,"tag":68,"props":77,"children":79},{"className":78},[],[80],{"type":49,"value":81},"+rw-fetch-api-reference",{"type":49,"value":83}," to load the latest API reference before integrating. Requires ",{"type":43,"tag":68,"props":85,"children":87},{"className":86},[],[88],{"type":49,"value":89},"+rw-setup-api-key",{"type":49,"value":91}," for API credentials. Requires ",{"type":43,"tag":68,"props":93,"children":95},{"className":94},[],[96],{"type":49,"value":97},"+rw-integrate-uploads",{"type":49,"value":99}," when the user has local files to use as input.",{"type":43,"tag":56,"props":101,"children":102},{},[103],{"type":49,"value":104},"Help users add Runway video generation to their server-side code.",{"type":43,"tag":106,"props":107,"children":109},"h2",{"id":108},"available-models",[110],{"type":49,"value":111},"Available Models",{"type":43,"tag":113,"props":114,"children":115},"table",{},[116,150],{"type":43,"tag":117,"props":118,"children":119},"thead",{},[120],{"type":43,"tag":121,"props":122,"children":123},"tr",{},[124,130,135,140,145],{"type":43,"tag":125,"props":126,"children":127},"th",{},[128],{"type":49,"value":129},"Model",{"type":43,"tag":125,"props":131,"children":132},{},[133],{"type":49,"value":134},"Best For",{"type":43,"tag":125,"props":136,"children":137},{},[138],{"type":49,"value":139},"Input",{"type":43,"tag":125,"props":141,"children":142},{},[143],{"type":49,"value":144},"Cost",{"type":43,"tag":125,"props":146,"children":147},{},[148],{"type":49,"value":149},"Speed",{"type":43,"tag":151,"props":152,"children":153},"tbody",{},[154,187,218,250,281,312,342],{"type":43,"tag":121,"props":155,"children":156},{},[157,167,172,177,182],{"type":43,"tag":158,"props":159,"children":160},"td",{},[161],{"type":43,"tag":68,"props":162,"children":164},{"className":163},[],[165],{"type":49,"value":166},"seedance2",{"type":43,"tag":158,"props":168,"children":169},{},[170],{"type":49,"value":171},"Reference image and video, long duration",{"type":43,"tag":158,"props":173,"children":174},{},[175],{"type":49,"value":176},"Text, Image, and\u002For Video",{"type":43,"tag":158,"props":178,"children":179},{},[180],{"type":49,"value":181},"36 credits\u002Fsec",{"type":43,"tag":158,"props":183,"children":184},{},[185],{"type":49,"value":186},"Standard",{"type":43,"tag":121,"props":188,"children":189},{},[190,199,204,209,214],{"type":43,"tag":158,"props":191,"children":192},{},[193],{"type":43,"tag":68,"props":194,"children":196},{"className":195},[],[197],{"type":49,"value":198},"gen4.5",{"type":43,"tag":158,"props":200,"children":201},{},[202],{"type":49,"value":203},"High quality, general purpose",{"type":43,"tag":158,"props":205,"children":206},{},[207],{"type":49,"value":208},"Text and\u002For Image",{"type":43,"tag":158,"props":210,"children":211},{},[212],{"type":49,"value":213},"12 credits\u002Fsec",{"type":43,"tag":158,"props":215,"children":216},{},[217],{"type":49,"value":186},{"type":43,"tag":121,"props":219,"children":220},{},[221,230,235,240,245],{"type":43,"tag":158,"props":222,"children":223},{},[224],{"type":43,"tag":68,"props":225,"children":227},{"className":226},[],[228],{"type":49,"value":229},"gen4_turbo",{"type":43,"tag":158,"props":231,"children":232},{},[233],{"type":49,"value":234},"Fast, image-driven",{"type":43,"tag":158,"props":236,"children":237},{},[238],{"type":49,"value":239},"Image required",{"type":43,"tag":158,"props":241,"children":242},{},[243],{"type":49,"value":244},"5 credits\u002Fsec",{"type":43,"tag":158,"props":246,"children":247},{},[248],{"type":49,"value":249},"Fast",{"type":43,"tag":121,"props":251,"children":252},{},[253,262,267,272,277],{"type":43,"tag":158,"props":254,"children":255},{},[256],{"type":43,"tag":68,"props":257,"children":259},{"className":258},[],[260],{"type":49,"value":261},"gen4_aleph",{"type":43,"tag":158,"props":263,"children":264},{},[265],{"type":49,"value":266},"Video editing\u002Ftransformation",{"type":43,"tag":158,"props":268,"children":269},{},[270],{"type":49,"value":271},"Video + Text\u002FImage",{"type":43,"tag":158,"props":273,"children":274},{},[275],{"type":49,"value":276},"15 credits\u002Fsec",{"type":43,"tag":158,"props":278,"children":279},{},[280],{"type":49,"value":186},{"type":43,"tag":121,"props":282,"children":283},{},[284,293,298,303,308],{"type":43,"tag":158,"props":285,"children":286},{},[287],{"type":43,"tag":68,"props":288,"children":290},{"className":289},[],[291],{"type":49,"value":292},"veo3",{"type":43,"tag":158,"props":294,"children":295},{},[296],{"type":49,"value":297},"Premium Google model",{"type":43,"tag":158,"props":299,"children":300},{},[301],{"type":49,"value":302},"Text\u002FImage",{"type":43,"tag":158,"props":304,"children":305},{},[306],{"type":49,"value":307},"40 credits\u002Fsec",{"type":43,"tag":158,"props":309,"children":310},{},[311],{"type":49,"value":186},{"type":43,"tag":121,"props":313,"children":314},{},[315,324,329,333,338],{"type":43,"tag":158,"props":316,"children":317},{},[318],{"type":43,"tag":68,"props":319,"children":321},{"className":320},[],[322],{"type":49,"value":323},"veo3.1",{"type":43,"tag":158,"props":325,"children":326},{},[327],{"type":49,"value":328},"High quality Google model",{"type":43,"tag":158,"props":330,"children":331},{},[332],{"type":49,"value":302},{"type":43,"tag":158,"props":334,"children":335},{},[336],{"type":49,"value":337},"20-40 credits\u002Fsec",{"type":43,"tag":158,"props":339,"children":340},{},[341],{"type":49,"value":186},{"type":43,"tag":121,"props":343,"children":344},{},[345,354,359,363,368],{"type":43,"tag":158,"props":346,"children":347},{},[348],{"type":43,"tag":68,"props":349,"children":351},{"className":350},[],[352],{"type":49,"value":353},"veo3.1_fast",{"type":43,"tag":158,"props":355,"children":356},{},[357],{"type":49,"value":358},"Fast Google model",{"type":43,"tag":158,"props":360,"children":361},{},[362],{"type":49,"value":302},{"type":43,"tag":158,"props":364,"children":365},{},[366],{"type":49,"value":367},"10-15 credits\u002Fsec",{"type":43,"tag":158,"props":369,"children":370},{},[371],{"type":49,"value":249},{"type":43,"tag":56,"props":373,"children":374},{},[375],{"type":43,"tag":60,"props":376,"children":377},{},[378],{"type":49,"value":379},"Model selection guidance:",{"type":43,"tag":381,"props":382,"children":383},"ul",{},[384,400,420,443,458],{"type":43,"tag":385,"props":386,"children":387},"li",{},[388,390,398],{"type":49,"value":389},"Default recommendation: ",{"type":43,"tag":60,"props":391,"children":392},{},[393],{"type":43,"tag":68,"props":394,"children":396},{"className":395},[],[397],{"type":49,"value":198},{"type":49,"value":399}," — best balance of quality and cost",{"type":43,"tag":385,"props":401,"children":402},{},[403,408,410,418],{"type":43,"tag":60,"props":404,"children":405},{},[406],{"type":49,"value":407},"Product ads \u002F e-commerce:",{"type":49,"value":409}," ",{"type":43,"tag":60,"props":411,"children":412},{},[413],{"type":43,"tag":68,"props":414,"children":416},{"className":415},[],[417],{"type":49,"value":166},{"type":49,"value":419}," — up to 15s, supports reference image and video",{"type":43,"tag":385,"props":421,"children":422},{},[423,425,433,435],{"type":49,"value":424},"Budget-conscious: ",{"type":43,"tag":60,"props":426,"children":427},{},[428],{"type":43,"tag":68,"props":429,"children":431},{"className":430},[],[432],{"type":49,"value":229},{"type":49,"value":434}," (requires image) or ",{"type":43,"tag":60,"props":436,"children":437},{},[438],{"type":43,"tag":68,"props":439,"children":441},{"className":440},[],[442],{"type":49,"value":353},{"type":43,"tag":385,"props":444,"children":445},{},[446,448,456],{"type":49,"value":447},"Highest quality: ",{"type":43,"tag":60,"props":449,"children":450},{},[451],{"type":43,"tag":68,"props":452,"children":454},{"className":453},[],[455],{"type":49,"value":292},{"type":49,"value":457}," (most expensive)",{"type":43,"tag":385,"props":459,"children":460},{},[461,463,471,473],{"type":49,"value":462},"Video-to-video editing: ",{"type":43,"tag":60,"props":464,"children":465},{},[466],{"type":43,"tag":68,"props":467,"children":469},{"className":468},[],[470],{"type":49,"value":261},{"type":49,"value":472}," or ",{"type":43,"tag":60,"props":474,"children":475},{},[476],{"type":43,"tag":68,"props":477,"children":479},{"className":478},[],[480],{"type":49,"value":166},{"type":43,"tag":106,"props":482,"children":484},{"id":483},"security",[485],{"type":49,"value":486},"Security",{"type":43,"tag":56,"props":488,"children":489},{},[490,496,498,504,505,511,513,519,521,526],{"type":43,"tag":68,"props":491,"children":493},{"className":492},[],[494],{"type":49,"value":495},"promptImage",{"type":49,"value":497},", ",{"type":43,"tag":68,"props":499,"children":501},{"className":500},[],[502],{"type":49,"value":503},"promptVideo",{"type":49,"value":497},{"type":43,"tag":68,"props":506,"children":508},{"className":507},[],[509],{"type":49,"value":510},"videoUri",{"type":49,"value":512},", and ",{"type":43,"tag":68,"props":514,"children":516},{"className":515},[],[517],{"type":49,"value":518},"references[].uri",{"type":49,"value":520}," are ",{"type":43,"tag":60,"props":522,"children":523},{},[524],{"type":49,"value":525},"fetched server-side by the Runway API",{"type":49,"value":527}," — treat them like any outbound fetch:",{"type":43,"tag":381,"props":529,"children":530},{},[531,556,574,604],{"type":43,"tag":385,"props":532,"children":533},{},[534,547,549,554],{"type":43,"tag":60,"props":535,"children":536},{},[537,539,545],{"type":49,"value":538},"Prefer ",{"type":43,"tag":68,"props":540,"children":542},{"className":541},[],[543],{"type":49,"value":544},"runway:\u002F\u002F",{"type":49,"value":546}," URIs",{"type":49,"value":548}," from ",{"type":43,"tag":68,"props":550,"children":552},{"className":551},[],[553],{"type":49,"value":97},{"type":49,"value":555}," — scoped to your account, no arbitrary web content.",{"type":43,"tag":385,"props":557,"children":558},{},[559,564,566,572],{"type":43,"tag":60,"props":560,"children":561},{},[562],{"type":49,"value":563},"If accepting URLs from clients",{"type":49,"value":565},", validate first: require ",{"type":43,"tag":68,"props":567,"children":569},{"className":568},[],[570],{"type":49,"value":571},"https:\u002F\u002F",{"type":49,"value":573},", allowlist trusted hosts, reject private addresses. See the Express.js example below.",{"type":43,"tag":385,"props":575,"children":576},{},[577,588,590,595,597,602],{"type":43,"tag":60,"props":578,"children":579},{},[580,582],{"type":49,"value":581},"Never forward ",{"type":43,"tag":68,"props":583,"children":585},{"className":584},[],[586],{"type":49,"value":587},"req.body.imageUrl",{"type":49,"value":589}," (or similar) straight into ",{"type":43,"tag":68,"props":591,"children":593},{"className":592},[],[594],{"type":49,"value":495},{"type":49,"value":596}," \u002F ",{"type":43,"tag":68,"props":598,"children":600},{"className":599},[],[601],{"type":49,"value":503},{"type":49,"value":603},". The SDK snippets below use raw URLs for brevity — they aren't production templates.",{"type":43,"tag":385,"props":605,"children":606},{},[607],{"type":49,"value":608},"Treat generated outputs as untrusted when piping into downstream automations — ingested media influences the result.",{"type":43,"tag":106,"props":610,"children":612},{"id":611},"endpoints",[613],{"type":49,"value":614},"Endpoints",{"type":43,"tag":616,"props":617,"children":619},"h3",{"id":618},"text-to-video-post-v1text_to_video",[620,622],{"type":49,"value":621},"Text-to-Video: ",{"type":43,"tag":68,"props":623,"children":625},{"className":624},[],[626],{"type":49,"value":627},"POST \u002Fv1\u002Ftext_to_video",{"type":43,"tag":56,"props":629,"children":630},{},[631],{"type":49,"value":632},"Generate video from a text prompt only.",{"type":43,"tag":56,"props":634,"children":635},{},[636,641,642,647,648,653,654,659,660,665,666],{"type":43,"tag":60,"props":637,"children":638},{},[639],{"type":49,"value":640},"Compatible models:",{"type":49,"value":409},{"type":43,"tag":68,"props":643,"children":645},{"className":644},[],[646],{"type":49,"value":166},{"type":49,"value":497},{"type":43,"tag":68,"props":649,"children":651},{"className":650},[],[652],{"type":49,"value":198},{"type":49,"value":497},{"type":43,"tag":68,"props":655,"children":657},{"className":656},[],[658],{"type":49,"value":292},{"type":49,"value":497},{"type":43,"tag":68,"props":661,"children":663},{"className":662},[],[664],{"type":49,"value":323},{"type":49,"value":497},{"type":43,"tag":68,"props":667,"children":669},{"className":668},[],[670],{"type":49,"value":353},{"type":43,"tag":672,"props":673,"children":678},"pre",{"className":674,"code":675,"language":676,"meta":677,"style":677},"language-javascript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F Node.js SDK\nimport RunwayML from '@runwayml\u002Fsdk';\n\nconst client = new RunwayML();\n\nconst task = await client.textToVideo.create({\n  model: 'gen4.5',\n  promptText: 'A golden retriever running through a field of wildflowers at sunset',\n  ratio: '1280:720',\n  duration: 5\n}).waitForTaskOutput();\n\n\u002F\u002F task.output is an array of signed URLs\nconst videoUrl = task.output[0];\n","javascript","",[679],{"type":43,"tag":68,"props":680,"children":681},{"__ignoreMap":677},[682,694,737,747,787,795,851,883,913,943,962,993,1001,1010],{"type":43,"tag":683,"props":684,"children":687},"span",{"class":685,"line":686},"line",1,[688],{"type":43,"tag":683,"props":689,"children":691},{"style":690},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[692],{"type":49,"value":693},"\u002F\u002F Node.js SDK\n",{"type":43,"tag":683,"props":695,"children":697},{"class":685,"line":696},2,[698,704,710,715,721,727,732],{"type":43,"tag":683,"props":699,"children":701},{"style":700},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[702],{"type":49,"value":703},"import",{"type":43,"tag":683,"props":705,"children":707},{"style":706},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[708],{"type":49,"value":709}," RunwayML ",{"type":43,"tag":683,"props":711,"children":712},{"style":700},[713],{"type":49,"value":714},"from",{"type":43,"tag":683,"props":716,"children":718},{"style":717},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[719],{"type":49,"value":720}," '",{"type":43,"tag":683,"props":722,"children":724},{"style":723},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[725],{"type":49,"value":726},"@runwayml\u002Fsdk",{"type":43,"tag":683,"props":728,"children":729},{"style":717},[730],{"type":49,"value":731},"'",{"type":43,"tag":683,"props":733,"children":734},{"style":717},[735],{"type":49,"value":736},";\n",{"type":43,"tag":683,"props":738,"children":740},{"class":685,"line":739},3,[741],{"type":43,"tag":683,"props":742,"children":744},{"emptyLinePlaceholder":743},true,[745],{"type":49,"value":746},"\n",{"type":43,"tag":683,"props":748,"children":750},{"class":685,"line":749},4,[751,757,762,767,772,778,783],{"type":43,"tag":683,"props":752,"children":754},{"style":753},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[755],{"type":49,"value":756},"const",{"type":43,"tag":683,"props":758,"children":759},{"style":706},[760],{"type":49,"value":761}," client ",{"type":43,"tag":683,"props":763,"children":764},{"style":717},[765],{"type":49,"value":766},"=",{"type":43,"tag":683,"props":768,"children":769},{"style":717},[770],{"type":49,"value":771}," new",{"type":43,"tag":683,"props":773,"children":775},{"style":774},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[776],{"type":49,"value":777}," RunwayML",{"type":43,"tag":683,"props":779,"children":780},{"style":706},[781],{"type":49,"value":782},"()",{"type":43,"tag":683,"props":784,"children":785},{"style":717},[786],{"type":49,"value":736},{"type":43,"tag":683,"props":788,"children":790},{"class":685,"line":789},5,[791],{"type":43,"tag":683,"props":792,"children":793},{"emptyLinePlaceholder":743},[794],{"type":49,"value":746},{"type":43,"tag":683,"props":796,"children":798},{"class":685,"line":797},6,[799,803,808,812,817,822,827,832,836,841,846],{"type":43,"tag":683,"props":800,"children":801},{"style":753},[802],{"type":49,"value":756},{"type":43,"tag":683,"props":804,"children":805},{"style":706},[806],{"type":49,"value":807}," task ",{"type":43,"tag":683,"props":809,"children":810},{"style":717},[811],{"type":49,"value":766},{"type":43,"tag":683,"props":813,"children":814},{"style":700},[815],{"type":49,"value":816}," await",{"type":43,"tag":683,"props":818,"children":819},{"style":706},[820],{"type":49,"value":821}," client",{"type":43,"tag":683,"props":823,"children":824},{"style":717},[825],{"type":49,"value":826},".",{"type":43,"tag":683,"props":828,"children":829},{"style":706},[830],{"type":49,"value":831},"textToVideo",{"type":43,"tag":683,"props":833,"children":834},{"style":717},[835],{"type":49,"value":826},{"type":43,"tag":683,"props":837,"children":838},{"style":774},[839],{"type":49,"value":840},"create",{"type":43,"tag":683,"props":842,"children":843},{"style":706},[844],{"type":49,"value":845},"(",{"type":43,"tag":683,"props":847,"children":848},{"style":717},[849],{"type":49,"value":850},"{\n",{"type":43,"tag":683,"props":852,"children":854},{"class":685,"line":853},7,[855,861,866,870,874,878],{"type":43,"tag":683,"props":856,"children":858},{"style":857},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[859],{"type":49,"value":860},"  model",{"type":43,"tag":683,"props":862,"children":863},{"style":717},[864],{"type":49,"value":865},":",{"type":43,"tag":683,"props":867,"children":868},{"style":717},[869],{"type":49,"value":720},{"type":43,"tag":683,"props":871,"children":872},{"style":723},[873],{"type":49,"value":198},{"type":43,"tag":683,"props":875,"children":876},{"style":717},[877],{"type":49,"value":731},{"type":43,"tag":683,"props":879,"children":880},{"style":717},[881],{"type":49,"value":882},",\n",{"type":43,"tag":683,"props":884,"children":886},{"class":685,"line":885},8,[887,892,896,900,905,909],{"type":43,"tag":683,"props":888,"children":889},{"style":857},[890],{"type":49,"value":891},"  promptText",{"type":43,"tag":683,"props":893,"children":894},{"style":717},[895],{"type":49,"value":865},{"type":43,"tag":683,"props":897,"children":898},{"style":717},[899],{"type":49,"value":720},{"type":43,"tag":683,"props":901,"children":902},{"style":723},[903],{"type":49,"value":904},"A golden retriever running through a field of wildflowers at sunset",{"type":43,"tag":683,"props":906,"children":907},{"style":717},[908],{"type":49,"value":731},{"type":43,"tag":683,"props":910,"children":911},{"style":717},[912],{"type":49,"value":882},{"type":43,"tag":683,"props":914,"children":916},{"class":685,"line":915},9,[917,922,926,930,935,939],{"type":43,"tag":683,"props":918,"children":919},{"style":857},[920],{"type":49,"value":921},"  ratio",{"type":43,"tag":683,"props":923,"children":924},{"style":717},[925],{"type":49,"value":865},{"type":43,"tag":683,"props":927,"children":928},{"style":717},[929],{"type":49,"value":720},{"type":43,"tag":683,"props":931,"children":932},{"style":723},[933],{"type":49,"value":934},"1280:720",{"type":43,"tag":683,"props":936,"children":937},{"style":717},[938],{"type":49,"value":731},{"type":43,"tag":683,"props":940,"children":941},{"style":717},[942],{"type":49,"value":882},{"type":43,"tag":683,"props":944,"children":946},{"class":685,"line":945},10,[947,952,956],{"type":43,"tag":683,"props":948,"children":949},{"style":857},[950],{"type":49,"value":951},"  duration",{"type":43,"tag":683,"props":953,"children":954},{"style":717},[955],{"type":49,"value":865},{"type":43,"tag":683,"props":957,"children":959},{"style":958},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[960],{"type":49,"value":961}," 5\n",{"type":43,"tag":683,"props":963,"children":965},{"class":685,"line":964},11,[966,971,976,980,985,989],{"type":43,"tag":683,"props":967,"children":968},{"style":717},[969],{"type":49,"value":970},"}",{"type":43,"tag":683,"props":972,"children":973},{"style":706},[974],{"type":49,"value":975},")",{"type":43,"tag":683,"props":977,"children":978},{"style":717},[979],{"type":49,"value":826},{"type":43,"tag":683,"props":981,"children":982},{"style":774},[983],{"type":49,"value":984},"waitForTaskOutput",{"type":43,"tag":683,"props":986,"children":987},{"style":706},[988],{"type":49,"value":782},{"type":43,"tag":683,"props":990,"children":991},{"style":717},[992],{"type":49,"value":736},{"type":43,"tag":683,"props":994,"children":996},{"class":685,"line":995},12,[997],{"type":43,"tag":683,"props":998,"children":999},{"emptyLinePlaceholder":743},[1000],{"type":49,"value":746},{"type":43,"tag":683,"props":1002,"children":1004},{"class":685,"line":1003},13,[1005],{"type":43,"tag":683,"props":1006,"children":1007},{"style":690},[1008],{"type":49,"value":1009},"\u002F\u002F task.output is an array of signed URLs\n",{"type":43,"tag":683,"props":1011,"children":1013},{"class":685,"line":1012},14,[1014,1018,1023,1027,1032,1036,1041,1046,1051],{"type":43,"tag":683,"props":1015,"children":1016},{"style":753},[1017],{"type":49,"value":756},{"type":43,"tag":683,"props":1019,"children":1020},{"style":706},[1021],{"type":49,"value":1022}," videoUrl ",{"type":43,"tag":683,"props":1024,"children":1025},{"style":717},[1026],{"type":49,"value":766},{"type":43,"tag":683,"props":1028,"children":1029},{"style":706},[1030],{"type":49,"value":1031}," task",{"type":43,"tag":683,"props":1033,"children":1034},{"style":717},[1035],{"type":49,"value":826},{"type":43,"tag":683,"props":1037,"children":1038},{"style":706},[1039],{"type":49,"value":1040},"output[",{"type":43,"tag":683,"props":1042,"children":1043},{"style":958},[1044],{"type":49,"value":1045},"0",{"type":43,"tag":683,"props":1047,"children":1048},{"style":706},[1049],{"type":49,"value":1050},"]",{"type":43,"tag":683,"props":1052,"children":1053},{"style":717},[1054],{"type":49,"value":736},{"type":43,"tag":672,"props":1056,"children":1060},{"className":1057,"code":1058,"language":1059,"meta":677,"style":677},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Python SDK\nfrom runwayml import RunwayML\n\nclient = RunwayML()\n\ntask = client.text_to_video.create(\n    model='gen4.5',\n    prompt_text='A golden retriever running through a field of wildflowers at sunset',\n    ratio='1280:720',\n    duration=5\n).wait_for_task_output()\n\nvideo_url = task.output[0]\n","python",[1061],{"type":43,"tag":68,"props":1062,"children":1063},{"__ignoreMap":677},[1064,1072,1080,1087,1095,1102,1110,1118,1126,1134,1142,1150,1157],{"type":43,"tag":683,"props":1065,"children":1066},{"class":685,"line":686},[1067],{"type":43,"tag":683,"props":1068,"children":1069},{},[1070],{"type":49,"value":1071},"# Python SDK\n",{"type":43,"tag":683,"props":1073,"children":1074},{"class":685,"line":696},[1075],{"type":43,"tag":683,"props":1076,"children":1077},{},[1078],{"type":49,"value":1079},"from runwayml import RunwayML\n",{"type":43,"tag":683,"props":1081,"children":1082},{"class":685,"line":739},[1083],{"type":43,"tag":683,"props":1084,"children":1085},{"emptyLinePlaceholder":743},[1086],{"type":49,"value":746},{"type":43,"tag":683,"props":1088,"children":1089},{"class":685,"line":749},[1090],{"type":43,"tag":683,"props":1091,"children":1092},{},[1093],{"type":49,"value":1094},"client = RunwayML()\n",{"type":43,"tag":683,"props":1096,"children":1097},{"class":685,"line":789},[1098],{"type":43,"tag":683,"props":1099,"children":1100},{"emptyLinePlaceholder":743},[1101],{"type":49,"value":746},{"type":43,"tag":683,"props":1103,"children":1104},{"class":685,"line":797},[1105],{"type":43,"tag":683,"props":1106,"children":1107},{},[1108],{"type":49,"value":1109},"task = client.text_to_video.create(\n",{"type":43,"tag":683,"props":1111,"children":1112},{"class":685,"line":853},[1113],{"type":43,"tag":683,"props":1114,"children":1115},{},[1116],{"type":49,"value":1117},"    model='gen4.5',\n",{"type":43,"tag":683,"props":1119,"children":1120},{"class":685,"line":885},[1121],{"type":43,"tag":683,"props":1122,"children":1123},{},[1124],{"type":49,"value":1125},"    prompt_text='A golden retriever running through a field of wildflowers at sunset',\n",{"type":43,"tag":683,"props":1127,"children":1128},{"class":685,"line":915},[1129],{"type":43,"tag":683,"props":1130,"children":1131},{},[1132],{"type":49,"value":1133},"    ratio='1280:720',\n",{"type":43,"tag":683,"props":1135,"children":1136},{"class":685,"line":945},[1137],{"type":43,"tag":683,"props":1138,"children":1139},{},[1140],{"type":49,"value":1141},"    duration=5\n",{"type":43,"tag":683,"props":1143,"children":1144},{"class":685,"line":964},[1145],{"type":43,"tag":683,"props":1146,"children":1147},{},[1148],{"type":49,"value":1149},").wait_for_task_output()\n",{"type":43,"tag":683,"props":1151,"children":1152},{"class":685,"line":995},[1153],{"type":43,"tag":683,"props":1154,"children":1155},{"emptyLinePlaceholder":743},[1156],{"type":49,"value":746},{"type":43,"tag":683,"props":1158,"children":1159},{"class":685,"line":1003},[1160],{"type":43,"tag":683,"props":1161,"children":1162},{},[1163],{"type":49,"value":1164},"video_url = task.output[0]\n",{"type":43,"tag":616,"props":1166,"children":1168},{"id":1167},"image-to-video-post-v1image_to_video",[1169,1171],{"type":49,"value":1170},"Image-to-Video: ",{"type":43,"tag":68,"props":1172,"children":1174},{"className":1173},[],[1175],{"type":49,"value":1176},"POST \u002Fv1\u002Fimage_to_video",{"type":43,"tag":56,"props":1178,"children":1179},{},[1180],{"type":49,"value":1181},"Animate a still image into a video.",{"type":43,"tag":56,"props":1183,"children":1184},{},[1185,1189,1190,1195,1196,1201,1202,1207,1208,1213,1214,1219,1220],{"type":43,"tag":60,"props":1186,"children":1187},{},[1188],{"type":49,"value":640},{"type":49,"value":409},{"type":43,"tag":68,"props":1191,"children":1193},{"className":1192},[],[1194],{"type":49,"value":166},{"type":49,"value":497},{"type":43,"tag":68,"props":1197,"children":1199},{"className":1198},[],[1200],{"type":49,"value":198},{"type":49,"value":497},{"type":43,"tag":68,"props":1203,"children":1205},{"className":1204},[],[1206],{"type":49,"value":229},{"type":49,"value":497},{"type":43,"tag":68,"props":1209,"children":1211},{"className":1210},[],[1212],{"type":49,"value":292},{"type":49,"value":497},{"type":43,"tag":68,"props":1215,"children":1217},{"className":1216},[],[1218],{"type":49,"value":323},{"type":49,"value":497},{"type":43,"tag":68,"props":1221,"children":1223},{"className":1222},[],[1224],{"type":49,"value":353},{"type":43,"tag":56,"props":1226,"children":1227},{},[1228,1233,1235,1240,1242,1247],{"type":43,"tag":60,"props":1229,"children":1230},{},[1231],{"type":49,"value":1232},"Recommended:",{"type":49,"value":1234}," upload via ",{"type":43,"tag":68,"props":1236,"children":1238},{"className":1237},[],[1239],{"type":49,"value":97},{"type":49,"value":1241}," and pass the returned ",{"type":43,"tag":68,"props":1243,"children":1245},{"className":1244},[],[1246],{"type":49,"value":544},{"type":49,"value":1248}," URI.",{"type":43,"tag":672,"props":1250,"children":1252},{"className":674,"code":1251,"language":676,"meta":677,"style":677},"\u002F\u002F Node.js SDK — preferred flow\nimport fs from 'fs';\n\nconst upload = await client.uploads.createEphemeral(\n  fs.createReadStream('\u002Fpath\u002Fto\u002Fimage.jpg')\n);\n\nconst task = await client.imageToVideo.create({\n  model: 'gen4.5',\n  promptImage: upload.runwayUri,\n  promptText: 'The scene comes to life with gentle wind',\n  ratio: '1280:720',\n  duration: 5\n}).waitForTaskOutput();\n",[1253],{"type":43,"tag":68,"props":1254,"children":1255},{"__ignoreMap":677},[1256,1264,1297,1304,1351,1390,1401,1408,1456,1483,1513,1541,1568,1583],{"type":43,"tag":683,"props":1257,"children":1258},{"class":685,"line":686},[1259],{"type":43,"tag":683,"props":1260,"children":1261},{"style":690},[1262],{"type":49,"value":1263},"\u002F\u002F Node.js SDK — preferred flow\n",{"type":43,"tag":683,"props":1265,"children":1266},{"class":685,"line":696},[1267,1271,1276,1280,1284,1289,1293],{"type":43,"tag":683,"props":1268,"children":1269},{"style":700},[1270],{"type":49,"value":703},{"type":43,"tag":683,"props":1272,"children":1273},{"style":706},[1274],{"type":49,"value":1275}," fs ",{"type":43,"tag":683,"props":1277,"children":1278},{"style":700},[1279],{"type":49,"value":714},{"type":43,"tag":683,"props":1281,"children":1282},{"style":717},[1283],{"type":49,"value":720},{"type":43,"tag":683,"props":1285,"children":1286},{"style":723},[1287],{"type":49,"value":1288},"fs",{"type":43,"tag":683,"props":1290,"children":1291},{"style":717},[1292],{"type":49,"value":731},{"type":43,"tag":683,"props":1294,"children":1295},{"style":717},[1296],{"type":49,"value":736},{"type":43,"tag":683,"props":1298,"children":1299},{"class":685,"line":739},[1300],{"type":43,"tag":683,"props":1301,"children":1302},{"emptyLinePlaceholder":743},[1303],{"type":49,"value":746},{"type":43,"tag":683,"props":1305,"children":1306},{"class":685,"line":749},[1307,1311,1316,1320,1324,1328,1332,1337,1341,1346],{"type":43,"tag":683,"props":1308,"children":1309},{"style":753},[1310],{"type":49,"value":756},{"type":43,"tag":683,"props":1312,"children":1313},{"style":706},[1314],{"type":49,"value":1315}," upload ",{"type":43,"tag":683,"props":1317,"children":1318},{"style":717},[1319],{"type":49,"value":766},{"type":43,"tag":683,"props":1321,"children":1322},{"style":700},[1323],{"type":49,"value":816},{"type":43,"tag":683,"props":1325,"children":1326},{"style":706},[1327],{"type":49,"value":821},{"type":43,"tag":683,"props":1329,"children":1330},{"style":717},[1331],{"type":49,"value":826},{"type":43,"tag":683,"props":1333,"children":1334},{"style":706},[1335],{"type":49,"value":1336},"uploads",{"type":43,"tag":683,"props":1338,"children":1339},{"style":717},[1340],{"type":49,"value":826},{"type":43,"tag":683,"props":1342,"children":1343},{"style":774},[1344],{"type":49,"value":1345},"createEphemeral",{"type":43,"tag":683,"props":1347,"children":1348},{"style":706},[1349],{"type":49,"value":1350},"(\n",{"type":43,"tag":683,"props":1352,"children":1353},{"class":685,"line":789},[1354,1359,1363,1368,1372,1376,1381,1385],{"type":43,"tag":683,"props":1355,"children":1356},{"style":706},[1357],{"type":49,"value":1358},"  fs",{"type":43,"tag":683,"props":1360,"children":1361},{"style":717},[1362],{"type":49,"value":826},{"type":43,"tag":683,"props":1364,"children":1365},{"style":774},[1366],{"type":49,"value":1367},"createReadStream",{"type":43,"tag":683,"props":1369,"children":1370},{"style":706},[1371],{"type":49,"value":845},{"type":43,"tag":683,"props":1373,"children":1374},{"style":717},[1375],{"type":49,"value":731},{"type":43,"tag":683,"props":1377,"children":1378},{"style":723},[1379],{"type":49,"value":1380},"\u002Fpath\u002Fto\u002Fimage.jpg",{"type":43,"tag":683,"props":1382,"children":1383},{"style":717},[1384],{"type":49,"value":731},{"type":43,"tag":683,"props":1386,"children":1387},{"style":706},[1388],{"type":49,"value":1389},")\n",{"type":43,"tag":683,"props":1391,"children":1392},{"class":685,"line":797},[1393,1397],{"type":43,"tag":683,"props":1394,"children":1395},{"style":706},[1396],{"type":49,"value":975},{"type":43,"tag":683,"props":1398,"children":1399},{"style":717},[1400],{"type":49,"value":736},{"type":43,"tag":683,"props":1402,"children":1403},{"class":685,"line":853},[1404],{"type":43,"tag":683,"props":1405,"children":1406},{"emptyLinePlaceholder":743},[1407],{"type":49,"value":746},{"type":43,"tag":683,"props":1409,"children":1410},{"class":685,"line":885},[1411,1415,1419,1423,1427,1431,1435,1440,1444,1448,1452],{"type":43,"tag":683,"props":1412,"children":1413},{"style":753},[1414],{"type":49,"value":756},{"type":43,"tag":683,"props":1416,"children":1417},{"style":706},[1418],{"type":49,"value":807},{"type":43,"tag":683,"props":1420,"children":1421},{"style":717},[1422],{"type":49,"value":766},{"type":43,"tag":683,"props":1424,"children":1425},{"style":700},[1426],{"type":49,"value":816},{"type":43,"tag":683,"props":1428,"children":1429},{"style":706},[1430],{"type":49,"value":821},{"type":43,"tag":683,"props":1432,"children":1433},{"style":717},[1434],{"type":49,"value":826},{"type":43,"tag":683,"props":1436,"children":1437},{"style":706},[1438],{"type":49,"value":1439},"imageToVideo",{"type":43,"tag":683,"props":1441,"children":1442},{"style":717},[1443],{"type":49,"value":826},{"type":43,"tag":683,"props":1445,"children":1446},{"style":774},[1447],{"type":49,"value":840},{"type":43,"tag":683,"props":1449,"children":1450},{"style":706},[1451],{"type":49,"value":845},{"type":43,"tag":683,"props":1453,"children":1454},{"style":717},[1455],{"type":49,"value":850},{"type":43,"tag":683,"props":1457,"children":1458},{"class":685,"line":915},[1459,1463,1467,1471,1475,1479],{"type":43,"tag":683,"props":1460,"children":1461},{"style":857},[1462],{"type":49,"value":860},{"type":43,"tag":683,"props":1464,"children":1465},{"style":717},[1466],{"type":49,"value":865},{"type":43,"tag":683,"props":1468,"children":1469},{"style":717},[1470],{"type":49,"value":720},{"type":43,"tag":683,"props":1472,"children":1473},{"style":723},[1474],{"type":49,"value":198},{"type":43,"tag":683,"props":1476,"children":1477},{"style":717},[1478],{"type":49,"value":731},{"type":43,"tag":683,"props":1480,"children":1481},{"style":717},[1482],{"type":49,"value":882},{"type":43,"tag":683,"props":1484,"children":1485},{"class":685,"line":945},[1486,1491,1495,1500,1504,1509],{"type":43,"tag":683,"props":1487,"children":1488},{"style":857},[1489],{"type":49,"value":1490},"  promptImage",{"type":43,"tag":683,"props":1492,"children":1493},{"style":717},[1494],{"type":49,"value":865},{"type":43,"tag":683,"props":1496,"children":1497},{"style":706},[1498],{"type":49,"value":1499}," upload",{"type":43,"tag":683,"props":1501,"children":1502},{"style":717},[1503],{"type":49,"value":826},{"type":43,"tag":683,"props":1505,"children":1506},{"style":706},[1507],{"type":49,"value":1508},"runwayUri",{"type":43,"tag":683,"props":1510,"children":1511},{"style":717},[1512],{"type":49,"value":882},{"type":43,"tag":683,"props":1514,"children":1515},{"class":685,"line":964},[1516,1520,1524,1528,1533,1537],{"type":43,"tag":683,"props":1517,"children":1518},{"style":857},[1519],{"type":49,"value":891},{"type":43,"tag":683,"props":1521,"children":1522},{"style":717},[1523],{"type":49,"value":865},{"type":43,"tag":683,"props":1525,"children":1526},{"style":717},[1527],{"type":49,"value":720},{"type":43,"tag":683,"props":1529,"children":1530},{"style":723},[1531],{"type":49,"value":1532},"The scene comes to life with gentle wind",{"type":43,"tag":683,"props":1534,"children":1535},{"style":717},[1536],{"type":49,"value":731},{"type":43,"tag":683,"props":1538,"children":1539},{"style":717},[1540],{"type":49,"value":882},{"type":43,"tag":683,"props":1542,"children":1543},{"class":685,"line":995},[1544,1548,1552,1556,1560,1564],{"type":43,"tag":683,"props":1545,"children":1546},{"style":857},[1547],{"type":49,"value":921},{"type":43,"tag":683,"props":1549,"children":1550},{"style":717},[1551],{"type":49,"value":865},{"type":43,"tag":683,"props":1553,"children":1554},{"style":717},[1555],{"type":49,"value":720},{"type":43,"tag":683,"props":1557,"children":1558},{"style":723},[1559],{"type":49,"value":934},{"type":43,"tag":683,"props":1561,"children":1562},{"style":717},[1563],{"type":49,"value":731},{"type":43,"tag":683,"props":1565,"children":1566},{"style":717},[1567],{"type":49,"value":882},{"type":43,"tag":683,"props":1569,"children":1570},{"class":685,"line":1003},[1571,1575,1579],{"type":43,"tag":683,"props":1572,"children":1573},{"style":857},[1574],{"type":49,"value":951},{"type":43,"tag":683,"props":1576,"children":1577},{"style":717},[1578],{"type":49,"value":865},{"type":43,"tag":683,"props":1580,"children":1581},{"style":958},[1582],{"type":49,"value":961},{"type":43,"tag":683,"props":1584,"children":1585},{"class":685,"line":1012},[1586,1590,1594,1598,1602,1606],{"type":43,"tag":683,"props":1587,"children":1588},{"style":717},[1589],{"type":49,"value":970},{"type":43,"tag":683,"props":1591,"children":1592},{"style":706},[1593],{"type":49,"value":975},{"type":43,"tag":683,"props":1595,"children":1596},{"style":717},[1597],{"type":49,"value":826},{"type":43,"tag":683,"props":1599,"children":1600},{"style":774},[1601],{"type":49,"value":984},{"type":43,"tag":683,"props":1603,"children":1604},{"style":706},[1605],{"type":49,"value":782},{"type":43,"tag":683,"props":1607,"children":1608},{"style":717},[1609],{"type":49,"value":736},{"type":43,"tag":56,"props":1611,"children":1612},{},[1613],{"type":49,"value":1614},"External URLs also work — only pass origins you control (see Security):",{"type":43,"tag":672,"props":1616,"children":1618},{"className":674,"code":1617,"language":676,"meta":677,"style":677},"const task = await client.imageToVideo.create({\n  model: 'gen4.5',\n  promptImage: 'https:\u002F\u002Fcdn.yourapp.com\u002Flandscape.jpg',\n  promptText: 'Camera slowly pans right revealing a mountain range',\n  ratio: '1280:720',\n  duration: 5\n}).waitForTaskOutput();\n",[1619],{"type":43,"tag":68,"props":1620,"children":1621},{"__ignoreMap":677},[1622,1669,1696,1724,1752,1779,1794],{"type":43,"tag":683,"props":1623,"children":1624},{"class":685,"line":686},[1625,1629,1633,1637,1641,1645,1649,1653,1657,1661,1665],{"type":43,"tag":683,"props":1626,"children":1627},{"style":753},[1628],{"type":49,"value":756},{"type":43,"tag":683,"props":1630,"children":1631},{"style":706},[1632],{"type":49,"value":807},{"type":43,"tag":683,"props":1634,"children":1635},{"style":717},[1636],{"type":49,"value":766},{"type":43,"tag":683,"props":1638,"children":1639},{"style":700},[1640],{"type":49,"value":816},{"type":43,"tag":683,"props":1642,"children":1643},{"style":706},[1644],{"type":49,"value":821},{"type":43,"tag":683,"props":1646,"children":1647},{"style":717},[1648],{"type":49,"value":826},{"type":43,"tag":683,"props":1650,"children":1651},{"style":706},[1652],{"type":49,"value":1439},{"type":43,"tag":683,"props":1654,"children":1655},{"style":717},[1656],{"type":49,"value":826},{"type":43,"tag":683,"props":1658,"children":1659},{"style":774},[1660],{"type":49,"value":840},{"type":43,"tag":683,"props":1662,"children":1663},{"style":706},[1664],{"type":49,"value":845},{"type":43,"tag":683,"props":1666,"children":1667},{"style":717},[1668],{"type":49,"value":850},{"type":43,"tag":683,"props":1670,"children":1671},{"class":685,"line":696},[1672,1676,1680,1684,1688,1692],{"type":43,"tag":683,"props":1673,"children":1674},{"style":857},[1675],{"type":49,"value":860},{"type":43,"tag":683,"props":1677,"children":1678},{"style":717},[1679],{"type":49,"value":865},{"type":43,"tag":683,"props":1681,"children":1682},{"style":717},[1683],{"type":49,"value":720},{"type":43,"tag":683,"props":1685,"children":1686},{"style":723},[1687],{"type":49,"value":198},{"type":43,"tag":683,"props":1689,"children":1690},{"style":717},[1691],{"type":49,"value":731},{"type":43,"tag":683,"props":1693,"children":1694},{"style":717},[1695],{"type":49,"value":882},{"type":43,"tag":683,"props":1697,"children":1698},{"class":685,"line":739},[1699,1703,1707,1711,1716,1720],{"type":43,"tag":683,"props":1700,"children":1701},{"style":857},[1702],{"type":49,"value":1490},{"type":43,"tag":683,"props":1704,"children":1705},{"style":717},[1706],{"type":49,"value":865},{"type":43,"tag":683,"props":1708,"children":1709},{"style":717},[1710],{"type":49,"value":720},{"type":43,"tag":683,"props":1712,"children":1713},{"style":723},[1714],{"type":49,"value":1715},"https:\u002F\u002Fcdn.yourapp.com\u002Flandscape.jpg",{"type":43,"tag":683,"props":1717,"children":1718},{"style":717},[1719],{"type":49,"value":731},{"type":43,"tag":683,"props":1721,"children":1722},{"style":717},[1723],{"type":49,"value":882},{"type":43,"tag":683,"props":1725,"children":1726},{"class":685,"line":749},[1727,1731,1735,1739,1744,1748],{"type":43,"tag":683,"props":1728,"children":1729},{"style":857},[1730],{"type":49,"value":891},{"type":43,"tag":683,"props":1732,"children":1733},{"style":717},[1734],{"type":49,"value":865},{"type":43,"tag":683,"props":1736,"children":1737},{"style":717},[1738],{"type":49,"value":720},{"type":43,"tag":683,"props":1740,"children":1741},{"style":723},[1742],{"type":49,"value":1743},"Camera slowly pans right revealing a mountain range",{"type":43,"tag":683,"props":1745,"children":1746},{"style":717},[1747],{"type":49,"value":731},{"type":43,"tag":683,"props":1749,"children":1750},{"style":717},[1751],{"type":49,"value":882},{"type":43,"tag":683,"props":1753,"children":1754},{"class":685,"line":789},[1755,1759,1763,1767,1771,1775],{"type":43,"tag":683,"props":1756,"children":1757},{"style":857},[1758],{"type":49,"value":921},{"type":43,"tag":683,"props":1760,"children":1761},{"style":717},[1762],{"type":49,"value":865},{"type":43,"tag":683,"props":1764,"children":1765},{"style":717},[1766],{"type":49,"value":720},{"type":43,"tag":683,"props":1768,"children":1769},{"style":723},[1770],{"type":49,"value":934},{"type":43,"tag":683,"props":1772,"children":1773},{"style":717},[1774],{"type":49,"value":731},{"type":43,"tag":683,"props":1776,"children":1777},{"style":717},[1778],{"type":49,"value":882},{"type":43,"tag":683,"props":1780,"children":1781},{"class":685,"line":797},[1782,1786,1790],{"type":43,"tag":683,"props":1783,"children":1784},{"style":857},[1785],{"type":49,"value":951},{"type":43,"tag":683,"props":1787,"children":1788},{"style":717},[1789],{"type":49,"value":865},{"type":43,"tag":683,"props":1791,"children":1792},{"style":958},[1793],{"type":49,"value":961},{"type":43,"tag":683,"props":1795,"children":1796},{"class":685,"line":853},[1797,1801,1805,1809,1813,1817],{"type":43,"tag":683,"props":1798,"children":1799},{"style":717},[1800],{"type":49,"value":970},{"type":43,"tag":683,"props":1802,"children":1803},{"style":706},[1804],{"type":49,"value":975},{"type":43,"tag":683,"props":1806,"children":1807},{"style":717},[1808],{"type":49,"value":826},{"type":43,"tag":683,"props":1810,"children":1811},{"style":774},[1812],{"type":49,"value":984},{"type":43,"tag":683,"props":1814,"children":1815},{"style":706},[1816],{"type":49,"value":782},{"type":43,"tag":683,"props":1818,"children":1819},{"style":717},[1820],{"type":49,"value":736},{"type":43,"tag":672,"props":1822,"children":1824},{"className":1057,"code":1823,"language":1059,"meta":677,"style":677},"# Python SDK\ntask = client.image_to_video.create(\n    model='gen4.5',\n    prompt_image='https:\u002F\u002Fcdn.yourapp.com\u002Flandscape.jpg',\n    prompt_text='Camera slowly pans right revealing a mountain range',\n    ratio='1280:720',\n    duration=5\n).wait_for_task_output()\n",[1825],{"type":43,"tag":68,"props":1826,"children":1827},{"__ignoreMap":677},[1828,1835,1843,1850,1858,1866,1873,1880],{"type":43,"tag":683,"props":1829,"children":1830},{"class":685,"line":686},[1831],{"type":43,"tag":683,"props":1832,"children":1833},{},[1834],{"type":49,"value":1071},{"type":43,"tag":683,"props":1836,"children":1837},{"class":685,"line":696},[1838],{"type":43,"tag":683,"props":1839,"children":1840},{},[1841],{"type":49,"value":1842},"task = client.image_to_video.create(\n",{"type":43,"tag":683,"props":1844,"children":1845},{"class":685,"line":739},[1846],{"type":43,"tag":683,"props":1847,"children":1848},{},[1849],{"type":49,"value":1117},{"type":43,"tag":683,"props":1851,"children":1852},{"class":685,"line":749},[1853],{"type":43,"tag":683,"props":1854,"children":1855},{},[1856],{"type":49,"value":1857},"    prompt_image='https:\u002F\u002Fcdn.yourapp.com\u002Flandscape.jpg',\n",{"type":43,"tag":683,"props":1859,"children":1860},{"class":685,"line":789},[1861],{"type":43,"tag":683,"props":1862,"children":1863},{},[1864],{"type":49,"value":1865},"    prompt_text='Camera slowly pans right revealing a mountain range',\n",{"type":43,"tag":683,"props":1867,"children":1868},{"class":685,"line":797},[1869],{"type":43,"tag":683,"props":1870,"children":1871},{},[1872],{"type":49,"value":1133},{"type":43,"tag":683,"props":1874,"children":1875},{"class":685,"line":853},[1876],{"type":43,"tag":683,"props":1877,"children":1878},{},[1879],{"type":49,"value":1141},{"type":43,"tag":683,"props":1881,"children":1882},{"class":685,"line":885},[1883],{"type":43,"tag":683,"props":1884,"children":1885},{},[1886],{"type":49,"value":1149},{"type":43,"tag":616,"props":1888,"children":1890},{"id":1889},"video-to-video-post-v1video_to_video",[1891,1893],{"type":49,"value":1892},"Video-to-Video: ",{"type":43,"tag":68,"props":1894,"children":1896},{"className":1895},[],[1897],{"type":49,"value":1898},"POST \u002Fv1\u002Fvideo_to_video",{"type":43,"tag":56,"props":1900,"children":1901},{},[1902],{"type":49,"value":1903},"Transform an existing video with a text prompt and\u002For reference image.",{"type":43,"tag":56,"props":1905,"children":1906},{},[1907,1911,1912,1917,1918],{"type":43,"tag":60,"props":1908,"children":1909},{},[1910],{"type":49,"value":640},{"type":49,"value":409},{"type":43,"tag":68,"props":1913,"children":1915},{"className":1914},[],[1916],{"type":49,"value":261},{"type":49,"value":497},{"type":43,"tag":68,"props":1919,"children":1921},{"className":1920},[],[1922],{"type":49,"value":166},{"type":43,"tag":672,"props":1924,"children":1926},{"className":674,"code":1925,"language":676,"meta":677,"style":677},"\u002F\u002F Node.js SDK — gen4_aleph\nconst task = await client.videoToVideo.create({\n  model: 'gen4_aleph',\n  videoUri: 'https:\u002F\u002Fcdn.yourapp.com\u002Fsource.mp4',\n  promptText: 'Transform into an animated cartoon style',\n}).waitForTaskOutput();\n",[1927],{"type":43,"tag":68,"props":1928,"children":1929},{"__ignoreMap":677},[1930,1938,1986,2013,2042,2070],{"type":43,"tag":683,"props":1931,"children":1932},{"class":685,"line":686},[1933],{"type":43,"tag":683,"props":1934,"children":1935},{"style":690},[1936],{"type":49,"value":1937},"\u002F\u002F Node.js SDK — gen4_aleph\n",{"type":43,"tag":683,"props":1939,"children":1940},{"class":685,"line":696},[1941,1945,1949,1953,1957,1961,1965,1970,1974,1978,1982],{"type":43,"tag":683,"props":1942,"children":1943},{"style":753},[1944],{"type":49,"value":756},{"type":43,"tag":683,"props":1946,"children":1947},{"style":706},[1948],{"type":49,"value":807},{"type":43,"tag":683,"props":1950,"children":1951},{"style":717},[1952],{"type":49,"value":766},{"type":43,"tag":683,"props":1954,"children":1955},{"style":700},[1956],{"type":49,"value":816},{"type":43,"tag":683,"props":1958,"children":1959},{"style":706},[1960],{"type":49,"value":821},{"type":43,"tag":683,"props":1962,"children":1963},{"style":717},[1964],{"type":49,"value":826},{"type":43,"tag":683,"props":1966,"children":1967},{"style":706},[1968],{"type":49,"value":1969},"videoToVideo",{"type":43,"tag":683,"props":1971,"children":1972},{"style":717},[1973],{"type":49,"value":826},{"type":43,"tag":683,"props":1975,"children":1976},{"style":774},[1977],{"type":49,"value":840},{"type":43,"tag":683,"props":1979,"children":1980},{"style":706},[1981],{"type":49,"value":845},{"type":43,"tag":683,"props":1983,"children":1984},{"style":717},[1985],{"type":49,"value":850},{"type":43,"tag":683,"props":1987,"children":1988},{"class":685,"line":739},[1989,1993,1997,2001,2005,2009],{"type":43,"tag":683,"props":1990,"children":1991},{"style":857},[1992],{"type":49,"value":860},{"type":43,"tag":683,"props":1994,"children":1995},{"style":717},[1996],{"type":49,"value":865},{"type":43,"tag":683,"props":1998,"children":1999},{"style":717},[2000],{"type":49,"value":720},{"type":43,"tag":683,"props":2002,"children":2003},{"style":723},[2004],{"type":49,"value":261},{"type":43,"tag":683,"props":2006,"children":2007},{"style":717},[2008],{"type":49,"value":731},{"type":43,"tag":683,"props":2010,"children":2011},{"style":717},[2012],{"type":49,"value":882},{"type":43,"tag":683,"props":2014,"children":2015},{"class":685,"line":749},[2016,2021,2025,2029,2034,2038],{"type":43,"tag":683,"props":2017,"children":2018},{"style":857},[2019],{"type":49,"value":2020},"  videoUri",{"type":43,"tag":683,"props":2022,"children":2023},{"style":717},[2024],{"type":49,"value":865},{"type":43,"tag":683,"props":2026,"children":2027},{"style":717},[2028],{"type":49,"value":720},{"type":43,"tag":683,"props":2030,"children":2031},{"style":723},[2032],{"type":49,"value":2033},"https:\u002F\u002Fcdn.yourapp.com\u002Fsource.mp4",{"type":43,"tag":683,"props":2035,"children":2036},{"style":717},[2037],{"type":49,"value":731},{"type":43,"tag":683,"props":2039,"children":2040},{"style":717},[2041],{"type":49,"value":882},{"type":43,"tag":683,"props":2043,"children":2044},{"class":685,"line":789},[2045,2049,2053,2057,2062,2066],{"type":43,"tag":683,"props":2046,"children":2047},{"style":857},[2048],{"type":49,"value":891},{"type":43,"tag":683,"props":2050,"children":2051},{"style":717},[2052],{"type":49,"value":865},{"type":43,"tag":683,"props":2054,"children":2055},{"style":717},[2056],{"type":49,"value":720},{"type":43,"tag":683,"props":2058,"children":2059},{"style":723},[2060],{"type":49,"value":2061},"Transform into an animated cartoon style",{"type":43,"tag":683,"props":2063,"children":2064},{"style":717},[2065],{"type":49,"value":731},{"type":43,"tag":683,"props":2067,"children":2068},{"style":717},[2069],{"type":49,"value":882},{"type":43,"tag":683,"props":2071,"children":2072},{"class":685,"line":797},[2073,2077,2081,2085,2089,2093],{"type":43,"tag":683,"props":2074,"children":2075},{"style":717},[2076],{"type":49,"value":970},{"type":43,"tag":683,"props":2078,"children":2079},{"style":706},[2080],{"type":49,"value":975},{"type":43,"tag":683,"props":2082,"children":2083},{"style":717},[2084],{"type":49,"value":826},{"type":43,"tag":683,"props":2086,"children":2087},{"style":774},[2088],{"type":49,"value":984},{"type":43,"tag":683,"props":2090,"children":2091},{"style":706},[2092],{"type":49,"value":782},{"type":43,"tag":683,"props":2094,"children":2095},{"style":717},[2096],{"type":49,"value":736},{"type":43,"tag":672,"props":2098,"children":2100},{"className":674,"code":2099,"language":676,"meta":677,"style":677},"\u002F\u002F Node.js SDK — seedance2 video-to-video (with optional image reference)\nconst task = await client.videoToVideo.create({\n  model: 'seedance2',\n  promptVideo: 'https:\u002F\u002Fcdn.yourapp.com\u002Finput.mp4',\n  promptText: 'Transform into a warm golden sunset scene',\n  references: [{ type: 'image', uri: 'https:\u002F\u002Fcdn.yourapp.com\u002Fstyle_ref.jpg' }]\n}).waitForTaskOutput();\n",[2101],{"type":43,"tag":68,"props":2102,"children":2103},{"__ignoreMap":677},[2104,2112,2159,2186,2215,2243,2324],{"type":43,"tag":683,"props":2105,"children":2106},{"class":685,"line":686},[2107],{"type":43,"tag":683,"props":2108,"children":2109},{"style":690},[2110],{"type":49,"value":2111},"\u002F\u002F Node.js SDK — seedance2 video-to-video (with optional image reference)\n",{"type":43,"tag":683,"props":2113,"children":2114},{"class":685,"line":696},[2115,2119,2123,2127,2131,2135,2139,2143,2147,2151,2155],{"type":43,"tag":683,"props":2116,"children":2117},{"style":753},[2118],{"type":49,"value":756},{"type":43,"tag":683,"props":2120,"children":2121},{"style":706},[2122],{"type":49,"value":807},{"type":43,"tag":683,"props":2124,"children":2125},{"style":717},[2126],{"type":49,"value":766},{"type":43,"tag":683,"props":2128,"children":2129},{"style":700},[2130],{"type":49,"value":816},{"type":43,"tag":683,"props":2132,"children":2133},{"style":706},[2134],{"type":49,"value":821},{"type":43,"tag":683,"props":2136,"children":2137},{"style":717},[2138],{"type":49,"value":826},{"type":43,"tag":683,"props":2140,"children":2141},{"style":706},[2142],{"type":49,"value":1969},{"type":43,"tag":683,"props":2144,"children":2145},{"style":717},[2146],{"type":49,"value":826},{"type":43,"tag":683,"props":2148,"children":2149},{"style":774},[2150],{"type":49,"value":840},{"type":43,"tag":683,"props":2152,"children":2153},{"style":706},[2154],{"type":49,"value":845},{"type":43,"tag":683,"props":2156,"children":2157},{"style":717},[2158],{"type":49,"value":850},{"type":43,"tag":683,"props":2160,"children":2161},{"class":685,"line":739},[2162,2166,2170,2174,2178,2182],{"type":43,"tag":683,"props":2163,"children":2164},{"style":857},[2165],{"type":49,"value":860},{"type":43,"tag":683,"props":2167,"children":2168},{"style":717},[2169],{"type":49,"value":865},{"type":43,"tag":683,"props":2171,"children":2172},{"style":717},[2173],{"type":49,"value":720},{"type":43,"tag":683,"props":2175,"children":2176},{"style":723},[2177],{"type":49,"value":166},{"type":43,"tag":683,"props":2179,"children":2180},{"style":717},[2181],{"type":49,"value":731},{"type":43,"tag":683,"props":2183,"children":2184},{"style":717},[2185],{"type":49,"value":882},{"type":43,"tag":683,"props":2187,"children":2188},{"class":685,"line":749},[2189,2194,2198,2202,2207,2211],{"type":43,"tag":683,"props":2190,"children":2191},{"style":857},[2192],{"type":49,"value":2193},"  promptVideo",{"type":43,"tag":683,"props":2195,"children":2196},{"style":717},[2197],{"type":49,"value":865},{"type":43,"tag":683,"props":2199,"children":2200},{"style":717},[2201],{"type":49,"value":720},{"type":43,"tag":683,"props":2203,"children":2204},{"style":723},[2205],{"type":49,"value":2206},"https:\u002F\u002Fcdn.yourapp.com\u002Finput.mp4",{"type":43,"tag":683,"props":2208,"children":2209},{"style":717},[2210],{"type":49,"value":731},{"type":43,"tag":683,"props":2212,"children":2213},{"style":717},[2214],{"type":49,"value":882},{"type":43,"tag":683,"props":2216,"children":2217},{"class":685,"line":789},[2218,2222,2226,2230,2235,2239],{"type":43,"tag":683,"props":2219,"children":2220},{"style":857},[2221],{"type":49,"value":891},{"type":43,"tag":683,"props":2223,"children":2224},{"style":717},[2225],{"type":49,"value":865},{"type":43,"tag":683,"props":2227,"children":2228},{"style":717},[2229],{"type":49,"value":720},{"type":43,"tag":683,"props":2231,"children":2232},{"style":723},[2233],{"type":49,"value":2234},"Transform into a warm golden sunset scene",{"type":43,"tag":683,"props":2236,"children":2237},{"style":717},[2238],{"type":49,"value":731},{"type":43,"tag":683,"props":2240,"children":2241},{"style":717},[2242],{"type":49,"value":882},{"type":43,"tag":683,"props":2244,"children":2245},{"class":685,"line":797},[2246,2251,2255,2260,2265,2270,2274,2278,2283,2287,2292,2297,2301,2305,2310,2314,2319],{"type":43,"tag":683,"props":2247,"children":2248},{"style":857},[2249],{"type":49,"value":2250},"  references",{"type":43,"tag":683,"props":2252,"children":2253},{"style":717},[2254],{"type":49,"value":865},{"type":43,"tag":683,"props":2256,"children":2257},{"style":706},[2258],{"type":49,"value":2259}," [",{"type":43,"tag":683,"props":2261,"children":2262},{"style":717},[2263],{"type":49,"value":2264},"{",{"type":43,"tag":683,"props":2266,"children":2267},{"style":857},[2268],{"type":49,"value":2269}," type",{"type":43,"tag":683,"props":2271,"children":2272},{"style":717},[2273],{"type":49,"value":865},{"type":43,"tag":683,"props":2275,"children":2276},{"style":717},[2277],{"type":49,"value":720},{"type":43,"tag":683,"props":2279,"children":2280},{"style":723},[2281],{"type":49,"value":2282},"image",{"type":43,"tag":683,"props":2284,"children":2285},{"style":717},[2286],{"type":49,"value":731},{"type":43,"tag":683,"props":2288,"children":2289},{"style":717},[2290],{"type":49,"value":2291},",",{"type":43,"tag":683,"props":2293,"children":2294},{"style":857},[2295],{"type":49,"value":2296}," uri",{"type":43,"tag":683,"props":2298,"children":2299},{"style":717},[2300],{"type":49,"value":865},{"type":43,"tag":683,"props":2302,"children":2303},{"style":717},[2304],{"type":49,"value":720},{"type":43,"tag":683,"props":2306,"children":2307},{"style":723},[2308],{"type":49,"value":2309},"https:\u002F\u002Fcdn.yourapp.com\u002Fstyle_ref.jpg",{"type":43,"tag":683,"props":2311,"children":2312},{"style":717},[2313],{"type":49,"value":731},{"type":43,"tag":683,"props":2315,"children":2316},{"style":717},[2317],{"type":49,"value":2318}," }",{"type":43,"tag":683,"props":2320,"children":2321},{"style":706},[2322],{"type":49,"value":2323},"]\n",{"type":43,"tag":683,"props":2325,"children":2326},{"class":685,"line":853},[2327,2331,2335,2339,2343,2347],{"type":43,"tag":683,"props":2328,"children":2329},{"style":717},[2330],{"type":49,"value":970},{"type":43,"tag":683,"props":2332,"children":2333},{"style":706},[2334],{"type":49,"value":975},{"type":43,"tag":683,"props":2336,"children":2337},{"style":717},[2338],{"type":49,"value":826},{"type":43,"tag":683,"props":2340,"children":2341},{"style":774},[2342],{"type":49,"value":984},{"type":43,"tag":683,"props":2344,"children":2345},{"style":706},[2346],{"type":49,"value":782},{"type":43,"tag":683,"props":2348,"children":2349},{"style":717},[2350],{"type":49,"value":736},{"type":43,"tag":52,"props":2352,"children":2353},{},[2354],{"type":43,"tag":56,"props":2355,"children":2356},{},[2357,2362],{"type":43,"tag":60,"props":2358,"children":2359},{},[2360],{"type":49,"value":2361},"seedance2 VTV input requirements:",{"type":49,"value":2363}," max 15 seconds, max 32 MB, min 720p resolution, MP4 recommended.",{"type":43,"tag":616,"props":2365,"children":2367},{"id":2366},"seedance-2",[2368],{"type":49,"value":2369},"Seedance 2",{"type":43,"tag":56,"props":2371,"children":2372},{},[2373,2375,2380,2381,2387,2388,2394,2395,2401,2402,2408,2409,2415,2416,2422,2423,2429,2430,2436,2437,2443,2444,2450,2451,2457],{"type":49,"value":2374},"Seedance 2 supports text-to-video, image-to-video (two modes), and video-to-video. It uses pixel-based ratios: ",{"type":43,"tag":68,"props":2376,"children":2378},{"className":2377},[],[2379],{"type":49,"value":934},{"type":49,"value":497},{"type":43,"tag":68,"props":2382,"children":2384},{"className":2383},[],[2385],{"type":49,"value":2386},"720:1280",{"type":49,"value":497},{"type":43,"tag":68,"props":2389,"children":2391},{"className":2390},[],[2392],{"type":49,"value":2393},"960:960",{"type":49,"value":497},{"type":43,"tag":68,"props":2396,"children":2398},{"className":2397},[],[2399],{"type":49,"value":2400},"1112:834",{"type":49,"value":497},{"type":43,"tag":68,"props":2403,"children":2405},{"className":2404},[],[2406],{"type":49,"value":2407},"834:1112",{"type":49,"value":497},{"type":43,"tag":68,"props":2410,"children":2412},{"className":2411},[],[2413],{"type":49,"value":2414},"1470:630",{"type":49,"value":497},{"type":43,"tag":68,"props":2417,"children":2419},{"className":2418},[],[2420],{"type":49,"value":2421},"992:432",{"type":49,"value":497},{"type":43,"tag":68,"props":2424,"children":2426},{"className":2425},[],[2427],{"type":49,"value":2428},"864:496",{"type":49,"value":497},{"type":43,"tag":68,"props":2431,"children":2433},{"className":2432},[],[2434],{"type":49,"value":2435},"752:560",{"type":49,"value":497},{"type":43,"tag":68,"props":2438,"children":2440},{"className":2439},[],[2441],{"type":49,"value":2442},"640:640",{"type":49,"value":497},{"type":43,"tag":68,"props":2445,"children":2447},{"className":2446},[],[2448],{"type":49,"value":2449},"560:752",{"type":49,"value":497},{"type":43,"tag":68,"props":2452,"children":2454},{"className":2453},[],[2455],{"type":49,"value":2456},"496:864",{"type":49,"value":826},{"type":43,"tag":2459,"props":2460,"children":2462},"h4",{"id":2461},"text-to-video",[2463],{"type":49,"value":2464},"Text-to-Video",{"type":43,"tag":672,"props":2466,"children":2468},{"className":674,"code":2467,"language":676,"meta":677,"style":677},"const task = await client.textToVideo.create({\n  model: 'seedance2',\n  promptText: 'A calm ocean wave gently crashing on a sandy beach at sunset',\n  duration: 5,\n  ratio: '1280:720'\n}).waitForTaskOutput();\n",[2469],{"type":43,"tag":68,"props":2470,"children":2471},{"__ignoreMap":677},[2472,2519,2546,2574,2594,2618],{"type":43,"tag":683,"props":2473,"children":2474},{"class":685,"line":686},[2475,2479,2483,2487,2491,2495,2499,2503,2507,2511,2515],{"type":43,"tag":683,"props":2476,"children":2477},{"style":753},[2478],{"type":49,"value":756},{"type":43,"tag":683,"props":2480,"children":2481},{"style":706},[2482],{"type":49,"value":807},{"type":43,"tag":683,"props":2484,"children":2485},{"style":717},[2486],{"type":49,"value":766},{"type":43,"tag":683,"props":2488,"children":2489},{"style":700},[2490],{"type":49,"value":816},{"type":43,"tag":683,"props":2492,"children":2493},{"style":706},[2494],{"type":49,"value":821},{"type":43,"tag":683,"props":2496,"children":2497},{"style":717},[2498],{"type":49,"value":826},{"type":43,"tag":683,"props":2500,"children":2501},{"style":706},[2502],{"type":49,"value":831},{"type":43,"tag":683,"props":2504,"children":2505},{"style":717},[2506],{"type":49,"value":826},{"type":43,"tag":683,"props":2508,"children":2509},{"style":774},[2510],{"type":49,"value":840},{"type":43,"tag":683,"props":2512,"children":2513},{"style":706},[2514],{"type":49,"value":845},{"type":43,"tag":683,"props":2516,"children":2517},{"style":717},[2518],{"type":49,"value":850},{"type":43,"tag":683,"props":2520,"children":2521},{"class":685,"line":696},[2522,2526,2530,2534,2538,2542],{"type":43,"tag":683,"props":2523,"children":2524},{"style":857},[2525],{"type":49,"value":860},{"type":43,"tag":683,"props":2527,"children":2528},{"style":717},[2529],{"type":49,"value":865},{"type":43,"tag":683,"props":2531,"children":2532},{"style":717},[2533],{"type":49,"value":720},{"type":43,"tag":683,"props":2535,"children":2536},{"style":723},[2537],{"type":49,"value":166},{"type":43,"tag":683,"props":2539,"children":2540},{"style":717},[2541],{"type":49,"value":731},{"type":43,"tag":683,"props":2543,"children":2544},{"style":717},[2545],{"type":49,"value":882},{"type":43,"tag":683,"props":2547,"children":2548},{"class":685,"line":739},[2549,2553,2557,2561,2566,2570],{"type":43,"tag":683,"props":2550,"children":2551},{"style":857},[2552],{"type":49,"value":891},{"type":43,"tag":683,"props":2554,"children":2555},{"style":717},[2556],{"type":49,"value":865},{"type":43,"tag":683,"props":2558,"children":2559},{"style":717},[2560],{"type":49,"value":720},{"type":43,"tag":683,"props":2562,"children":2563},{"style":723},[2564],{"type":49,"value":2565},"A calm ocean wave gently crashing on a sandy beach at sunset",{"type":43,"tag":683,"props":2567,"children":2568},{"style":717},[2569],{"type":49,"value":731},{"type":43,"tag":683,"props":2571,"children":2572},{"style":717},[2573],{"type":49,"value":882},{"type":43,"tag":683,"props":2575,"children":2576},{"class":685,"line":749},[2577,2581,2585,2590],{"type":43,"tag":683,"props":2578,"children":2579},{"style":857},[2580],{"type":49,"value":951},{"type":43,"tag":683,"props":2582,"children":2583},{"style":717},[2584],{"type":49,"value":865},{"type":43,"tag":683,"props":2586,"children":2587},{"style":958},[2588],{"type":49,"value":2589}," 5",{"type":43,"tag":683,"props":2591,"children":2592},{"style":717},[2593],{"type":49,"value":882},{"type":43,"tag":683,"props":2595,"children":2596},{"class":685,"line":789},[2597,2601,2605,2609,2613],{"type":43,"tag":683,"props":2598,"children":2599},{"style":857},[2600],{"type":49,"value":921},{"type":43,"tag":683,"props":2602,"children":2603},{"style":717},[2604],{"type":49,"value":865},{"type":43,"tag":683,"props":2606,"children":2607},{"style":717},[2608],{"type":49,"value":720},{"type":43,"tag":683,"props":2610,"children":2611},{"style":723},[2612],{"type":49,"value":934},{"type":43,"tag":683,"props":2614,"children":2615},{"style":717},[2616],{"type":49,"value":2617},"'\n",{"type":43,"tag":683,"props":2619,"children":2620},{"class":685,"line":797},[2621,2625,2629,2633,2637,2641],{"type":43,"tag":683,"props":2622,"children":2623},{"style":717},[2624],{"type":49,"value":970},{"type":43,"tag":683,"props":2626,"children":2627},{"style":706},[2628],{"type":49,"value":975},{"type":43,"tag":683,"props":2630,"children":2631},{"style":717},[2632],{"type":49,"value":826},{"type":43,"tag":683,"props":2634,"children":2635},{"style":774},[2636],{"type":49,"value":984},{"type":43,"tag":683,"props":2638,"children":2639},{"style":706},[2640],{"type":49,"value":782},{"type":43,"tag":683,"props":2642,"children":2643},{"style":717},[2644],{"type":49,"value":736},{"type":43,"tag":2459,"props":2646,"children":2648},{"id":2647},"image-to-video-mode-1-first-last-frame",[2649],{"type":49,"value":2650},"Image-to-Video — Mode 1: First \u002F Last Frame",{"type":43,"tag":56,"props":2652,"children":2653},{},[2654,2656,2662,2664,2669],{"type":49,"value":2655},"Use a specific image as the first and\u002For last frame. The ",{"type":43,"tag":68,"props":2657,"children":2659},{"className":2658},[],[2660],{"type":49,"value":2661},"references",{"type":49,"value":2663}," field ",{"type":43,"tag":60,"props":2665,"children":2666},{},[2667],{"type":49,"value":2668},"cannot",{"type":49,"value":2670}," be used in this mode.",{"type":43,"tag":672,"props":2672,"children":2674},{"className":674,"code":2673,"language":676,"meta":677,"style":677},"const task = await client.imageToVideo.create({\n  model: 'seedance2',\n  promptText: 'Smooth transition from day to night in a cozy mountain cabin',\n  promptImage: [\n    { uri: 'https:\u002F\u002Fcdn.yourapp.com\u002Fimage.jpg', position: 'first' },\n    { uri: 'https:\u002F\u002Fcdn.yourapp.com\u002Fimage2.jpg', position: 'last' }\n  ],\n  duration: 4,\n  ratio: '1280:720'\n}).waitForTaskOutput();\n",[2675],{"type":43,"tag":68,"props":2676,"children":2677},{"__ignoreMap":677},[2678,2725,2752,2780,2796,2856,2914,2926,2946,2969],{"type":43,"tag":683,"props":2679,"children":2680},{"class":685,"line":686},[2681,2685,2689,2693,2697,2701,2705,2709,2713,2717,2721],{"type":43,"tag":683,"props":2682,"children":2683},{"style":753},[2684],{"type":49,"value":756},{"type":43,"tag":683,"props":2686,"children":2687},{"style":706},[2688],{"type":49,"value":807},{"type":43,"tag":683,"props":2690,"children":2691},{"style":717},[2692],{"type":49,"value":766},{"type":43,"tag":683,"props":2694,"children":2695},{"style":700},[2696],{"type":49,"value":816},{"type":43,"tag":683,"props":2698,"children":2699},{"style":706},[2700],{"type":49,"value":821},{"type":43,"tag":683,"props":2702,"children":2703},{"style":717},[2704],{"type":49,"value":826},{"type":43,"tag":683,"props":2706,"children":2707},{"style":706},[2708],{"type":49,"value":1439},{"type":43,"tag":683,"props":2710,"children":2711},{"style":717},[2712],{"type":49,"value":826},{"type":43,"tag":683,"props":2714,"children":2715},{"style":774},[2716],{"type":49,"value":840},{"type":43,"tag":683,"props":2718,"children":2719},{"style":706},[2720],{"type":49,"value":845},{"type":43,"tag":683,"props":2722,"children":2723},{"style":717},[2724],{"type":49,"value":850},{"type":43,"tag":683,"props":2726,"children":2727},{"class":685,"line":696},[2728,2732,2736,2740,2744,2748],{"type":43,"tag":683,"props":2729,"children":2730},{"style":857},[2731],{"type":49,"value":860},{"type":43,"tag":683,"props":2733,"children":2734},{"style":717},[2735],{"type":49,"value":865},{"type":43,"tag":683,"props":2737,"children":2738},{"style":717},[2739],{"type":49,"value":720},{"type":43,"tag":683,"props":2741,"children":2742},{"style":723},[2743],{"type":49,"value":166},{"type":43,"tag":683,"props":2745,"children":2746},{"style":717},[2747],{"type":49,"value":731},{"type":43,"tag":683,"props":2749,"children":2750},{"style":717},[2751],{"type":49,"value":882},{"type":43,"tag":683,"props":2753,"children":2754},{"class":685,"line":739},[2755,2759,2763,2767,2772,2776],{"type":43,"tag":683,"props":2756,"children":2757},{"style":857},[2758],{"type":49,"value":891},{"type":43,"tag":683,"props":2760,"children":2761},{"style":717},[2762],{"type":49,"value":865},{"type":43,"tag":683,"props":2764,"children":2765},{"style":717},[2766],{"type":49,"value":720},{"type":43,"tag":683,"props":2768,"children":2769},{"style":723},[2770],{"type":49,"value":2771},"Smooth transition from day to night in a cozy mountain cabin",{"type":43,"tag":683,"props":2773,"children":2774},{"style":717},[2775],{"type":49,"value":731},{"type":43,"tag":683,"props":2777,"children":2778},{"style":717},[2779],{"type":49,"value":882},{"type":43,"tag":683,"props":2781,"children":2782},{"class":685,"line":749},[2783,2787,2791],{"type":43,"tag":683,"props":2784,"children":2785},{"style":857},[2786],{"type":49,"value":1490},{"type":43,"tag":683,"props":2788,"children":2789},{"style":717},[2790],{"type":49,"value":865},{"type":43,"tag":683,"props":2792,"children":2793},{"style":706},[2794],{"type":49,"value":2795}," [\n",{"type":43,"tag":683,"props":2797,"children":2798},{"class":685,"line":789},[2799,2804,2808,2812,2816,2821,2825,2829,2834,2838,2842,2847,2851],{"type":43,"tag":683,"props":2800,"children":2801},{"style":717},[2802],{"type":49,"value":2803},"    {",{"type":43,"tag":683,"props":2805,"children":2806},{"style":857},[2807],{"type":49,"value":2296},{"type":43,"tag":683,"props":2809,"children":2810},{"style":717},[2811],{"type":49,"value":865},{"type":43,"tag":683,"props":2813,"children":2814},{"style":717},[2815],{"type":49,"value":720},{"type":43,"tag":683,"props":2817,"children":2818},{"style":723},[2819],{"type":49,"value":2820},"https:\u002F\u002Fcdn.yourapp.com\u002Fimage.jpg",{"type":43,"tag":683,"props":2822,"children":2823},{"style":717},[2824],{"type":49,"value":731},{"type":43,"tag":683,"props":2826,"children":2827},{"style":717},[2828],{"type":49,"value":2291},{"type":43,"tag":683,"props":2830,"children":2831},{"style":857},[2832],{"type":49,"value":2833}," position",{"type":43,"tag":683,"props":2835,"children":2836},{"style":717},[2837],{"type":49,"value":865},{"type":43,"tag":683,"props":2839,"children":2840},{"style":717},[2841],{"type":49,"value":720},{"type":43,"tag":683,"props":2843,"children":2844},{"style":723},[2845],{"type":49,"value":2846},"first",{"type":43,"tag":683,"props":2848,"children":2849},{"style":717},[2850],{"type":49,"value":731},{"type":43,"tag":683,"props":2852,"children":2853},{"style":717},[2854],{"type":49,"value":2855}," },\n",{"type":43,"tag":683,"props":2857,"children":2858},{"class":685,"line":797},[2859,2863,2867,2871,2875,2880,2884,2888,2892,2896,2900,2905,2909],{"type":43,"tag":683,"props":2860,"children":2861},{"style":717},[2862],{"type":49,"value":2803},{"type":43,"tag":683,"props":2864,"children":2865},{"style":857},[2866],{"type":49,"value":2296},{"type":43,"tag":683,"props":2868,"children":2869},{"style":717},[2870],{"type":49,"value":865},{"type":43,"tag":683,"props":2872,"children":2873},{"style":717},[2874],{"type":49,"value":720},{"type":43,"tag":683,"props":2876,"children":2877},{"style":723},[2878],{"type":49,"value":2879},"https:\u002F\u002Fcdn.yourapp.com\u002Fimage2.jpg",{"type":43,"tag":683,"props":2881,"children":2882},{"style":717},[2883],{"type":49,"value":731},{"type":43,"tag":683,"props":2885,"children":2886},{"style":717},[2887],{"type":49,"value":2291},{"type":43,"tag":683,"props":2889,"children":2890},{"style":857},[2891],{"type":49,"value":2833},{"type":43,"tag":683,"props":2893,"children":2894},{"style":717},[2895],{"type":49,"value":865},{"type":43,"tag":683,"props":2897,"children":2898},{"style":717},[2899],{"type":49,"value":720},{"type":43,"tag":683,"props":2901,"children":2902},{"style":723},[2903],{"type":49,"value":2904},"last",{"type":43,"tag":683,"props":2906,"children":2907},{"style":717},[2908],{"type":49,"value":731},{"type":43,"tag":683,"props":2910,"children":2911},{"style":717},[2912],{"type":49,"value":2913}," }\n",{"type":43,"tag":683,"props":2915,"children":2916},{"class":685,"line":853},[2917,2922],{"type":43,"tag":683,"props":2918,"children":2919},{"style":706},[2920],{"type":49,"value":2921},"  ]",{"type":43,"tag":683,"props":2923,"children":2924},{"style":717},[2925],{"type":49,"value":882},{"type":43,"tag":683,"props":2927,"children":2928},{"class":685,"line":885},[2929,2933,2937,2942],{"type":43,"tag":683,"props":2930,"children":2931},{"style":857},[2932],{"type":49,"value":951},{"type":43,"tag":683,"props":2934,"children":2935},{"style":717},[2936],{"type":49,"value":865},{"type":43,"tag":683,"props":2938,"children":2939},{"style":958},[2940],{"type":49,"value":2941}," 4",{"type":43,"tag":683,"props":2943,"children":2944},{"style":717},[2945],{"type":49,"value":882},{"type":43,"tag":683,"props":2947,"children":2948},{"class":685,"line":915},[2949,2953,2957,2961,2965],{"type":43,"tag":683,"props":2950,"children":2951},{"style":857},[2952],{"type":49,"value":921},{"type":43,"tag":683,"props":2954,"children":2955},{"style":717},[2956],{"type":49,"value":865},{"type":43,"tag":683,"props":2958,"children":2959},{"style":717},[2960],{"type":49,"value":720},{"type":43,"tag":683,"props":2962,"children":2963},{"style":723},[2964],{"type":49,"value":934},{"type":43,"tag":683,"props":2966,"children":2967},{"style":717},[2968],{"type":49,"value":2617},{"type":43,"tag":683,"props":2970,"children":2971},{"class":685,"line":945},[2972,2976,2980,2984,2988,2992],{"type":43,"tag":683,"props":2973,"children":2974},{"style":717},[2975],{"type":49,"value":970},{"type":43,"tag":683,"props":2977,"children":2978},{"style":706},[2979],{"type":49,"value":975},{"type":43,"tag":683,"props":2981,"children":2982},{"style":717},[2983],{"type":49,"value":826},{"type":43,"tag":683,"props":2985,"children":2986},{"style":774},[2987],{"type":49,"value":984},{"type":43,"tag":683,"props":2989,"children":2990},{"style":706},[2991],{"type":49,"value":782},{"type":43,"tag":683,"props":2993,"children":2994},{"style":717},[2995],{"type":49,"value":736},{"type":43,"tag":56,"props":2997,"children":2998},{},[2999,3004,3006,3012,3014,3020,3022,3028,3029,3035],{"type":43,"tag":68,"props":3000,"children":3002},{"className":3001},[],[3003],{"type":49,"value":495},{"type":49,"value":3005}," is an array of objects with ",{"type":43,"tag":68,"props":3007,"children":3009},{"className":3008},[],[3010],{"type":49,"value":3011},"uri",{"type":49,"value":3013}," (required) and ",{"type":43,"tag":68,"props":3015,"children":3017},{"className":3016},[],[3018],{"type":49,"value":3019},"position",{"type":49,"value":3021}," (",{"type":43,"tag":68,"props":3023,"children":3025},{"className":3024},[],[3026],{"type":49,"value":3027},"\"first\"",{"type":49,"value":472},{"type":43,"tag":68,"props":3030,"children":3032},{"className":3031},[],[3033],{"type":49,"value":3034},"\"last\"",{"type":49,"value":3036},", defaults to first).",{"type":43,"tag":2459,"props":3038,"children":3040},{"id":3039},"image-to-video-mode-2-image-reference",[3041],{"type":49,"value":3042},"Image-to-Video — Mode 2: Image Reference",{"type":43,"tag":56,"props":3044,"children":3045},{},[3046,3048,3053],{"type":49,"value":3047},"Use an image as a stylistic\u002Fcontent reference rather than a literal frame. ",{"type":43,"tag":68,"props":3049,"children":3051},{"className":3050},[],[3052],{"type":49,"value":495},{"type":49,"value":3054}," is still required (as a URI string or single-item array).",{"type":43,"tag":672,"props":3056,"children":3058},{"className":674,"code":3057,"language":676,"meta":677,"style":677},"const task = await client.imageToVideo.create({\n  model: 'seedance2',\n  promptText: 'Smooth transition from day to night in a cozy mountain cabin',\n  promptImage: 'https:\u002F\u002Fcdn.yourapp.com\u002Fimage.jpg',\n  references: [{ type: 'image', uri: 'https:\u002F\u002Fcdn.yourapp.com\u002Freference.jpg' }],\n  duration: 4,\n  ratio: '1280:720'\n}).waitForTaskOutput();\n",[3059],{"type":43,"tag":68,"props":3060,"children":3061},{"__ignoreMap":677},[3062,3109,3136,3163,3190,3266,3285,3308],{"type":43,"tag":683,"props":3063,"children":3064},{"class":685,"line":686},[3065,3069,3073,3077,3081,3085,3089,3093,3097,3101,3105],{"type":43,"tag":683,"props":3066,"children":3067},{"style":753},[3068],{"type":49,"value":756},{"type":43,"tag":683,"props":3070,"children":3071},{"style":706},[3072],{"type":49,"value":807},{"type":43,"tag":683,"props":3074,"children":3075},{"style":717},[3076],{"type":49,"value":766},{"type":43,"tag":683,"props":3078,"children":3079},{"style":700},[3080],{"type":49,"value":816},{"type":43,"tag":683,"props":3082,"children":3083},{"style":706},[3084],{"type":49,"value":821},{"type":43,"tag":683,"props":3086,"children":3087},{"style":717},[3088],{"type":49,"value":826},{"type":43,"tag":683,"props":3090,"children":3091},{"style":706},[3092],{"type":49,"value":1439},{"type":43,"tag":683,"props":3094,"children":3095},{"style":717},[3096],{"type":49,"value":826},{"type":43,"tag":683,"props":3098,"children":3099},{"style":774},[3100],{"type":49,"value":840},{"type":43,"tag":683,"props":3102,"children":3103},{"style":706},[3104],{"type":49,"value":845},{"type":43,"tag":683,"props":3106,"children":3107},{"style":717},[3108],{"type":49,"value":850},{"type":43,"tag":683,"props":3110,"children":3111},{"class":685,"line":696},[3112,3116,3120,3124,3128,3132],{"type":43,"tag":683,"props":3113,"children":3114},{"style":857},[3115],{"type":49,"value":860},{"type":43,"tag":683,"props":3117,"children":3118},{"style":717},[3119],{"type":49,"value":865},{"type":43,"tag":683,"props":3121,"children":3122},{"style":717},[3123],{"type":49,"value":720},{"type":43,"tag":683,"props":3125,"children":3126},{"style":723},[3127],{"type":49,"value":166},{"type":43,"tag":683,"props":3129,"children":3130},{"style":717},[3131],{"type":49,"value":731},{"type":43,"tag":683,"props":3133,"children":3134},{"style":717},[3135],{"type":49,"value":882},{"type":43,"tag":683,"props":3137,"children":3138},{"class":685,"line":739},[3139,3143,3147,3151,3155,3159],{"type":43,"tag":683,"props":3140,"children":3141},{"style":857},[3142],{"type":49,"value":891},{"type":43,"tag":683,"props":3144,"children":3145},{"style":717},[3146],{"type":49,"value":865},{"type":43,"tag":683,"props":3148,"children":3149},{"style":717},[3150],{"type":49,"value":720},{"type":43,"tag":683,"props":3152,"children":3153},{"style":723},[3154],{"type":49,"value":2771},{"type":43,"tag":683,"props":3156,"children":3157},{"style":717},[3158],{"type":49,"value":731},{"type":43,"tag":683,"props":3160,"children":3161},{"style":717},[3162],{"type":49,"value":882},{"type":43,"tag":683,"props":3164,"children":3165},{"class":685,"line":749},[3166,3170,3174,3178,3182,3186],{"type":43,"tag":683,"props":3167,"children":3168},{"style":857},[3169],{"type":49,"value":1490},{"type":43,"tag":683,"props":3171,"children":3172},{"style":717},[3173],{"type":49,"value":865},{"type":43,"tag":683,"props":3175,"children":3176},{"style":717},[3177],{"type":49,"value":720},{"type":43,"tag":683,"props":3179,"children":3180},{"style":723},[3181],{"type":49,"value":2820},{"type":43,"tag":683,"props":3183,"children":3184},{"style":717},[3185],{"type":49,"value":731},{"type":43,"tag":683,"props":3187,"children":3188},{"style":717},[3189],{"type":49,"value":882},{"type":43,"tag":683,"props":3191,"children":3192},{"class":685,"line":789},[3193,3197,3201,3205,3209,3213,3217,3221,3225,3229,3233,3237,3241,3245,3250,3254,3258,3262],{"type":43,"tag":683,"props":3194,"children":3195},{"style":857},[3196],{"type":49,"value":2250},{"type":43,"tag":683,"props":3198,"children":3199},{"style":717},[3200],{"type":49,"value":865},{"type":43,"tag":683,"props":3202,"children":3203},{"style":706},[3204],{"type":49,"value":2259},{"type":43,"tag":683,"props":3206,"children":3207},{"style":717},[3208],{"type":49,"value":2264},{"type":43,"tag":683,"props":3210,"children":3211},{"style":857},[3212],{"type":49,"value":2269},{"type":43,"tag":683,"props":3214,"children":3215},{"style":717},[3216],{"type":49,"value":865},{"type":43,"tag":683,"props":3218,"children":3219},{"style":717},[3220],{"type":49,"value":720},{"type":43,"tag":683,"props":3222,"children":3223},{"style":723},[3224],{"type":49,"value":2282},{"type":43,"tag":683,"props":3226,"children":3227},{"style":717},[3228],{"type":49,"value":731},{"type":43,"tag":683,"props":3230,"children":3231},{"style":717},[3232],{"type":49,"value":2291},{"type":43,"tag":683,"props":3234,"children":3235},{"style":857},[3236],{"type":49,"value":2296},{"type":43,"tag":683,"props":3238,"children":3239},{"style":717},[3240],{"type":49,"value":865},{"type":43,"tag":683,"props":3242,"children":3243},{"style":717},[3244],{"type":49,"value":720},{"type":43,"tag":683,"props":3246,"children":3247},{"style":723},[3248],{"type":49,"value":3249},"https:\u002F\u002Fcdn.yourapp.com\u002Freference.jpg",{"type":43,"tag":683,"props":3251,"children":3252},{"style":717},[3253],{"type":49,"value":731},{"type":43,"tag":683,"props":3255,"children":3256},{"style":717},[3257],{"type":49,"value":2318},{"type":43,"tag":683,"props":3259,"children":3260},{"style":706},[3261],{"type":49,"value":1050},{"type":43,"tag":683,"props":3263,"children":3264},{"style":717},[3265],{"type":49,"value":882},{"type":43,"tag":683,"props":3267,"children":3268},{"class":685,"line":797},[3269,3273,3277,3281],{"type":43,"tag":683,"props":3270,"children":3271},{"style":857},[3272],{"type":49,"value":951},{"type":43,"tag":683,"props":3274,"children":3275},{"style":717},[3276],{"type":49,"value":865},{"type":43,"tag":683,"props":3278,"children":3279},{"style":958},[3280],{"type":49,"value":2941},{"type":43,"tag":683,"props":3282,"children":3283},{"style":717},[3284],{"type":49,"value":882},{"type":43,"tag":683,"props":3286,"children":3287},{"class":685,"line":853},[3288,3292,3296,3300,3304],{"type":43,"tag":683,"props":3289,"children":3290},{"style":857},[3291],{"type":49,"value":921},{"type":43,"tag":683,"props":3293,"children":3294},{"style":717},[3295],{"type":49,"value":865},{"type":43,"tag":683,"props":3297,"children":3298},{"style":717},[3299],{"type":49,"value":720},{"type":43,"tag":683,"props":3301,"children":3302},{"style":723},[3303],{"type":49,"value":934},{"type":43,"tag":683,"props":3305,"children":3306},{"style":717},[3307],{"type":49,"value":2617},{"type":43,"tag":683,"props":3309,"children":3310},{"class":685,"line":885},[3311,3315,3319,3323,3327,3331],{"type":43,"tag":683,"props":3312,"children":3313},{"style":717},[3314],{"type":49,"value":970},{"type":43,"tag":683,"props":3316,"children":3317},{"style":706},[3318],{"type":49,"value":975},{"type":43,"tag":683,"props":3320,"children":3321},{"style":717},[3322],{"type":49,"value":826},{"type":43,"tag":683,"props":3324,"children":3325},{"style":774},[3326],{"type":49,"value":984},{"type":43,"tag":683,"props":3328,"children":3329},{"style":706},[3330],{"type":49,"value":782},{"type":43,"tag":683,"props":3332,"children":3333},{"style":717},[3334],{"type":49,"value":736},{"type":43,"tag":52,"props":3336,"children":3337},{},[3338],{"type":43,"tag":56,"props":3339,"children":3340},{},[3341,3343,3348,3350,3355,3357,3362,3364,3369],{"type":49,"value":3342},"These two ITV modes are ",{"type":43,"tag":60,"props":3344,"children":3345},{},[3346],{"type":49,"value":3347},"mutually exclusive",{"type":49,"value":3349}," — you cannot use ",{"type":43,"tag":68,"props":3351,"children":3353},{"className":3352},[],[3354],{"type":49,"value":3019},{"type":49,"value":3356}," in ",{"type":43,"tag":68,"props":3358,"children":3360},{"className":3359},[],[3361],{"type":49,"value":495},{"type":49,"value":3363}," and ",{"type":43,"tag":68,"props":3365,"children":3367},{"className":3366},[],[3368],{"type":49,"value":2661},{"type":49,"value":3370}," in the same request.",{"type":43,"tag":2459,"props":3372,"children":3374},{"id":3373},"video-to-video",[3375],{"type":49,"value":3376},"Video-to-Video",{"type":43,"tag":56,"props":3378,"children":3379},{},[3380],{"type":49,"value":3381},"Transform an existing video guided by a text prompt, optionally with an image reference.",{"type":43,"tag":672,"props":3383,"children":3385},{"className":1057,"code":3384,"language":1059,"meta":677,"style":677},"task = client.video_to_video.create(\n    model='seedance2',\n    prompt_video='https:\u002F\u002Fcdn.yourapp.com\u002Finput.mp4',\n    prompt_text='Transform into a warm golden sunset scene',\n    references=[{'type': 'image', 'uri': 'https:\u002F\u002Fcdn.yourapp.com\u002Fstyle_ref.jpg'}]\n).wait_for_task_output()\n",[3386],{"type":43,"tag":68,"props":3387,"children":3388},{"__ignoreMap":677},[3389,3397,3405,3413,3421,3429],{"type":43,"tag":683,"props":3390,"children":3391},{"class":685,"line":686},[3392],{"type":43,"tag":683,"props":3393,"children":3394},{},[3395],{"type":49,"value":3396},"task = client.video_to_video.create(\n",{"type":43,"tag":683,"props":3398,"children":3399},{"class":685,"line":696},[3400],{"type":43,"tag":683,"props":3401,"children":3402},{},[3403],{"type":49,"value":3404},"    model='seedance2',\n",{"type":43,"tag":683,"props":3406,"children":3407},{"class":685,"line":739},[3408],{"type":43,"tag":683,"props":3409,"children":3410},{},[3411],{"type":49,"value":3412},"    prompt_video='https:\u002F\u002Fcdn.yourapp.com\u002Finput.mp4',\n",{"type":43,"tag":683,"props":3414,"children":3415},{"class":685,"line":749},[3416],{"type":43,"tag":683,"props":3417,"children":3418},{},[3419],{"type":49,"value":3420},"    prompt_text='Transform into a warm golden sunset scene',\n",{"type":43,"tag":683,"props":3422,"children":3423},{"class":685,"line":789},[3424],{"type":43,"tag":683,"props":3425,"children":3426},{},[3427],{"type":49,"value":3428},"    references=[{'type': 'image', 'uri': 'https:\u002F\u002Fcdn.yourapp.com\u002Fstyle_ref.jpg'}]\n",{"type":43,"tag":683,"props":3430,"children":3431},{"class":685,"line":797},[3432],{"type":43,"tag":683,"props":3433,"children":3434},{},[3435],{"type":49,"value":1149},{"type":43,"tag":52,"props":3437,"children":3438},{},[3439],{"type":43,"tag":56,"props":3440,"children":3441},{},[3442,3447],{"type":43,"tag":60,"props":3443,"children":3444},{},[3445],{"type":49,"value":3446},"VTV input requirements:",{"type":49,"value":2363},{"type":43,"tag":2459,"props":3449,"children":3451},{"id":3450},"seedance-2-parameters",[3452],{"type":49,"value":3453},"Seedance 2 Parameters",{"type":43,"tag":113,"props":3455,"children":3456},{},[3457,3483],{"type":43,"tag":117,"props":3458,"children":3459},{},[3460],{"type":43,"tag":121,"props":3461,"children":3462},{},[3463,3468,3473,3478],{"type":43,"tag":125,"props":3464,"children":3465},{},[3466],{"type":49,"value":3467},"Parameter",{"type":43,"tag":125,"props":3469,"children":3470},{},[3471],{"type":49,"value":3472},"Type",{"type":43,"tag":125,"props":3474,"children":3475},{},[3476],{"type":49,"value":3477},"Required",{"type":43,"tag":125,"props":3479,"children":3480},{},[3481],{"type":49,"value":3482},"Description",{"type":43,"tag":151,"props":3484,"children":3485},{},[3486,3519,3544,3571,3629,3663,3688,3713],{"type":43,"tag":121,"props":3487,"children":3488},{},[3489,3498,3503,3508],{"type":43,"tag":158,"props":3490,"children":3491},{},[3492],{"type":43,"tag":68,"props":3493,"children":3495},{"className":3494},[],[3496],{"type":49,"value":3497},"model",{"type":43,"tag":158,"props":3499,"children":3500},{},[3501],{"type":49,"value":3502},"string",{"type":43,"tag":158,"props":3504,"children":3505},{},[3506],{"type":49,"value":3507},"Yes",{"type":43,"tag":158,"props":3509,"children":3510},{},[3511,3513],{"type":49,"value":3512},"Must be ",{"type":43,"tag":68,"props":3514,"children":3516},{"className":3515},[],[3517],{"type":49,"value":3518},"\"seedance2\"",{"type":43,"tag":121,"props":3520,"children":3521},{},[3522,3531,3535,3539],{"type":43,"tag":158,"props":3523,"children":3524},{},[3525],{"type":43,"tag":68,"props":3526,"children":3528},{"className":3527},[],[3529],{"type":49,"value":3530},"promptText",{"type":43,"tag":158,"props":3532,"children":3533},{},[3534],{"type":49,"value":3502},{"type":43,"tag":158,"props":3536,"children":3537},{},[3538],{"type":49,"value":3507},{"type":43,"tag":158,"props":3540,"children":3541},{},[3542],{"type":49,"value":3543},"Text description of the desired video",{"type":43,"tag":121,"props":3545,"children":3546},{},[3547,3556,3561,3566],{"type":43,"tag":158,"props":3548,"children":3549},{},[3550],{"type":43,"tag":68,"props":3551,"children":3553},{"className":3552},[],[3554],{"type":49,"value":3555},"duration",{"type":43,"tag":158,"props":3557,"children":3558},{},[3559],{"type":49,"value":3560},"number",{"type":43,"tag":158,"props":3562,"children":3563},{},[3564],{"type":49,"value":3565},"Yes (TTV\u002FITV)",{"type":43,"tag":158,"props":3567,"children":3568},{},[3569],{"type":49,"value":3570},"Duration in seconds",{"type":43,"tag":121,"props":3572,"children":3573},{},[3574,3583,3587,3591],{"type":43,"tag":158,"props":3575,"children":3576},{},[3577],{"type":43,"tag":68,"props":3578,"children":3580},{"className":3579},[],[3581],{"type":49,"value":3582},"ratio",{"type":43,"tag":158,"props":3584,"children":3585},{},[3586],{"type":49,"value":3502},{"type":43,"tag":158,"props":3588,"children":3589},{},[3590],{"type":49,"value":3565},{"type":43,"tag":158,"props":3592,"children":3593},{},[3594,3599,3600,3605,3606,3611,3612,3617,3618,3623,3624],{"type":43,"tag":68,"props":3595,"children":3597},{"className":3596},[],[3598],{"type":49,"value":934},{"type":49,"value":497},{"type":43,"tag":68,"props":3601,"children":3603},{"className":3602},[],[3604],{"type":49,"value":2386},{"type":49,"value":497},{"type":43,"tag":68,"props":3607,"children":3609},{"className":3608},[],[3610],{"type":49,"value":2393},{"type":49,"value":497},{"type":43,"tag":68,"props":3613,"children":3615},{"className":3614},[],[3616],{"type":49,"value":2400},{"type":49,"value":497},{"type":43,"tag":68,"props":3619,"children":3621},{"className":3620},[],[3622],{"type":49,"value":2407},{"type":49,"value":497},{"type":43,"tag":68,"props":3625,"children":3627},{"className":3626},[],[3628],{"type":49,"value":2414},{"type":43,"tag":121,"props":3630,"children":3631},{},[3632,3640,3645,3650],{"type":43,"tag":158,"props":3633,"children":3634},{},[3635],{"type":43,"tag":68,"props":3636,"children":3638},{"className":3637},[],[3639],{"type":49,"value":495},{"type":43,"tag":158,"props":3641,"children":3642},{},[3643],{"type":49,"value":3644},"string or array",{"type":43,"tag":158,"props":3646,"children":3647},{},[3648],{"type":49,"value":3649},"Yes (ITV)",{"type":43,"tag":158,"props":3651,"children":3652},{},[3653,3655,3661],{"type":49,"value":3654},"URI string or array of ",{"type":43,"tag":68,"props":3656,"children":3658},{"className":3657},[],[3659],{"type":49,"value":3660},"{ uri, position? }",{"type":49,"value":3662}," objects",{"type":43,"tag":121,"props":3664,"children":3665},{},[3666,3674,3678,3683],{"type":43,"tag":158,"props":3667,"children":3668},{},[3669],{"type":43,"tag":68,"props":3670,"children":3672},{"className":3671},[],[3673],{"type":49,"value":503},{"type":43,"tag":158,"props":3675,"children":3676},{},[3677],{"type":49,"value":3502},{"type":43,"tag":158,"props":3679,"children":3680},{},[3681],{"type":49,"value":3682},"Yes (seedance2 VTV)",{"type":43,"tag":158,"props":3684,"children":3685},{},[3686],{"type":49,"value":3687},"Input video URI (seedance2 only)",{"type":43,"tag":121,"props":3689,"children":3690},{},[3691,3699,3703,3708],{"type":43,"tag":158,"props":3692,"children":3693},{},[3694],{"type":43,"tag":68,"props":3695,"children":3697},{"className":3696},[],[3698],{"type":49,"value":510},{"type":43,"tag":158,"props":3700,"children":3701},{},[3702],{"type":49,"value":3502},{"type":43,"tag":158,"props":3704,"children":3705},{},[3706],{"type":49,"value":3707},"Yes (gen4_aleph VTV)",{"type":43,"tag":158,"props":3709,"children":3710},{},[3711],{"type":49,"value":3712},"Input video URI (gen4_aleph only)",{"type":43,"tag":121,"props":3714,"children":3715},{},[3716,3724,3729,3734],{"type":43,"tag":158,"props":3717,"children":3718},{},[3719],{"type":43,"tag":68,"props":3720,"children":3722},{"className":3721},[],[3723],{"type":49,"value":2661},{"type":43,"tag":158,"props":3725,"children":3726},{},[3727],{"type":49,"value":3728},"array",{"type":43,"tag":158,"props":3730,"children":3731},{},[3732],{"type":49,"value":3733},"No",{"type":43,"tag":158,"props":3735,"children":3736},{},[3737,3739,3745],{"type":49,"value":3738},"Image references — ",{"type":43,"tag":68,"props":3740,"children":3742},{"className":3741},[],[3743],{"type":49,"value":3744},"[{ type: \"image\", uri: \"...\" }]",{"type":49,"value":3746}," (ITV Mode 2 and VTV only)",{"type":43,"tag":616,"props":3748,"children":3750},{"id":3749},"character-performance-post-v1character_performance",[3751,3753],{"type":49,"value":3752},"Character Performance: ",{"type":43,"tag":68,"props":3754,"children":3756},{"className":3755},[],[3757],{"type":49,"value":3758},"POST \u002Fv1\u002Fcharacter_performance",{"type":43,"tag":56,"props":3760,"children":3761},{},[3762],{"type":49,"value":3763},"Animate a character with facial\u002Fbody performance.",{"type":43,"tag":56,"props":3765,"children":3766},{},[3767,3771,3772],{"type":43,"tag":60,"props":3768,"children":3769},{},[3770],{"type":49,"value":640},{"type":49,"value":409},{"type":43,"tag":68,"props":3773,"children":3775},{"className":3774},[],[3776],{"type":49,"value":3777},"act_two",{"type":43,"tag":672,"props":3779,"children":3781},{"className":674,"code":3780,"language":676,"meta":677,"style":677},"const task = await client.characterPerformance.create({\n  model: 'act_two',\n  promptImage: 'https:\u002F\u002Fcdn.yourapp.com\u002Fcharacter.jpg',\n  promptPerformance: 'https:\u002F\u002Fcdn.yourapp.com\u002Fperformance.mp4',\n  ratio: '1280:720',\n  duration: 5\n}).waitForTaskOutput();\n",[3782],{"type":43,"tag":68,"props":3783,"children":3784},{"__ignoreMap":677},[3785,3833,3860,3888,3917,3944,3959],{"type":43,"tag":683,"props":3786,"children":3787},{"class":685,"line":686},[3788,3792,3796,3800,3804,3808,3812,3817,3821,3825,3829],{"type":43,"tag":683,"props":3789,"children":3790},{"style":753},[3791],{"type":49,"value":756},{"type":43,"tag":683,"props":3793,"children":3794},{"style":706},[3795],{"type":49,"value":807},{"type":43,"tag":683,"props":3797,"children":3798},{"style":717},[3799],{"type":49,"value":766},{"type":43,"tag":683,"props":3801,"children":3802},{"style":700},[3803],{"type":49,"value":816},{"type":43,"tag":683,"props":3805,"children":3806},{"style":706},[3807],{"type":49,"value":821},{"type":43,"tag":683,"props":3809,"children":3810},{"style":717},[3811],{"type":49,"value":826},{"type":43,"tag":683,"props":3813,"children":3814},{"style":706},[3815],{"type":49,"value":3816},"characterPerformance",{"type":43,"tag":683,"props":3818,"children":3819},{"style":717},[3820],{"type":49,"value":826},{"type":43,"tag":683,"props":3822,"children":3823},{"style":774},[3824],{"type":49,"value":840},{"type":43,"tag":683,"props":3826,"children":3827},{"style":706},[3828],{"type":49,"value":845},{"type":43,"tag":683,"props":3830,"children":3831},{"style":717},[3832],{"type":49,"value":850},{"type":43,"tag":683,"props":3834,"children":3835},{"class":685,"line":696},[3836,3840,3844,3848,3852,3856],{"type":43,"tag":683,"props":3837,"children":3838},{"style":857},[3839],{"type":49,"value":860},{"type":43,"tag":683,"props":3841,"children":3842},{"style":717},[3843],{"type":49,"value":865},{"type":43,"tag":683,"props":3845,"children":3846},{"style":717},[3847],{"type":49,"value":720},{"type":43,"tag":683,"props":3849,"children":3850},{"style":723},[3851],{"type":49,"value":3777},{"type":43,"tag":683,"props":3853,"children":3854},{"style":717},[3855],{"type":49,"value":731},{"type":43,"tag":683,"props":3857,"children":3858},{"style":717},[3859],{"type":49,"value":882},{"type":43,"tag":683,"props":3861,"children":3862},{"class":685,"line":739},[3863,3867,3871,3875,3880,3884],{"type":43,"tag":683,"props":3864,"children":3865},{"style":857},[3866],{"type":49,"value":1490},{"type":43,"tag":683,"props":3868,"children":3869},{"style":717},[3870],{"type":49,"value":865},{"type":43,"tag":683,"props":3872,"children":3873},{"style":717},[3874],{"type":49,"value":720},{"type":43,"tag":683,"props":3876,"children":3877},{"style":723},[3878],{"type":49,"value":3879},"https:\u002F\u002Fcdn.yourapp.com\u002Fcharacter.jpg",{"type":43,"tag":683,"props":3881,"children":3882},{"style":717},[3883],{"type":49,"value":731},{"type":43,"tag":683,"props":3885,"children":3886},{"style":717},[3887],{"type":49,"value":882},{"type":43,"tag":683,"props":3889,"children":3890},{"class":685,"line":749},[3891,3896,3900,3904,3909,3913],{"type":43,"tag":683,"props":3892,"children":3893},{"style":857},[3894],{"type":49,"value":3895},"  promptPerformance",{"type":43,"tag":683,"props":3897,"children":3898},{"style":717},[3899],{"type":49,"value":865},{"type":43,"tag":683,"props":3901,"children":3902},{"style":717},[3903],{"type":49,"value":720},{"type":43,"tag":683,"props":3905,"children":3906},{"style":723},[3907],{"type":49,"value":3908},"https:\u002F\u002Fcdn.yourapp.com\u002Fperformance.mp4",{"type":43,"tag":683,"props":3910,"children":3911},{"style":717},[3912],{"type":49,"value":731},{"type":43,"tag":683,"props":3914,"children":3915},{"style":717},[3916],{"type":49,"value":882},{"type":43,"tag":683,"props":3918,"children":3919},{"class":685,"line":789},[3920,3924,3928,3932,3936,3940],{"type":43,"tag":683,"props":3921,"children":3922},{"style":857},[3923],{"type":49,"value":921},{"type":43,"tag":683,"props":3925,"children":3926},{"style":717},[3927],{"type":49,"value":865},{"type":43,"tag":683,"props":3929,"children":3930},{"style":717},[3931],{"type":49,"value":720},{"type":43,"tag":683,"props":3933,"children":3934},{"style":723},[3935],{"type":49,"value":934},{"type":43,"tag":683,"props":3937,"children":3938},{"style":717},[3939],{"type":49,"value":731},{"type":43,"tag":683,"props":3941,"children":3942},{"style":717},[3943],{"type":49,"value":882},{"type":43,"tag":683,"props":3945,"children":3946},{"class":685,"line":797},[3947,3951,3955],{"type":43,"tag":683,"props":3948,"children":3949},{"style":857},[3950],{"type":49,"value":951},{"type":43,"tag":683,"props":3952,"children":3953},{"style":717},[3954],{"type":49,"value":865},{"type":43,"tag":683,"props":3956,"children":3957},{"style":958},[3958],{"type":49,"value":961},{"type":43,"tag":683,"props":3960,"children":3961},{"class":685,"line":853},[3962,3966,3970,3974,3978,3982],{"type":43,"tag":683,"props":3963,"children":3964},{"style":717},[3965],{"type":49,"value":970},{"type":43,"tag":683,"props":3967,"children":3968},{"style":706},[3969],{"type":49,"value":975},{"type":43,"tag":683,"props":3971,"children":3972},{"style":717},[3973],{"type":49,"value":826},{"type":43,"tag":683,"props":3975,"children":3976},{"style":774},[3977],{"type":49,"value":984},{"type":43,"tag":683,"props":3979,"children":3980},{"style":706},[3981],{"type":49,"value":782},{"type":43,"tag":683,"props":3983,"children":3984},{"style":717},[3985],{"type":49,"value":736},{"type":43,"tag":106,"props":3987,"children":3989},{"id":3988},"common-parameters",[3990],{"type":49,"value":3991},"Common Parameters",{"type":43,"tag":113,"props":3993,"children":3994},{},[3995,4013],{"type":43,"tag":117,"props":3996,"children":3997},{},[3998],{"type":43,"tag":121,"props":3999,"children":4000},{},[4001,4005,4009],{"type":43,"tag":125,"props":4002,"children":4003},{},[4004],{"type":49,"value":3467},{"type":43,"tag":125,"props":4006,"children":4007},{},[4008],{"type":49,"value":3472},{"type":43,"tag":125,"props":4010,"children":4011},{},[4012],{"type":49,"value":3482},{"type":43,"tag":151,"props":4014,"children":4015},{},[4016,4036,4056,4083,4116],{"type":43,"tag":121,"props":4017,"children":4018},{},[4019,4027,4031],{"type":43,"tag":158,"props":4020,"children":4021},{},[4022],{"type":43,"tag":68,"props":4023,"children":4025},{"className":4024},[],[4026],{"type":49,"value":3497},{"type":43,"tag":158,"props":4028,"children":4029},{},[4030],{"type":49,"value":3502},{"type":43,"tag":158,"props":4032,"children":4033},{},[4034],{"type":49,"value":4035},"Model ID (required)",{"type":43,"tag":121,"props":4037,"children":4038},{},[4039,4047,4051],{"type":43,"tag":158,"props":4040,"children":4041},{},[4042],{"type":43,"tag":68,"props":4043,"children":4045},{"className":4044},[],[4046],{"type":49,"value":3530},{"type":43,"tag":158,"props":4048,"children":4049},{},[4050],{"type":49,"value":3502},{"type":43,"tag":158,"props":4052,"children":4053},{},[4054],{"type":49,"value":4055},"Text prompt describing the video",{"type":43,"tag":121,"props":4057,"children":4058},{},[4059,4067,4071],{"type":43,"tag":158,"props":4060,"children":4061},{},[4062],{"type":43,"tag":68,"props":4063,"children":4065},{"className":4064},[],[4066],{"type":49,"value":495},{"type":43,"tag":158,"props":4068,"children":4069},{},[4070],{"type":49,"value":3502},{"type":43,"tag":158,"props":4072,"children":4073},{},[4074,4076,4081],{"type":49,"value":4075},"URL, data URI, or ",{"type":43,"tag":68,"props":4077,"children":4079},{"className":4078},[],[4080],{"type":49,"value":544},{"type":49,"value":4082}," URI of input image",{"type":43,"tag":121,"props":4084,"children":4085},{},[4086,4094,4098],{"type":43,"tag":158,"props":4087,"children":4088},{},[4089],{"type":43,"tag":68,"props":4090,"children":4092},{"className":4091},[],[4093],{"type":49,"value":3582},{"type":43,"tag":158,"props":4095,"children":4096},{},[4097],{"type":49,"value":3502},{"type":43,"tag":158,"props":4099,"children":4100},{},[4101,4103,4109,4110],{"type":49,"value":4102},"Aspect ratio, e.g. ",{"type":43,"tag":68,"props":4104,"children":4106},{"className":4105},[],[4107],{"type":49,"value":4108},"'1280:720'",{"type":49,"value":497},{"type":43,"tag":68,"props":4111,"children":4113},{"className":4112},[],[4114],{"type":49,"value":4115},"'720:1280'",{"type":43,"tag":121,"props":4117,"children":4118},{},[4119,4127,4131],{"type":43,"tag":158,"props":4120,"children":4121},{},[4122],{"type":43,"tag":68,"props":4123,"children":4125},{"className":4124},[],[4126],{"type":49,"value":3555},{"type":43,"tag":158,"props":4128,"children":4129},{},[4130],{"type":49,"value":3560},{"type":43,"tag":158,"props":4132,"children":4133},{},[4134],{"type":49,"value":4135},"Video length in seconds (2-15, model-dependent)",{"type":43,"tag":106,"props":4137,"children":4139},{"id":4138},"integration-pattern",[4140],{"type":49,"value":4141},"Integration Pattern",{"type":43,"tag":56,"props":4143,"children":4144},{},[4145],{"type":49,"value":4146},"When helping the user integrate, follow this pattern:",{"type":43,"tag":4148,"props":4149,"children":4150},"ol",{},[4151,4161,4185,4195,4205,4215],{"type":43,"tag":385,"props":4152,"children":4153},{},[4154,4159],{"type":43,"tag":60,"props":4155,"children":4156},{},[4157],{"type":49,"value":4158},"Determine the use case",{"type":49,"value":4160}," — What type of video generation? (text-to-video, image-to-video, etc.)",{"type":43,"tag":385,"props":4162,"children":4163},{},[4164,4169,4171,4176,4178,4183],{"type":43,"tag":60,"props":4165,"children":4166},{},[4167],{"type":49,"value":4168},"Prefer uploads over URLs",{"type":49,"value":4170}," — Default to ",{"type":43,"tag":68,"props":4172,"children":4174},{"className":4173},[],[4175],{"type":49,"value":97},{"type":49,"value":4177}," so inputs are ",{"type":43,"tag":68,"props":4179,"children":4181},{"className":4180},[],[4182],{"type":49,"value":544},{"type":49,"value":4184}," URIs. External URLs only from origins you control (see Security).",{"type":43,"tag":385,"props":4186,"children":4187},{},[4188,4193],{"type":43,"tag":60,"props":4189,"children":4190},{},[4191],{"type":49,"value":4192},"Select the model",{"type":49,"value":4194}," — Recommend based on quality\u002Fcost\u002Fspeed needs",{"type":43,"tag":385,"props":4196,"children":4197},{},[4198,4203],{"type":43,"tag":60,"props":4199,"children":4200},{},[4201],{"type":49,"value":4202},"Write the server-side handler",{"type":49,"value":4204}," — Create an API route or server function",{"type":43,"tag":385,"props":4206,"children":4207},{},[4208,4213],{"type":43,"tag":60,"props":4209,"children":4210},{},[4211],{"type":49,"value":4212},"Handle the output",{"type":49,"value":4214}," — Download and store the video, don't serve signed URLs to clients",{"type":43,"tag":385,"props":4216,"children":4217},{},[4218,4223,4225],{"type":43,"tag":60,"props":4219,"children":4220},{},[4221],{"type":49,"value":4222},"Add error handling",{"type":49,"value":4224}," — Wrap in try\u002Fcatch, handle ",{"type":43,"tag":68,"props":4226,"children":4228},{"className":4227},[],[4229],{"type":49,"value":4230},"TaskFailedError",{"type":43,"tag":616,"props":4232,"children":4234},{"id":4233},"example-expressjs-api-route",[4235],{"type":49,"value":4236},"Example: Express.js API Route",{"type":43,"tag":672,"props":4238,"children":4240},{"className":674,"code":4239,"language":676,"meta":677,"style":677},"import RunwayML from '@runwayml\u002Fsdk';\nimport express from 'express';\n\nconst client = new RunwayML();\nconst app = express();\napp.use(express.json());\n\n\u002F\u002F `runway:\u002F\u002F` URIs bypass this check; external URLs must match the allowlist.\nconst ALLOWED_MEDIA_HOSTS = new Set(['cdn.yourapp.com', 'uploads.yourapp.com']);\n\nfunction assertTrustedMediaUrl(raw) {\n  const u = new URL(raw);\n  if (u.protocol !== 'https:') throw new Error('https required');\n  if (!ALLOWED_MEDIA_HOSTS.has(u.hostname)) throw new Error('untrusted media host');\n  return u.toString();\n}\n\napp.post('\u002Fapi\u002Fgenerate-video', async (req, res) => {\n  try {\n    const { prompt, imageUrl, model = 'gen4.5', duration = 5 } = req.body;\n\n    const params = {\n      model,\n      promptText: prompt,\n      ratio: '1280:720',\n      duration\n    };\n\n    let task;\n    if (imageUrl) {\n      task = await client.imageToVideo.create({\n        ...params,\n        promptImage: assertTrustedMediaUrl(imageUrl)\n      }).waitForTaskOutput();\n    } else {\n      task = await client.textToVideo.create(params).waitForTaskOutput();\n    }\n\n    res.json({ videoUrl: task.output[0] });\n  } catch (error) {\n    console.error('Video generation failed:', error);\n    res.status(400).json({ error: error.message });\n  }\n});\n",[4241],{"type":43,"tag":68,"props":4242,"children":4243},{"__ignoreMap":677},[4244,4275,4308,4315,4346,4375,4415,4422,4430,4499,4506,4538,4581,4669,4758,4787,4796,4804,4878,4891,4987,4995,5016,5029,5050,5079,5088,5097,5105,5122,5148,5193,5211,5240,5269,5287,5351,5360,5368,5441,5472,5523,5602,5611],{"type":43,"tag":683,"props":4245,"children":4246},{"class":685,"line":686},[4247,4251,4255,4259,4263,4267,4271],{"type":43,"tag":683,"props":4248,"children":4249},{"style":700},[4250],{"type":49,"value":703},{"type":43,"tag":683,"props":4252,"children":4253},{"style":706},[4254],{"type":49,"value":709},{"type":43,"tag":683,"props":4256,"children":4257},{"style":700},[4258],{"type":49,"value":714},{"type":43,"tag":683,"props":4260,"children":4261},{"style":717},[4262],{"type":49,"value":720},{"type":43,"tag":683,"props":4264,"children":4265},{"style":723},[4266],{"type":49,"value":726},{"type":43,"tag":683,"props":4268,"children":4269},{"style":717},[4270],{"type":49,"value":731},{"type":43,"tag":683,"props":4272,"children":4273},{"style":717},[4274],{"type":49,"value":736},{"type":43,"tag":683,"props":4276,"children":4277},{"class":685,"line":696},[4278,4282,4287,4291,4295,4300,4304],{"type":43,"tag":683,"props":4279,"children":4280},{"style":700},[4281],{"type":49,"value":703},{"type":43,"tag":683,"props":4283,"children":4284},{"style":706},[4285],{"type":49,"value":4286}," express ",{"type":43,"tag":683,"props":4288,"children":4289},{"style":700},[4290],{"type":49,"value":714},{"type":43,"tag":683,"props":4292,"children":4293},{"style":717},[4294],{"type":49,"value":720},{"type":43,"tag":683,"props":4296,"children":4297},{"style":723},[4298],{"type":49,"value":4299},"express",{"type":43,"tag":683,"props":4301,"children":4302},{"style":717},[4303],{"type":49,"value":731},{"type":43,"tag":683,"props":4305,"children":4306},{"style":717},[4307],{"type":49,"value":736},{"type":43,"tag":683,"props":4309,"children":4310},{"class":685,"line":739},[4311],{"type":43,"tag":683,"props":4312,"children":4313},{"emptyLinePlaceholder":743},[4314],{"type":49,"value":746},{"type":43,"tag":683,"props":4316,"children":4317},{"class":685,"line":749},[4318,4322,4326,4330,4334,4338,4342],{"type":43,"tag":683,"props":4319,"children":4320},{"style":753},[4321],{"type":49,"value":756},{"type":43,"tag":683,"props":4323,"children":4324},{"style":706},[4325],{"type":49,"value":761},{"type":43,"tag":683,"props":4327,"children":4328},{"style":717},[4329],{"type":49,"value":766},{"type":43,"tag":683,"props":4331,"children":4332},{"style":717},[4333],{"type":49,"value":771},{"type":43,"tag":683,"props":4335,"children":4336},{"style":774},[4337],{"type":49,"value":777},{"type":43,"tag":683,"props":4339,"children":4340},{"style":706},[4341],{"type":49,"value":782},{"type":43,"tag":683,"props":4343,"children":4344},{"style":717},[4345],{"type":49,"value":736},{"type":43,"tag":683,"props":4347,"children":4348},{"class":685,"line":789},[4349,4353,4358,4362,4367,4371],{"type":43,"tag":683,"props":4350,"children":4351},{"style":753},[4352],{"type":49,"value":756},{"type":43,"tag":683,"props":4354,"children":4355},{"style":706},[4356],{"type":49,"value":4357}," app ",{"type":43,"tag":683,"props":4359,"children":4360},{"style":717},[4361],{"type":49,"value":766},{"type":43,"tag":683,"props":4363,"children":4364},{"style":774},[4365],{"type":49,"value":4366}," express",{"type":43,"tag":683,"props":4368,"children":4369},{"style":706},[4370],{"type":49,"value":782},{"type":43,"tag":683,"props":4372,"children":4373},{"style":717},[4374],{"type":49,"value":736},{"type":43,"tag":683,"props":4376,"children":4377},{"class":685,"line":797},[4378,4383,4387,4392,4397,4401,4406,4411],{"type":43,"tag":683,"props":4379,"children":4380},{"style":706},[4381],{"type":49,"value":4382},"app",{"type":43,"tag":683,"props":4384,"children":4385},{"style":717},[4386],{"type":49,"value":826},{"type":43,"tag":683,"props":4388,"children":4389},{"style":774},[4390],{"type":49,"value":4391},"use",{"type":43,"tag":683,"props":4393,"children":4394},{"style":706},[4395],{"type":49,"value":4396},"(express",{"type":43,"tag":683,"props":4398,"children":4399},{"style":717},[4400],{"type":49,"value":826},{"type":43,"tag":683,"props":4402,"children":4403},{"style":774},[4404],{"type":49,"value":4405},"json",{"type":43,"tag":683,"props":4407,"children":4408},{"style":706},[4409],{"type":49,"value":4410},"())",{"type":43,"tag":683,"props":4412,"children":4413},{"style":717},[4414],{"type":49,"value":736},{"type":43,"tag":683,"props":4416,"children":4417},{"class":685,"line":853},[4418],{"type":43,"tag":683,"props":4419,"children":4420},{"emptyLinePlaceholder":743},[4421],{"type":49,"value":746},{"type":43,"tag":683,"props":4423,"children":4424},{"class":685,"line":885},[4425],{"type":43,"tag":683,"props":4426,"children":4427},{"style":690},[4428],{"type":49,"value":4429},"\u002F\u002F `runway:\u002F\u002F` URIs bypass this check; external URLs must match the allowlist.\n",{"type":43,"tag":683,"props":4431,"children":4432},{"class":685,"line":915},[4433,4437,4442,4446,4450,4455,4460,4464,4469,4473,4477,4481,4486,4490,4495],{"type":43,"tag":683,"props":4434,"children":4435},{"style":753},[4436],{"type":49,"value":756},{"type":43,"tag":683,"props":4438,"children":4439},{"style":706},[4440],{"type":49,"value":4441}," ALLOWED_MEDIA_HOSTS ",{"type":43,"tag":683,"props":4443,"children":4444},{"style":717},[4445],{"type":49,"value":766},{"type":43,"tag":683,"props":4447,"children":4448},{"style":717},[4449],{"type":49,"value":771},{"type":43,"tag":683,"props":4451,"children":4452},{"style":774},[4453],{"type":49,"value":4454}," Set",{"type":43,"tag":683,"props":4456,"children":4457},{"style":706},[4458],{"type":49,"value":4459},"([",{"type":43,"tag":683,"props":4461,"children":4462},{"style":717},[4463],{"type":49,"value":731},{"type":43,"tag":683,"props":4465,"children":4466},{"style":723},[4467],{"type":49,"value":4468},"cdn.yourapp.com",{"type":43,"tag":683,"props":4470,"children":4471},{"style":717},[4472],{"type":49,"value":731},{"type":43,"tag":683,"props":4474,"children":4475},{"style":717},[4476],{"type":49,"value":2291},{"type":43,"tag":683,"props":4478,"children":4479},{"style":717},[4480],{"type":49,"value":720},{"type":43,"tag":683,"props":4482,"children":4483},{"style":723},[4484],{"type":49,"value":4485},"uploads.yourapp.com",{"type":43,"tag":683,"props":4487,"children":4488},{"style":717},[4489],{"type":49,"value":731},{"type":43,"tag":683,"props":4491,"children":4492},{"style":706},[4493],{"type":49,"value":4494},"])",{"type":43,"tag":683,"props":4496,"children":4497},{"style":717},[4498],{"type":49,"value":736},{"type":43,"tag":683,"props":4500,"children":4501},{"class":685,"line":945},[4502],{"type":43,"tag":683,"props":4503,"children":4504},{"emptyLinePlaceholder":743},[4505],{"type":49,"value":746},{"type":43,"tag":683,"props":4507,"children":4508},{"class":685,"line":964},[4509,4514,4519,4523,4529,4533],{"type":43,"tag":683,"props":4510,"children":4511},{"style":753},[4512],{"type":49,"value":4513},"function",{"type":43,"tag":683,"props":4515,"children":4516},{"style":774},[4517],{"type":49,"value":4518}," assertTrustedMediaUrl",{"type":43,"tag":683,"props":4520,"children":4521},{"style":717},[4522],{"type":49,"value":845},{"type":43,"tag":683,"props":4524,"children":4526},{"style":4525},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[4527],{"type":49,"value":4528},"raw",{"type":43,"tag":683,"props":4530,"children":4531},{"style":717},[4532],{"type":49,"value":975},{"type":43,"tag":683,"props":4534,"children":4535},{"style":717},[4536],{"type":49,"value":4537}," {\n",{"type":43,"tag":683,"props":4539,"children":4540},{"class":685,"line":995},[4541,4546,4551,4556,4560,4565,4569,4573,4577],{"type":43,"tag":683,"props":4542,"children":4543},{"style":753},[4544],{"type":49,"value":4545},"  const",{"type":43,"tag":683,"props":4547,"children":4548},{"style":706},[4549],{"type":49,"value":4550}," u",{"type":43,"tag":683,"props":4552,"children":4553},{"style":717},[4554],{"type":49,"value":4555}," =",{"type":43,"tag":683,"props":4557,"children":4558},{"style":717},[4559],{"type":49,"value":771},{"type":43,"tag":683,"props":4561,"children":4562},{"style":774},[4563],{"type":49,"value":4564}," URL",{"type":43,"tag":683,"props":4566,"children":4567},{"style":857},[4568],{"type":49,"value":845},{"type":43,"tag":683,"props":4570,"children":4571},{"style":706},[4572],{"type":49,"value":4528},{"type":43,"tag":683,"props":4574,"children":4575},{"style":857},[4576],{"type":49,"value":975},{"type":43,"tag":683,"props":4578,"children":4579},{"style":717},[4580],{"type":49,"value":736},{"type":43,"tag":683,"props":4582,"children":4583},{"class":685,"line":1003},[4584,4589,4593,4598,4602,4607,4612,4616,4621,4625,4630,4635,4639,4644,4648,4652,4657,4661,4665],{"type":43,"tag":683,"props":4585,"children":4586},{"style":700},[4587],{"type":49,"value":4588},"  if",{"type":43,"tag":683,"props":4590,"children":4591},{"style":857},[4592],{"type":49,"value":3021},{"type":43,"tag":683,"props":4594,"children":4595},{"style":706},[4596],{"type":49,"value":4597},"u",{"type":43,"tag":683,"props":4599,"children":4600},{"style":717},[4601],{"type":49,"value":826},{"type":43,"tag":683,"props":4603,"children":4604},{"style":706},[4605],{"type":49,"value":4606},"protocol",{"type":43,"tag":683,"props":4608,"children":4609},{"style":717},[4610],{"type":49,"value":4611}," !==",{"type":43,"tag":683,"props":4613,"children":4614},{"style":717},[4615],{"type":49,"value":720},{"type":43,"tag":683,"props":4617,"children":4618},{"style":723},[4619],{"type":49,"value":4620},"https:",{"type":43,"tag":683,"props":4622,"children":4623},{"style":717},[4624],{"type":49,"value":731},{"type":43,"tag":683,"props":4626,"children":4627},{"style":857},[4628],{"type":49,"value":4629},") ",{"type":43,"tag":683,"props":4631,"children":4632},{"style":700},[4633],{"type":49,"value":4634},"throw",{"type":43,"tag":683,"props":4636,"children":4637},{"style":717},[4638],{"type":49,"value":771},{"type":43,"tag":683,"props":4640,"children":4641},{"style":774},[4642],{"type":49,"value":4643}," Error",{"type":43,"tag":683,"props":4645,"children":4646},{"style":857},[4647],{"type":49,"value":845},{"type":43,"tag":683,"props":4649,"children":4650},{"style":717},[4651],{"type":49,"value":731},{"type":43,"tag":683,"props":4653,"children":4654},{"style":723},[4655],{"type":49,"value":4656},"https required",{"type":43,"tag":683,"props":4658,"children":4659},{"style":717},[4660],{"type":49,"value":731},{"type":43,"tag":683,"props":4662,"children":4663},{"style":857},[4664],{"type":49,"value":975},{"type":43,"tag":683,"props":4666,"children":4667},{"style":717},[4668],{"type":49,"value":736},{"type":43,"tag":683,"props":4670,"children":4671},{"class":685,"line":1012},[4672,4676,4680,4685,4690,4694,4699,4703,4707,4711,4716,4721,4725,4729,4733,4737,4741,4746,4750,4754],{"type":43,"tag":683,"props":4673,"children":4674},{"style":700},[4675],{"type":49,"value":4588},{"type":43,"tag":683,"props":4677,"children":4678},{"style":857},[4679],{"type":49,"value":3021},{"type":43,"tag":683,"props":4681,"children":4682},{"style":717},[4683],{"type":49,"value":4684},"!",{"type":43,"tag":683,"props":4686,"children":4687},{"style":706},[4688],{"type":49,"value":4689},"ALLOWED_MEDIA_HOSTS",{"type":43,"tag":683,"props":4691,"children":4692},{"style":717},[4693],{"type":49,"value":826},{"type":43,"tag":683,"props":4695,"children":4696},{"style":774},[4697],{"type":49,"value":4698},"has",{"type":43,"tag":683,"props":4700,"children":4701},{"style":857},[4702],{"type":49,"value":845},{"type":43,"tag":683,"props":4704,"children":4705},{"style":706},[4706],{"type":49,"value":4597},{"type":43,"tag":683,"props":4708,"children":4709},{"style":717},[4710],{"type":49,"value":826},{"type":43,"tag":683,"props":4712,"children":4713},{"style":706},[4714],{"type":49,"value":4715},"hostname",{"type":43,"tag":683,"props":4717,"children":4718},{"style":857},[4719],{"type":49,"value":4720},")) ",{"type":43,"tag":683,"props":4722,"children":4723},{"style":700},[4724],{"type":49,"value":4634},{"type":43,"tag":683,"props":4726,"children":4727},{"style":717},[4728],{"type":49,"value":771},{"type":43,"tag":683,"props":4730,"children":4731},{"style":774},[4732],{"type":49,"value":4643},{"type":43,"tag":683,"props":4734,"children":4735},{"style":857},[4736],{"type":49,"value":845},{"type":43,"tag":683,"props":4738,"children":4739},{"style":717},[4740],{"type":49,"value":731},{"type":43,"tag":683,"props":4742,"children":4743},{"style":723},[4744],{"type":49,"value":4745},"untrusted media host",{"type":43,"tag":683,"props":4747,"children":4748},{"style":717},[4749],{"type":49,"value":731},{"type":43,"tag":683,"props":4751,"children":4752},{"style":857},[4753],{"type":49,"value":975},{"type":43,"tag":683,"props":4755,"children":4756},{"style":717},[4757],{"type":49,"value":736},{"type":43,"tag":683,"props":4759,"children":4760},{"class":685,"line":28},[4761,4766,4770,4774,4779,4783],{"type":43,"tag":683,"props":4762,"children":4763},{"style":700},[4764],{"type":49,"value":4765},"  return",{"type":43,"tag":683,"props":4767,"children":4768},{"style":706},[4769],{"type":49,"value":4550},{"type":43,"tag":683,"props":4771,"children":4772},{"style":717},[4773],{"type":49,"value":826},{"type":43,"tag":683,"props":4775,"children":4776},{"style":774},[4777],{"type":49,"value":4778},"toString",{"type":43,"tag":683,"props":4780,"children":4781},{"style":857},[4782],{"type":49,"value":782},{"type":43,"tag":683,"props":4784,"children":4785},{"style":717},[4786],{"type":49,"value":736},{"type":43,"tag":683,"props":4788,"children":4790},{"class":685,"line":4789},16,[4791],{"type":43,"tag":683,"props":4792,"children":4793},{"style":717},[4794],{"type":49,"value":4795},"}\n",{"type":43,"tag":683,"props":4797,"children":4799},{"class":685,"line":4798},17,[4800],{"type":43,"tag":683,"props":4801,"children":4802},{"emptyLinePlaceholder":743},[4803],{"type":49,"value":746},{"type":43,"tag":683,"props":4805,"children":4807},{"class":685,"line":4806},18,[4808,4812,4816,4821,4825,4829,4834,4838,4842,4847,4851,4856,4860,4865,4869,4874],{"type":43,"tag":683,"props":4809,"children":4810},{"style":706},[4811],{"type":49,"value":4382},{"type":43,"tag":683,"props":4813,"children":4814},{"style":717},[4815],{"type":49,"value":826},{"type":43,"tag":683,"props":4817,"children":4818},{"style":774},[4819],{"type":49,"value":4820},"post",{"type":43,"tag":683,"props":4822,"children":4823},{"style":706},[4824],{"type":49,"value":845},{"type":43,"tag":683,"props":4826,"children":4827},{"style":717},[4828],{"type":49,"value":731},{"type":43,"tag":683,"props":4830,"children":4831},{"style":723},[4832],{"type":49,"value":4833},"\u002Fapi\u002Fgenerate-video",{"type":43,"tag":683,"props":4835,"children":4836},{"style":717},[4837],{"type":49,"value":731},{"type":43,"tag":683,"props":4839,"children":4840},{"style":717},[4841],{"type":49,"value":2291},{"type":43,"tag":683,"props":4843,"children":4844},{"style":753},[4845],{"type":49,"value":4846}," async",{"type":43,"tag":683,"props":4848,"children":4849},{"style":717},[4850],{"type":49,"value":3021},{"type":43,"tag":683,"props":4852,"children":4853},{"style":4525},[4854],{"type":49,"value":4855},"req",{"type":43,"tag":683,"props":4857,"children":4858},{"style":717},[4859],{"type":49,"value":2291},{"type":43,"tag":683,"props":4861,"children":4862},{"style":4525},[4863],{"type":49,"value":4864}," res",{"type":43,"tag":683,"props":4866,"children":4867},{"style":717},[4868],{"type":49,"value":975},{"type":43,"tag":683,"props":4870,"children":4871},{"style":753},[4872],{"type":49,"value":4873}," =>",{"type":43,"tag":683,"props":4875,"children":4876},{"style":717},[4877],{"type":49,"value":4537},{"type":43,"tag":683,"props":4879,"children":4881},{"class":685,"line":4880},19,[4882,4887],{"type":43,"tag":683,"props":4883,"children":4884},{"style":700},[4885],{"type":49,"value":4886},"  try",{"type":43,"tag":683,"props":4888,"children":4889},{"style":717},[4890],{"type":49,"value":4537},{"type":43,"tag":683,"props":4892,"children":4894},{"class":685,"line":4893},20,[4895,4900,4905,4910,4914,4919,4923,4928,4932,4936,4940,4944,4948,4953,4957,4961,4965,4969,4974,4978,4983],{"type":43,"tag":683,"props":4896,"children":4897},{"style":753},[4898],{"type":49,"value":4899},"    const",{"type":43,"tag":683,"props":4901,"children":4902},{"style":717},[4903],{"type":49,"value":4904}," {",{"type":43,"tag":683,"props":4906,"children":4907},{"style":706},[4908],{"type":49,"value":4909}," prompt",{"type":43,"tag":683,"props":4911,"children":4912},{"style":717},[4913],{"type":49,"value":2291},{"type":43,"tag":683,"props":4915,"children":4916},{"style":706},[4917],{"type":49,"value":4918}," imageUrl",{"type":43,"tag":683,"props":4920,"children":4921},{"style":717},[4922],{"type":49,"value":2291},{"type":43,"tag":683,"props":4924,"children":4925},{"style":706},[4926],{"type":49,"value":4927}," model",{"type":43,"tag":683,"props":4929,"children":4930},{"style":717},[4931],{"type":49,"value":4555},{"type":43,"tag":683,"props":4933,"children":4934},{"style":717},[4935],{"type":49,"value":720},{"type":43,"tag":683,"props":4937,"children":4938},{"style":723},[4939],{"type":49,"value":198},{"type":43,"tag":683,"props":4941,"children":4942},{"style":717},[4943],{"type":49,"value":731},{"type":43,"tag":683,"props":4945,"children":4946},{"style":717},[4947],{"type":49,"value":2291},{"type":43,"tag":683,"props":4949,"children":4950},{"style":706},[4951],{"type":49,"value":4952}," duration",{"type":43,"tag":683,"props":4954,"children":4955},{"style":717},[4956],{"type":49,"value":4555},{"type":43,"tag":683,"props":4958,"children":4959},{"style":958},[4960],{"type":49,"value":2589},{"type":43,"tag":683,"props":4962,"children":4963},{"style":717},[4964],{"type":49,"value":2318},{"type":43,"tag":683,"props":4966,"children":4967},{"style":717},[4968],{"type":49,"value":4555},{"type":43,"tag":683,"props":4970,"children":4971},{"style":706},[4972],{"type":49,"value":4973}," req",{"type":43,"tag":683,"props":4975,"children":4976},{"style":717},[4977],{"type":49,"value":826},{"type":43,"tag":683,"props":4979,"children":4980},{"style":706},[4981],{"type":49,"value":4982},"body",{"type":43,"tag":683,"props":4984,"children":4985},{"style":717},[4986],{"type":49,"value":736},{"type":43,"tag":683,"props":4988,"children":4990},{"class":685,"line":4989},21,[4991],{"type":43,"tag":683,"props":4992,"children":4993},{"emptyLinePlaceholder":743},[4994],{"type":49,"value":746},{"type":43,"tag":683,"props":4996,"children":4998},{"class":685,"line":4997},22,[4999,5003,5008,5012],{"type":43,"tag":683,"props":5000,"children":5001},{"style":753},[5002],{"type":49,"value":4899},{"type":43,"tag":683,"props":5004,"children":5005},{"style":706},[5006],{"type":49,"value":5007}," params",{"type":43,"tag":683,"props":5009,"children":5010},{"style":717},[5011],{"type":49,"value":4555},{"type":43,"tag":683,"props":5013,"children":5014},{"style":717},[5015],{"type":49,"value":4537},{"type":43,"tag":683,"props":5017,"children":5019},{"class":685,"line":5018},23,[5020,5025],{"type":43,"tag":683,"props":5021,"children":5022},{"style":706},[5023],{"type":49,"value":5024},"      model",{"type":43,"tag":683,"props":5026,"children":5027},{"style":717},[5028],{"type":49,"value":882},{"type":43,"tag":683,"props":5030,"children":5032},{"class":685,"line":5031},24,[5033,5038,5042,5046],{"type":43,"tag":683,"props":5034,"children":5035},{"style":857},[5036],{"type":49,"value":5037},"      promptText",{"type":43,"tag":683,"props":5039,"children":5040},{"style":717},[5041],{"type":49,"value":865},{"type":43,"tag":683,"props":5043,"children":5044},{"style":706},[5045],{"type":49,"value":4909},{"type":43,"tag":683,"props":5047,"children":5048},{"style":717},[5049],{"type":49,"value":882},{"type":43,"tag":683,"props":5051,"children":5053},{"class":685,"line":5052},25,[5054,5059,5063,5067,5071,5075],{"type":43,"tag":683,"props":5055,"children":5056},{"style":857},[5057],{"type":49,"value":5058},"      ratio",{"type":43,"tag":683,"props":5060,"children":5061},{"style":717},[5062],{"type":49,"value":865},{"type":43,"tag":683,"props":5064,"children":5065},{"style":717},[5066],{"type":49,"value":720},{"type":43,"tag":683,"props":5068,"children":5069},{"style":723},[5070],{"type":49,"value":934},{"type":43,"tag":683,"props":5072,"children":5073},{"style":717},[5074],{"type":49,"value":731},{"type":43,"tag":683,"props":5076,"children":5077},{"style":717},[5078],{"type":49,"value":882},{"type":43,"tag":683,"props":5080,"children":5082},{"class":685,"line":5081},26,[5083],{"type":43,"tag":683,"props":5084,"children":5085},{"style":706},[5086],{"type":49,"value":5087},"      duration\n",{"type":43,"tag":683,"props":5089,"children":5091},{"class":685,"line":5090},27,[5092],{"type":43,"tag":683,"props":5093,"children":5094},{"style":717},[5095],{"type":49,"value":5096},"    };\n",{"type":43,"tag":683,"props":5098,"children":5100},{"class":685,"line":5099},28,[5101],{"type":43,"tag":683,"props":5102,"children":5103},{"emptyLinePlaceholder":743},[5104],{"type":49,"value":746},{"type":43,"tag":683,"props":5106,"children":5108},{"class":685,"line":5107},29,[5109,5114,5118],{"type":43,"tag":683,"props":5110,"children":5111},{"style":753},[5112],{"type":49,"value":5113},"    let",{"type":43,"tag":683,"props":5115,"children":5116},{"style":706},[5117],{"type":49,"value":1031},{"type":43,"tag":683,"props":5119,"children":5120},{"style":717},[5121],{"type":49,"value":736},{"type":43,"tag":683,"props":5123,"children":5125},{"class":685,"line":5124},30,[5126,5131,5135,5140,5144],{"type":43,"tag":683,"props":5127,"children":5128},{"style":700},[5129],{"type":49,"value":5130},"    if",{"type":43,"tag":683,"props":5132,"children":5133},{"style":857},[5134],{"type":49,"value":3021},{"type":43,"tag":683,"props":5136,"children":5137},{"style":706},[5138],{"type":49,"value":5139},"imageUrl",{"type":43,"tag":683,"props":5141,"children":5142},{"style":857},[5143],{"type":49,"value":4629},{"type":43,"tag":683,"props":5145,"children":5146},{"style":717},[5147],{"type":49,"value":850},{"type":43,"tag":683,"props":5149,"children":5151},{"class":685,"line":5150},31,[5152,5157,5161,5165,5169,5173,5177,5181,5185,5189],{"type":43,"tag":683,"props":5153,"children":5154},{"style":706},[5155],{"type":49,"value":5156},"      task",{"type":43,"tag":683,"props":5158,"children":5159},{"style":717},[5160],{"type":49,"value":4555},{"type":43,"tag":683,"props":5162,"children":5163},{"style":700},[5164],{"type":49,"value":816},{"type":43,"tag":683,"props":5166,"children":5167},{"style":706},[5168],{"type":49,"value":821},{"type":43,"tag":683,"props":5170,"children":5171},{"style":717},[5172],{"type":49,"value":826},{"type":43,"tag":683,"props":5174,"children":5175},{"style":706},[5176],{"type":49,"value":1439},{"type":43,"tag":683,"props":5178,"children":5179},{"style":717},[5180],{"type":49,"value":826},{"type":43,"tag":683,"props":5182,"children":5183},{"style":774},[5184],{"type":49,"value":840},{"type":43,"tag":683,"props":5186,"children":5187},{"style":857},[5188],{"type":49,"value":845},{"type":43,"tag":683,"props":5190,"children":5191},{"style":717},[5192],{"type":49,"value":850},{"type":43,"tag":683,"props":5194,"children":5196},{"class":685,"line":5195},32,[5197,5202,5207],{"type":43,"tag":683,"props":5198,"children":5199},{"style":717},[5200],{"type":49,"value":5201},"        ...",{"type":43,"tag":683,"props":5203,"children":5204},{"style":706},[5205],{"type":49,"value":5206},"params",{"type":43,"tag":683,"props":5208,"children":5209},{"style":717},[5210],{"type":49,"value":882},{"type":43,"tag":683,"props":5212,"children":5214},{"class":685,"line":5213},33,[5215,5220,5224,5228,5232,5236],{"type":43,"tag":683,"props":5216,"children":5217},{"style":857},[5218],{"type":49,"value":5219},"        promptImage",{"type":43,"tag":683,"props":5221,"children":5222},{"style":717},[5223],{"type":49,"value":865},{"type":43,"tag":683,"props":5225,"children":5226},{"style":774},[5227],{"type":49,"value":4518},{"type":43,"tag":683,"props":5229,"children":5230},{"style":857},[5231],{"type":49,"value":845},{"type":43,"tag":683,"props":5233,"children":5234},{"style":706},[5235],{"type":49,"value":5139},{"type":43,"tag":683,"props":5237,"children":5238},{"style":857},[5239],{"type":49,"value":1389},{"type":43,"tag":683,"props":5241,"children":5243},{"class":685,"line":5242},34,[5244,5249,5253,5257,5261,5265],{"type":43,"tag":683,"props":5245,"children":5246},{"style":717},[5247],{"type":49,"value":5248},"      }",{"type":43,"tag":683,"props":5250,"children":5251},{"style":857},[5252],{"type":49,"value":975},{"type":43,"tag":683,"props":5254,"children":5255},{"style":717},[5256],{"type":49,"value":826},{"type":43,"tag":683,"props":5258,"children":5259},{"style":774},[5260],{"type":49,"value":984},{"type":43,"tag":683,"props":5262,"children":5263},{"style":857},[5264],{"type":49,"value":782},{"type":43,"tag":683,"props":5266,"children":5267},{"style":717},[5268],{"type":49,"value":736},{"type":43,"tag":683,"props":5270,"children":5272},{"class":685,"line":5271},35,[5273,5278,5283],{"type":43,"tag":683,"props":5274,"children":5275},{"style":717},[5276],{"type":49,"value":5277},"    }",{"type":43,"tag":683,"props":5279,"children":5280},{"style":700},[5281],{"type":49,"value":5282}," else",{"type":43,"tag":683,"props":5284,"children":5285},{"style":717},[5286],{"type":49,"value":4537},{"type":43,"tag":683,"props":5288,"children":5290},{"class":685,"line":5289},36,[5291,5295,5299,5303,5307,5311,5315,5319,5323,5327,5331,5335,5339,5343,5347],{"type":43,"tag":683,"props":5292,"children":5293},{"style":706},[5294],{"type":49,"value":5156},{"type":43,"tag":683,"props":5296,"children":5297},{"style":717},[5298],{"type":49,"value":4555},{"type":43,"tag":683,"props":5300,"children":5301},{"style":700},[5302],{"type":49,"value":816},{"type":43,"tag":683,"props":5304,"children":5305},{"style":706},[5306],{"type":49,"value":821},{"type":43,"tag":683,"props":5308,"children":5309},{"style":717},[5310],{"type":49,"value":826},{"type":43,"tag":683,"props":5312,"children":5313},{"style":706},[5314],{"type":49,"value":831},{"type":43,"tag":683,"props":5316,"children":5317},{"style":717},[5318],{"type":49,"value":826},{"type":43,"tag":683,"props":5320,"children":5321},{"style":774},[5322],{"type":49,"value":840},{"type":43,"tag":683,"props":5324,"children":5325},{"style":857},[5326],{"type":49,"value":845},{"type":43,"tag":683,"props":5328,"children":5329},{"style":706},[5330],{"type":49,"value":5206},{"type":43,"tag":683,"props":5332,"children":5333},{"style":857},[5334],{"type":49,"value":975},{"type":43,"tag":683,"props":5336,"children":5337},{"style":717},[5338],{"type":49,"value":826},{"type":43,"tag":683,"props":5340,"children":5341},{"style":774},[5342],{"type":49,"value":984},{"type":43,"tag":683,"props":5344,"children":5345},{"style":857},[5346],{"type":49,"value":782},{"type":43,"tag":683,"props":5348,"children":5349},{"style":717},[5350],{"type":49,"value":736},{"type":43,"tag":683,"props":5352,"children":5354},{"class":685,"line":5353},37,[5355],{"type":43,"tag":683,"props":5356,"children":5357},{"style":717},[5358],{"type":49,"value":5359},"    }\n",{"type":43,"tag":683,"props":5361,"children":5363},{"class":685,"line":5362},38,[5364],{"type":43,"tag":683,"props":5365,"children":5366},{"emptyLinePlaceholder":743},[5367],{"type":49,"value":746},{"type":43,"tag":683,"props":5369,"children":5371},{"class":685,"line":5370},39,[5372,5377,5381,5385,5389,5393,5398,5402,5406,5410,5415,5420,5424,5429,5433,5437],{"type":43,"tag":683,"props":5373,"children":5374},{"style":706},[5375],{"type":49,"value":5376},"    res",{"type":43,"tag":683,"props":5378,"children":5379},{"style":717},[5380],{"type":49,"value":826},{"type":43,"tag":683,"props":5382,"children":5383},{"style":774},[5384],{"type":49,"value":4405},{"type":43,"tag":683,"props":5386,"children":5387},{"style":857},[5388],{"type":49,"value":845},{"type":43,"tag":683,"props":5390,"children":5391},{"style":717},[5392],{"type":49,"value":2264},{"type":43,"tag":683,"props":5394,"children":5395},{"style":857},[5396],{"type":49,"value":5397}," videoUrl",{"type":43,"tag":683,"props":5399,"children":5400},{"style":717},[5401],{"type":49,"value":865},{"type":43,"tag":683,"props":5403,"children":5404},{"style":706},[5405],{"type":49,"value":1031},{"type":43,"tag":683,"props":5407,"children":5408},{"style":717},[5409],{"type":49,"value":826},{"type":43,"tag":683,"props":5411,"children":5412},{"style":706},[5413],{"type":49,"value":5414},"output",{"type":43,"tag":683,"props":5416,"children":5417},{"style":857},[5418],{"type":49,"value":5419},"[",{"type":43,"tag":683,"props":5421,"children":5422},{"style":958},[5423],{"type":49,"value":1045},{"type":43,"tag":683,"props":5425,"children":5426},{"style":857},[5427],{"type":49,"value":5428},"] ",{"type":43,"tag":683,"props":5430,"children":5431},{"style":717},[5432],{"type":49,"value":970},{"type":43,"tag":683,"props":5434,"children":5435},{"style":857},[5436],{"type":49,"value":975},{"type":43,"tag":683,"props":5438,"children":5439},{"style":717},[5440],{"type":49,"value":736},{"type":43,"tag":683,"props":5442,"children":5444},{"class":685,"line":5443},40,[5445,5450,5455,5459,5464,5468],{"type":43,"tag":683,"props":5446,"children":5447},{"style":717},[5448],{"type":49,"value":5449},"  }",{"type":43,"tag":683,"props":5451,"children":5452},{"style":700},[5453],{"type":49,"value":5454}," catch",{"type":43,"tag":683,"props":5456,"children":5457},{"style":857},[5458],{"type":49,"value":3021},{"type":43,"tag":683,"props":5460,"children":5461},{"style":706},[5462],{"type":49,"value":5463},"error",{"type":43,"tag":683,"props":5465,"children":5466},{"style":857},[5467],{"type":49,"value":4629},{"type":43,"tag":683,"props":5469,"children":5470},{"style":717},[5471],{"type":49,"value":850},{"type":43,"tag":683,"props":5473,"children":5475},{"class":685,"line":5474},41,[5476,5481,5485,5489,5493,5497,5502,5506,5510,5515,5519],{"type":43,"tag":683,"props":5477,"children":5478},{"style":706},[5479],{"type":49,"value":5480},"    console",{"type":43,"tag":683,"props":5482,"children":5483},{"style":717},[5484],{"type":49,"value":826},{"type":43,"tag":683,"props":5486,"children":5487},{"style":774},[5488],{"type":49,"value":5463},{"type":43,"tag":683,"props":5490,"children":5491},{"style":857},[5492],{"type":49,"value":845},{"type":43,"tag":683,"props":5494,"children":5495},{"style":717},[5496],{"type":49,"value":731},{"type":43,"tag":683,"props":5498,"children":5499},{"style":723},[5500],{"type":49,"value":5501},"Video generation failed:",{"type":43,"tag":683,"props":5503,"children":5504},{"style":717},[5505],{"type":49,"value":731},{"type":43,"tag":683,"props":5507,"children":5508},{"style":717},[5509],{"type":49,"value":2291},{"type":43,"tag":683,"props":5511,"children":5512},{"style":706},[5513],{"type":49,"value":5514}," error",{"type":43,"tag":683,"props":5516,"children":5517},{"style":857},[5518],{"type":49,"value":975},{"type":43,"tag":683,"props":5520,"children":5521},{"style":717},[5522],{"type":49,"value":736},{"type":43,"tag":683,"props":5524,"children":5526},{"class":685,"line":5525},42,[5527,5531,5535,5540,5544,5549,5553,5557,5561,5565,5569,5573,5577,5581,5585,5590,5594,5598],{"type":43,"tag":683,"props":5528,"children":5529},{"style":706},[5530],{"type":49,"value":5376},{"type":43,"tag":683,"props":5532,"children":5533},{"style":717},[5534],{"type":49,"value":826},{"type":43,"tag":683,"props":5536,"children":5537},{"style":774},[5538],{"type":49,"value":5539},"status",{"type":43,"tag":683,"props":5541,"children":5542},{"style":857},[5543],{"type":49,"value":845},{"type":43,"tag":683,"props":5545,"children":5546},{"style":958},[5547],{"type":49,"value":5548},"400",{"type":43,"tag":683,"props":5550,"children":5551},{"style":857},[5552],{"type":49,"value":975},{"type":43,"tag":683,"props":5554,"children":5555},{"style":717},[5556],{"type":49,"value":826},{"type":43,"tag":683,"props":5558,"children":5559},{"style":774},[5560],{"type":49,"value":4405},{"type":43,"tag":683,"props":5562,"children":5563},{"style":857},[5564],{"type":49,"value":845},{"type":43,"tag":683,"props":5566,"children":5567},{"style":717},[5568],{"type":49,"value":2264},{"type":43,"tag":683,"props":5570,"children":5571},{"style":857},[5572],{"type":49,"value":5514},{"type":43,"tag":683,"props":5574,"children":5575},{"style":717},[5576],{"type":49,"value":865},{"type":43,"tag":683,"props":5578,"children":5579},{"style":706},[5580],{"type":49,"value":5514},{"type":43,"tag":683,"props":5582,"children":5583},{"style":717},[5584],{"type":49,"value":826},{"type":43,"tag":683,"props":5586,"children":5587},{"style":706},[5588],{"type":49,"value":5589},"message",{"type":43,"tag":683,"props":5591,"children":5592},{"style":717},[5593],{"type":49,"value":2318},{"type":43,"tag":683,"props":5595,"children":5596},{"style":857},[5597],{"type":49,"value":975},{"type":43,"tag":683,"props":5599,"children":5600},{"style":717},[5601],{"type":49,"value":736},{"type":43,"tag":683,"props":5603,"children":5605},{"class":685,"line":5604},43,[5606],{"type":43,"tag":683,"props":5607,"children":5608},{"style":717},[5609],{"type":49,"value":5610},"  }\n",{"type":43,"tag":683,"props":5612,"children":5614},{"class":685,"line":5613},44,[5615,5619,5623],{"type":43,"tag":683,"props":5616,"children":5617},{"style":717},[5618],{"type":49,"value":970},{"type":43,"tag":683,"props":5620,"children":5621},{"style":706},[5622],{"type":49,"value":975},{"type":43,"tag":683,"props":5624,"children":5625},{"style":717},[5626],{"type":49,"value":736},{"type":43,"tag":52,"props":5628,"children":5629},{},[5630],{"type":43,"tag":56,"props":5631,"children":5632},{},[5633,5635,5640,5642,5647],{"type":49,"value":5634},"For browser uploads: POST files to your server, upload via ",{"type":43,"tag":68,"props":5636,"children":5638},{"className":5637},[],[5639],{"type":49,"value":97},{"type":49,"value":5641},", and pass the ",{"type":43,"tag":68,"props":5643,"children":5645},{"className":5644},[],[5646],{"type":49,"value":544},{"type":49,"value":5648}," URI. Don't accept raw URLs from the browser.",{"type":43,"tag":616,"props":5650,"children":5652},{"id":5651},"example-nextjs-api-route",[5653],{"type":49,"value":5654},"Example: Next.js API Route",{"type":43,"tag":672,"props":5656,"children":5660},{"className":5657,"code":5658,"language":5659,"meta":677,"style":677},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F app\u002Fapi\u002Fgenerate-video\u002Froute.ts\nimport RunwayML from '@runwayml\u002Fsdk';\nimport { NextRequest, NextResponse } from 'next\u002Fserver';\n\nconst client = new RunwayML();\n\nexport async function POST(request: NextRequest) {\n  const { prompt, imageUrl } = await request.json();\n\n  try {\n    const task = imageUrl\n      ? await client.imageToVideo.create({\n          model: 'gen4.5',\n          promptImage: imageUrl,\n          promptText: prompt,\n          ratio: '1280:720',\n          duration: 5\n        }).waitForTaskOutput()\n      : await client.textToVideo.create({\n          model: 'gen4.5',\n          promptText: prompt,\n          ratio: '1280:720',\n          duration: 5\n        }).waitForTaskOutput();\n\n    return NextResponse.json({ videoUrl: task.output[0] });\n  } catch (error) {\n    return NextResponse.json(\n      { error: error instanceof Error ? error.message : 'Generation failed' },\n      { status: 500 }\n    );\n  }\n}\n","typescript",[5661],{"type":43,"tag":68,"props":5662,"children":5663},{"__ignoreMap":677},[5664,5672,5703,5754,5761,5792,5799,5847,5903,5910,5921,5941,5981,6009,6029,6049,6077,6093,6118,6158,6185,6204,6231,6246,6273,6280,6352,6379,6402,6470,6495,6507,6514],{"type":43,"tag":683,"props":5665,"children":5666},{"class":685,"line":686},[5667],{"type":43,"tag":683,"props":5668,"children":5669},{"style":690},[5670],{"type":49,"value":5671},"\u002F\u002F app\u002Fapi\u002Fgenerate-video\u002Froute.ts\n",{"type":43,"tag":683,"props":5673,"children":5674},{"class":685,"line":696},[5675,5679,5683,5687,5691,5695,5699],{"type":43,"tag":683,"props":5676,"children":5677},{"style":700},[5678],{"type":49,"value":703},{"type":43,"tag":683,"props":5680,"children":5681},{"style":706},[5682],{"type":49,"value":709},{"type":43,"tag":683,"props":5684,"children":5685},{"style":700},[5686],{"type":49,"value":714},{"type":43,"tag":683,"props":5688,"children":5689},{"style":717},[5690],{"type":49,"value":720},{"type":43,"tag":683,"props":5692,"children":5693},{"style":723},[5694],{"type":49,"value":726},{"type":43,"tag":683,"props":5696,"children":5697},{"style":717},[5698],{"type":49,"value":731},{"type":43,"tag":683,"props":5700,"children":5701},{"style":717},[5702],{"type":49,"value":736},{"type":43,"tag":683,"props":5704,"children":5705},{"class":685,"line":739},[5706,5710,5714,5719,5723,5728,5732,5737,5741,5746,5750],{"type":43,"tag":683,"props":5707,"children":5708},{"style":700},[5709],{"type":49,"value":703},{"type":43,"tag":683,"props":5711,"children":5712},{"style":717},[5713],{"type":49,"value":4904},{"type":43,"tag":683,"props":5715,"children":5716},{"style":706},[5717],{"type":49,"value":5718}," NextRequest",{"type":43,"tag":683,"props":5720,"children":5721},{"style":717},[5722],{"type":49,"value":2291},{"type":43,"tag":683,"props":5724,"children":5725},{"style":706},[5726],{"type":49,"value":5727}," NextResponse",{"type":43,"tag":683,"props":5729,"children":5730},{"style":717},[5731],{"type":49,"value":2318},{"type":43,"tag":683,"props":5733,"children":5734},{"style":700},[5735],{"type":49,"value":5736}," from",{"type":43,"tag":683,"props":5738,"children":5739},{"style":717},[5740],{"type":49,"value":720},{"type":43,"tag":683,"props":5742,"children":5743},{"style":723},[5744],{"type":49,"value":5745},"next\u002Fserver",{"type":43,"tag":683,"props":5747,"children":5748},{"style":717},[5749],{"type":49,"value":731},{"type":43,"tag":683,"props":5751,"children":5752},{"style":717},[5753],{"type":49,"value":736},{"type":43,"tag":683,"props":5755,"children":5756},{"class":685,"line":749},[5757],{"type":43,"tag":683,"props":5758,"children":5759},{"emptyLinePlaceholder":743},[5760],{"type":49,"value":746},{"type":43,"tag":683,"props":5762,"children":5763},{"class":685,"line":789},[5764,5768,5772,5776,5780,5784,5788],{"type":43,"tag":683,"props":5765,"children":5766},{"style":753},[5767],{"type":49,"value":756},{"type":43,"tag":683,"props":5769,"children":5770},{"style":706},[5771],{"type":49,"value":761},{"type":43,"tag":683,"props":5773,"children":5774},{"style":717},[5775],{"type":49,"value":766},{"type":43,"tag":683,"props":5777,"children":5778},{"style":717},[5779],{"type":49,"value":771},{"type":43,"tag":683,"props":5781,"children":5782},{"style":774},[5783],{"type":49,"value":777},{"type":43,"tag":683,"props":5785,"children":5786},{"style":706},[5787],{"type":49,"value":782},{"type":43,"tag":683,"props":5789,"children":5790},{"style":717},[5791],{"type":49,"value":736},{"type":43,"tag":683,"props":5793,"children":5794},{"class":685,"line":797},[5795],{"type":43,"tag":683,"props":5796,"children":5797},{"emptyLinePlaceholder":743},[5798],{"type":49,"value":746},{"type":43,"tag":683,"props":5800,"children":5801},{"class":685,"line":853},[5802,5807,5811,5816,5821,5825,5830,5834,5839,5843],{"type":43,"tag":683,"props":5803,"children":5804},{"style":700},[5805],{"type":49,"value":5806},"export",{"type":43,"tag":683,"props":5808,"children":5809},{"style":753},[5810],{"type":49,"value":4846},{"type":43,"tag":683,"props":5812,"children":5813},{"style":753},[5814],{"type":49,"value":5815}," function",{"type":43,"tag":683,"props":5817,"children":5818},{"style":774},[5819],{"type":49,"value":5820}," POST",{"type":43,"tag":683,"props":5822,"children":5823},{"style":717},[5824],{"type":49,"value":845},{"type":43,"tag":683,"props":5826,"children":5827},{"style":4525},[5828],{"type":49,"value":5829},"request",{"type":43,"tag":683,"props":5831,"children":5832},{"style":717},[5833],{"type":49,"value":865},{"type":43,"tag":683,"props":5835,"children":5837},{"style":5836},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[5838],{"type":49,"value":5718},{"type":43,"tag":683,"props":5840,"children":5841},{"style":717},[5842],{"type":49,"value":975},{"type":43,"tag":683,"props":5844,"children":5845},{"style":717},[5846],{"type":49,"value":4537},{"type":43,"tag":683,"props":5848,"children":5849},{"class":685,"line":885},[5850,5854,5858,5862,5866,5870,5874,5878,5882,5887,5891,5895,5899],{"type":43,"tag":683,"props":5851,"children":5852},{"style":753},[5853],{"type":49,"value":4545},{"type":43,"tag":683,"props":5855,"children":5856},{"style":717},[5857],{"type":49,"value":4904},{"type":43,"tag":683,"props":5859,"children":5860},{"style":706},[5861],{"type":49,"value":4909},{"type":43,"tag":683,"props":5863,"children":5864},{"style":717},[5865],{"type":49,"value":2291},{"type":43,"tag":683,"props":5867,"children":5868},{"style":706},[5869],{"type":49,"value":4918},{"type":43,"tag":683,"props":5871,"children":5872},{"style":717},[5873],{"type":49,"value":2318},{"type":43,"tag":683,"props":5875,"children":5876},{"style":717},[5877],{"type":49,"value":4555},{"type":43,"tag":683,"props":5879,"children":5880},{"style":700},[5881],{"type":49,"value":816},{"type":43,"tag":683,"props":5883,"children":5884},{"style":706},[5885],{"type":49,"value":5886}," request",{"type":43,"tag":683,"props":5888,"children":5889},{"style":717},[5890],{"type":49,"value":826},{"type":43,"tag":683,"props":5892,"children":5893},{"style":774},[5894],{"type":49,"value":4405},{"type":43,"tag":683,"props":5896,"children":5897},{"style":857},[5898],{"type":49,"value":782},{"type":43,"tag":683,"props":5900,"children":5901},{"style":717},[5902],{"type":49,"value":736},{"type":43,"tag":683,"props":5904,"children":5905},{"class":685,"line":915},[5906],{"type":43,"tag":683,"props":5907,"children":5908},{"emptyLinePlaceholder":743},[5909],{"type":49,"value":746},{"type":43,"tag":683,"props":5911,"children":5912},{"class":685,"line":945},[5913,5917],{"type":43,"tag":683,"props":5914,"children":5915},{"style":700},[5916],{"type":49,"value":4886},{"type":43,"tag":683,"props":5918,"children":5919},{"style":717},[5920],{"type":49,"value":4537},{"type":43,"tag":683,"props":5922,"children":5923},{"class":685,"line":964},[5924,5928,5932,5936],{"type":43,"tag":683,"props":5925,"children":5926},{"style":753},[5927],{"type":49,"value":4899},{"type":43,"tag":683,"props":5929,"children":5930},{"style":706},[5931],{"type":49,"value":1031},{"type":43,"tag":683,"props":5933,"children":5934},{"style":717},[5935],{"type":49,"value":4555},{"type":43,"tag":683,"props":5937,"children":5938},{"style":706},[5939],{"type":49,"value":5940}," imageUrl\n",{"type":43,"tag":683,"props":5942,"children":5943},{"class":685,"line":995},[5944,5949,5953,5957,5961,5965,5969,5973,5977],{"type":43,"tag":683,"props":5945,"children":5946},{"style":717},[5947],{"type":49,"value":5948},"      ?",{"type":43,"tag":683,"props":5950,"children":5951},{"style":700},[5952],{"type":49,"value":816},{"type":43,"tag":683,"props":5954,"children":5955},{"style":706},[5956],{"type":49,"value":821},{"type":43,"tag":683,"props":5958,"children":5959},{"style":717},[5960],{"type":49,"value":826},{"type":43,"tag":683,"props":5962,"children":5963},{"style":706},[5964],{"type":49,"value":1439},{"type":43,"tag":683,"props":5966,"children":5967},{"style":717},[5968],{"type":49,"value":826},{"type":43,"tag":683,"props":5970,"children":5971},{"style":774},[5972],{"type":49,"value":840},{"type":43,"tag":683,"props":5974,"children":5975},{"style":857},[5976],{"type":49,"value":845},{"type":43,"tag":683,"props":5978,"children":5979},{"style":717},[5980],{"type":49,"value":850},{"type":43,"tag":683,"props":5982,"children":5983},{"class":685,"line":1003},[5984,5989,5993,5997,6001,6005],{"type":43,"tag":683,"props":5985,"children":5986},{"style":857},[5987],{"type":49,"value":5988},"          model",{"type":43,"tag":683,"props":5990,"children":5991},{"style":717},[5992],{"type":49,"value":865},{"type":43,"tag":683,"props":5994,"children":5995},{"style":717},[5996],{"type":49,"value":720},{"type":43,"tag":683,"props":5998,"children":5999},{"style":723},[6000],{"type":49,"value":198},{"type":43,"tag":683,"props":6002,"children":6003},{"style":717},[6004],{"type":49,"value":731},{"type":43,"tag":683,"props":6006,"children":6007},{"style":717},[6008],{"type":49,"value":882},{"type":43,"tag":683,"props":6010,"children":6011},{"class":685,"line":1012},[6012,6017,6021,6025],{"type":43,"tag":683,"props":6013,"children":6014},{"style":857},[6015],{"type":49,"value":6016},"          promptImage",{"type":43,"tag":683,"props":6018,"children":6019},{"style":717},[6020],{"type":49,"value":865},{"type":43,"tag":683,"props":6022,"children":6023},{"style":706},[6024],{"type":49,"value":4918},{"type":43,"tag":683,"props":6026,"children":6027},{"style":717},[6028],{"type":49,"value":882},{"type":43,"tag":683,"props":6030,"children":6031},{"class":685,"line":28},[6032,6037,6041,6045],{"type":43,"tag":683,"props":6033,"children":6034},{"style":857},[6035],{"type":49,"value":6036},"          promptText",{"type":43,"tag":683,"props":6038,"children":6039},{"style":717},[6040],{"type":49,"value":865},{"type":43,"tag":683,"props":6042,"children":6043},{"style":706},[6044],{"type":49,"value":4909},{"type":43,"tag":683,"props":6046,"children":6047},{"style":717},[6048],{"type":49,"value":882},{"type":43,"tag":683,"props":6050,"children":6051},{"class":685,"line":4789},[6052,6057,6061,6065,6069,6073],{"type":43,"tag":683,"props":6053,"children":6054},{"style":857},[6055],{"type":49,"value":6056},"          ratio",{"type":43,"tag":683,"props":6058,"children":6059},{"style":717},[6060],{"type":49,"value":865},{"type":43,"tag":683,"props":6062,"children":6063},{"style":717},[6064],{"type":49,"value":720},{"type":43,"tag":683,"props":6066,"children":6067},{"style":723},[6068],{"type":49,"value":934},{"type":43,"tag":683,"props":6070,"children":6071},{"style":717},[6072],{"type":49,"value":731},{"type":43,"tag":683,"props":6074,"children":6075},{"style":717},[6076],{"type":49,"value":882},{"type":43,"tag":683,"props":6078,"children":6079},{"class":685,"line":4798},[6080,6085,6089],{"type":43,"tag":683,"props":6081,"children":6082},{"style":857},[6083],{"type":49,"value":6084},"          duration",{"type":43,"tag":683,"props":6086,"children":6087},{"style":717},[6088],{"type":49,"value":865},{"type":43,"tag":683,"props":6090,"children":6091},{"style":958},[6092],{"type":49,"value":961},{"type":43,"tag":683,"props":6094,"children":6095},{"class":685,"line":4806},[6096,6101,6105,6109,6113],{"type":43,"tag":683,"props":6097,"children":6098},{"style":717},[6099],{"type":49,"value":6100},"        }",{"type":43,"tag":683,"props":6102,"children":6103},{"style":857},[6104],{"type":49,"value":975},{"type":43,"tag":683,"props":6106,"children":6107},{"style":717},[6108],{"type":49,"value":826},{"type":43,"tag":683,"props":6110,"children":6111},{"style":774},[6112],{"type":49,"value":984},{"type":43,"tag":683,"props":6114,"children":6115},{"style":857},[6116],{"type":49,"value":6117},"()\n",{"type":43,"tag":683,"props":6119,"children":6120},{"class":685,"line":4880},[6121,6126,6130,6134,6138,6142,6146,6150,6154],{"type":43,"tag":683,"props":6122,"children":6123},{"style":717},[6124],{"type":49,"value":6125},"      :",{"type":43,"tag":683,"props":6127,"children":6128},{"style":700},[6129],{"type":49,"value":816},{"type":43,"tag":683,"props":6131,"children":6132},{"style":706},[6133],{"type":49,"value":821},{"type":43,"tag":683,"props":6135,"children":6136},{"style":717},[6137],{"type":49,"value":826},{"type":43,"tag":683,"props":6139,"children":6140},{"style":706},[6141],{"type":49,"value":831},{"type":43,"tag":683,"props":6143,"children":6144},{"style":717},[6145],{"type":49,"value":826},{"type":43,"tag":683,"props":6147,"children":6148},{"style":774},[6149],{"type":49,"value":840},{"type":43,"tag":683,"props":6151,"children":6152},{"style":857},[6153],{"type":49,"value":845},{"type":43,"tag":683,"props":6155,"children":6156},{"style":717},[6157],{"type":49,"value":850},{"type":43,"tag":683,"props":6159,"children":6160},{"class":685,"line":4893},[6161,6165,6169,6173,6177,6181],{"type":43,"tag":683,"props":6162,"children":6163},{"style":857},[6164],{"type":49,"value":5988},{"type":43,"tag":683,"props":6166,"children":6167},{"style":717},[6168],{"type":49,"value":865},{"type":43,"tag":683,"props":6170,"children":6171},{"style":717},[6172],{"type":49,"value":720},{"type":43,"tag":683,"props":6174,"children":6175},{"style":723},[6176],{"type":49,"value":198},{"type":43,"tag":683,"props":6178,"children":6179},{"style":717},[6180],{"type":49,"value":731},{"type":43,"tag":683,"props":6182,"children":6183},{"style":717},[6184],{"type":49,"value":882},{"type":43,"tag":683,"props":6186,"children":6187},{"class":685,"line":4989},[6188,6192,6196,6200],{"type":43,"tag":683,"props":6189,"children":6190},{"style":857},[6191],{"type":49,"value":6036},{"type":43,"tag":683,"props":6193,"children":6194},{"style":717},[6195],{"type":49,"value":865},{"type":43,"tag":683,"props":6197,"children":6198},{"style":706},[6199],{"type":49,"value":4909},{"type":43,"tag":683,"props":6201,"children":6202},{"style":717},[6203],{"type":49,"value":882},{"type":43,"tag":683,"props":6205,"children":6206},{"class":685,"line":4997},[6207,6211,6215,6219,6223,6227],{"type":43,"tag":683,"props":6208,"children":6209},{"style":857},[6210],{"type":49,"value":6056},{"type":43,"tag":683,"props":6212,"children":6213},{"style":717},[6214],{"type":49,"value":865},{"type":43,"tag":683,"props":6216,"children":6217},{"style":717},[6218],{"type":49,"value":720},{"type":43,"tag":683,"props":6220,"children":6221},{"style":723},[6222],{"type":49,"value":934},{"type":43,"tag":683,"props":6224,"children":6225},{"style":717},[6226],{"type":49,"value":731},{"type":43,"tag":683,"props":6228,"children":6229},{"style":717},[6230],{"type":49,"value":882},{"type":43,"tag":683,"props":6232,"children":6233},{"class":685,"line":5018},[6234,6238,6242],{"type":43,"tag":683,"props":6235,"children":6236},{"style":857},[6237],{"type":49,"value":6084},{"type":43,"tag":683,"props":6239,"children":6240},{"style":717},[6241],{"type":49,"value":865},{"type":43,"tag":683,"props":6243,"children":6244},{"style":958},[6245],{"type":49,"value":961},{"type":43,"tag":683,"props":6247,"children":6248},{"class":685,"line":5031},[6249,6253,6257,6261,6265,6269],{"type":43,"tag":683,"props":6250,"children":6251},{"style":717},[6252],{"type":49,"value":6100},{"type":43,"tag":683,"props":6254,"children":6255},{"style":857},[6256],{"type":49,"value":975},{"type":43,"tag":683,"props":6258,"children":6259},{"style":717},[6260],{"type":49,"value":826},{"type":43,"tag":683,"props":6262,"children":6263},{"style":774},[6264],{"type":49,"value":984},{"type":43,"tag":683,"props":6266,"children":6267},{"style":857},[6268],{"type":49,"value":782},{"type":43,"tag":683,"props":6270,"children":6271},{"style":717},[6272],{"type":49,"value":736},{"type":43,"tag":683,"props":6274,"children":6275},{"class":685,"line":5052},[6276],{"type":43,"tag":683,"props":6277,"children":6278},{"emptyLinePlaceholder":743},[6279],{"type":49,"value":746},{"type":43,"tag":683,"props":6281,"children":6282},{"class":685,"line":5081},[6283,6288,6292,6296,6300,6304,6308,6312,6316,6320,6324,6328,6332,6336,6340,6344,6348],{"type":43,"tag":683,"props":6284,"children":6285},{"style":700},[6286],{"type":49,"value":6287},"    return",{"type":43,"tag":683,"props":6289,"children":6290},{"style":706},[6291],{"type":49,"value":5727},{"type":43,"tag":683,"props":6293,"children":6294},{"style":717},[6295],{"type":49,"value":826},{"type":43,"tag":683,"props":6297,"children":6298},{"style":774},[6299],{"type":49,"value":4405},{"type":43,"tag":683,"props":6301,"children":6302},{"style":857},[6303],{"type":49,"value":845},{"type":43,"tag":683,"props":6305,"children":6306},{"style":717},[6307],{"type":49,"value":2264},{"type":43,"tag":683,"props":6309,"children":6310},{"style":857},[6311],{"type":49,"value":5397},{"type":43,"tag":683,"props":6313,"children":6314},{"style":717},[6315],{"type":49,"value":865},{"type":43,"tag":683,"props":6317,"children":6318},{"style":706},[6319],{"type":49,"value":1031},{"type":43,"tag":683,"props":6321,"children":6322},{"style":717},[6323],{"type":49,"value":826},{"type":43,"tag":683,"props":6325,"children":6326},{"style":706},[6327],{"type":49,"value":5414},{"type":43,"tag":683,"props":6329,"children":6330},{"style":857},[6331],{"type":49,"value":5419},{"type":43,"tag":683,"props":6333,"children":6334},{"style":958},[6335],{"type":49,"value":1045},{"type":43,"tag":683,"props":6337,"children":6338},{"style":857},[6339],{"type":49,"value":5428},{"type":43,"tag":683,"props":6341,"children":6342},{"style":717},[6343],{"type":49,"value":970},{"type":43,"tag":683,"props":6345,"children":6346},{"style":857},[6347],{"type":49,"value":975},{"type":43,"tag":683,"props":6349,"children":6350},{"style":717},[6351],{"type":49,"value":736},{"type":43,"tag":683,"props":6353,"children":6354},{"class":685,"line":5090},[6355,6359,6363,6367,6371,6375],{"type":43,"tag":683,"props":6356,"children":6357},{"style":717},[6358],{"type":49,"value":5449},{"type":43,"tag":683,"props":6360,"children":6361},{"style":700},[6362],{"type":49,"value":5454},{"type":43,"tag":683,"props":6364,"children":6365},{"style":857},[6366],{"type":49,"value":3021},{"type":43,"tag":683,"props":6368,"children":6369},{"style":706},[6370],{"type":49,"value":5463},{"type":43,"tag":683,"props":6372,"children":6373},{"style":857},[6374],{"type":49,"value":4629},{"type":43,"tag":683,"props":6376,"children":6377},{"style":717},[6378],{"type":49,"value":850},{"type":43,"tag":683,"props":6380,"children":6381},{"class":685,"line":5099},[6382,6386,6390,6394,6398],{"type":43,"tag":683,"props":6383,"children":6384},{"style":700},[6385],{"type":49,"value":6287},{"type":43,"tag":683,"props":6387,"children":6388},{"style":706},[6389],{"type":49,"value":5727},{"type":43,"tag":683,"props":6391,"children":6392},{"style":717},[6393],{"type":49,"value":826},{"type":43,"tag":683,"props":6395,"children":6396},{"style":774},[6397],{"type":49,"value":4405},{"type":43,"tag":683,"props":6399,"children":6400},{"style":857},[6401],{"type":49,"value":1350},{"type":43,"tag":683,"props":6403,"children":6404},{"class":685,"line":5107},[6405,6410,6414,6418,6422,6427,6431,6436,6440,6444,6448,6453,6457,6462,6466],{"type":43,"tag":683,"props":6406,"children":6407},{"style":717},[6408],{"type":49,"value":6409},"      {",{"type":43,"tag":683,"props":6411,"children":6412},{"style":857},[6413],{"type":49,"value":5514},{"type":43,"tag":683,"props":6415,"children":6416},{"style":717},[6417],{"type":49,"value":865},{"type":43,"tag":683,"props":6419,"children":6420},{"style":706},[6421],{"type":49,"value":5514},{"type":43,"tag":683,"props":6423,"children":6424},{"style":717},[6425],{"type":49,"value":6426}," instanceof",{"type":43,"tag":683,"props":6428,"children":6429},{"style":5836},[6430],{"type":49,"value":4643},{"type":43,"tag":683,"props":6432,"children":6433},{"style":717},[6434],{"type":49,"value":6435}," ?",{"type":43,"tag":683,"props":6437,"children":6438},{"style":706},[6439],{"type":49,"value":5514},{"type":43,"tag":683,"props":6441,"children":6442},{"style":717},[6443],{"type":49,"value":826},{"type":43,"tag":683,"props":6445,"children":6446},{"style":706},[6447],{"type":49,"value":5589},{"type":43,"tag":683,"props":6449,"children":6450},{"style":717},[6451],{"type":49,"value":6452}," :",{"type":43,"tag":683,"props":6454,"children":6455},{"style":717},[6456],{"type":49,"value":720},{"type":43,"tag":683,"props":6458,"children":6459},{"style":723},[6460],{"type":49,"value":6461},"Generation failed",{"type":43,"tag":683,"props":6463,"children":6464},{"style":717},[6465],{"type":49,"value":731},{"type":43,"tag":683,"props":6467,"children":6468},{"style":717},[6469],{"type":49,"value":2855},{"type":43,"tag":683,"props":6471,"children":6472},{"class":685,"line":5124},[6473,6477,6482,6486,6491],{"type":43,"tag":683,"props":6474,"children":6475},{"style":717},[6476],{"type":49,"value":6409},{"type":43,"tag":683,"props":6478,"children":6479},{"style":857},[6480],{"type":49,"value":6481}," status",{"type":43,"tag":683,"props":6483,"children":6484},{"style":717},[6485],{"type":49,"value":865},{"type":43,"tag":683,"props":6487,"children":6488},{"style":958},[6489],{"type":49,"value":6490}," 500",{"type":43,"tag":683,"props":6492,"children":6493},{"style":717},[6494],{"type":49,"value":2913},{"type":43,"tag":683,"props":6496,"children":6497},{"class":685,"line":5150},[6498,6503],{"type":43,"tag":683,"props":6499,"children":6500},{"style":857},[6501],{"type":49,"value":6502},"    )",{"type":43,"tag":683,"props":6504,"children":6505},{"style":717},[6506],{"type":49,"value":736},{"type":43,"tag":683,"props":6508,"children":6509},{"class":685,"line":5195},[6510],{"type":43,"tag":683,"props":6511,"children":6512},{"style":717},[6513],{"type":49,"value":5610},{"type":43,"tag":683,"props":6515,"children":6516},{"class":685,"line":5213},[6517],{"type":43,"tag":683,"props":6518,"children":6519},{"style":717},[6520],{"type":49,"value":4795},{"type":43,"tag":616,"props":6522,"children":6524},{"id":6523},"example-fastapi-route",[6525],{"type":49,"value":6526},"Example: FastAPI Route",{"type":43,"tag":672,"props":6528,"children":6530},{"className":1057,"code":6529,"language":1059,"meta":677,"style":677},"from fastapi import FastAPI, HTTPException\nfrom pydantic import BaseModel\nfrom runwayml import RunwayML\n\napp = FastAPI()\nclient = RunwayML()\n\nclass VideoRequest(BaseModel):\n    prompt: str\n    image_url: str | None = None\n    model: str = \"gen4.5\"\n    duration: int = 5\n\n@app.post(\"\u002Fapi\u002Fgenerate-video\")\nasync def generate_video(req: VideoRequest):\n    try:\n        if req.image_url:\n            task = client.image_to_video.create(\n                model=req.model,\n                prompt_image=req.image_url,\n                prompt_text=req.prompt,\n                ratio=\"1280:720\",\n                duration=req.duration\n            ).wait_for_task_output()\n        else:\n            task = client.text_to_video.create(\n                model=req.model,\n                prompt_text=req.prompt,\n                ratio=\"1280:720\",\n                duration=req.duration\n            ).wait_for_task_output()\n\n        return {\"video_url\": task.output[0]}\n    except Exception as e:\n        raise HTTPException(status_code=500, detail=str(e))\n",[6531],{"type":43,"tag":68,"props":6532,"children":6533},{"__ignoreMap":677},[6534,6542,6550,6557,6564,6572,6579,6586,6594,6602,6610,6618,6626,6633,6641,6649,6657,6665,6673,6681,6689,6697,6705,6713,6721,6729,6737,6744,6751,6758,6765,6772,6779,6787,6795],{"type":43,"tag":683,"props":6535,"children":6536},{"class":685,"line":686},[6537],{"type":43,"tag":683,"props":6538,"children":6539},{},[6540],{"type":49,"value":6541},"from fastapi import FastAPI, HTTPException\n",{"type":43,"tag":683,"props":6543,"children":6544},{"class":685,"line":696},[6545],{"type":43,"tag":683,"props":6546,"children":6547},{},[6548],{"type":49,"value":6549},"from pydantic import BaseModel\n",{"type":43,"tag":683,"props":6551,"children":6552},{"class":685,"line":739},[6553],{"type":43,"tag":683,"props":6554,"children":6555},{},[6556],{"type":49,"value":1079},{"type":43,"tag":683,"props":6558,"children":6559},{"class":685,"line":749},[6560],{"type":43,"tag":683,"props":6561,"children":6562},{"emptyLinePlaceholder":743},[6563],{"type":49,"value":746},{"type":43,"tag":683,"props":6565,"children":6566},{"class":685,"line":789},[6567],{"type":43,"tag":683,"props":6568,"children":6569},{},[6570],{"type":49,"value":6571},"app = FastAPI()\n",{"type":43,"tag":683,"props":6573,"children":6574},{"class":685,"line":797},[6575],{"type":43,"tag":683,"props":6576,"children":6577},{},[6578],{"type":49,"value":1094},{"type":43,"tag":683,"props":6580,"children":6581},{"class":685,"line":853},[6582],{"type":43,"tag":683,"props":6583,"children":6584},{"emptyLinePlaceholder":743},[6585],{"type":49,"value":746},{"type":43,"tag":683,"props":6587,"children":6588},{"class":685,"line":885},[6589],{"type":43,"tag":683,"props":6590,"children":6591},{},[6592],{"type":49,"value":6593},"class VideoRequest(BaseModel):\n",{"type":43,"tag":683,"props":6595,"children":6596},{"class":685,"line":915},[6597],{"type":43,"tag":683,"props":6598,"children":6599},{},[6600],{"type":49,"value":6601},"    prompt: str\n",{"type":43,"tag":683,"props":6603,"children":6604},{"class":685,"line":945},[6605],{"type":43,"tag":683,"props":6606,"children":6607},{},[6608],{"type":49,"value":6609},"    image_url: str | None = None\n",{"type":43,"tag":683,"props":6611,"children":6612},{"class":685,"line":964},[6613],{"type":43,"tag":683,"props":6614,"children":6615},{},[6616],{"type":49,"value":6617},"    model: str = \"gen4.5\"\n",{"type":43,"tag":683,"props":6619,"children":6620},{"class":685,"line":995},[6621],{"type":43,"tag":683,"props":6622,"children":6623},{},[6624],{"type":49,"value":6625},"    duration: int = 5\n",{"type":43,"tag":683,"props":6627,"children":6628},{"class":685,"line":1003},[6629],{"type":43,"tag":683,"props":6630,"children":6631},{"emptyLinePlaceholder":743},[6632],{"type":49,"value":746},{"type":43,"tag":683,"props":6634,"children":6635},{"class":685,"line":1012},[6636],{"type":43,"tag":683,"props":6637,"children":6638},{},[6639],{"type":49,"value":6640},"@app.post(\"\u002Fapi\u002Fgenerate-video\")\n",{"type":43,"tag":683,"props":6642,"children":6643},{"class":685,"line":28},[6644],{"type":43,"tag":683,"props":6645,"children":6646},{},[6647],{"type":49,"value":6648},"async def generate_video(req: VideoRequest):\n",{"type":43,"tag":683,"props":6650,"children":6651},{"class":685,"line":4789},[6652],{"type":43,"tag":683,"props":6653,"children":6654},{},[6655],{"type":49,"value":6656},"    try:\n",{"type":43,"tag":683,"props":6658,"children":6659},{"class":685,"line":4798},[6660],{"type":43,"tag":683,"props":6661,"children":6662},{},[6663],{"type":49,"value":6664},"        if req.image_url:\n",{"type":43,"tag":683,"props":6666,"children":6667},{"class":685,"line":4806},[6668],{"type":43,"tag":683,"props":6669,"children":6670},{},[6671],{"type":49,"value":6672},"            task = client.image_to_video.create(\n",{"type":43,"tag":683,"props":6674,"children":6675},{"class":685,"line":4880},[6676],{"type":43,"tag":683,"props":6677,"children":6678},{},[6679],{"type":49,"value":6680},"                model=req.model,\n",{"type":43,"tag":683,"props":6682,"children":6683},{"class":685,"line":4893},[6684],{"type":43,"tag":683,"props":6685,"children":6686},{},[6687],{"type":49,"value":6688},"                prompt_image=req.image_url,\n",{"type":43,"tag":683,"props":6690,"children":6691},{"class":685,"line":4989},[6692],{"type":43,"tag":683,"props":6693,"children":6694},{},[6695],{"type":49,"value":6696},"                prompt_text=req.prompt,\n",{"type":43,"tag":683,"props":6698,"children":6699},{"class":685,"line":4997},[6700],{"type":43,"tag":683,"props":6701,"children":6702},{},[6703],{"type":49,"value":6704},"                ratio=\"1280:720\",\n",{"type":43,"tag":683,"props":6706,"children":6707},{"class":685,"line":5018},[6708],{"type":43,"tag":683,"props":6709,"children":6710},{},[6711],{"type":49,"value":6712},"                duration=req.duration\n",{"type":43,"tag":683,"props":6714,"children":6715},{"class":685,"line":5031},[6716],{"type":43,"tag":683,"props":6717,"children":6718},{},[6719],{"type":49,"value":6720},"            ).wait_for_task_output()\n",{"type":43,"tag":683,"props":6722,"children":6723},{"class":685,"line":5052},[6724],{"type":43,"tag":683,"props":6725,"children":6726},{},[6727],{"type":49,"value":6728},"        else:\n",{"type":43,"tag":683,"props":6730,"children":6731},{"class":685,"line":5081},[6732],{"type":43,"tag":683,"props":6733,"children":6734},{},[6735],{"type":49,"value":6736},"            task = client.text_to_video.create(\n",{"type":43,"tag":683,"props":6738,"children":6739},{"class":685,"line":5090},[6740],{"type":43,"tag":683,"props":6741,"children":6742},{},[6743],{"type":49,"value":6680},{"type":43,"tag":683,"props":6745,"children":6746},{"class":685,"line":5099},[6747],{"type":43,"tag":683,"props":6748,"children":6749},{},[6750],{"type":49,"value":6696},{"type":43,"tag":683,"props":6752,"children":6753},{"class":685,"line":5107},[6754],{"type":43,"tag":683,"props":6755,"children":6756},{},[6757],{"type":49,"value":6704},{"type":43,"tag":683,"props":6759,"children":6760},{"class":685,"line":5124},[6761],{"type":43,"tag":683,"props":6762,"children":6763},{},[6764],{"type":49,"value":6712},{"type":43,"tag":683,"props":6766,"children":6767},{"class":685,"line":5150},[6768],{"type":43,"tag":683,"props":6769,"children":6770},{},[6771],{"type":49,"value":6720},{"type":43,"tag":683,"props":6773,"children":6774},{"class":685,"line":5195},[6775],{"type":43,"tag":683,"props":6776,"children":6777},{"emptyLinePlaceholder":743},[6778],{"type":49,"value":746},{"type":43,"tag":683,"props":6780,"children":6781},{"class":685,"line":5213},[6782],{"type":43,"tag":683,"props":6783,"children":6784},{},[6785],{"type":49,"value":6786},"        return {\"video_url\": task.output[0]}\n",{"type":43,"tag":683,"props":6788,"children":6789},{"class":685,"line":5242},[6790],{"type":43,"tag":683,"props":6791,"children":6792},{},[6793],{"type":49,"value":6794},"    except Exception as e:\n",{"type":43,"tag":683,"props":6796,"children":6797},{"class":685,"line":5271},[6798],{"type":43,"tag":683,"props":6799,"children":6800},{},[6801],{"type":49,"value":6802},"        raise HTTPException(status_code=500, detail=str(e))\n",{"type":43,"tag":106,"props":6804,"children":6806},{"id":6805},"tips",[6807],{"type":49,"value":6808},"Tips",{"type":43,"tag":381,"props":6810,"children":6811},{},[6812,6822,6837,6859,6869,6885],{"type":43,"tag":385,"props":6813,"children":6814},{},[6815,6820],{"type":43,"tag":60,"props":6816,"children":6817},{},[6818],{"type":49,"value":6819},"Output URLs expire in 24-48 hours.",{"type":49,"value":6821}," Download videos to your own storage (S3, GCS, local filesystem) immediately after generation.",{"type":43,"tag":385,"props":6823,"children":6824},{},[6825,6835],{"type":43,"tag":60,"props":6826,"children":6827},{},[6828,6833],{"type":43,"tag":68,"props":6829,"children":6831},{"className":6830},[],[6832],{"type":49,"value":229},{"type":49,"value":6834}," requires an image",{"type":49,"value":6836}," — it cannot do text-only generation.",{"type":43,"tag":385,"props":6838,"children":6839},{},[6840,6845,6846,6851,6852,6857],{"type":43,"tag":60,"props":6841,"children":6842},{},[6843],{"type":49,"value":6844},"Video-to-video models:",{"type":49,"value":409},{"type":43,"tag":68,"props":6847,"children":6849},{"className":6848},[],[6850],{"type":49,"value":261},{"type":49,"value":3363},{"type":43,"tag":68,"props":6853,"children":6855},{"className":6854},[],[6856],{"type":49,"value":166},{"type":49,"value":6858}," — use for editing\u002Ftransforming existing videos.",{"type":43,"tag":385,"props":6860,"children":6861},{},[6862,6867],{"type":43,"tag":60,"props":6863,"children":6864},{},[6865],{"type":49,"value":6866},"Duration varies by model.",{"type":49,"value":6868}," Most models support 2-10 seconds; seedance2 supports up to 15 seconds.",{"type":43,"tag":385,"props":6870,"children":6871},{},[6872,6883],{"type":43,"tag":60,"props":6873,"children":6874},{},[6875,6881],{"type":43,"tag":68,"props":6876,"children":6878},{"className":6877},[],[6879],{"type":49,"value":6880},"waitForTaskOutput()",{"type":49,"value":6882}," has a default 10-minute timeout.",{"type":49,"value":6884}," For long-running generations, you may want to implement your own polling loop or increase the timeout.",{"type":43,"tag":385,"props":6886,"children":6887},{},[6888,6893,6895,6900,6902,6907],{"type":43,"tag":60,"props":6889,"children":6890},{},[6891],{"type":49,"value":6892},"For local files",{"type":49,"value":6894},", always use ",{"type":43,"tag":68,"props":6896,"children":6898},{"className":6897},[],[6899],{"type":49,"value":97},{"type":49,"value":6901}," to upload first, then pass the ",{"type":43,"tag":68,"props":6903,"children":6905},{"className":6904},[],[6906],{"type":49,"value":544},{"type":49,"value":1248},{"type":43,"tag":6909,"props":6910,"children":6911},"style",{},[6912],{"type":49,"value":6913},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":6915,"total":4806},[6916,6931,6940,6954,6969,6982,6995,7006,7020,7038,7049,7069],{"slug":6917,"name":6917,"fn":6918,"description":6919,"org":6920,"tags":6921,"stars":24,"repoUrl":25,"updatedAt":6930},"rw-api-reference","look up Runway API reference","Complete reference for Runway's public API: models, endpoints, costs, limits, and types",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6922,6925,6926,6929],{"name":6923,"slug":6924,"type":16},"AI Infrastructure","ai-infrastructure",{"name":19,"slug":20,"type":16},{"name":6927,"slug":6928,"type":16},"Reference","reference",{"name":22,"slug":23,"type":16},"2026-04-08T04:41:58.820783",{"slug":6932,"name":6932,"fn":6933,"description":6934,"org":6935,"tags":6936,"stars":24,"repoUrl":25,"updatedAt":6939},"rw-check-compatibility","verify codebase compatibility with the Runway API","Analyze a user's codebase to verify it can use Runway's public API (server-side requirement)",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6937,6938],{"name":19,"slug":20,"type":16},{"name":9,"slug":8,"type":16},"2026-04-08T04:42:01.271257",{"slug":6941,"name":6941,"fn":6942,"description":6943,"org":6944,"tags":6945,"stars":24,"repoUrl":25,"updatedAt":6953},"rw-check-org-details","query Runway API for organization details","Query the Runway API for organization details: rate limits, credit balance, usage tier, and daily generation counts",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6946,6949,6952],{"name":6947,"slug":6948,"type":16},"Operations","operations",{"name":6950,"slug":6951,"type":16},"Reporting","reporting",{"name":9,"slug":8,"type":16},"2026-04-08T04:42:00.054235",{"slug":6955,"name":6955,"fn":6956,"description":6957,"org":6958,"tags":6959,"stars":24,"repoUrl":25,"updatedAt":6968},"rw-fetch-api-reference","retrieve Runway API reference","Retrieve the latest Runway API reference from docs.dev.runwayml.com and use it as the authoritative source before any integration work",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6960,6961,6964,6967],{"name":19,"slug":20,"type":16},{"name":6962,"slug":6963,"type":16},"Documentation","documentation",{"name":6965,"slug":6966,"type":16},"Research","research",{"name":9,"slug":8,"type":16},"2026-04-08T04:42:07.604739",{"slug":6970,"name":6970,"fn":6971,"description":6972,"org":6973,"tags":6974,"stars":24,"repoUrl":25,"updatedAt":6981},"rw-generate-audio","generate audio with Runway API","Generate audio using the Runway API via runnable scripts. Supports TTS, sound effects, voice isolation, dubbing, and voice conversion.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6975,6976,6979,6980],{"name":6923,"slug":6924,"type":16},{"name":6977,"slug":6978,"type":16},"Audio","audio",{"name":14,"slug":15,"type":16},{"name":9,"slug":8,"type":16},"2026-04-17T04:51:59.892185",{"slug":6983,"name":6983,"fn":6984,"description":6985,"org":6986,"tags":6987,"stars":24,"repoUrl":25,"updatedAt":6994},"rw-generate-image","generate images with Runway API","Generate images directly using the Runway API via runnable scripts. Supports text-to-image with optional reference images.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[6988,6989,6990,6993],{"name":6923,"slug":6924,"type":16},{"name":14,"slug":15,"type":16},{"name":6991,"slug":6992,"type":16},"Image Generation","image-generation",{"name":9,"slug":8,"type":16},"2026-04-17T04:52:01.158325",{"slug":6996,"name":6996,"fn":6997,"description":6998,"org":6999,"tags":7000,"stars":24,"repoUrl":25,"updatedAt":7005},"rw-generate-video","generate videos with Runway API","Generate videos directly using the Runway API via runnable scripts. Supports text-to-video, image-to-video, and video-to-video with seedance2, gen4.5, veo3, and more.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7001,7002,7003,7004],{"name":6923,"slug":6924,"type":16},{"name":14,"slug":15,"type":16},{"name":9,"slug":8,"type":16},{"name":22,"slug":23,"type":16},"2026-04-17T04:51:58.600919",{"slug":7007,"name":7007,"fn":7008,"description":7009,"org":7010,"tags":7011,"stars":24,"repoUrl":25,"updatedAt":7019},"rw-integrate-audio","integrate Runway audio APIs","Help users integrate Runway audio APIs (TTS, sound effects, voice isolation, dubbing)",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7012,7013,7014,7015,7016],{"name":19,"slug":20,"type":16},{"name":6977,"slug":6978,"type":16},{"name":14,"slug":15,"type":16},{"name":9,"slug":8,"type":16},{"name":7017,"slug":7018,"type":16},"Speech","speech","2026-04-08T04:42:10.081814",{"slug":7021,"name":7021,"fn":7022,"description":7023,"org":7024,"tags":7025,"stars":24,"repoUrl":25,"updatedAt":7037},"rw-integrate-character-embed","embed Runway characters in React apps","Help users embed Runway Character avatar calls in React apps using the @runwayml\u002Favatars-react SDK",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7026,7027,7030,7033,7034],{"name":19,"slug":20,"type":16},{"name":7028,"slug":7029,"type":16},"Frontend","frontend",{"name":7031,"slug":7032,"type":16},"React","react",{"name":9,"slug":8,"type":16},{"name":7035,"slug":7036,"type":16},"UI Components","ui-components","2026-04-08T04:42:08.849481",{"slug":7039,"name":7039,"fn":7040,"description":7041,"org":7042,"tags":7043,"stars":24,"repoUrl":25,"updatedAt":7048},"rw-integrate-characters","integrate Runway conversational characters","Help users create Runway Characters (GWM-1 avatars) and integrate real-time conversational sessions into their apps",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7044,7045,7046,7047],{"name":19,"slug":20,"type":16},{"name":6977,"slug":6978,"type":16},{"name":14,"slug":15,"type":16},{"name":9,"slug":8,"type":16},"2026-04-08T04:42:06.171483",{"slug":7050,"name":7050,"fn":7051,"description":7052,"org":7053,"tags":7054,"stars":24,"repoUrl":25,"updatedAt":7068},"rw-integrate-documents","add documents to Runway Characters","Help users add knowledge base documents to Runway Characters for domain-specific conversations",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7055,7058,7061,7064,7067],{"name":7056,"slug":7057,"type":16},"Agents","agents",{"name":7059,"slug":7060,"type":16},"AI Context","ai-context",{"name":7062,"slug":7063,"type":16},"Documents","documents",{"name":7065,"slug":7066,"type":16},"Knowledge Management","knowledge-management",{"name":9,"slug":8,"type":16},"2026-04-08T04:42:04.95186",{"slug":7070,"name":7070,"fn":7071,"description":7072,"org":7073,"tags":7074,"stars":24,"repoUrl":25,"updatedAt":7079},"rw-integrate-image","integrate Runway image generation APIs","Help users integrate Runway image generation APIs (text-to-image with reference images)",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7075,7076,7077,7078],{"name":19,"slug":20,"type":16},{"name":14,"slug":15,"type":16},{"name":6991,"slug":6992,"type":16},{"name":9,"slug":8,"type":16},"2026-04-08T04:42:11.322008",{"items":7081,"total":4798},[7082,7089,7094,7100,7107,7114,7121],{"slug":6917,"name":6917,"fn":6918,"description":6919,"org":7083,"tags":7084,"stars":24,"repoUrl":25,"updatedAt":6930},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7085,7086,7087,7088],{"name":6923,"slug":6924,"type":16},{"name":19,"slug":20,"type":16},{"name":6927,"slug":6928,"type":16},{"name":22,"slug":23,"type":16},{"slug":6932,"name":6932,"fn":6933,"description":6934,"org":7090,"tags":7091,"stars":24,"repoUrl":25,"updatedAt":6939},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7092,7093],{"name":19,"slug":20,"type":16},{"name":9,"slug":8,"type":16},{"slug":6941,"name":6941,"fn":6942,"description":6943,"org":7095,"tags":7096,"stars":24,"repoUrl":25,"updatedAt":6953},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7097,7098,7099],{"name":6947,"slug":6948,"type":16},{"name":6950,"slug":6951,"type":16},{"name":9,"slug":8,"type":16},{"slug":6955,"name":6955,"fn":6956,"description":6957,"org":7101,"tags":7102,"stars":24,"repoUrl":25,"updatedAt":6968},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7103,7104,7105,7106],{"name":19,"slug":20,"type":16},{"name":6962,"slug":6963,"type":16},{"name":6965,"slug":6966,"type":16},{"name":9,"slug":8,"type":16},{"slug":6970,"name":6970,"fn":6971,"description":6972,"org":7108,"tags":7109,"stars":24,"repoUrl":25,"updatedAt":6981},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7110,7111,7112,7113],{"name":6923,"slug":6924,"type":16},{"name":6977,"slug":6978,"type":16},{"name":14,"slug":15,"type":16},{"name":9,"slug":8,"type":16},{"slug":6983,"name":6983,"fn":6984,"description":6985,"org":7115,"tags":7116,"stars":24,"repoUrl":25,"updatedAt":6994},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7117,7118,7119,7120],{"name":6923,"slug":6924,"type":16},{"name":14,"slug":15,"type":16},{"name":6991,"slug":6992,"type":16},{"name":9,"slug":8,"type":16},{"slug":6996,"name":6996,"fn":6997,"description":6998,"org":7122,"tags":7123,"stars":24,"repoUrl":25,"updatedAt":7005},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7124,7125,7126,7127],{"name":6923,"slug":6924,"type":16},{"name":14,"slug":15,"type":16},{"name":9,"slug":8,"type":16},{"name":22,"slug":23,"type":16}]