About Openai
This package, published on pub.dev as dart_openai, is an unofficial Dart and Flutter SDK for the OpenAI API. It is maintained by an independent developer, not by OpenAI, and gives Dart and Flutter applications typed clients for calling OpenAI services from mobile, desktop, web or server side code.
The current major version provides clients for the Responses API, Chat Completions, Realtime, Videos, Batch, Fine tuning, Vector Stores, Evals, Conversations, Audio and Administration endpoints, among others. Chat Completions support covers tools, vision, reasoning parameters and stored completions. A single streaming engine backs every streaming endpoint: it closes cleanly when the stream ends, never duplicates events and surfaces errors as exceptions. Image generation can emit partial results as they render. Each client object owns its own configuration, so an app can run several accounts, Azure resources or OpenAI compatible providers side by side, and the package works with providers that implement the OpenAI wire format, including DeepSeek, LM Studio, Ollama, Groq and Together. A global facade from earlier versions is still available.
It compiles and runs on Android, iOS, macOS, Linux, Windows and the web, and is added to a project as a standard Dart dependency.
The package itself is free to download. Usage of the underlying OpenAI API is billed separately by OpenAI, and the package page publishes no prices of its own.