Developer reference
ApiShift API Docs
Static documentation for the planned ApiShift token access API. Requests shown here are examples only and are not executed by this site.
Base URL
Use the following base URL for preview API requests. This is the temporary preview endpoint. A custom API domain can be added later.
Authentication
Use your ApiShift access token as the bearer token.
POST /chat
Primary preview endpoint used by the console. It verifies token balance and returns a preview response.
OpenAI-compatible endpoint preview
This endpoint shape is shown for integration planning while upstream models are still preview routes.
Worker health check
This preview check is for local testing and is not a final production API domain.
curl https://apishift-api.2630935407.workers.dev/chat \
-H "Content-Type: application/json" \
-d '{
"token": "YOUR_APISHIFT_TOKEN",
"model": "DeepSeek Chat",
"modelId": "deepseek-chat",
"route": "Balanced",
"prompt": "Write a short welcome message."
}'
const response = await fetch("https://apishift-api.2630935407.workers.dev/chat", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
token: "YOUR_APISHIFT_TOKEN",
model: "DeepSeek Chat",
modelId: "deepseek-chat",
route: "Balanced",
prompt: "Write a short welcome message."
})
});
const data = await response.json();
console.log(data);
Parameters
model: display name of the selected model.modelId: route identifier such asdeepseek-chat.messages: OpenAI-compatible message array for planned endpoint support.route: Balanced, Lowest cost, Fastest, or Highest success rate.
This is a preview until upstream models are activated.
Error codes
- 401 Invalid token
- 402 Insufficient credits
- 429 Rate limited
- 500 Service unavailable
Disclaimer
ApiShift is an independent setup and integration service, not an official OpenAI service.