Ship your agent.
Keep the endpoint.
A practical, OpenAI-compatible gateway for coding agents and production tools. Configure once, switch models without rewriting your stack.
https://api8888.store/v1. The /v1 suffix is part of the URL.Quickstart
Set the environment, send a request, and you are ready to wire an agent.
Keep the key outside your repository and shell history where possible.
Use any OpenAI Chat Completions client or plain cURL.
Use a public model ID from the table below; unknown IDs return 404.
$ export API8888_API_KEY="sk-your-key" $ export API8888_BASE_URL="https://api8888.store/v1" $ curl "$API8888_BASE_URL/chat/completions" \ -H "Authorization: Bearer $API8888_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"deepseek-v4.1-flash-1017","messages":[{"role":"user","content":"Review this function for a race condition."}]}'
Coding agents
Point your tool at the same OpenAI-compatible base URL. These recipes are the shortest path from a blank install to a working agent.
Settings → Models → OpenAI. Base URL: https://api8888.store/v1. Add your API8888 key and model ID.
Provider: OpenAI Compatible. Paste the Base URL including /v1; choose a model from the table.
In config.yaml, set apiBase to the API8888 URL and apiKey to your environment variable.
Create a custom OpenAI provider. API host is https://api8888.store/v1; test with the model list.
Only use an Anthropic-compatible Messages contract when your deployment explicitly supports it. An OpenAI URL is not automatically Anthropic-native.
Use the OpenAI-compatible provider configuration. Verify Responses API support before relying on Codex-specific features.
SDK recipes
The snippets below are intentionally boring: standard clients, explicit base URL, no gateway-specific wrapper.
Python · openai
from openai import OpenAI
client = OpenAI(
api_key="sk-your-key",
base_url="https://api8888.store/v1",
)
response = client.chat.completions.create(
model="deepseek-v4.1-flash-1017",
messages=[{"role": "user", "content": "Explain this stack trace."}],
)
print(response.choices[0].message.content)Node.js · openai
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.API8888_API_KEY,
baseURL: "https://api8888.store/v1",
});
const out = await client.chat.completions.create({
model: "glm-5.3-flash",
messages: [{ role: "user", content: "Summarize this diff." }],
});LiteLLM
model: openai/deepseek-v4.1-flash-1017 api_base: https://api8888.store/v1 api_key: os.environ/API8888_API_KEY
Models & pricing
Use the exact IDs below. Prices are USD per 1M tokens; cache pricing is shown separately so cost estimates stay honest.
| MODEL | CONTEXT | INPUT / 1M | OUTPUT / 1M | CACHE / 1M |
|---|---|---|---|---|
| deepseek-v4.1-flash-1017 | 1,000,000 | $0.10 | $0.35 | $0.003 |
| glm-5.3-flash | 1,000,000 | $0.05 | $0.17 | $0.01 |
Compatibility
OpenAI Responses, Anthropic Messages, and Gemini native are supported for compatible enabled channels and models. Fields may vary by upstream and conversion path.
| SURFACE | STATUS | NOTES |
|---|---|---|
| OpenAI Chat Completions | SUPPORTED | Use /v1/chat/completions. |
| OpenAI Responses | SUPPORTED | Supported for compatible enabled channels and models; verify before relying on Responses-specific features. |
| Anthropic Messages | SUPPORTED | Supported through a compatible native channel; fields depend on the upstream and conversion path. |
| Gemini native | SUPPORTED | Supported through compatible Gemini or Vertex channels; availability depends on model and channel. |
Operations
Create and rotate keys from the console. Use environment variables or a secret manager; never commit a key or paste it into an issue.
New accounts currently receive a $1 starting quota. Check the console for the current balance and any referral or billing changes.
Do not send passwords, private keys, or personal data unless your organization has approved the flow. Treat prompts as production data.
When a request fails, log status, model ID, and request path. Redact the Authorization header before sharing logs.
Errors
| HTTP | MEANING | ACTION |
|---|---|---|
| 401 | Invalid or inactive key | Check Bearer token, domain, and key status. |
| 404 | Unknown path or model | Keep /v1 exactly once; copy a public model ID. |
| 429 | Rate or quota limit | Back off, reduce concurrency, and inspect balance. |
FAQ
Why does the Base URL end in /v1?
OpenAI-compatible SDKs append paths to the Base URL. Set exactly https://api8888.store/v1; do not append another /v1.
Why do I receive 401?
Check the Bearer token, make sure the key is active, and confirm the request goes to the API8888 domain and path.
Can I use any model name?
No. Use a public model ID listed in this guide or exposed by your console.
Should I add /v1 to every request?
Configure it once in the Base URL. Your client then appends /chat/completions or other paths.