org-ai — AI 图像生成工具中文文档 是 AI Skill Hub 本期精选AI工具之一。综合评分 8.3 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
org-ai — AI 图像生成工具中文文档 是一款基于 Emacs Lisp 开发的开源工具,专注于 ai、chatgpt、emacs 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
org-ai — AI 图像生成工具中文文档 是一款基于 Emacs Lisp 开发的开源工具,专注于 ai、chatgpt、emacs 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 克隆仓库 git clone https://github.com/rksm/org-ai cd org-ai # 查看安装说明 cat README.md # 按 README 完成环境依赖安装后即可使用
# 查看帮助 org-ai --help # 基本运行 org-ai [options] <input> # 详细使用说明请查阅文档 # https://github.com/rksm/org-ai
# org-ai 配置说明 # 查看配置选项 org-ai --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export ORG_AI_CONFIG="/path/to/config.yml"
These setup steps are optional. If you don't want to use speech input / output, you can skip this section.
_Note: My personal config for org-ai can be found in this gist. It contains a working whisper setup.
This has been tested on macOS and Linux. Someone with a Windows computer, please test this and let me know what needs to be done to make it work (Thank You!).
The speech input uses whisper.el and ffmpeg. You need to clone the repo directly or use straight.el to install it.
brew install ffmpeg on macOS) or sudo apt install ffmpeg on Linux.git clone https://github.com/natrys/whisper.el path/to/whisper.elYou should now be able to load it inside Emacs:
(use-package whisper
:load-path "path/to/whisper.el"
:bind ("M-s-r" . whisper-run))
Now also load:
(use-package greader :ensure)
(require 'whisper)
(require 'org-ai-talk)
;; macOS speech settings, optional
(setq org-ai-talk-say-words-per-minute 210)
(setq org-ai-talk-say-voice "Karen")
On macOS you will need to do two more things: 1. Allow Emacs to record audio 2. Tell whisper.el what microphone to use
###### 1. Allow Emacs to record audio You can use the tccutil helper:
git clone https://github.com/DocSystem/tccutil
cd tccutil
sudo python ./tccutil.py -p /Applications/Emacs.app -e --microphone
When you now run ffmpeg -f avfoundation -i :0 output.mp3 from within an Emacs shell, there should be no abort trap: 6 error.
(As an alternative to tccutil.py see the method mentioned in this issue.)
###### 2. Tell whisper.el what microphone to use
You can use the output of ffmpeg -f avfoundation -list_devices true -i "" to list the audio input devices and then tell whisper.el about it: (setq whisper--ffmpeg-input-device ":0"). :0 is the microphone index, see the output of the command above to use another one.
I've created an emacs helper that let's you select the microphone interactively. See this gist.
My full speech enabled config then looks like:
(use-package whisper
:load-path (lambda () (expand-file-name "lisp/other-libs/whisper.el" user-emacs-directory))
:config
(setq whisper-model "base"
whisper-language "en"
whisper-translate nil)
(when *is-a-mac*
(rk/select-default-audio-device "Macbook Pro Microphone")
(when rk/default-audio-device)
(setq whisper--ffmpeg-input-device (format ":%s" rk/default-audio-device))))
###### macOS alternative: Siri dictation
On macOS, instead of whisper, you can also use the built-in Siri dictation. To enable that, go to Preferences -> Keyboard -> Dictation, enable it and set up a shortcut. The default is ctrl-ctrl.
The way (defun whisper--check-install-and-run) is implemented does not work on Win10 (see https://github.com/rksm/org-ai/issues/66).
A workaround is to install whisper.cpp and model manually and patch:
elisp
(defun whisper--check-install-and-run (buffer status)
(whisper--record-audio))
Speech output on non-macOS systems defaults to using the greader package which uses espeak underneath to synthesize speech. You will need to install greader manually (e.g. via M-x package-install). From that point on it should "just work". You can test it by selecting some text and calling M-x org-ai-talk-read-region.
An API for Stable Diffusion can be hosted with the stable-diffusion-webui project. Go through the install steps for your platform, then start an API-only server:
cd path/to/stable-diffusion-webui
./webui.sh --nowebui
This will start a server on http://127.0.0.1:7861 by default. In order to use it with org-ai, you need to set org-ai-sd-endpoint-base:
(setq org-ai-sd-endpoint-base "http://localhost:7861/sdapi/v1/")
If you use a server hosted elsewhere, change that URL accordingly.
You can either directly set your api token in your config:
(setq org-ai-openai-api-token "<ENTER YOUR API TOKEN HERE>")
Alternatively, org-ai supports auth-source for retrieving your API key. You can store a secret in the format
machine api.openai.com login org-ai password <your-api-key>
in your ~/authinfo.gpg file. If this is present, org-ai will use this mechanism to retrieve the token when a request is made. If you do not want org-ai to try to retrieve the key from auth-source, you can set org-ai-use-auth-source to nil before loading org-ai.
You can switch to Azure by customizing these variables, either interactively with M-x customize-variable or by adding them to your config:
(setq org-ai-service 'azure-openai
org-ai-azure-openai-api-base "https://your-instance.openai.azure.com"
org-ai-azure-openai-deployment "azure-openai-deployment-name"
org-ai-azure-openai-api-version "2023-07-01-preview")
To store the API credentials, follow the authinfo instructions above but use org-ai-azure-openai-api-base as the machine name.
For a list of available models see the perplexity.ai documentation.
Either switch the default service in your config:
(setq org-ai-service 'perplexity.ai)
(setq org-ai-default-chat-model "llama-3-sonar-large-32k-online")
or per block:
#+begin_ai :service perplexity.ai :model llama-3-sonar-large-32k-online
[ME]: Tell me fun facts about Emacs.
#+end_ai
For the authentication have an entry like machine api.perplexity.ai login org-ai password pplx-*** in your authinfo.gpg or set org-ai-openai-api-token.
Note: Currently the perplexity.ai does not give access to references/links via the API so Emacs will not be able to display references. They have a beta program for that running and I sure hope that this will be available generally soon.
Similar to the above. E.g.
#+begin_ai :service anthropic :model claude-3-opus-20240229
[ME]: Tell me fun facts about Emacs.
#+end_ai
Anthropic models are here. There is currently only one API version that is set via org-ai-anthropic-api-version. If other version come out you can find them here.
For the API token use machine api.anthropic.com login org-ai password sk-ant-*** in your authinfo.gpg.
Minor mode for Emacs org-mode that provides access to generative AI models. Currently supported are - OpenAI API (ChatGPT, DALL-E, other text models), optionally run against Azure API instead of OpenAI - Stable Diffusion through stable-diffusion-webui
Inside an org-mode buffer you can - use ChatGPT to generate text, having full control over system and user prompts (demo) - Speech input and output! Talk with your AI! - generate images and image variations with a text prompt using Stable Diffusion or DALL-E (demo 1, demo 2) - org-ai everywhere: Various commands usable outside org-mode for prompting using the selected text or multiple files.
_Note: In order to use the OpenAI API you'll need an OpenAI account and you need to get an API token. As far as I can tell, the current usage limits for the free tier get you pretty far.
------------------------------
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
⚠️ GPL 3.0 — 强 Copyleft,衍生作品须开源,含专利保护条款,不可闭源使用。
经综合评估,org-ai — AI 图像生成工具中文文档 在AI工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | org-ai |
| 原始描述 | Emacs as your personal AI assistant. Use LLMs such as ChatGPT or LLaMA for text generation or DALL-E and Stable Diffusion for image generation. Also supports speech input / output. |
| Topics | aichatgptemacsgenerative-modelsgptllmsimage |
| GitHub | https://github.com/rksm/org-ai |
| License | GPL-3.0 |
| 语言 | Emacs Lisp |
收录时间:2026-05-22 · 更新时间:2026-05-22 · License:GPL-3.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。