“OpenAI-compatible” is a marketing phrase, not a specification. Two endpoints can both accept POST /v1/chat/completions and behave nothing alike the moment anything real happens.
Before you point production at a new provider, four requests will tell you most of what you need. They cost cents and take a minute.
1. List the catalog
curl -s $BASE /v1/models -H "Authorization: Bearer $KEY"
Enter fullscreen mode
Exit fullscreen mode
Look at three things, not one: does it return a list at all, does it include the model you intend to call, and does it include models it would refuse to serve? A catalog that advertises more than it can answer is a catalog you cannot automate against.
2.…