Skip to main content
The public model catalog is served from apps/web at:
GET /api/v1/infrastructure/ai/models
Without pagination parameters, the route keeps the legacy response shape and returns an array of language models. For catalog pages and sync jobs, prefer the paginated contract:
GET /api/v1/infrastructure/ai/models?format=paginated&type=all&page=1&limit=60
The paginated response is:
{
  data: Model[];
  pagination: {
    page: number;
    limit: number;
    total: number;
  };
}
Supported filters include type, provider, tag, enabled, and search. Use type=all when a caller needs language, image, embedding, and video models. In development, the AI credits admin model sync defaults to the Tuturuuu production public catalog before falling back to the Vercel AI SDK model source. This keeps local catalogs close to production while preserving the explicit Vercel source for refreshing upstream gateway metadata. ai_gateway_models stores provider-owned catalog metadata, so its text fields are exempt from the global strict text-field length trigger and generated text check constraints. JSON payload fields on the same table still keep the standard payload-size checks.