/fal-ai/vidu/reference-to-image

POST /fal-ai/vidu/reference-to-image

MethodPOST
Path/fal-ai/vidu/reference-to-image
Typehttp
Status1
Module2102810
Folder61445274

说明

概览

MethodPOST
Path/fal-ai/vidu/reference-to-image
Typehttp
Status1
Module2102810
Folder61445274

参数

{
  "query": [],
  "path": [],
  "cookie": [],
  "header": []
}

请求体

{
  "type": "application/json",
  "parameters": [],
  "jsonSchema": {
    "type": "object",
    "properties": {
      "prompt": {
        "type": "string",
        "description": "提示词"
      },
      "reference_image_urls": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "参考图片url"
      },
      "aspect_ratio": {
        "type": "string",
        "description": "图片比例,枚举值:1:1、16:9、9:16"
      }
    },
    "required": [
      "prompt",
      "reference_image_urls"
    ],
    "x-apifox-orders": [
      "prompt",
      "reference_image_urls",
      "aspect_ratio"
    ]
  },
  "mediaType": "",
  "examples": [
    {
      "mediaType": "application/json",
      "value": "{\r\n  \"prompt\": \"The little devil is looking at the apple on the beach and walking around it.\",\r\n  \"reference_image_urls\": [\r\n    \"https://storage.googleapis.com/falserverless/web-examples/vidu/new-examples/reference1.png\",\r\n    \"https://storage.googleapis.com/falserverless/web-examples/vidu/new-examples/reference2.png\",\r\n    \"https://storage.googleapis.com/falserverless/web-examples/vidu/new-examples/reference3.png\"\r\n  ],\r\n  \"aspect_ratio\": \"16:9\"\r\n}"
    }
  ],
  "oasExtensions": ""
}

响应

[
  {
    "id": 767378928,
    "name": "成功",
    "code": 200,
    "contentType": "json",
    "jsonSchema": {
      "type": "object",
      "properties": {},
      "x-apifox-orders": []
    },
    "itemSchema": {},
    "description": "",
    "mediaType": "",
    "headers": [],
    "oasExtensions": ""
  }
]

响应示例

[
  {
    "name": "成功示例",
    "responseId": 767378928,
    "data": "{\r\n    \"status\": \"IN_QUEUE\",\r\n    \"request_id\": \"405a114e-04bd-463a-a98c-895502cfdce9\",\r\n    \"response_url\": \"https://queue.fal.run/fal-ai/vidu/requests/405a114e-04bd-463a-a98c-895502cfdce9\",\r\n    \"status_url\": \"https://queue.fal.run/fal-ai/vidu/requests/405a114e-04bd-463a-a98c-895502cfdce9/status\",\r\n    \"cancel_url\": \"https://queue.fal.run/fal-ai/vidu/requests/405a114e-04bd-463a-a98c-895502cfdce9/cancel\",\r\n    \"logs\": null,\r\n    \"metrics\": {},\r\n    \"queue_position\": 0\r\n}",
    "description": "",
    "oasKey": "",
    "oasExtensions": "",
    "id": 708600681
  }
]