---
title: "create model"
method: POST
path: "/api/v1/model"
tags: ["model"]
---

# create model

`POST /api/v1/model`

create model

## Request body

- DomainCreateModelReq
  - `api_header` string
  - `api_key` string
  - `api_version` string — for azure openai
  - `base_url` string, required
  - `model` string, required
  - `parameters` GithubComChaitinPandaWikiDomainModelParam
    - `context_window` integer
    - `max_tokens` integer
    - `r1_enabled` boolean
    - `support_computer_use` boolean
    - `support_images` boolean
    - `support_prompt_cache` boolean
    - `temperature` number
  - `provider` 'BaiZhiCloud' | 'BaiZhiCloudModelStore', required
  - `type` 'chat' | 'embedding' | 'rerank' | 'analysis' | 'analysis-vl', required

## Response `200`

OK

- DomainResponse
  - `data` unknown
  - `message` string
  - `success` boolean

---

[API](https://skmtc.dev/chaitin/apis/panda-wiki-api.md) · [All operations](https://skmtc.dev/chaitin/apis/panda-wiki-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chaitin/panda-wiki-api/revisions/c088839a56db/schema)
