Getting Started
Audit Logs
Datasets
- GETList datasets
- POSTCreate a new dataset
- GETGet dataset by ID or slug
- DELDelete a dataset
- PATCHUpdate a dataset
- POSTCreate a new prompt
- GETGet prompt by ID
- DELDelete a prompt
- PATCHUpdate a prompt
- GETGet prompt variation by ID
- DELDelete a prompt variation
- PATCHUpdate a prompt variation
- POSTCreate a new prompt variation
Evals
Runs
Templates
Models
Update a model
PATCH
/
v1
/
models
/
{id}
curl --request PATCH \
--url https://api.lunary.ai/v1/models/{id} \
--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"
}
Path Parameters
Body
application/json
Response
200 - application/json
Successful response
The response is of type object
.
curl --request PATCH \
--url https://api.lunary.ai/v1/models/{id} \
--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"
}