Skip to main content
Video models

Wan 2.7 — Reference to video API

Reference to video with Wan 2.7: request parameters, examples and response handling.

← Wan 2.7

Endpoint: POST https://api.higgsfield.ai/wan/v2.7/reference-to-video

Endpoint ID: wan/v2.7/reference-to-video

▶Open API PlaygroundWan 2.7 · Reference to video↗

#Usage notes

  • Provide a nonempty image_urls or video_urls array. The combined number of image and video references must not exceed 5; this submission limit is not expressed in the stored JSON Schema.
  • Reference generation is limited to 2–10 seconds and aspect ratios 16:9 or 9:16.

#Quick start

Replace the example media URLs with publicly accessible URLs for your own files before submitting.

cURL
curl --request POST \
  --url https://api.higgsfield.ai/wan/v2.7/reference-to-video \
  --header "Authorization: Key ${HF_API_KEY_ID}:${HF_API_KEY_SECRET}" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: ${IDEMPOTENCY_KEY}" \
  --data '{
  "prompt": "A cinematic wide shot of ocean waves at sunset, with gentle camera movement.",
  "image_urls": [
    "https://example.com/input.jpg"
  ]
}'

#Input schema

seed integer

Seed used to control generation randomness. Minimum: 1. Maximum: 2147483646.

prompt string required

Write your prompt here

duration integer (default: 5)

Requested output duration in seconds. Minimum: 2. Maximum: 10.

image_urls array

Ordered public image reference URLs. Each item: string. Format: uri.

resolution string (default: 720p)

Output resolution tier. Allowed values: "720p", "1080p".

video_urls array

Ordered public video reference URLs. Each item: string. Format: uri.

aspect_ratio string (default: 16:9)

Output width-to-height ratio. Allowed values: "16:9", "9:16".

prompt_extend boolean (default: false)

Enable prompt expansion.

negative_prompt string

Content or visual features to avoid.

Complete JSON schema
json
{
  "if": {
    "required": [
      "image_urls"
    ],
    "properties": {
      "image_urls": {
        "type": "array",
        "minItems": 1
      }
    }
  },
  "else": {
    "required": [
      "video_urls"
    ],
    "properties": {
      "video_urls": {
        "type": "array",
        "minItems": 1
      }
    }
  },
  "type": "object",
  "title": "Wan 2.7 References",
  "required": [
    "prompt"
  ],
  "properties": {
    "seed": {
      "type": "integer",
      "maximum": 2147483646,
      "minimum": 1
    },
    "prompt": {
      "type": "string",
      "title": "Prompt",
      "description": "Write your prompt here"
    },
    "duration": {
      "type": "integer",
      "title": "Duration",
      "default": 5,
      "maximum": 10,
      "minimum": 2
    },
    "image_urls": {
      "type": "array",
      "items": {
        "type": "string",
        "title": "Image",
        "format": "uri"
      }
    },
    "resolution": {
      "enum": [
        "720p",
        "1080p"
      ],
      "type": "string",
      "default": "720p"
    },
    "video_urls": {
      "type": "array",
      "items": {
        "type": "string",
        "title": "Video",
        "format": "uri"
      }
    },
    "aspect_ratio": {
      "enum": [
        "16:9",
        "9:16"
      ],
      "type": "string",
      "title": "Aspect Ratio",
      "default": "16:9"
    },
    "prompt_extend": {
      "type": "boolean",
      "default": false
    },
    "negative_prompt": {
      "type": "string",
      "title": "Negative prompt",
      "default": ""
    }
  }
}

#Response

Submission returns a request handle. Poll status_url until status is completed, or use webhooks.

Accepted
{
  "status": "queued",
  "request_id": "REQUEST_ID",
  "status_url": "https://api.higgsfield.ai/requests/REQUEST_ID/status",
  "cancel_url": "https://api.higgsfield.ai/requests/REQUEST_ID/cancel"
}

A completed response includes the following output fields:

json
{
  "status": "completed",
  "request_id": "REQUEST_ID",
  "video": {
    "url": "https://example.com/output.mp4"
  }
}

See idempotent requests, polling, request errors and authentication for shared request handling.

Was this page helpful?
Navigation