Get Available Models
GET
/api/ai-configs/models
const url = 'http://localhost:8080/api/ai-configs/models';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/api/ai-configs/modelsAll supported providers and their models: {provider: [{id, label, recommended?, cheap?, judge_default?}]}. The first entry of each list is the default; the frontend reads this.
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
example