> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crazyrouter.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Runway

> 使用 Runway API 进行图生视频

> 更新日期：2026-06-06

# Runway

```
POST /runwayml/v1/image_to_video
```

使用 Runway Gen-3 模型将图片转换为视频。

## 请求参数

| 参数            | 类型      | 必填 | 说明                   |
| ------------- | ------- | -- | -------------------- |
| `model`       | string  | 否  | 模型名称，如 `gen3a_turbo` |
| `promptImage` | string  | 是  | 输入图片 URL             |
| `promptText`  | string  | 否  | 视频描述提示词              |
| `duration`    | integer | 否  | 视频时长（秒），默认 5         |
| `ratio`       | string  | 否  | 宽高比：`16:9`、`9:16`    |
| `watermark`   | boolean | 否  | 是否添加水印               |

## 请求示例

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST https://api.crazyrouter.com/runwayml/v1/image_to_video \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -d '{
      "model": "gen3a_turbo",
      "promptImage": "https://example.com/landscape.jpg",
      "promptText": "Camera slowly pans across the landscape, clouds moving in the sky",
      "duration": 5,
      "ratio": "16:9",
      "watermark": false
    }'
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://api.crazyrouter.com/runwayml/v1/image_to_video",
      headers={
          "Content-Type": "application/json",
          "Authorization": "Bearer YOUR_API_KEY"
      },
      json={
          "model": "gen3a_turbo",
          "promptImage": "https://example.com/landscape.jpg",
          "promptText": "Camera slowly pans across the landscape",
          "duration": 5,
          "ratio": "16:9"
      }
  )

  print(response.json())
  ```
</CodeGroup>

### 响应示例

```json theme={null}
{
  "id": "runway_task_abc123",
  "status": "PENDING"
}
```

***

## 查询任务

```
GET /runwayml/v1/tasks/{task_id}
```

```bash cURL theme={null}
curl https://api.crazyrouter.com/runwayml/v1/tasks/runway_task_abc123 \
  -H "Authorization: Bearer YOUR_API_KEY"
```

### 响应示例（已完成）

```json theme={null}
{
  "id": "runway_task_abc123",
  "status": "SUCCEEDED",
  "output": [
    "https://runway-output.s3.amazonaws.com/..."
  ]
}
```

### 任务状态

| 状态          | 说明   |
| ----------- | ---- |
| `PENDING`   | 等待处理 |
| `RUNNING`   | 生成中  |
| `SUCCEEDED` | 成功   |
| `FAILED`    | 失败   |
