Skip to content
Docs

List virtual model configs

GET/__remote/api.vercel.com/ai-gateway/virtual-model-configs/list
List virtual model configs. For a team, returns all of its VMCs, or with limit or cursor one page ordered by virtualModelSlug. Across teams, pages newest-first. includeArchived=false omits archived VMCs.
/__remote/api.vercel.com/ai-gateway/virtual-model-configs/list
const response = await fetch('/__remote/api.vercel.com/ai-gateway/virtual-model-configs/list?ownerId=string&limit=123&cursor=string&includeArchived=string&teamId=string&slug=string', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);
Response
{
"cursor": "string",
"virtualModelConfigs": [
{
"allowFallbackFromFast": "false",
"baseUrl": "https://example.com",
"byokCredentialIds": [],
"caching": "auto",
"createdAt": "123",
"createdBy": "string",
"deleted": "false",
"description": "string",
"disallowPromptTraining": "false",
"displayName": "Example Name",
"has": [],
"hipaaCompliant": "false",
"inferenceRegion": {
"geoRegion": "string",
"providerRegion": "example_id",
"providers": "value",
"scope": "global"
},
"instanceId": "example_id",
"kind": "string",
"models": [],
"modelSlug": "string",
"observabilityTags": [],
"ownerId": "example_id",
"providerOnly": [],
"providerOptions": "value",
"providerOrder": [],
"providerTimeouts": {
"byok": "value"
},
"selector": "cost",
"selectorOptions": {
"cost": "value",
"tps": "value",
"ttft": "value"
},
"serviceTier": "fast",
"sort": "cost",
"speed": "fast",
"status": "string",
"updatedAt": "123",
"updatedBy": "string",
"virtualModelSlug": "string",
"visibility": "string",
"zeroDataRetention": "false"
}
]
}
AuthorizationbearerToken

Default authentication mechanism

ownerIdstringOptional
limitintegerOptional
cursorstringOptional
includeArchivedstringOptional
teamIdstringOptional
The Team identifier to perform the request on behalf of.
slugstringOptional
The Team slug to perform the request on behalf of.
200Success
cursorstringRequired
Cursor for the next page, or null when no more pages remain.
virtualModelConfigsarrayRequired
The page of VMCs.
400One of the provided values in the request query is invalid.
401The request is not authorized.
403You do not have permission to access this resource.
404Error
410Error
500Error