Menu

Four requests that tell you if an “OpenAI-compatible” API really is
📰

Four requests that tell you if an “OpenAI-compatible” API really is

DEV Community: api·Long AI·8 days ago
#PTvn8hnL
#devtoapi#devto#dev#model#time
Long article (577 words) — no AI summary yet.
Reading 0:00
15s threshold

“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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.