List AI Gateway models
GET
Alias: also available at /api/v2/aibridge/models for backward compatibility.
CoderSessionTokenheader
Coder-Session-Token<token>q?stringSearch query in the format key:value. Available keys are: model. A bare term searches by model prefix.
model?stringLiteral model identifier prefix. Cannot be combined with q.
OK
application/json- response
[index: integer]?stringThe samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X GET \ "$CODER_URL/api/v2/ai-gateway/models" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN"Example Response200
[ "string"]