API reference · Routing
Point a short name at a model
POST/api/aliasesSigned in session
An alias carries no slash, so it can never shadow a vendor/model id. Resolution is one level deep, so a chain cannot loop. Targets may not start with preset/. A hundred per account.
Request body
application/json, required
| Field | Type | What it is |
|---|---|---|
| aliasrequired | string | |
| targetrequired | string |
Example
{
"alias": "string",
"target": "string"
}Answer 200
Stored.
| Field | Type | What it is |
|---|---|---|
| ok | boolean |
Errors
- 400OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.