Package Exports
- @twick/ai-models
- @twick/ai-models/dist/index.js
- @twick/ai-models/dist/index.mjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@twick/ai-models) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@twick/ai-models
Model catalog and types for Twick generative AI integration. No UI or SDK dependencies.
Exports
Types
ModelInfo– Endpoint metadata (provider, endpointId, label, category, dimensions, etc.)ModelDimension–{ width, height, label, preset? }AIModelCategory–"image" | "video" | "music" | "voiceover"AIModelProvider–"fal" | "runware"IGenerationPollingResponse–{ status, url?, duration?, error? }
Catalog
FAL_IMAGE_ENDPOINTS,FAL_VIDEO_ENDPOINTS,FAL_ENDPOINTSRUNWARE_IMAGE_ENDPOINTS,RUNWARE_VIDEO_ENDPOINTS,RUNWARE_ENDPOINTSALL_MODELS
Usage
import {
ModelInfo,
IGenerationPollingResponse,
FAL_IMAGE_ENDPOINTS,
FAL_VIDEO_ENDPOINTS,
} from "@twick/ai-models";
// Use in Studio UI for model picker
const models = FAL_IMAGE_ENDPOINTS.filter((m) => m.category === "image");Model Sync Scripts
To keep the catalog in sync with provider APIs, port and run from videosos-main:
- FAL:
scripts/update-fal-endpoints.ts– fetches available endpoints from FAL API - Runware:
scripts/merge-runware-models.ts– merges Runware model list
These scripts should write updated catalog entries into src/catalog.ts.