POST
/
v1
/
models
curl --request POST \
  --url https://api.lunary.ai/v1/models \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "pattern": "<string>",
  "unit": "TOKENS",
  "inputCost": 123,
  "outputCost": 123,
  "tokenizer": "<string>",
  "startDate": "2023-11-07T05:31:56Z"
}'
{
  "id": "<string>",
  "name": "<string>",
  "pattern": "<string>",
  "unit": "TOKENS",
  "inputCost": 123,
  "outputCost": 123,
  "tokenizer": "<string>",
  "startDate": "2023-11-07T05:31:56Z",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Body

application/json

Response

200 - application/json

Successful response

The response is of type object.