curl -fsS "$ZIPZOE_BASE_URL/v1/models?type=chat" \
  -H "Authorization: Bearer $ZIPZOE_API_KEY"

Read the result

With ai:write and a configured model agent, the response has object=list and a data array. Copy data[].id exactly. Recheck the catalogue when a route becomes unavailable. An empty list can indicate that the selected agent lacks model access.