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

# Save Model

`POST /models`

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/format was generalized from `string`/`` to ``/``

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

---

[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/2d9291c3821d/schema)
