Skip to main content
The simplest LLM.kiwi clients are the OpenAI Python and JavaScript packages configured with the custom chat completions base URL.
Compatibility applies to the endpoints and fields documented by LLM.kiwi. A library may expose additional OpenAI features that LLM.kiwi does not support.

Python

Install:
Configure:

JavaScript and TypeScript

Install:
Configure in server-side code:
Do not initialize a private API client in browser-side React, Vue, Svelte, or plain JavaScript. Send browser requests to your own backend, then call LLM.kiwi from that backend.

Direct HTTP

You do not need an SDK. Any server-side HTTP client can call the API.
A direct HTTP client is useful when:
  • Your language has no maintained OpenAI-compatible SDK.
  • You want minimal dependencies.
  • You need precise control over timeouts, retries, or streaming.

Other clients and frameworks

Before using a community library, confirm that it lets you configure all three items:
  1. Base URL: https://api.llm.kiwi/v1
  2. Bearer API key
  3. Chat completions model name such as auto
Frameworks may change their configuration names between versions. Follow the framework’s current documentation and verify the generated request against the API reference.

Which option should I choose?

Copy complete examples

Start with tested request patterns.

Review endpoint fields

Check request and response formats.
Last modified on July 28, 2026