You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(novita): add Sora 2 (T2V/I2V) + Pro request shapes
Wires Novita's `/v3/async/sora-2-text2video` and
`/v3/async/sora-2-img2video` endpoints. Sora 2's `professional` body
flag toggles the Pro tier (1024×1792 / 1792×1024 sizes, 1080p
resolution); rather than expose it to callers we route the Pro/non-Pro
distinction through separate enum variants and force the body field
server-side. This keeps the user-facing model identity stable: the
operator picks Pro by routing to the matching variant, not by passing
an extra param.
Allowed body keys per shape (per Novita docs):
- Sora2TextToVideo / Sora2ProTextToVideo: `size`, `duration`
- Sora2ImageToVideo / Sora2ProImageToVideo: `image`, `resolution`,
`duration`. `image` is a single field accepting either a URL or a
Base64 string — no URL/Base64 split like Veo's I2V shape.
`prompt` is required for all four (validated upstream). All four
hit `/v3/async/...` endpoints, so they ride the existing
`async_submission = true` polling path.
0 commit comments