---
title: "创建模型配置"
method: POST
path: "/api/v1/users/models"
tags: ["【用户】模型管理"]
---

# 创建模型配置

`POST /api/v1/users/models`

为当前用户创建新的模型配置

## Request body

- DomainCreateModelReq
  - `api_key` string, required
  - `base_url` string, required
  - `context_limit` integer
  - `interface_type` 'openai_chat' | 'openai_responses' | 'anthropic', required
  - `is_default` boolean
  - `is_hidden` boolean
  - `model` string, required
  - `output_limit` integer
  - `provider` string, required
  - `remark` string
  - `support_image` boolean
  - `temperature` number
  - `thinking_enabled` boolean

## Response `200`

成功

- object
  - `code` integer
  - `data` DomainModel
    - `access_level` string — 访问级别 basic | pro
    - `api_key` string
    - `base_url` string
    - `context_limit` integer
    - `created_at` integer
    - `id` string
    - `interface_type` 'openai_chat' | 'openai_responses' | 'anthropic'
    - `is_default` boolean
    - `is_free` boolean
    - `is_hidden` boolean
    - `last_check_at` integer
    - `last_check_error` string
    - `last_check_success` boolean
    - `model` string
    - `output_limit` integer
    - `owner` DomainOwner
      - `id` string
      - `name` string
      - `type` 'private' | 'public' | 'team'
    - `provider` string
    - `remark` string
    - `support_image` boolean
    - `temperature` number
    - `thinking_enabled` boolean
    - `updated_at` integer
    - `weight` integer
  - `message` string

## Other responses

- `400` — 请求参数错误
- `401` — 未授权
- `500` — 服务器内部错误

---

[API](https://skmtc.net/chaitin/apis/untitled-api.md) · [All operations](https://skmtc.net/chaitin/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chaitin/untitled-api/revisions/5a5929cb17f2/schema)
