Search packages, repositories and app categories

Package detailsv12.0.0

openai_dart

Dart client for the OpenAI REST APIs and realtime WebSocket/WebRTC workflows with type-safe access to GPT, image, audio, and Responses APIs.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
46.2K
Likes
139
Pub points
160

Install package

flutter pub add openai_dart

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A type-safe Dart client for OpenAI's REST APIs and real-time WebSocket/WebRTC workflows. It provides seamless integration with GPT, image generation, audio processing, and response handling across multiple platforms. Designed for developers building AI-powered applications in Flutter, it ensures robust, maintainable code through strong typing and intuitive interfaces. The package supports Android, iOS, Web, macOS, Windows, and Linux, enabling cross-platform AI functionality with minimal setup.

Use cases

  • Building chat applications with GPT
  • Generating images from text prompts
  • Converting speech to text and vice versa
  • Real-time AI interactions via WebSockets
  • Creating multilingual AI assistants
  • Integrating generative AI into mobile and desktop apps

Key features

  • Type-safe access to OpenAI APIs
  • Support for REST and real-time WebSocket/WebRTC
  • Cross-platform compatibility
  • Built-in response parsing and error handling
  • Easy integration with Flutter projects
  • Comprehensive documentation and examples

Suitable for

  • Flutter developers using AI features
  • Apps requiring real-time AI responses
  • Projects involving text, image, or audio generation
  • Teams prioritizing type safety and code reliability
  • Developers targeting multiple platforms with one codebase
  • Prototyping AI-driven user experiences

Considerations

  • Requires an OpenAI API key
  • May incur costs based on usage
  • WebRTC support depends on platform capabilities
  • Real-time features need stable network connections
  • Rate limits apply to API endpoints
  • Some advanced features may require additional configuration

Categories

Dependencies

Dependency list 6 items

Projects using this package