---
title: "Create Custom Model"
method: POST
path: "/model-config/custom-models"
tags: ["model-config"]
---

# Create Custom Model

`POST /model-config/custom-models`

Create a new custom model.

## Headers

- `authorization` string

## Request body

- CustomModelCreate — Request model for creating a custom model.
  - `name` string, required
  - `provider` string, required
  - `model_name` string, required
  - `config` object, required

## Response `200`

Successful Response

- CustomModel — Custom model definition.
  - `id` string, required
  - `name` string, required
  - `provider` string, required
  - `model_name` string, required
  - `config` object, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/morphik-org/apis/fastapi.md) · [All operations](https://skmtc.dev/morphik-org/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/morphik-org/fastapi/revisions/9ade02dd7b1d/schema)
