POST
/
api
/
public
/
models
{
  "modelName": "string",
  "matchPattern": "string",
  "startDate": "1970-01-01T00:00:00.000Z",
  "unit": "CHARACTERS",
  "inputPrice": 0,
  "outputPrice": 0,
  "totalPrice": 0,
  "tokenizerId": "string",
  "tokenizerConfig": null
}
{
  "id": "<string>",
  "modelName": "<string>",
  "matchPattern": "<string>",
  "startDate": "<string>",
  "unit": "<string>",
  "inputPrice": 123,
  "outputPrice": 123,
  "totalPrice": 123,
  "tokenizerId": "<string>",
  "tokenizerConfig": {},
  "isLangfuseManaged": true
}
{
  "modelName": "string",
  "matchPattern": "string",
  "startDate": "1970-01-01T00:00:00.000Z",
  "unit": "CHARACTERS",
  "inputPrice": 0,
  "outputPrice": 0,
  "totalPrice": 0,
  "tokenizerId": "string",
  "tokenizerConfig": null
}

Response Description

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

id
string
required

Unique identifier of the item.

modelName
string
required

Name of the model associated with the item.

matchPattern
string
required

Match pattern used for the item.

startDate
date
required

Start date for the item’s configuration.

unit
string
required

Unit type, e.g., CHARACTERS.

inputPrice
integer
required

Price for input usage.

outputPrice
integer
required

Price for output usage.

totalPrice
integer
required

Total price for the item.

tokenizerId
string
required

Identifier of the tokenizer.

tokenizerConfig
object | null

Configuration of the tokenizer (nullable).

isLangfuseManaged
boolean
required

Indicates whether the item is managed by Langfuse.

Code Response

Exemples of Response Code

200

Request Successful Response

400

Request Failure