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

Open AI package for Dart

Unofficial Open A(P)I #

Use GPT-3 API easily with Dart. This package covers all the main functions.

See how these APIs works 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. You can find any further information on the following link.