ShopAI API Docs

Use ShopAI as an OpenAI-compatible API gateway. Keep your existing SDK workflow, set the ShopAI base URL, and call supported models with a secure API key.

Base URL

https://api.ishoppers.tech/v1

Do not send API keys from browser JavaScript or public client apps. Keep keys on your backend, serverless function, or other private runtime.

Authentication

Pass your ShopAI API key using the standard bearer token header.

Authorization: Bearer sk-your-api-key

Chat Completions

Python

from openai import OpenAI

client = OpenAI(
    api_key="sk-your-api-key",
    base_url="https://api.ishoppers.tech/v1"
)

response = client.chat.completions.create(
    model="qwen-turbo",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)

HTTP

curl https://api.ishoppers.tech/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-your-api-key" \
  -d '{"model":"qwen-turbo","messages":[{"role":"user","content":"Hello!"}]}'

Common Endpoints

EndpointMethodPurpose
/v1/chat/completionsPOSTCreate a chat completion using a supported model.
/v1/modelsGETList models available to your account. Requires an API key.

Errors

StatusMeaningAction
401Missing or invalid API key.Check the bearer token and whether the key is active.
429Usage or rate limit reached.Retry later or review account quota.
5xxGateway or upstream provider issue.Retry with backoff and contact support if it persists.

Billing And Limits

Usage is metered by token consumption. Prices are listed on the pricing page. Account limits and available models may vary based on account status, balance and upstream provider availability.