LatentKit

Playground

Test real workspace requests in the console before wiring production code.

The public docs site does not run live API requests because real calls require a workspace API key, billing context, and route assignment. Use the logged-in console playgrounds for real execution.

Which console tool to use

ToolBest for
AI RouterFirst request, selected API key, route health, copyable snippets
DevelopersWorkspace-aware examples across languages and endpoints
PlaygroundManual request testing against the same runtime path as production traffic
Usage / logsDebugging request ids, failures, latency, and spend
  1. Open console.latentkit.com.
  2. Go to AI Router.
  3. Select the API key your application will use.
  4. Confirm a published route is assigned.
  5. Run a plain chat test before trying streaming, tools, image generation, or embeddings.
  6. Copy the matching snippet into your backend.

Why start in the console?

The console validates the integration prerequisites that code examples cannot see:

  • The key is active and unrevoked.
  • The key has a published route.
  • The route has eligible models for the endpoint capability.
  • Provider access is connected and healthy.
  • Credits, plan limits, or BYOK credentials can execute the request.

If a console test fails, fix route/provider/billing state first. If the console test succeeds but your app fails, compare headers, environment variables, and request body shape.

Production checklist

  • Store LATENTKIT_API_KEY in server-side secrets.
  • Log X-LK-Request-ID for failed responses.
  • Keep browser clients calling your backend, not LatentKit directly.
  • Avoid sending provider/model selection in request bodies.

On this page