docs(video): describe mode-aware generation capabilities

This commit is contained in:
Vincent Koc
2026-04-06 13:25:45 +01:00
parent 45875ed532
commit d7086526b0
2 changed files with 72 additions and 4 deletions

View File

@@ -592,9 +592,20 @@ API key auth, and dynamic model resolution.
id: "acme-ai",
label: "Acme Video",
capabilities: {
maxVideos: 1,
maxDurationSeconds: 10,
supportsResolution: true,
generate: {
maxVideos: 1,
maxDurationSeconds: 10,
supportsResolution: true,
},
imageToVideo: {
enabled: true,
maxVideos: 1,
maxInputImages: 1,
maxDurationSeconds: 5,
},
videoToVideo: {
enabled: false,
},
},
generateVideo: async (req) => ({ videos: [] }),
});
@@ -631,6 +642,12 @@ API key auth, and dynamic model resolution.
recommended pattern for company plugins (one plugin per vendor). See
[Internals: Capability Ownership](/plugins/architecture#capability-ownership-model).
For video generation, prefer the mode-aware capability shape shown above:
`generate`, `imageToVideo`, and `videoToVideo`. The older flat fields such
as `maxInputImages`, `maxInputVideos`, and `maxDurationSeconds` still work
as aggregate fallback caps, but they cannot describe per-mode limits or
disabled transform modes as cleanly.
</Step>
<Step title="Test">