API8888
GATEWAY ONLINE
API8888 / DEVELOPER CONSOLE

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.

ONE SETTINGUse your API8888 key and set the Base URL to 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.

01 / ENV
Export credentials

Keep the key outside your repository and shell history where possible.

02 / REQUEST
Call the gateway

Use any OpenAI Chat Completions client or plain cURL.

03 / VERIFY
Check the model

Use a public model ID from the table below; unknown IDs return 404.

~/project · bash
$ 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.

OPENAICursor

Settings → Models → OpenAI. Base URL: https://api8888.store/v1. Add your API8888 key and model ID.

OPENAICline / Roo Code

Provider: OpenAI Compatible. Paste the Base URL including /v1; choose a model from the table.

OPENAIContinue

In config.yaml, set apiBase to the API8888 URL and apiKey to your environment variable.

OPENAICherry Studio

Create a custom OpenAI provider. API host is https://api8888.store/v1; test with the model list.

ANTHROPICClaude Code

Only use an Anthropic-compatible Messages contract when your deployment explicitly supports it. An OpenAI URL is not automatically Anthropic-native.

OPENAI RESPONSESCodex CLI

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

agent.py
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

agent.mjs
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

litellm.config
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.

MODELCONTEXTINPUT / 1MOUTPUT / 1MCACHE / 1M
deepseek-v4.1-flash-10171,000,000$0.10$0.35$0.003
glm-5.3-flash1,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.

SURFACESTATUSNOTES
OpenAI Chat CompletionsSUPPORTEDUse /v1/chat/completions.
OpenAI ResponsesSUPPORTEDSupported for compatible enabled channels and models; verify before relying on Responses-specific features.
Anthropic MessagesSUPPORTEDSupported through a compatible native channel; fields depend on the upstream and conversion path.
Gemini nativeSUPPORTEDSupported through compatible Gemini or Vertex channels; availability depends on model and channel.

Operations

Key hygiene

Create and rotate keys from the console. Use environment variables or a secret manager; never commit a key or paste it into an issue.

Quota

New accounts currently receive a $1 starting quota. Check the console for the current balance and any referral or billing changes.

Data handling

Do not send passwords, private keys, or personal data unless your organization has approved the flow. Treat prompts as production data.

Debug path

When a request fails, log status, model ID, and request path. Redact the Authorization header before sharing logs.

Errors

FAST RULEA 401 is credentials or authorization. A 404 is usually the path or model ID. A 429 means slow down and inspect quota.
HTTPMEANINGACTION
401Invalid or inactive keyCheck Bearer token, domain, and key status.
404Unknown path or modelKeep /v1 exactly once; copy a public model ID.
429Rate or quota limitBack 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.