Skip to main content

Overview

AI renaming uses a vision model to analyze your compressed images and generate descriptive file names automatically. You can use OpenAI in the cloud, or run a local model with Ollama so nothing leaves your Mac. Instead of keeping generic names like IMG_0042.jpg, Compresto can rename files based on their visual content — e.g., sunset-over-mountain-lake.jpg.
AI renaming is currently available for images only. Video, GIF, and PDF files are not supported yet.

Choose a Provider

Setup with OpenAI

1
Open Settings > AI Renaming and turn on Enable AI Renaming
2
Set Provider to OpenAI
3
Enter your API Key and press VerifyYou can get an API key from platform.openai.com. The key is stored securely in your Keychain.
4
Choose a ModelClick Compare model pricing below the picker to see every model’s price side by side. Clicking a row in the table selects that model.
5
Select a naming style and compress your images — files will be renamed automatically

Setup with Ollama (offline)

1
Install Ollama and pull a vision model, for example:
2
Open Settings > AI Renaming and turn on Enable AI Renaming
3
Set Provider to Ollama (Local)
4
Check the server URL (default http://localhost:11434) and press Test
5
Choose a Model. Compresto lists the vision models installed in Ollama; press the refresh button after pulling a new one.
If the model list shows No models found, make sure Ollama is running and that you’ve pulled a vision-capable model. If no model is selected, files are compressed but not renamed.

OpenAI Models

All models accept images. Prices are OpenAI’s standard rates in USD; the last column is Compresto’s estimate for renaming 1,000 images. The estimates assume each image is sent at 512 px with the naming prompt and a short reply, so your actual cost can vary. Check OpenAI’s pricing page for current rates.
For most users, GPT-6 Luna or GPT-5 Nano is plenty for naming files and costs only a few cents per 1,000 images. Larger models like GPT-6.1 Sol and GPT-6 Astra cost far more per image.
To keep costs down, Compresto downscales each image to at most 512 px before sending it and asks every model to use as little reasoning as it supports.

Naming Style

Custom Prompt

When using the Custom preset, you can write your own prompt to control how files are named. For example:
  • "Name the file based on the dominant color and subject"
  • "Use product category followed by a brief description"
  • "Generate a name suitable for an e-commerce product listing"

Max Filename Length

Use the Max filename length slider (20–200 characters) to keep generated file names manageable. This prevents overly long names that can cause issues with some file systems or workflows.

Rename in the Notch

After compressing a single file, you can rename the output yourself right from the notch: click the pencil icon next to the file name, type a new name, and press Return. Press Esc to cancel. The file extension can’t be changed, and the notch stays open while you type. The notch also shows AI renaming progress after compression finishes.

Tips

  • Batch processing: AI renaming works with batch compression — all images in a batch are renamed individually
  • API costs: With OpenAI, each image requires one API call. Use Compare model pricing to estimate a batch before you run it, or switch to Ollama for free on-device renaming
  • Privacy: Images are downscaled to at most 512 px before analysis. With Ollama, nothing is sent to a server
  • Custom prompts: Be specific in custom prompts for more consistent results
  • File extension: The original file extension is always preserved regardless of the generated name