Skip to content

pranavkdileep/Chat-GPT3-FREE-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat-GPT3-FREE-API

An Unoffitial Api For Model gpt-3.5-turbo-0613

pranavkdileep: write a mardown doc for /generate end point

GitHub Copilot: # /generate Endpoint

Description

The /generate endpoint is a POST request that generates content based on a provided prompt.

Request

Method

POST

URL

/generate

Headers

Content-Type: application/json

Body

The body of the request should be a JSON object with a single key-value pair. The key should be "prompt" and the value should be a string that you want to generate content for.

Example:

{
    "prompt": "What is the meaning of life?"
}

Response

Status Code

200 OK

Body

The body of the response will be a string of generated content based on the provided prompt.

Example

Request

curl -X POST -H "Content-Type: application/json" -d '{"prompt":"What is the meaning of life?"}' http://localhost:3000/generate

Response

{
    "content": "The meaning of life is a philosophical question concerning the purpose and significance of life or existence in general. This concept has been approached by many different perspectives including philosophy, religion, and science. The meaning of life as perceived by an individual can also be influenced by cultural, societal, and personal beliefs."
}

About

An Unoffitial Api For Model gpt-3.5-turbo-0613

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published