Create Model
const url = 'https://example.com/v1/models';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"id":"example","provider":"example","upstream":"","kind":"decision","note":"","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 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.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
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.
The provider it is asked through, by name or id.
What the provider calls it, e.g. the name vLLM serves it under. Defaults to the id.
A decision model, or an LLM with structured outputs.
What answers, to read in results later: e.g. the base model and revision, the checkpoint’s step and training run.
Responses
Section titled “Responses”Successful Response
object
recommended for the ones to try first; others (budget, accurate) to filter by.
On rowlab’s own list, offered first. The rest of OpenRouter’s catalog can be asked too.
What its provider calls it, for the organisation’s own.
What answers, e.g. a checkpoint’s revision or training run.
Example
{ "kind": "decision", "upstream": "", "note": ""}Validation Error
object
object
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}