dart_openai
Dart SDK for openAI Apis (GPT-3 & DALL-E), integrate easily the power of OpenAI's state-of-the-art AI models into their Dart applications.
6.1.1
17K downloads/mo
#2334 most downloaded on pub.dev
anasfik/openai
What this package is like to depend on
Last release 9 months ago
20 Nov 2025
Ships unpredictably
gaps range from 9 days to 1.7 years
Nearly every release is documented
notes for 50 of 54 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
54 releases · first in 2023
4 releases in the last 12 months
see the full history below
Release timeline
54 releases · Feb 2023 to Nov 2025Releases
latest 54-
6.1.120 Nov 2025Release notes
Open source →- Support for containers & container files
- Minor bug fixes and improvements.
- Documentation updates.
-
6.1.009 Nov 2025 -
6.0.108 Nov 2025 -
6.0.008 Nov 2025Release notes
Open source →What's Changed
- [Audio] createTranscription Added
timestamp_granularities[]request parameter and updated response object by @mihirshahxenlabs in #157 - Unhandled Exception caused by jsonDecode(data) in postStream() by @masa8 in #153
- [Edit] fix chat completion & opt. by @lollipopkit in #148
- Remove toolChoice from ChatGpt example by @thomasdf in #145
- fix: The type in OpenAIChatCompletionChoiceMessageContentItemModel.im… by @zmhu in #144
- doc: edit function name by @y0u-0 in #141
- Added imageBase64 capability instead of Image URL only for gpt-4-vision by @jber18 in #166
- Changed JSON Syntax for imageUrls to have a object instead of a String. by @Mia-Ameisbichler in #171
- renamed "max_tokens" to "max_completion_tokens" and added dynamic parameters by @nafiskabbo in #214
- Feature: Added possibility to specify the dimensions of the embeddings to be created by @MatthiasKi in #211
- Add support chunking_strategy in Whisper #212 by @DitriXNew in #213
- fix(model): image_url changed to object from string as specified in OpenAI API spec by @MbBrainz in #198
- Update responseFormat type by @VadymMatus in #208
- Update README.md by @bashka411 in #197
- Add timeout to postStream API by @kyakuno in #194
- feat: Support dynamic responseFormat by @DuzziG in #193
- replaceed all typo "Wether" to "Whether" by @luxun1910 in #192
- Example of getting bytes instead of saving directly to file for speech by @dylandhall in #177
- fix:
/chatbody compatibility by @lollipopkit in #178 - Add stream_options property to get token usage. by @dominic-deantonio in #180
New Contributors
- @mihirshahxenlabs made their first contribution in #157
- @masa8 made their first contribution in #153
- @lollipopkit made their first contribution in #148
- @thomasdf made their first contribution in #145
- @y0u-0 made their first contribution in #141
- @jber18 made their first contribution in #166
- @Mia-Ameisbichler made their first contribution in #171
- @nafiskabbo made their first contribution in #214
- @MatthiasKi made their first contribution in #211
- @DitriXNew made their first contribution in #213
- @MbBrainz made their first contribution in #198
- @VadymMatus made their first contribution in #208
- @bashka411 made their first contribution in #197
- @kyakuno made their first contribution in #194
- @DuzziG made their first contribution in #193
- @luxun1910 made their first contribution in #192
- @dylandhall made their first contribution in #177
- @dominic-deantonio made their first contribution in #180
Full Changelog: v5.0.0...v6.0.0
Release notes
Open source →-
Complete rewrite, retest and implementation for the package to match latest API changes from OpenAI including all new features and endpoints.
-
Bug fixes.
- [Audio] createTranscription Added
-
5.1.021 Feb 2024Release notes
Open source →-
Massive issues fixes related to incorrecr use of types, model fields..., audio transcription file streaming error handling, and more.
-
Support for newer fields & options for the chat completions API, like
namefor messages. -
Support for audio transcription granularity.
-
General improvements, and more tests.
-
-
5.0.022 Nov 2023Release notes
Open source →Release Notes
- Bug fix in the
RequestFunctionMessage'stoMap()method. - Minor changes
- Add/Improvements to the documentation.
- Notifications about breaking changes in the chat completions methods in favor of OpenAI Vision feature support, JSON mode..
Release notes
Open source →- Bug fix in the
RequestFunctionMessage'stoMap()method. - Minor changes
- Add/Improvements to the documentation.
- Notifications about breaking changes in the chat completions methods in favor of OpenAI Vision feature support, JSON mode..
- Bug fix in the
-
4.1.417 Nov 2023Release notes
Open source →- Removed the exposed field for configuring the package to use fetch_client instead of http_client manually withe is
isWebfield, in favor of usingdart.library.jsanddart.library.ioconditional imports to automatically detect the platform and use the appropriate client for it. - Exposed field for configuring the package to use fetch_client instead of http_client for making requests in web apps (flutter web, etc..)
- Removed the exposed field for configuring the package to use fetch_client instead of http_client manually withe is
-
4.1.317 Nov 2023Release notes
Open source →- Added Audio Speech method in the Audio module with its docs, example code.
- Migrated for the deprecated _
functions_andfunction_callth the use of new fields suchtools.. in the chat API, confirmed that it works on both asynchronous and stream responses. - Exposed API for controlling the requests time out for all internal client methods.
- Exposed multi content calls for chat completion API for image and text..
-
4.1.208 Nov 2023Release notes
Open source →Release Notes:
- Disabled a print method that was used for debugging purposes.
Install it in your Dart/Flutter app from:
-
4.1.108 Nov 2023Release notes
Open source →Release Notes
- Fixed the non applied
nfield in image variation method. - Exposed non-breaking
modelfield for other image APIs methods. - Bugs & issues fixes.
- Followed up with more changes in the OpenAI API.
- Added more documentation for the package.
- Added more examples for the package.
- Added more tests for the package.
Install it in your Dart/Flutter app from:
Release notes
Open source →- Fixed the non applied
nfield in image variation method. - Exposed non-breaking
modelfield for other image APIs methods.
- Fixed the non applied
-
4.1.008 Nov 2023Release notes
Open source →- Bugs & issues fixes.
- Followed up with more changes in the OpenAI API.
- Added more documentation for the package.
- Added more examples for the package.
- Added more tests for the package.
-
4.0.024 Jul 2023Release notes
Open source →- Migrated internal packages to latest versions such as http.
- Bug fixes to new functions API
- Minor edits to docs, package members.
-
3.0.020 Jun 2023 -
2.0.129 May 2023 -
2.0.029 May 2023Release notes
Open source →- Exposing of custom thttp client for methods- Fixed issue related to streams that uses a custom http client.
-
1.9.9325 May 2023Release notes
Open source →- Added custom HTTP client options for all the package APIs that requires one.
-
1.9.9221 May 2023Release notes
Open source →- exposed an external method for inclusing custom headers to the requests.
-
1.9.9112 May 2023 -
1.9.910 May 2023Release notes
Open source →- More refatocration for the packages services.
- Fixes some minor issues with the logging service.
- Removed repeated constants, code.
-
1.9.805 May 2023Release notes
Open source →- Fixed the non catched error for stream functionality of chat completions and completions.
- Added example for testing the catchong of errors in the stream like when the internet connectioni off.
-
1.9.704 May 2023 -
1.9.627 Apr 2023Release notes
Open source →- Added more helper memebers for some models.
- Minor changes to some implementations.
-
1.9.527 Apr 2023 -
1.9.126 Mar 2023Nothing published for this version
-
1.9.026 Mar 2023Release notes
Open source →- Exposed more enums to be used with the library.
- Added more documentation for more low level é models SDK's APIs
- Applied fixes relating to web streams APIs.
-
1.8.421 Mar 2023 -
1.8.321 Mar 2023Release notes
Open source →- Fixed web issue for chat streams
- Exposed the base url to be changed externally
-
1.8.009 Mar 2023Release notes
Open source →- Added the Audio APIs including creating transcription and translation.
- More documentation for models properties.
-
1.6.408 Mar 2023Nothing published for this version
-
1.6.308 Mar 2023Nothing published for this version
-
1.6.108 Mar 2023 -
1.6.008 Mar 2023Release notes
Open source →- Added And Fixed chat completions stream.
- Fixed the error concerning the openAI usual errors while using streams for chat completions and completion.
-
1.5.502 Mar 2023 -
1.4.923 Feb 2023Release notes
Open source →- Ensured immutability of results from requests.
- Exposed more equality for sdk models
-
1.4.817 Feb 2023 -
1.4.614 Feb 2023 -
1.4.412 Feb 2023 -
1.4.011 Feb 2023Release notes
Open source →- Added implementation of fine-tune events Stream.
- Added more documentation.
- Fixed issues.
-
1.3.011 Feb 2023 -
1.2.310 Feb 2023 -
1.2.210 Feb 2023Nothing published for this version
-
1.2.109 Feb 2023 -
1.2.009 Feb 2023Release notes
Open source →- Added more detailed documentation that reflects OpenAI's.
- Added more helper methods, enums for making it more easy to manipulate properties and decrease error chances
- More Examples, explanations for README.md.
- Code Improvments.
-
1.1.208 Feb 2023Release notes
Open source →- Added more detailed documentation that reflects OpenAI's.
- Added more helper methods, enums for making it more easy to manipulate properties and decrease error chances
- More Examples, explanations for README.md.
- Code Improvments.
-
1.1.007 Feb 2023 -
1.0.907 Feb 2023 -
1.0.806 Feb 2023 -
1.0.706 Feb 2023Release notes
Open source →- Informed about using the dotenv package instead of flutter_dotenv since not all dart applications are flutter's.
- Fixed issues
-
1.0.605 Feb 2023 -
1.0.505 Feb 2023 -
1.0.405 Feb 2023 -
1.0.305 Feb 2023 -
1.0.105 Feb 2023Release notes
Open source →- fixed issues
- Added documentation for responses fields for better understanding, familiarization for developer.
-
1.0.004 Feb 2023