Skip to content

novita: add Wan 2.7 T2V / I2V / R2V / Video-Edit request shapes#8

Merged
duanbing merged 1 commit into
mainfrom
wan-2-7
May 15, 2026
Merged

novita: add Wan 2.7 T2V / I2V / R2V / Video-Edit request shapes#8
duanbing merged 1 commit into
mainfrom
wan-2-7

Conversation

@duanbing

Copy link
Copy Markdown

Four new NovitaRequestShape variants + body building for Wan 2.7 family. Used by parent repo's Wan 2.7 model PR (RouterBase/RouterBase#TBD).

Four new NovitaRequestShape variants for the Wan 2.7 family on Novita:

  - Wan27TextToVideo       → /v3/async/wan2.7-t2v
  - Wan27ImageToVideo      → /v3/async/wan2.7-i2v
  - Wan27ReferenceToVideo  → /v3/async/wan2.7-r2v
  - Wan27VideoEdit         → /v3/async/wan2.7-videoedit

Body handling:
  - T2V: prompt (auto), duration (int 2–15), size, seed, audio_url,
    negative_prompt, watermark, prompt_extend
  - I2V: prompt (auto), image_url (remapped from image_urls[0]),
    duration, resolution (720P|1080P), seed, negative_prompt,
    watermark, prompt_extend, driving_audio_url, last_frame_url.
    `first_clip_url` (video continuation) deliberately not surfaced —
    mutually exclusive with image_url; would need its own variant.
  - R2V: prompt (auto), duration (int 2–10), size, seed, audio,
    shot_type (single|multi), watermark, negative_prompt. The Novita
    body wants `media` — an array of {type:image|video, url}; built
    here by merging image_urls + video_urls from the input.
  - Video Edit: video_url (remapped from video_urls[0], required),
    prompt (auto, optional), duration (int 0–10; 0 preserves input
    length), ratio (5 enum), resolution, audio_setting (auto|origin),
    seed, watermark, prompt_extend, negative_prompt, plus up to 3
    `reference_image_url`/`_2`/`_3` slots remapped from image_urls.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the Contributor License Agreement (CLA) and hereby sign the CLA.


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@duanbing duanbing merged commit 8150b3e into main May 15, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant