Skip to content

Update Model

PATCH
/v1/models/{model_id}
curl --request PATCH \
--url https://example.com/v1/models/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "note": "example", "prompt_price": 1, "completion_price": 1 }'

Change a model’s note or prices. What answers (its provider, upstream name and kind) can’t change: add a new model for that.

model_id
required
Model Id
string
Media typeapplication/json
ModelChange

What can change about a model; fields left out stay as they are.

object
note
Any of:
string
prompt_price
Any of:
number
completion_price
Any of:
number

Example generated

{
"note": "example",
"prompt_price": 1,
"completion_price": 1
}

Successful Response

Media typeapplication/json
Model
object
id
required
Id
string
name
required
Name
string
kind
required
Kind
string
Allowed values: decision llm
tags
required
Tags

recommended for the ones to try first; others (budget, accurate) to filter by.

Array<string>
listed
required
Listed

On rowlab’s own list, offered first. The rest of OpenRouter’s catalog can be asked too.

boolean
prompt_price
required
Any of:
number
completion_price
required
Any of:
number
context_length
required
Context Length
integer
provider_id
Any of:
string
upstream
Upstream

What its provider calls it, for the organisation’s own.

string
""
note
Note

What answers, e.g. a checkpoint’s revision or training run.

string
""

Example

{
"kind": "decision",
"upstream": "",
"note": ""
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}