Ai photo style transfer

From awesome-genmedia/skills · View interactive version

Ai photo style transfer is an AI agent skill from the GitHub repository awesome-genmedia/skills. Apply artistic styles to photos using each::sense AI. Transform photographs into oil paintings, watercolors, pencil sketches, anime, comic book art, impressionist works, and more. Maintain subject composition while changing the visual medium. Use for: style transfer, photo to painting, artistic filt

How to use this skill

Skill file

AI Photo Style Transfer

Apply artistic styles to photographs, transforming them into paintings, illustrations, and other visual media using each::sense — the intelligent AI agent that automatically selects the best model for your request.

Quick Start

Requires an each::labs API key. Get one at eachlabs.ai.

Using curl

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "messages": [
      {
        "role": "user",
        "content": [
              {"type": "text", "text": "Transform this photograph into a Van Gogh-style oil painting: swirling brushstrokes, thick impasto texture, vibrant post-impressionist colors, starry night energy, maintain the original composition and subjects but reimagine entirely in oil paint"},
              {"type": "image_url", "image_url": {"url": "https://example.com/original-photo.jpg"}}
            ]
          }
    ],
    "stream": false
  }'

Using Python (OpenAI SDK)

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_EACHLABS_API_KEY",
    base_url="https://eachsense-agent.core.eachlabs.run/v1"
)

response = client.chat.completions.create(
    model="eachsense/beta",
    messages=[{
        "role": "user",
        "content": "Transform this photograph into a Van Gogh-style oil painting: swirling brushstrokes, thick impasto texture, vibrant post-impressionist colors, starry night energy, maintain the original composition and subjects but reimagine entirely in oil paint"
    }],
    # Images are included in the message content array above
)

print(response.choices[0].message.content)

Streaming

Set "stream": true for real-time SSE responses, or "stream": false for complete result in a single response. Streaming is useful for showing progress in UIs; non-streaming is simpler for scripts and automation.

Tips for Style Transfer

Examples

Watercolor Transformation

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "messages": [
      {
        "role": "user",
        "content": [
              {"type": "text", "text": "Convert this landscape photograph into a delicate watercolor painting: soft color washes bleeding at the edges, visible paper texture, loose brushwork in the foliage, sharper detail in the foreground, traditional watercolor technique with wet-on-wet blending"},
              {"type": "image_url", "image_url": {"url": "https://example.com/landscape.jpg"}}
            ]
          }
    ],
    "stream": false
  }'

Anime Style

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "messages": [
      {
        "role": "user",
        "content": [
              {"type": "text", "text": "Transform this portrait into anime style: large expressive eyes, clean line art, flat color shading with subtle gradients, characteristic anime hair rendering, maintain the person's overall look and clothing but fully converted to Japanese anime aesthetic"},
              {"type": "image_url", "image_url": {"url": "https://example.com/portrait.jpg"}}
            ]
          }
    ],
    "stream": false
  }'

Pencil Sketch

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "messages": [
      {
        "role": "user",
        "content": [
              {"type": "text", "text": "Transform this city street photo into a detailed pencil sketch: fine hatching and cross-hatching for shadows, clean lines for architecture, varying pencil pressure for depth, white paper background showing through, skilled draughtsman quality, graphite on paper"},
              {"type": "image_url", "image_url": {"url": "https://example.com/city-street.jpg"}}
            ]
          }
    ],
    "stream": false
  }'

Pop Art

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "messages": [
      {
        "role": "user",
        "content": [
              {"type": "text", "text": "Transform this portrait into Andy Warhol pop art style: bold flat colors, high contrast, four-panel grid with different color variations — pink and yellow, blue and green, orange and purple, red and teal — Ben-Day dots texture, iconic pop art screen print aesthetic"},
              {"type": "image_url", "image_url": {"url": "https://example.com/face-photo.jpg"}}
            ]
          }
    ],
    "stream": false
  }'

Workflow: Style Transfer Gallery

  1. Select source photos — Choose high-quality, well-composed photographs.
  2. Choose target styles — Pick artistic styles that complement each image.
  3. Transform with style cues — Apply detailed style descriptions for best results.
  4. Compare results — Review the transformation against the original.
  5. Create a style series — Apply the same style to multiple photos for a cohesive set.

Related Skills

Related Models

Documentation

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.