---
title: "Create a model"
method: POST
path: "/api/create"
---

# Create a model

`POST /api/create`

## Request body

- CreateRequest
  - `model` string, required — Name for the model to create
  - `from` string — Existing model to create from
  - `template` string — Prompt template to use for the model
  - `renderer` string — Name of the renderer for the model
  - `parser` string — Name of the parser for the model
  - `license` union — License string or list of licenses for the model
    - string
    - string[]
  - `system` string — System prompt to embed in the model
  - `parameters` object — Key-value parameters for the model
  - `messages` ChatMessage[] — Message history to use for the model
    - `role` 'system' | 'user' | 'assistant' | 'tool', required — Author of the message.
    - `content` string, required — Message text content
    - `images` string[] — Optional list of inline images for multimodal models
    - `tool_calls` ToolCall[] — Tool call requests produced by the model
      - `function` object
        - `name` string, required — Name of the function to call
        - `description` string — What the function does
        - `arguments` object — JSON object of arguments to pass to the function
  - `quantize` string — Quantization level to apply (e.g. `q4_K_M`, `q8_0`)
  - `stream` boolean — Stream status updates

## Response `200`

Stream of create status updates

- StatusResponse
  - `status` string — Current status message

---

[API](https://skmtc.net/ac/apis/ollama-api.md) · [All operations](https://skmtc.net/ac/apis/ollama-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ac/ollama-api/versions/c2056a7f42d9/schema)
