I am writing on behalf of Stable API (https://apiniuma.com). My display name is Travis. This is a setup note, not an independent benchmark and not a paid placement. Please verify everything against the live site. Pricing and model IDs are on https://apiniuma.com/pricing and can change.
When I move an existing OpenAI SDK integration to another OpenAI-compatible gateway, I check three values first: the base URL, the API key, and the model ID. This note uses Stable API as a concrete example. The same checklist applies to other compatible gateways; only the URL, key, and model slugs change.
1. What the official site says about migration
The public FAQ on https://apiniuma.com says you replace the original API endpoint with the platform endpoint and leave other parameters unchanged. It also says that for most client libraries you only need to change the base URL and the API key. The FAQ example replaces https://api.openai.com/v1/chat/completions with the same path on the platform host.
The public status API (GET https://apiniuma.com/api/status, 2026-12-03) reports server_address as https://apiniuma.com and describes the service as usage-based (按量计费 in the Chinese description; the keywords also include “OpenAI 兼容”). I therefore use:
- Base URL:
https://apiniuma.com/v1 - API key: created in the Stable API console, stored in an environment variable such as
STABLE_API_KEY(never committed) - Model ID: copied from https://apiniuma.com/pricing
The same status API showed currency_type USD, new_user_welcome_credit 0, and min_topup 1 on that day. This is a paid, pay-as-you-go service, not a free tier. Treat those fields as a snapshot and re-check the billing page before you rely on them.
On 2026-12-03, GET https://apiniuma.com/api/pricing_new returned 279 on-shelf models in data. That count will change. I am not going to advertise a rounded “300+” figure.
2. A minimal connectivity check
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["STABLE_API_KEY"],
base_url="https://apiniuma.com/v1",
)
print([item.id for item in client.models.list().data[:20]])
curl https://apiniuma.com/v1/models \
-H "Authorization: Bearer $STABLE_API_KEY"
Only after that succeeds do I send a one-line chat.completions request with a model ID from the pricing page, then inspect the usage log. The FAQ says the “Usage Logs” page shows time, model, token usage, and cost after login.
If you are coming from OpenRouter, the OpenRouter compatibility doc (https://openrouter.ai/docs/guides/features/compatibility , title “OpenAI Compatibility - Drop-in OpenAI SDK Replacement on OpenRouter”, fetched 2026-12-03) uses https://openrouter.ai/api/v1 and often requires author-prefixed model IDs such as openai/gpt-4o. Do not assume those prefixed IDs are valid on Stable API. Use the IDs on the Stable API pricing page.
3. The same base URL in common clients
I checked the following official client docs on 2026-12-03:
- LiteLLM, “OpenAI-Compatible Endpoints”: https://docs.litellm.ai/docs/providers/openai_compatible — prefix the model with
openai/, setapi_basetohttps://apiniuma.com/v1, and use your key. The doc says a missing/v1suffix is a common cause of Not Found. - Continue, “How to Configure OpenAI Models with Continue”: https://docs.continue.dev/customize/model-providers/top-level/openai — use
provider: openaiand setapiBase(the older/customize/model-providers/openaipath returned 404). - Open WebUI, “OpenAI-Compatible”: https://docs.openwebui.com/getting-started/quick-start/connect-a-provider/starting-with-openai-compatible/ — add an OpenAI-compatible connection with the base URL and key.
- Cherry Studio’s custom-provider doc is in Chinese: https://cherryai.com.cn/docs/zh-cn/pre-basic/providers/zi-ding-yi-fu-wu-shang/ — Settings → model providers → add a custom provider, then enable it and add model IDs.
I could not reliably load Cursor’s official documentation in this environment (requests to cursor.com/docs were rewritten to another site), so I am not quoting Cursor’s help text. In principle, if your Cursor build exposes an OpenAI key field and an “Override OpenAI Base URL” (or similarly named) option, use https://apiniuma.com/v1 and a console key, then confirm in your installed UI.
4. What this article does not claim
I did not benchmark latency or uptime, and I did not compare prices with OpenRouter or official vendor APIs. The Stable API FAQ includes a platform statement about availability; I have not independently verified it, so I am not repeating it here as a measurement.
If you want to try the service, the site is https://apiniuma.com and the docs are https://docs.apiniuma.com/ . Because I am affiliated with the product, please rely on the live pricing page and your own test calls.
Top comments (0)