- 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.
34 lines
1.1 KiB
Markdown
34 lines
1.1 KiB
Markdown
# 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](../jsx/generate.md)). No tool generates: asset generation is declared in the project module and produced on mount.
|
|
|
|
## Output
|
|
|
|
One JSON object:
|
|
|
|
```ts
|
|
{
|
|
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
|
|
}>;
|
|
}
|
|
```
|