cinematic-prompt-formatter

Cinematic Prompt Formatter

Translate cinematic language into optimized prompts for Stable Diffusion, Flux, and SDXL models.

Features

Installation

pip install cinematic-prompt-formatter

Or from source:

git clone https://github.com/belentani7/cinematic-prompt-formatter.git
cd cinematic-prompt-formatter
pip install -e .

Quick Start

from formatter import format_prompt

# Single prompt
result = format_prompt("dolly in, rim light, cyberpunk mood")
# Output: (dolly zoom, vertigo effect:1.1), (rim lighting, edge light:1.2), (cyberpunk, neon glow, rain:1.3)

# With specific model
result = format_prompt("anamorphic lens, noir lighting", model="flux")

# Batch processing
results = format_batch([
    "dolly in, rim light, cyberpunk mood",
    "steadicam, low key, thriller"
], style="hollywood_cinematic")

CLI Usage

# Format a single prompt
cpf format "dolly in, rim light, cyberpunk mood" --model sdxl

# Batch process from CSV
cpf batch input.csv --output formatted.csv

# List available presets
cpf presets

Cinematic Terms

Lens Types

Lighting

Camera Movement

Mood/Atmosphere

Color Grading

Presets

Preset Description
hollywood_cinematic Big budget Hollywood look
indie_film Independent film aesthetic
music_video Music video style
commercial Commercial/advertising look
anime Anime-inspired style
realistic Photorealistic style

Model Support

License

MIT License