Models

Create a new model

POST
/v1/models
curl --request POST \
  --url https://api.lunary.ai/v1/models \
  --header 'Authorization: Bearer <api_key>' \
  --header 'Content-Type: application/json' \
  --data '{}'

Request Body

PropertyTypeDescription
namestring
patternstring
unitstring
inputCostnumber
outputCostnumber
tokenizerstring
startDatestring

Responses

200

Successful response

PropertyTypeDescription
idstring
namestring
patternstring
unitstring
inputCostnumber
outputCostnumber
tokenizerstring
startDatestring
createdAtstring
updatedAtstring

Questions? We're here to help.

Email