list_models
Retrieve available image, video, and audio generation models with their type and pricing information for selection.
Instructions
List all available models for image, video, and audio generation with their type and pricing
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.ts:109-133 (handler)The handleListModels function retrieves models by type and returns a formatted text output listing image, video, and audio models.
export function handleListModels() { const imageModels = getModelsByType("image"); const videoModels = getModelsByType("video"); const audioModels = getModelsByType("audio"); const formatModel = (m: (typeof models)[0]) => { let line = ` ${m.id} — ${m.name} [${m.free ? "FREE" : "PAID"}]`; if (m.price) line += ` (${m.price})`; if (m.description) line += ` — ${m.description}`; return line; }; const text = [ `IMAGE MODELS (${imageModels.length}):`, ...imageModels.map(formatModel), "", `VIDEO MODELS (${videoModels.length}):`, ...videoModels.map(formatModel), "", `AUDIO MODELS (${audioModels.length}):`, ...audioModels.map(formatModel), ].join("\n"); return { content: [{ type: "text" as const, text }] }; } - src/tools.ts:25-25 (schema)The listModelsSchema definition for the list_models tool.
export const listModelsSchema = z.object({});