Skip to main content
PUT
Select the default model

Authorizations

better-auth.session_token
string
cookie
required

Browser session cookie set by Better Auth sign-in.

Body

application/json
provider
enum<string>
required
Available options:
zai,
opencode,
openai-compatible
modelId
string
required
Minimum string length: 1

Response

The new selection.