---
title: "Fetch custom provider models"
method: POST
path: "/provider/custom-models"
---

# Fetch custom provider models

`POST /provider/custom-models`

Fetch models from an OpenAI-compatible custom provider endpoint.

## Query parameters

- `directory` string
- `workspace` string

## Request body

- object
  - `baseURL` string, required
  - `apiKey` string
  - `headers` object

## Response `200`

Custom provider models

- object
  - `models` object[], required
    - `id` string, required
    - `name` string, required

## Other responses

- `400` — Bad request

---

[API](https://skmtc.dev/isogonic/apis/codeplane.md) · [All operations](https://skmtc.dev/isogonic/apis/codeplane/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/isogonic/codeplane/revisions/e787ab2e6692/schema)
