Skip to content

Create Model

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

Add a model of the organisation’s own, asked through one of its providers: e.g. one served with vLLM on a GPU, or a fine-tuned checkpoint. It is asked a short question first, and added once it answers. Adding the same model (provider, upstream name and kind) again returns it, or brings it back if it was deleted; another model under an id in use, or used before, is refused.

Media typeapplication/json
ModelInput
object
id
required
Id

Rowlab’s id for it, as answer columns and comparisons show it: lowercase letters, digits, ., _ and -, e.g. fallacy-ft-step-2000. Never given to another model, even once deleted.

string
provider
required
Provider

The provider it is asked through, by name or id.

string
upstream
Upstream

What the provider calls it, e.g. the name vLLM serves it under. Defaults to the id.

string
""
kind
Kind

A decision model, or an LLM with structured outputs.

string
default: decision
Allowed values: decision llm
note
Note

What answers, to read in results later: e.g. the base model and revision, the checkpoint’s step and training run.

string
""
prompt_price
Any of:
number
completion_price
Any of:
number

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": {}
}
]
}