Set Workspace Models
curl --request PUT \
--url https://{tenant_id}.api.useago.com/api/v1/workspace-models \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"default_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fast_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cheap_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reasoning_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"backup_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/workspace-models"
payload = {
"default_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fast_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cheap_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reasoning_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"backup_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
default_model_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
fast_model_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
cheap_model_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
reasoning_model_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
backup_model_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/workspace-models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"default_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fast_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cheap_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reasoning_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"backup_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}LLM Models
Set Workspace Models
Replace every tier: an omitted optional tier, the backup included, is unset.
PUT
/
api
/
v1
/
workspace-models
Set Workspace Models
curl --request PUT \
--url https://{tenant_id}.api.useago.com/api/v1/workspace-models \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"default_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fast_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cheap_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reasoning_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"backup_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/workspace-models"
payload = {
"default_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fast_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cheap_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reasoning_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"backup_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
default_model_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
fast_model_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
cheap_model_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
reasoning_model_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
backup_model_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/workspace-models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"default_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fast_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cheap_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reasoning_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"backup_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Body
application/json
