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);
?>
All the examples require your OpenAI api token
$secret_key = 'Bearer ******YOUR-KEY-HERE********';
OpenAI GPT-3 API Library is released under the MIT License.