Introduction
Integrate applications with LatentKit through a single route-based AI gateway.
LatentKit gives your application one API surface for chat, completions, embeddings, images, vision, audio, video, and more. You send task-shaped requests; the API key's assigned route selects the provider and model at runtime.
What you get
- One base URL:
https://ai.latentkit.com - One authorization model:
Authorization: Bearer <api-key> - Route-based routing: change providers in the console without redeploying app code
- Automatic failover across providers with one response back to your app
- Official JavaScript
0.2.2, Python0.2.1, and PHP0.1.0-beta.3SDKs for the/v1API - Official CLI
0.1.0for browser login, runtime tests, logs, traces, routes, keys, and CI checks - Official WordPress, Drupal, Laravel, and Vercel AI SDK integrations with explicit release and review status
Start here
- Quickstart — create a key and send your first request
- CLI — sign in from a terminal, test requests, inspect logs, and automate checks
- JavaScript SDK, Python SDK, or PHP SDK beta — call LatentKit from app code
- WordPress, Drupal, Laravel, or the Vercel AI SDK provider — connect an existing platform
- Core concepts — routes, keys, capabilities, and the request lifecycle
- Models & providers — what the catalog supports per modality
- Providers and Playground — verify route/provider readiness in the console
- Build with AI — generate safe prompts for Cursor, Windsurf, Claude, and other AI tools
Current SDK and integration releases
| Surface | Current public state |
|---|---|
| JavaScript / TypeScript | @latentkit/sdk 0.2.2 on npm |
| Python | latentkit 0.2.1 on PyPI |
| PHP | latentkit/latentkit-php 0.1.0-beta.3 on Packagist |
| CLI | @latentkit/cli 0.1.0 on npm |
| Laravel | latentkit/laravel 0.1.0-alpha.1 on Packagist |
| Vercel AI SDK | @latentkit/ai-sdk-provider 0.1.0-alpha.3 published on npm |
| WordPress | 0.1.0 is under WordPress.org review and is not searchable in the plugin directory yet |
| Drupal | The Drupal.org project and 1.0.x review branch are public; no installable release is published yet |
Everything the API supports
| Modality | Endpoints |
|---|---|
| Text | Chat, Completions, Tool calling, Streaming |
| Images | Vision (analysis), Image generation |
| Audio | Transcription & translation, Text-to-speech |
| Video | Video generation |
| Embeddings | Embeddings |
| Async | Queue |
Console companion
After sign-in, the LatentKit console includes workspace-aware developer tools: selected API key, route status, and copyable examples. The CLI can use browser login for account-scoped inspection from your terminal. Public documentation lives here; the console and CLI add live workspace context.