AI Supermarket Quick Start
Use this page to confirm that you have an API Key, have selected the correct compatible endpoint, and can run a minimal request. Then open the OpenAI-, Claude-, or Gemini-compatible documentation according to your actual integration scenario.
1. Create an API Key
After logging in to AI Supermarket, create an API Key in the console.
In this documentation, your-api-key means the Key generated by AI Supermarket, not a Key from the official OpenAI, Anthropic, or Google platforms.
2. Choose a Compatible Base URL
| Compatibility Mode | Base URL | Common Uses |
|---|---|---|
| OpenAI-compatible | https://aisupermarket.work/v1 | OpenAI SDKs, Chat Completions, Responses, image generation, Gemini-compatible access |
| Claude-compatible | https://aisupermarket.work | Anthropic SDKs, /v1/messages, Claude Code-style clients |
3. Confirm the Model Name First
Available models may vary by channel, account permissions, model mapping, and upstream status. Before integrating, check the model list in the console or confirm available models through /v1/models.
curl https://aisupermarket.work/v1/models \
-H "Authorization: Bearer your-api-key"
Do not copy example model names directly into production. Example model names only illustrate request structure.
4. Run an OpenAI-Compatible Request
curl https://aisupermarket.work/v1/chat/completions \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "your-model",
"messages": [{"role": "user", "content": "Hello"}],
"stream": true
}'
5. Run a Claude-Compatible Request
curl https://aisupermarket.work/v1/messages \
-H "x-api-key: your-api-key" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{
"model": "your-claude-model",
"max_tokens": 256,
"messages": [{"role": "user", "content": "Hello"}]
}'