Skip to content

ldobreira/gpt3-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Easy OpenAI GPT-3 API Library for PHP

License

A simple and easy to use PHP wrapper for the OpenAI GPT-3 API.

Example usage:

<?php

require_once '../includes/Openai.php';

$openai = New Openai();

//Engine, prompt and max tokens
$openai->request("ada", "This is a test", 5);

?>

Requirements

All the examples require your OpenAI api token

$secret_key = 'Bearer ******YOUR-KEY-HERE********';

License

OpenAI GPT-3 API Library is released under the MIT License.

About

A simple PHP wrapper for the OpenAI GPT-3 API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages