Prerequisites
- A Cline account at app.cline.bot
curlor any HTTP client (Python, Node.js, etc.)
Create an API Key
1
Sign in to app.cline.bot
Go to app.cline.bot and sign in with your account.
2
Navigate to API Keys
Open Settings and select API Keys.
3
Create a new key
Click Create API Key. Copy the key immediately. You will not be able to see it again after leaving this page.
Make Your First Request
ReplaceYOUR_API_KEY with the key you just created:
Verify the Response
You should get a JSON response like this:choices[0].message.content field contains the model’s reply. The usage field shows how many tokens were consumed.
Try Streaming
For real-time output, setstream: true. The response arrives as Server-Sent Events:
data: line. The stream ends with data: [DONE].
Try a Free Model
To test without spending credits, use one of the free models:Troubleshooting
Next Steps
Authentication
Learn about API keys, token scoping, and security practices.
Chat Completions
Full endpoint reference with all parameters and options.
Models
Browse available models and find the right one for your use case.
SDK Examples
Use the API from Python, Node.js, or the Cline CLI.

