Skip to content

welandfr/openai-ama-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAPI Ask-Me-Anything passthrough API

Fredrik Welander

A passthrough API for sharing your dear-bought OpenAPI API account. This implementation is for single questions, the previous conversation is not taken into account.

Usage:

  • Create .env (from .env-example) and add you keys
  • Send requests as a simple JSON string

REQUEST:

POST http://localhost:8080?api_key=my-secret-key
Content-Type: application/json

"What are you?"

RESPONSE:

{
  "answer": "I am an AI language model created by OpenAI designed to generate human-like responses to various prompts and tasks.",
  "model": "gpt-3.5-turbo-0301",
  "question": "What are you?",
  "tokens_cost": 34,
  "tokens_left": 966
}

About

Ask Me Anything - powered by ChatGPT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages