Docs.
Detailed guides for every way to connect to 2KEN. Use the same token, base URL, and model configuration from command lines, OpenAI-compatible SDKs, HTTP APIs, code clients, and switching tools.
HTTP API
Send requests directly to the 2KEN HTTP API. This path fits backend services, gateways, low-code platforms, and custom clients.
Endpoint
Replace only the base URL. SDK shape, JSON body, and bearer auth stay familiar.
https://apis.2ken.com/v1POST /v1/chat/completions HTTP/1.1
Host: apis.2ken.com
Authorization: Bearer sk-2ken-your-key
Content-Type: application/json
{
"model": "gpt-4.1-mini",
"messages": [
{ "role": "user", "content": "Say hello from 2KEN." }
],
"temperature": 0.2
}NotesIn production, set explicit timeouts, retries, and error handling, and keep upstream status codes and request IDs in logs.
Ready to ship?
Open the console next, copy a token, inspect model policy, and place the real values into the matching client.