Skip to main content
This guide takes you from a new account to a working API call in a few minutes. No previous API experience is required.
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
No credit card, Docker, local AI model, or server is required.

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_.
Treat an API key like a password. Save it in a password manager or environment variable, never publish it in GitHub, and revoke it immediately if it leaks.

Step 2: Make your first request

Choose one option below. Replace sk_kiwi_... with your real key only for this first local test.
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.
Then read it in your code:

What just happened?

  1. Your program sent an HTTPS POST request to /v1/chat/completions.
  2. The Authorization header identified your account using the API key.
  3. model: "auto" asked LLM.kiwi to select an available model.
  4. The messages array supplied the conversation.
  5. 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.
Last modified on July 28, 2026