sponsor Vim development Vim logo Vim Book Ad

kavel.vim : Generate an AI image from a prompt and insert its Markdown link

 script karma  Rating 0/0, Downloaded by 1  Comments, bugs, improvements  Vim wiki

created by
Kavel AI
 
script type
utility
 
description
Kavel is a free AI video generator and AI image generator - 4K clips with sound, and images you can run without an account or a card. This plugin brings the image side into Vim and Neovim: type a prompt, keep editing, and the finished image's Markdown link lands under your cursor.

    :KavelImage a paper-cut fox in a moonlit forest

About a minute later the line below the cursor reads

    ![a paper-cut fox in a moonlit forest](https://cdn.kavel.ai/uploads/.../....webp)

and the bare URL is in the unnamed register, ready for p.

- Select lines and run :'<,'>KavelImage to use them as the prompt.
- Generation runs on a timer, so Vim never blocks while you wait.
- No key needed for a first try: calls run on Kavel's free allowance.
- With an API key (g:kavel_api_key or $KAVEL_API_KEY) the call runs on your Kavel account and its plan models.

Editing a photo instead of starting from a prompt? Kavel keeps a page per edit:
hairstyle https://www.kavel.ai/image/ai-hairstyle-changer?utm_source=vim
and every other edit https://www.kavel.ai/image?utm_source=vim
AI video tools https://www.kavel.ai/video?utm_source=vim

Source and issues: https://github.com/hanshs474/kavel.vim
See :help kavel for options.
 
install details
Requires Vim 8.2+ (or Neovim 0.5+) and curl.

With a plugin manager:
    Plug 'hanshs474/kavel.vim'

Or unzip into ~/.vim (Vim) or ~/.config/nvim (Neovim), then run :helptags ALL.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
kavel.vim-0.1.0.zip 0.1.0 2026-10-16 8.2 Kavel AI Initial upload
ip used for rating: 216.73.216.144

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github