OpenAI 推出官方命令行工具
← 返回今日版面主题综述
多源合成 · 增量更新OpenAI CLI, the official command-line tool for OpenAI REST API, allows users to interact with OpenAI services directly from the terminal. After installation, users can set the OPENAI_API_KEY and use the CLI to perform various tasks such as creating responses, uploading files, creating batches, and generating images. It is distinct from Codex CLI, which is a coding agent. Currently, the tool is being used to enhance productivity by enabling direct API calls from the terminal, eliminating the need for a graphical interface.
来源
1 条OpenAI CLI是OpenAI官方命令行工具,用于OpenAI REST API。用户安装一个openai二进制文件,设置OPENAI_API_KEY后,即可从终端或shell脚本中调用API:创建响应、上传文件、创建批次、生成图像等。它不是Codex CLI,Codex是一个编码代理;OpenAI每次命令发送一个