Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.11 KB

File metadata and controls

33 lines (25 loc) · 1.11 KB

models

List available AI generation models and their per-model constraints (durations, aspect ratios, features), for generate.* asset declarations in a project module.

MCP tool models
CLI dapi models [type]

Input

Field Type CLI Description
type "image" | "video" | "audio" [type] filter to one kind of model, image, video, or audio (default: all three)

Use it to discover valid model ids and the per-model constraints (durations, aspect ratios, features) to set on an asset declaration (see jsx/generate.md). No tool generates: asset generation is declared in the project module and produced on mount.

Output

One JSON object:

{
  models: Array<{
    type:          "image" | "video" | "audio";
    id:            string;     // the model id to set on a generate.* declaration
    name:          string;
    durations?:    string[];   // video only, e.g. ["5s","10s"]
    aspectRatios?: string[];   // video only
    features?:     Array<"start-frame" | "end-frame" | "audio">;  // video only
  }>;
}