> ## Documentation Index
> Fetch the complete documentation index at: https://docs.toolzz.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a model

> Endpoint to Create a model on toolzz analytics

<RequestExample>
  ```json Payload Example theme={null}
  {
    "modelName": "string",
    "matchPattern": "string",
    "startDate": "1970-01-01T00:00:00.000Z",
    "unit": "CHARACTERS",
    "inputPrice": 0,
    "outputPrice": 0,
    "totalPrice": 0,
    "tokenizerId": "string",
    "tokenizerConfig": null
  }
  ```
</RequestExample>

## Response Description

Below you will see the description of the Create a model response

<ResponseField name="id" type="string" required>
  Unique identifier of the item.
</ResponseField>

<ResponseField name="modelName" type="string" required>
  Name of the model associated with the item.
</ResponseField>

<ResponseField name="matchPattern" type="string" required>
  Match pattern used for the item.
</ResponseField>

<ResponseField name="startDate" type="date" required>
  Start date for the item's configuration.
</ResponseField>

<ResponseField name="unit" type="string" required>
  Unit type, e.g., CHARACTERS.
</ResponseField>

<ResponseField name="inputPrice" type="integer" required>
  Price for input usage.
</ResponseField>

<ResponseField name="outputPrice" type="integer" required>
  Price for output usage.
</ResponseField>

<ResponseField name="totalPrice" type="integer" required>
  Total price for the item.
</ResponseField>

<ResponseField name="tokenizerId" type="string" required>
  Identifier of the tokenizer.
</ResponseField>

<ResponseField name="tokenizerConfig" type="object | null">
  Configuration of the tokenizer (nullable).
</ResponseField>

<ResponseField name="isLangfuseManaged" type="boolean" required>
  Indicates whether the item is managed by Langfuse.
</ResponseField>

### Code Response

Exemples of Response Code

<ResponseField name="200">
  Request Successful Response
</ResponseField>

<ResponseField name="400">
  Request Failure
</ResponseField>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.