PackageTrack
Sign in Get early access

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 2025
2024 2025 2026
Release Pre-release

Releases

latest 54
  1. 6.1.1 20 Nov 2025
    Release notes
    • Support for containers & container files
    • Minor bug fixes and improvements.
    • Documentation updates.
    Open source →
  2. 6.1.0 09 Nov 2025
    Release notes
    • Support for all Vector Store APIs
    Open source →
  3. 6.0.1 08 Nov 2025
    Release notes
    • Fixed Image Edit's image mime type issue.
    Open source →
  4. 6.0.0 08 Nov 2025
    Release notes

    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: /chat body compatibility by @lollipopkit in #178
    • Add stream_options property to get token usage. by @dominic-deantonio in #180

    New Contributors

    Full Changelog: v5.0.0...v6.0.0

    Open source →
    Release notes
    • Complete rewrite, retest and implementation for the package to match latest API changes from OpenAI including all new features and endpoints.

    • Bug fixes.

    Open source →
  5. 5.1.0 21 Feb 2024
    Release notes
    • 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 name for messages.

    • Support for audio transcription granularity.

    • General improvements, and more tests.

    Open source →
  6. 5.0.0 22 Nov 2023
    Release notes

    Release Notes

    • Bug fix in the RequestFunctionMessage's toMap() 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..
    Open source →
    Release notes
    • Bug fix in the RequestFunctionMessage's toMap() 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..
    Open source →
  7. 4.1.4 17 Nov 2023
    Release notes
    • Removed the exposed field for configuring the package to use fetch_client instead of http_client manually withe is isWeb field, in favor of using dart.library.js and dart.library.io conditional 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..)
    Open source →
  8. 4.1.3 17 Nov 2023
    Release notes
    • Added Audio Speech method in the Audio module with its docs, example code.
    • Migrated for the deprecated _functions_and function_call th the use of new fields such tools.. 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..
    Open source →
  9. 4.1.2 08 Nov 2023
    Release notes

    Release Notes:

    • Disabled a print method that was used for debugging purposes.

    Install it in your Dart/Flutter app from:

    Open source →
    Release notes
    • Disabled a print method that was used for debugging purposes.
    Open source →
  10. 4.1.1 08 Nov 2023
    Release notes

    Release Notes

    • Fixed the non applied n field in image variation method.
    • Exposed non-breaking model field 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:

    Open source →
    Release notes
    • Fixed the non applied n field in image variation method.
    • Exposed non-breaking model field for other image APIs methods.
    Open source →
  11. 4.1.0 08 Nov 2023
    Release notes
    • 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.
    Open source →
  12. 4.0.0 24 Jul 2023
    Release notes
    • Migrated internal packages to latest versions such as http.
    • Bug fixes to new functions API
    • Minor edits to docs, package members.
    Open source →
  13. 3.0.0 20 Jun 2023
    Release notes
    • Added support for functions feature of the chat API.
    • Bugs fixes.
    Open source →
  14. 2.0.1 29 May 2023
    Release notes
    • Formated unformatted files.
    Open source →
  15. 2.0.0 29 May 2023
    Release notes
    • Exposing of custom thttp client for methods- Fixed issue related to streams that uses a custom http client.
    Open source →
  16. 1.9.93 25 May 2023
    Release notes
    • Added custom HTTP client options for all the package APIs that requires one.
    Open source →
  17. 1.9.92 21 May 2023
    Release notes
    • exposed an external method for inclusing custom headers to the requests.
    Open source →
  18. 1.9.91 12 May 2023
    Release notes
    • Fixed minor issue.
    Open source →
  19. 1.9.9 10 May 2023
    Release notes
    • More refatocration for the packages services.
    • Fixes some minor issues with the logging service.
    • Removed repeated constants, code.
    Open source →
  20. 1.9.8 05 May 2023
    Release notes
    • 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.
    Open source →
  21. 1.9.7 04 May 2023
    Release notes
    • Added more examples for the package use in /example folder.
    Open source →
  22. 1.9.6 27 Apr 2023
    Release notes
    • Added more helper memebers for some models.
    • Minor changes to some implementations.
    Open source →
  23. 1.9.5 27 Apr 2023
    Release notes
    • More issues fixes.
    Open source →
  24. 1.9.1 26 Mar 2023

    Nothing published for this version

  25. 1.9.0 26 Mar 2023
    Release notes
    • 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.
    Open source →
  26. 1.8.4 21 Mar 2023
    Release notes
    • base url not changeable after first request fixed.
    Open source →
  27. 1.8.3 21 Mar 2023
    Release notes
    • Fixed web issue for chat streams
    • Exposed the base url to be changed externally
    Open source →
  28. 1.8.0 09 Mar 2023
    Release notes
    • Added the Audio APIs including creating transcription and translation.
    • More documentation for models properties.
    Open source →
  29. 1.6.4 08 Mar 2023

    Nothing published for this version

  30. 1.6.3 08 Mar 2023

    Nothing published for this version

  31. 1.6.1 08 Mar 2023
    Release notes
    • Added documentation of chat completion stream.
    Open source →
  32. 1.6.0 08 Mar 2023
    Release notes
    • Added And Fixed chat completions stream.
    • Fixed the error concerning the openAI usual errors while using streams for chat completions and completion.
    Open source →
  33. 1.5.5 02 Mar 2023
    Release notes
    • Added new ChatGPT API to the library.
    Open source →
  34. 1.4.9 23 Feb 2023
    Release notes
    • Ensured immutability of results from requests.
    • Exposed more equality for sdk models
    Open source →
  35. 1.4.8 17 Feb 2023
    Release notes
    • Fix issues
    • Fix doubled stream snapshots than expected.
    Open source →
  36. 1.4.6 14 Feb 2023
    Release notes
    • Changed the use of dotenv to envied package.
    Open source →
  37. 1.4.4 12 Feb 2023
    Release notes
    • Fixed echo property type misleading.
    Open source →
  38. 1.4.0 11 Feb 2023
    Release notes
    • Added implementation of fine-tune events Stream.
    • Added more documentation.
    • Fixed issues.
    Open source →
  39. 1.3.0 11 Feb 2023
    Release notes
    • Fixed the Stream based mechanism for completion stream.
    Open source →
  40. 1.2.3 10 Feb 2023
    Release notes
    • Exposed image size and url enums to be used externally
    Open source →
  41. 1.2.2 10 Feb 2023

    Nothing published for this version

  42. 1.2.1 09 Feb 2023
    Release notes
    • formatted some dart files
    Open source →
  43. 1.2.0 09 Feb 2023
    Release notes
    • 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.
    Open source →
  44. 1.1.2 08 Feb 2023
    Release notes
    • 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.
    Open source →
  45. 1.1.0 07 Feb 2023
    Release notes
    • Set internal packages version to any
    Open source →
  46. 1.0.9 07 Feb 2023
    Release notes
    • Downgraded internal meta package version to 1.8.0
    Open source →
  47. 1.0.8 06 Feb 2023
    Release notes
    • Made improvements
    • Added example to showcase how to use.
    Open source →
  48. 1.0.7 06 Feb 2023
    Release notes
    • Informed about using the dotenv package instead of flutter_dotenv since not all dart applications are flutter's.
    • Fixed issues
    Open source →
  49. 1.0.6 05 Feb 2023
    Release notes
    • added tests for fine-tunes
    • fixed type system issues
    Open source →
  50. 1.0.5 05 Feb 2023
    Release notes
    • Added error handling explanation, example in the README.md
    Open source →
  51. 1.0.4 05 Feb 2023
    Release notes
    • Added clarifications in READMe.md
    Open source →
  52. 1.0.3 05 Feb 2023
    Release notes
    • Fixed issues
    Open source →
  53. 1.0.1 05 Feb 2023
    Release notes
    • fixed issues
    • Added documentation for responses fields for better understanding, familiarization for developer.
    Open source →
  54. 1.0.0 04 Feb 2023
    Release notes
    • All APIs are included.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive