Skip to content

federicoviceconti/unofficial_open_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. The example use the environment variable API_KEY, loaded via the --dart-define argument.

Additional information

Use these APIs safely and responsibly. You can find any further information on the following link.