# aallam/openai-kotlin

OpenAI API client for Kotlin with multiplatform and coroutines capabilities.

Repository: https://github.com/aallam/openai-kotlin
Canonical: https://ross.abutalabs.com/products/openai-kotlin
Language: Kotlin
License: MIT
License Family: permissive
Topics: openai, kotlin, client, multiplatform, coroutines, api, chatgpt, dall-e, llm, whisper, gpt
Last push: 2026-02-07T21:04:07+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 66, release rhythm 37, longevity 100
- inputs: {"age_days": 2006, "days_push": 207, "days_rel": 207, "gap_med": 185.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1838, forks 237 (observed 2026-08-28T04:05:42.798125+00:00)

## What it is
A Kotlin client library for the OpenAI API built on Kotlin multiplatform and coroutines, using Ktor as the HTTP engine. It provides typed access to OpenAI endpoints such as chat completions, embeddings, images (DALL-E), and audio (Whisper).

## Use cases
- call the OpenAI API from a Kotlin or Android app
- build a ChatGPT-powered feature in a Kotlin multiplatform project
- generate images with DALL-E from Kotlin using coroutines
- transcribe audio with Whisper via the OpenAI API
- use OpenAI embeddings for semantic search in a JVM backend
- swap between OpenAI-compatible API providers in Kotlin

## When to choose
- your project is Kotlin, Kotlin multiplatform, or Android and needs OpenAI API access
- you want idiomatic coroutine-based async API calls with typed models
- you need a maintained, MIT-licensed client published to Maven Central

## When to avoid
- you need a Java-first client with broader community support
- your stack is not JVM/Kotlin-based
- you need providers beyond OpenAI-compatible APIs without writing custom config

## Facets
- artifact type: library
- maturity: active
- function: http-client, sdk, llm-inference
- domain: large-language-models, artificial-intelligence, developer-tools
- platform: jvm, cross-platform
- tags: openai-api, kotlin-multiplatform, coroutines, chatgpt, api-client, ktor, android

## Member repositories
- aallam/openai-kotlin (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:42.798125+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:18:15.880357+00:00, confidence not recorded.
  - readme: https://github.com/aallam/openai-kotlin (fetched 2026-08-28T04:05:42.798125+00:00, sha b9adac122628)
- Data as of 2026-08-30T08:39:29.467469+00:00.
