---
title: "Save Model"
method: POST
path: "/models"
tags: ["models"]
---

# Save Model

`POST /models`

## Request

- Base URL: `https://api.morphik.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.morphik.ai/models`
- Auth: none declared

Save a custom model configuration.

## Headers

- `authorization` string, nullable

## Request body

- SaveModelRequest: Request to save a custom model.
  - `name` string, required
  - `provider` string, required
  - `config` object, required

## Response `200`

Successful Response

- ModelResponse: Response for a saved model.
  - `id` string, required
  - `name` string, required
  - `provider` string, required
  - `config` object, required
  - `created_at` string, required
  - `updated_at` string, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-01-22** `2d9291c3821d`: 2 info
  - `header` request parameter `authorization` list-of-types was widened by adding types `null`
  - for the `header` request parameter `authorization`, the type was generalized from `string` to no type

[Operation history](https://skmtc.dev/morphik-org/apis/morphik-api/changes/models/post.md)

---

[API](https://skmtc.dev/morphik-org/apis/morphik-api.md) - [All operations](https://skmtc.dev/morphik-org/apis/morphik-api/llms.txt) - [OpenAPI document](https://skmtc.dev/morphik-org/apis/morphik-api/revisions/45d77e08d406?raw)
