--- title: "Cline API" sidebarTitle: "Overview" description: "Programmatic access to AI models through an OpenAI-compatible Chat Completions API." --- Welcome to the Cline API documentation. Use the same models that power the Cline extension and CLI from any language, framework, or tool that speaks the OpenAI format. ## What is the Cline API? The Cline API is an OpenAI-compatible Chat Completions endpoint. You authenticate once with a Cline API key and get access to models from Anthropic, OpenAI, Google, and more through a single base URL. No need to manage separate keys for each provider. ``` Your App → Cline API (api.cline.bot) → Anthropic / OpenAI / Google / etc. ``` Create an API key and make your first request in under a minute. API keys, account tokens, key rotation, and security best practices. Full endpoint reference with request schemas, streaming, and tool calling. Ready-to-copy examples for Python, Node.js, curl, and the Cline CLI. ## Explore the Reference Browse available models, free tier options, reasoning support, and selection guidance. Error codes, mid-stream errors, retry strategies, and debugging tips. Admin endpoints for managing users, organizations, billing, and API keys. ## Quick Start ```bash curl -X POST https://api.cline.bot/api/v1/chat/completions \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "anthropic/claude-sonnet-4-6", "messages": [{"role": "user", "content": "Hello!"}] }' ``` Get your API key at [app.cline.bot](https://app.cline.bot) (Settings > API Keys), then follow the [Getting Started](/api/getting-started) guide.