Translate cinematic language into optimized prompts for Stable Diffusion, Flux, and SDXL models.
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 .
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")
# 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
anamorphic - Anamorphic lens, cinematic 2.39:1 aspect ratio35mm - Natural perspective lens50mm - Standard lens, human eye perspective85mm - Portrait lens, flattering compression135mm - Telephoto, extreme compression24mm - Wide angle, dramatic distortion14mm - Ultra wide, extreme perspectivefisheye - Fisheye lens, circular distortiontilt-shift - Tilt-shift lens, miniature effectrim_light - Edge lighting, separation from backgroundlow_key - Low-key lighting, dramatic shadowshigh_key - High-key lighting, bright and evenchiaroscuro - Strong contrast between light and darkbacklight - Backlighting, silhouette effectsoft_light - Soft, diffused lightinghard_light - Hard, directional lightinggolden_hour - Warm, golden hour lightblue_hour - Cool, blue hour lightneon - Neon lighting, colorful glowpractical - Practical lighting, in-scene sourcesdolly_in - Dolly zoom, vertigo effectdolly_out - Reverse dolly, revealsteadicam - Steadicam, smooth motionhandheld - Handheld camera, raw energycrane - Crane shot, sweeping movementtracking - Tracking shot, following subjectpan - Pan, horizontal movementtilt - Tilt, vertical movementwhip_pan - Whip pan, fast transitiondrone - Aerial drone shotorbit - Orbiting camera movementpush_in - Push in, increasing intensitypull_out - Pull out, revealing contextnoir - Film noir, high contrastcyberpunk - Cyberpunk aestheticromantic - Romantic, soft atmospherehorror - Horror, unsettlingthriller - Thriller, tensionepic - Epic, grand scaleintimate - Intimate, close feelingsurreal - Surreal, dreamlikevintage - Vintage, nostalgicfuturistic - Futuristic, advancedpost_apocalyptic - Post-apocalyptic decayfantasy - Fantasy, magicalwestern - Western, frontiersteampunk - Steampunk, Victorian techethereal - Ethereal, otherworldlyteal_orange - Teal and orange color gradedesaturated - Desaturated, muted colorshigh_saturation - High saturation, vibrantmonochrome - Black and whitesepia - Sepia tonecross_process - Cross-processing effectbleach_bypass - Bleach bypass, high contrast| 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 |
MIT License