Update Model
PATCH
/v1/models/{model_id}
const url = 'https://example.com/v1/models/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"note":"example","prompt_price":1,"completion_price":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”model_id
required
Model Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Model
object
id
required
Id
string
name
required
Name
string
kind
required
Kind
string
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
context_length
required
Context Length
integer
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>
ValidationErrorobject
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": {} } ]}