Style Transfer Pro
Apply artistic style transfer to images using OpenAI Images API with curated style prompts.
Setup
- Needs env:
OPENAI_API_KEY
- Needs source image URL (public URL or base64 data URI)
Quick Start
Transform an image to oil painting style:
python3 ~/Projects/agent-scripts/skills/style-transfer/scripts/transfer.py \
--source "https://example.com/photo.jpg" \
--style "oil painting on linen, impressionist brushwork, rich texture, van gogh style"
Transform to multiple styles at once:
python3 ~/Projects/agent-scripts/skills/style-transfer/scripts/transfer.py \
--source "https://example.com/photo.jpg" \
--style "oil painting" \
--style "watercolor illustration" \
--style "cyberpunk neon" \
--style "vintage sepia photograph"
Style Library
Use these pre-defined style names (or provide custom prompts):
Art Movements
impressionist-oil - Impressionist oil painting with visible brushwork
watercolor-dream - Soft watercolor with ink linework
digital-art - Modern digital art with crisp details
comic-book - Bold comic book illustration style
anime-studio - Anime/ manga studio style
pixel-art - Retro pixel art aesthetic
vector-flat - Clean flat vector illustration
surreal-abstract - Surrealist abstract art
Photographic Styles
vintage-sepia - Sepia vintage photography
polaroid - Instant polaroid look with faded tones
film-noir - Black and white film noir aesthetic
candid-snapshot - Authentic snapshot look
studio-portrait - Professional studio photography
vogue-editorial - Fashion editorial style
golden-hour - Golden hour warm lighting
neon-noir - Cyberpunk neon noir
Period Styles
renaissance-portrait - Classical Renaissance oil painting
baroque-drama - Dramatic Baroque chiaroscuro
art-deco-elegance - Art Deco geometric elegance
mid-century-modern - Mid-century modern illustration
victorian-etching - Victorian etching aesthetic
steampunk-gear - Steampunk mechanical style
dystopian-grunge - Dystopian grunge aesthetic
psychedelic-60s - 1960s psychedelic art
Custom Style Prompts
For fine-grained control, provide full style prompts:
python3 ~/Projects/agent-scripts/skills/style-transfer/scripts/transfer.py \
--source "https://example.com/photo.jpg" \
--prompt "watercolor painting, soft brushstrokes, pastel color palette, hand-painted illustration style, minimal detail, elegant and dreamy"
Style prompt structure:
- Medium: "oil painting", "watercolor", "digital art", "photography"
- Technique: "impressionist", "glazing", "crosshatching", "flat design"
- Lighting: "softbox", "golden hour", "dramatic chiaroscuro", "diffuse"
- Color: "pastel", "muted", "vibrant", "muted earth tones"
- Quality: "ultra-detailed", "minimalist", "sketch", "finished artwork"
Parameters
--source - Source image URL (required)
--style - Pre-defined style name (repeatable)
--prompt - Full custom style prompt (overrides --style)
--out-dir - Output directory (default: ~/Projects/tmp/style-transfer-*)
--size - Image size: 1024x1024, 1792x1024, 1024x1792 (default: 1024x1024)
--quality - high/standard (default: high)
--model - OpenAI image model (default: gpt-image-1.5)
--api-key - OpenAI API key (or use OPENAI_API_KEY env)
Output
*.png - Transformed images
prompts.json - Style prompts used
index.html - Thumbnail gallery comparing styles
1---
2name: style-transfer
3description: Professional artistic style transfer via OpenAI Images API. Transform images into specific art styles, eras, and visual aesthetics. Use when user needs to convert an existing image into different artistic styles, apply famous art movements, or transform visual content with specific stylistic parameters (e.g., "make this photo look like an oil painting", "apply cyberpunk aesthetic", "transform into vintage photography").
4metadata:
5 source: https://skillmd.com/skills/modbender/style-transfer
6---
7
8# Style Transfer Pro
9
10Apply artistic style transfer to images using OpenAI Images API with curated style prompts.
11
12## Setup
13
14- Needs env: `OPENAI_API_KEY`
15- Needs source image URL (public URL or base64 data URI)
16
17## Quick Start
18
19Transform an image to oil painting style:
20
21```bash
22python3 ~/Projects/agent-scripts/skills/style-transfer/scripts/transfer.py \
23 --source "https://example.com/photo.jpg" \
24 --style "oil painting on linen, impressionist brushwork, rich texture, van gogh style"
25```
26
27Transform to multiple styles at once:
28
29```bash
30python3 ~/Projects/agent-scripts/skills/style-transfer/scripts/transfer.py \
31 --source "https://example.com/photo.jpg" \
32 --style "oil painting" \
33 --style "watercolor illustration" \
34 --style "cyberpunk neon" \
35 --style "vintage sepia photograph"
36```
37
38## Style Library
39
40Use these pre-defined style names (or provide custom prompts):
41
42### Art Movements
43- `impressionist-oil` - Impressionist oil painting with visible brushwork
44- `watercolor-dream` - Soft watercolor with ink linework
45- `digital-art` - Modern digital art with crisp details
46- `comic-book` - Bold comic book illustration style
47- `anime-studio` - Anime/ manga studio style
48- `pixel-art` - Retro pixel art aesthetic
49- `vector-flat` - Clean flat vector illustration
50- `surreal-abstract` - Surrealist abstract art
51
52### Photographic Styles
53- `vintage-sepia` - Sepia vintage photography
54- `polaroid` - Instant polaroid look with faded tones
55- `film-noir` - Black and white film noir aesthetic
56- `candid-snapshot` - Authentic snapshot look
57- `studio-portrait` - Professional studio photography
58- `vogue-editorial` - Fashion editorial style
59- `golden-hour` - Golden hour warm lighting
60- `neon-noir` - Cyberpunk neon noir
61
62### Period Styles
63- `renaissance-portrait` - Classical Renaissance oil painting
64- `baroque-drama` - Dramatic Baroque chiaroscuro
65- `art-deco-elegance` - Art Deco geometric elegance
66- `mid-century-modern` - Mid-century modern illustration
67- `victorian-etching` - Victorian etching aesthetic
68- `steampunk-gear` - Steampunk mechanical style
69- `dystopian-grunge` - Dystopian grunge aesthetic
70- `psychedelic-60s` - 1960s psychedelic art
71
72## Custom Style Prompts
73
74For fine-grained control, provide full style prompts:
75
76```bash
77python3 ~/Projects/agent-scripts/skills/style-transfer/scripts/transfer.py \
78 --source "https://example.com/photo.jpg" \
79 --prompt "watercolor painting, soft brushstrokes, pastel color palette, hand-painted illustration style, minimal detail, elegant and dreamy"
80```
81
82Style prompt structure:
831. Medium: "oil painting", "watercolor", "digital art", "photography"
842. Technique: "impressionist", "glazing", "crosshatching", "flat design"
853. Lighting: "softbox", "golden hour", "dramatic chiaroscuro", "diffuse"
864. Color: "pastel", "muted", "vibrant", "muted earth tones"
875. Quality: "ultra-detailed", "minimalist", "sketch", "finished artwork"
88
89## Parameters
90
91- `--source` - Source image URL (required)
92- `--style` - Pre-defined style name (repeatable)
93- `--prompt` - Full custom style prompt (overrides --style)
94- `--out-dir` - Output directory (default: ~/Projects/tmp/style-transfer-*)
95- `--size` - Image size: 1024x1024, 1792x1024, 1024x1792 (default: 1024x1024)
96- `--quality` - high/standard (default: high)
97- `--model` - OpenAI image model (default: gpt-image-1.5)
98- `--api-key` - OpenAI API key (or use OPENAI_API_KEY env)
99
100## Output
101
102- `*.png` - Transformed images
103- `prompts.json` - Style prompts used
104- `index.html` - Thumbnail gallery comparing styles