Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI-Compatible API Provider Guide

A practical guide and conformance checker for teams comparing an OpenAI-compatible API provider, OpenAI API gateway, Claude API provider, GPT API provider, or OpenRouter alternative. It tests the response shapes most basic SDK migrations depend on before you change production traffic.

Disclosure: This guide is maintained by APIMART, an OpenAI-compatible API service discussed here. Test criteria are public and reports are generated in the user's own account and network.

Checks included

  • GET /v1/models returns a model list with IDs
  • POST /v1/chat/completions accepts the standard messages array
  • The response includes choices[].message.content
  • HTTP status, latency, returned model, and usage availability
  • A migration checklist for streaming, tool calls, multimodal inputs, retries, and billing

Run

export APIMART_API_KEY="your_key_here"
python provider_check.py --base-url https://api.apimart.ai/v1 --model replace-with-current-model-id --key-env APIMART_API_KEY --output compatibility.json

You can check another endpoint when you own it or have permission to test it. The tool never prints the API key.

Interpretation

Passing these checks confirms basic response-shape compatibility, not universal SDK compatibility or reliability. Run application-specific tests for streaming SSE, structured output, tools, images, rate limits, and failure recovery.

Evaluate APIMART

Test

python -m unittest discover -s tests

Project directory

This repository is part of the APIMART open-source AI API toolkit. Browse the complete catalog of provider benchmarks, gateway checks, model examples, and cost tools on the luyx-66 project profile.

MIT License

Releases

Packages

Contributors

Languages