---
title: "List Draft Provider Models Route"
method: POST
path: "/api/v1/providers/models/draft"
tags: ["providers"]
---

# List Draft Provider Models Route

`POST /api/v1/providers/models/draft`

## Request

- Base URL: `https://cp.xenovia.io` (the document declares no server; this is the origin it was published from)
- URL: `https://cp.xenovia.io/api/v1/providers/models/draft`
- Auth: none declared

The models an unsaved provider form can call (the runtime lists them,
else the catalog suggests them). Validated like the draft test; stores
nothing.

## Headers

- `Authorization` string, nullable

## Request body

- ProviderModelsDraft: The draft connection test's body, for listing the models an unsaved form can call. The model is not needed to list them.
  - `provider` string, required
  - `model` string, nullable
  - `params` object, nullable
  - `api_token` string, nullable
  - `provider_id` string, uuid, nullable

## Response `200`

Successful Response

- ProviderModelList: The models a provider can call. ``live`` is the upstream's own list (through the runtime, or OpenRouter's public list); ``directory`` is the public model directory's list for the entry (models.dev), answered when no live list can be had (no key yet, no discovery, a failed or unconfigured runtime); ``catalog`` is the catalog's suggestions, when the entry has no directory list or the directory cannot be reached. ``error`` says why a live list was refused (the runtime's fixed message), or is null.
  - `models` ProviderModelOption[], required
    - `id` string, required
    - `name` string, required
  - `source` 'live' | 'directory' | 'catalog', required
  - `error` string, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-04** `2f4b4b338b8f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/xenovia/apis/controlplane/changes/api/v1/providers/models/draft/post.md)

---

[API](https://skmtc.dev/xenovia/apis/controlplane.md) - [All operations](https://skmtc.dev/xenovia/apis/controlplane/llms.txt) - [OpenAPI document](https://skmtc.dev/xenovia/apis/controlplane/revisions/3e25bef24f8f?raw)
