Drop-in OpenAI Chat Completions. Change two lines of config and your existing code runs unchanged.
Three steps: get a key, change the base URL, send a request. Any OpenAI SDK that accepts a custom base URL works as-is.
from openai import OpenAI client = OpenAI( base_url="https://apikey.help/v1", api_key="sk-your-key", ) resp = client.chat.completions.create( model="deepseek-v4.1-flash-1017", messages=[{"role": "user", "content": "Hello"}], ) print(resp.choices[0].message.content)
curl https://apikey.help/v1/chat/completions \ -H "Authorization: Bearer sk-your-key" \ -H "Content-Type: application/json" \ -d '{ "model": "deepseek-v4.1-flash-1017", "messages": [{"role": "user", "content": "Hello"}] }'
import OpenAI from 'openai'; const client = new OpenAI({ baseURL: 'https://apikey.help/v1', apiKey: 'sk-your-key', }); const resp = await client.chat.completions.create({ model: 'deepseek-v4.1-flash-1017', messages: [{ role: 'user', content: 'Hello' }], }); console.log(resp.choices[0].message.content);
/v1/modelsList the models available to your key. Handy for checking that a key is valid.
/v1/chat/completionsChat completion. Request and response match OpenAI exactly, including the usage object.
{
"id": "resp_01a1e90c...",
"object": "chat.completion",
"model": "deepseek-v4.1-flash",
"choices": [{
"index": 0,
"message": { "role": "assistant", "content": "Hi! How can I help you today?" },
"finish_reason": "stop"
}],
"usage": { "prompt_tokens": 56, "completion_tokens": 11, "total_tokens": 67 }
}modelstring
Required. Only deepseek-v4.1-flash-1017 is available. Anything else returns 503 model_not_found.
messagesarray
Required. A standard OpenAI message array. system / user / assistant are supported.
streamboolean
Optional, defaults to false. Set true to receive an SSE stream.
max_tokensinteger
Optional. Capped at 384000.
temperaturenumber
Optional. Standard OpenAI semantics.
reasoning_effortstring
Optional, but ignored — thinking mode is always on.
Send stream: true to receive text/event-stream. Each line starts with data:, and the stream ends with data: [DONE]. Same as OpenAI.
data: {"choices":[{"delta":{"role":"assistant"},"index":0}]}
data: {"choices":[{"delta":{"content":"Hi"},"index":0}]}
data: [DONE]Every error has the same shape: {"error": {"message", "type", "code"}}. The codes below were verified against the live endpoint.
Invalid token
The key is mistyped, deleted, or the Authorization header is missing. It must be "Bearer sk-xxx", not a bare "sk-xxx".
insufficient quota
Check the balance in the console. Top-ups apply instantly; you do not need to recreate the key.
rate limit
There is a cap on concurrent requests. Back off and retry on 429 — do not resend immediately.
model_not_found
The model name is wrong. Only deepseek-v4.1-flash-1017 is available; confirm with GET /v1/models first.
upstream error
The upstream returned an error. These calls are never billed, so retrying is free.
Billed per token, with input and output priced separately, per million tokens. Failed requests are free.
| Item | USD / 1M | Official list |
|---|---|---|
Inputcache miss |
— | $0.150 |
Outputincluding reasoning |
— | $0.600 |
Yes. They all accept a custom base URL and key. Point them at https://apikey.help/v1 — no code changes.
No. It stays on so answer quality is consistent. Parameters like reasoning_effort are ignored rather than rejected.
1M tokens of context, with up to 384K tokens per response.
Connect a wallet in the console and send USDC on Base. Credit lands automatically after on-chain confirmation.