openai
CLI tool providing access to the OpenAI API. tldr-pages
On several platforms
Several platforms
List models
openai api models.listIdentifyCreate a completion
openai api completions.create --model ada --prompt "Hello world"IdentifyCreate a chat completion
openai api chat_completions.create --model gpt-3.5-turbo --message user "Hello world"IdentifyGenerate images via DALL·E API
openai api image.create --prompt "two dogs playing chess, cartoon" --num-images 1Identify