Brand new to programming? Start with the cURL example — it works from any terminal with zero setup.
Before you start
You need:- A free LLM.kiwi account
- An internet connection
- One of these options: a terminal, Python 3, or Node.js
Step 1: Create an API key
1
Sign in
Open llm.kiwi/login and sign in with Google or GitHub.
2
Open your dashboard
Go to llm.kiwi/dashboard, where you can create and manage API keys.
3
Create and copy the key
Select Create key, give it a recognizable name such as
first-test, and copy the value beginning with sk_kiwi_.Step 2: Make your first request
Choose one option below. Replacesk_kiwi_... with your real key only for this first local test.
- cURL
- Python
- JavaScript
Open Terminal on macOS or Linux, or PowerShell on Windows, and run:
Recent versions of Windows, macOS, and most Linux distributions include cURL. If
curl is not recognized, use the Python or JavaScript tab.A successful request prints
Hello from LLM.kiwi!. The raw API response also contains a choices array, with the answer at choices[0].message.content.Step 3: Move your key out of the code
Hardcoding a key is acceptable only for a quick local test. Before you build an app, store it in an environment variable.- macOS and Linux
- Windows PowerShell
- Python
- JavaScript
What just happened?
- Your program sent an HTTPS
POSTrequest to/v1/chat/completions. - The
Authorizationheader identified your account using the API key. model: "auto"asked LLM.kiwi to select an available model.- The
messagesarray supplied the conversation. - The API returned the assistant’s answer as JSON.
Learn the terms without jargon
Read the concepts guide for plain-English explanations of endpoints, headers, JSON, models, messages, and tokens.
If it did not work
For detailed fixes, open Troubleshooting.
Next steps
Understand the API
Learn the few concepts used in every request.
Choose a model
Understand when to use
auto or hrllm.Copy a complete example
Add conversations, system instructions, and streaming.
Read the API reference
See every request field and response property.