---
title: "Create a model"
method: POST
path: "/models"
tags: ["models"]
---

# Create a model

`POST /models`

Persists a new model and adds it to the live registry. The API key is encrypted at rest. Requires system admin.

## Request body

- InternalApiAdminCreateModelRequest
  - `aliases` string[] — Aliases are optional short names that resolve to this model in proxy requests.
  - `api_key` string
  - `azure_api_version` string
  - `azure_deployment` string
  - `base_url` string
  - `input_price_per_1m` number
  - `max_context_tokens` integer
  - `name` string
  - `output_price_per_1m` number
  - `provider` string

## Response `201`

Created

- InternalApiAdminModelResponse
  - `aliases` string[]
  - `azure_api_version` string
  - `azure_deployment` string
  - `base_url` string
  - `created_at` string
  - `id` string
  - `input_price_per_1m` number
  - `is_active` boolean
  - `max_context_tokens` integer
  - `name` string
  - `output_price_per_1m` number
  - `provider` string
  - `source` string
  - `updated_at` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `409` — Conflict
- `500` — Internal Server Error

---

[API](https://skmtc.dev/voidmind-io/apis/untitled-api.md) · [All operations](https://skmtc.dev/voidmind-io/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/voidmind-io/untitled-api/revisions/1405e7d9c155/schema)
