Docs
OpenAI PHP SDK : Most downloaded, forked, contributed, huge community supported, and used PHP (Laravel , Symfony, Yii, Cake PHP or any PHP framework) SDK for OpenAI GPT-3 and DALL-E. It also supports
OpenAI API Client in PHP
ChatGPT API is currently supported, click here for the implementation introductions.
Featured in
Comparison With Other Packages
Project Name
Required PHP Version
Description
Type (Official / Community)
Support
About this package
News
Join our discord server

Support this project
Endpoint Support
Installation
Quick Start ⚡
Usage
Load your key from an environment variable.
Requesting organization
Base URL
Use Proxy
Set header
Get cURL request info
!!! WARNING:Your API key will expose if you add this method to your code, therefore remove the method before deployment. Be careful !
Chat (as known as ChatGPT API)
Accessing the Element
Related: ChatGPT Clone Project
Completions
Stream Example
Edits
Images (DALL·E)
Create image
Create image edit
Create image variation
Searches
Embeddings
Create embeddings
Answers
Classifications
Content Moderations
List engines
Audio
Create Transcription
Create Translation
Files
List files
Upload file
Upload file with HTML Form
Delete file
Retrieve file
Retrieve file content
Fine-tunes
Create fine-tune
List fine-tune
Retrieve fine-tune
Cancel fine-tune
List fine-tune events
Delete fine-tune model
Retrieve engine
Models
List models
Retrieve model
Printing results i.e. $search
$searchTesting
Changelog
Contributing
Security Vulnerabilities
Credits
License
Donation



Last updated



