models/list and models/credentials
models/list returns every model you can use. models/credentials returns your connected providers, without their keys. Neither takes input.
models/connect
POST /rpc/models/connect connects a provider with an API key or a server address.
string
required
The provider id.
string | null
required
An existing connection to update, or null to add a new one.
string
The key.
string
For an OpenAI-compatible server.
string
A name for this connection.
string
The model to use.
boolean
default:"true"
Make this the main model.
Subscription sign-in
Signing in with a Claude or ChatGPT subscription takes several calls:models/beginOAuthwith theproviderandcredentialId: null. SetcodePage: truewhen you cannot receive a redirect; the provider then shows a code. Returns aloginIdand where to send the person.- If the provider showed a code,
models/submitOAuthCodewith theloginIdandcode. - Poll
models/completeOAuthwith theloginIduntilstatusisready(orerror). models/finishOAuthwith theloginIdsaves the connection.
models/cancelOAuth abandons a sign-in.
Choosing models
To give one bot its own model, use
bots/update with modelProvider and modelId.