aimlapi-models
v0.2.0
Published
Offline JSON-backed AI/ML API / 302.ai unified proxy catalog (200+ models).
Readme
aimlapi-models
Offline JSON-backed AI/ML API / 302.ai unified proxy catalog (200+ models).
Unofficial / community-maintained snapshot. Edit
data/*.jsonthen runnpm run build:data.
Install
npm install aimlapi-modelsQuick start
import { listModels, getModel, getMetadata } from "aimlapi-models";
const meta = getMetadata();
const models = listModels({ status: "active" });
const one = getModel(models[0]?.id ?? "");
const tagging = meta.requestTagging;
// tagging?.support === "Native (Pass-through & Dashboard tracking)"Request tagging
getMetadata().requestTagging describes how AI/ML API (302.ai) attributes calls. 0.2.0 support: Native (Pass-through & Dashboard tracking).
userandmetadata(payload) — passed through to the upstream modelX-User-IdandX-App-Id(header)- Sub-Key / Access Token (
dashboard) — user-level cost breakdowns
Dataset pin: data-2026.09.24. Package version: 0.2.0.
Updating the catalog
- Edit
data/providers.jsonand/ordata/models.json - Bump
dataVersion/generatedAtindata/metadata.json - Run
npm run build:data - Run
npm testand publish
License
MIT. Not affiliated with AI/ML API (302.ai). Site: https://302.ai
Monorepo
See docs/MONOREPO.md. Explore in the UI: npm run ui.
