unofficial_open_api 1.0.0 copy "unofficial_open_api: ^1.0.0" to clipboard
unofficial_open_api: ^1.0.0 copied to clipboard

Open AI package for Dart

See how to use these APIs on the following link

Usage #

Create the API Key from the official website.

Import the package through the following Dart code:

import 'package:unofficial_open_api/unofficial_open_api.dart';

Create the Open AI service and use its services:

final service = OpenAIService.create(
    apiToken: 'your-api-key',
    enableLogging: true,
)

final response = await service.getModels();

For more information the sample app into the /example folder.

Additional information #

Use these APIs safely and responsibly. Any further information on the following link.