Documentation Index
Fetch the complete documentation index at: https://docs.nano-gpt.com/llms.txt
Use this file to discover all available pages before exploring further.
Personalized Models API
Curated, OpenAI‑compatible model listing scoped to each account’s preferences. This endpoint returns only the text models you have marked as “visible” in Settings → Models, regardless of whether they are subscription or paid models.- GET
/api/personalized/v1/models
- Canonical models list:
GET /api/v1/models - Subscription‑only list:
GET /api/subscription/v1/models - Paid‑only list:
GET /api/paid/v1/models
Compatibility & Response Shape
The response mirrors OpenAI’s Models API:?detailed=true to include additional fields like name, description, context_length, capabilities, pricing, icon_url, and cost_estimate.
Authentication
An API key is required.Authorization: Bearer <api_key>- or
x-api-key: <api_key>
401.
Personalization Rules
- The list is filtered by your account’s visible text models (configured in the NanoGPT web app under Settings → Models → “Visible Text Models”).
- This endpoint ignores the user preference “Also show paid models.” If you marked paid models as visible, they appear here even if you generally hide paid models elsewhere.
- If you have not set any preferences, the endpoint falls back to NanoGPT defaults (
visible === truein our model registry).
Examples
Basic list:Managing Your Visible Models
The recommended way to customize your personalized list is via the NanoGPT web UI:- Open Settings → Models → “Visible Text Models”.
- Toggle visibility and categories as needed; changes are saved to your account.
- GET
/api/user/model-visibility— returns your saved preferences as{ modelPreferences: { visibleTextModels, modelCategories } }. - POST
/api/user/model-visibility— upserts preferences. Cookie‑based session auth is required (not API‑key auth).
Notes
- This route is explicitly dynamic (no shared caching across keys).
- Model ids and metadata evolve as providers update their catalogs; keep consumers resilient to new fields.
- Personalized results may include paid models even if
/api/v1/modelshides them for your account (by design).