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.

Powershell

Send an OpenAI-compatible request from Windows PowerShell to confirm network access, authentication, and model output.

Endpoint

Replace only the base URL. SDK shape, JSON body, and bearer auth stay familiar.

https://apis.2ken.com/v1
Request examplepowershell
$env:TWOKEN_API_KEY = "sk-2ken-your-key"

$body = @{
  model = "gpt-4.1-mini"
  messages = @(
    @{ role = "user"; content = "Say hello from 2KEN." }
  )
} | ConvertTo-Json -Depth 6

Invoke-RestMethod `
  -Uri "https://apis.2ken.com/v1/chat/completions" `
  -Method Post `
  -Headers @{
    Authorization = "Bearer $env:TWOKEN_API_KEY"
    "Content-Type" = "application/json"
  } `
  -Body $body
Notes`setx` writes values for future terminal sessions. For a temporary test in the current window, use `$env:TWOKEN_API_KEY`.

Ready to ship?

Open the console next, copy a token, inspect model policy, and place the real values into the matching client.

Open dashboard preview