Select the model for a provider
curl --request PUT \
--url https://aquila.attaxr.com/api/provider-keys/{provider}/model \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"model": "<string>"
}
'const options = {
method: 'PUT',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({model: '<string>'})
};
fetch('https://aquila.attaxr.com/api/provider-keys/{provider}/model', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/provider-keys/{provider}/model"
payload = { "model": "<string>" }
headers = {
"cookie": "better-auth.session_token=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Provider Keys
Select the model for a provider
Stores the user’s model choice for one provider, or clears it with null.
PUT
/
api
/
provider-keys
/
{provider}
/
model
Select the model for a provider
curl --request PUT \
--url https://aquila.attaxr.com/api/provider-keys/{provider}/model \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"model": "<string>"
}
'const options = {
method: 'PUT',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({model: '<string>'})
};
fetch('https://aquila.attaxr.com/api/provider-keys/{provider}/model', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/provider-keys/{provider}/model"
payload = { "model": "<string>" }
headers = {
"cookie": "better-auth.session_token=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
apiKeyCookieapiKeyHeaderbearerAuth
Browser session cookie set by Better Auth sign-in.
Path Parameters
Body
application/json
Required string length:
1 - 128Pattern:
^[\w./:-]+$Response
The updated key record.

