konstantin-paulus 1539fbc2e9 Refactor CLI command names from dapi to diffusion across documentation and codebase
- Updated all instances of the CLI command from `dapi` to `diffusion` in README, documentation, and source files for consistency.
- Adjusted related scripts and examples to reflect the new command name, enhancing clarity for users and developers.
- Ensured backward compatibility by maintaining `dapi` as an alias where necessary.
2026-09-23 14:49:01 +02:00

1.1 KiB

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 diffusion 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
  }>;
}