Use GPT-3 API easily with Dart. This package covers all the main functions.
See how these APIs works on the following link
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.
The example use the environment variable API_KEY
, loaded via the --dart-define
argument.
Use these APIs safely and responsibly. You can find any further information on the following link.