算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
ai-video-editor【设计与创意】Edit videos with AI assistance using each::sense AI. Apply style transfers, change visual elements, add effects, modify scenes, and transform video content with natural language instructions. Supports color grading, visual effects, scene modifications, and artistic transformations. Use for: video post-production, color grading, visual effects, style …
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Edit and transform videos with natural language instructions using each::sense — the intelligent AI agent that automatically selects the best model for your request.
Requires an each::labs API key. Get one at eachlabs.ai.
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": "Edit this video: apply a warm cinematic color grade with slightly desaturated tones, add a subtle film grain overlay, and enhance the contrast for a moody atmospheric look"},
{"type": "image_url", "image_url": {"url": "https://example.com/raw-footage.mp4"}}
]
}
],
"stream": false
}'
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": "Edit this video: apply a warm cinematic color grade with slightly desaturated tones, add a subtle film grain overlay, and enhance the contrast for a moody atmospheric look"
}],
# Images are included in the message content array above
)
print(response.choices[0].message.content)
Images are sent inside messages using the OpenAI multimodal content format. Maximum 4 images per request.
Set "stream": true for real-time Server-Sent Events (SSE) responses, or "stream": false to receive the complete result in a single response. Streaming is useful for showing progress in UIs; non-streaming is simpler for scripts and automation.
| Edit Type | Description | Example Prompt |
|---|---|---|
| Color Grading | Adjust colors, tones, and mood | "Apply a teal and orange cinematic look" |
| Style Transfer | Convert visual style of footage | "Make this look like a Studio Ghibli anime" |
| Weather Effects | Add environmental effects | "Add falling snow and a winter atmosphere" |
| Time of Day | Change lighting conditions | "Transform this daytime scene to golden hour" |
| Visual Effects | Add particles, glow, or overlays | "Add floating fireflies and a magical glow" |
| Enhancement | Improve quality and detail | "Stabilize, sharpen, and reduce noise" |
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": "Apply a cinematic teal-and-orange color grade to this video. Shadows pushed toward teal, highlights toward warm amber. Slightly raised black levels for a filmic look. Consistent throughout the clip."},
{"type": "image_url", "image_url": {"url": "https://example.com/interview-footage.mp4"}}
]
}
],
"stream": false
}'
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 real-world video into a hand-painted watercolor animation style. Soft brush strokes, gentle color bleeding at edges, paper texture visible, maintain smooth motion. Keep the same subjects and movements."},
{"type": "image_url", "image_url": {"url": "https://example.com/park-walk.mp4"}}
]
}
],
"stream": false
}'
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": "Add rain to this outdoor video: heavy raindrops falling, wet reflections on the ground, slight mist in the distance, darker sky. The rain should interact naturally with the scene and be consistent frame-to-frame."},
{"type": "image_url", "image_url": {"url": "https://example.com/street-scene.mp4"}}
]
}
],
"stream": false
}'
| Look | Description |
|---|---|
| Teal & Orange | Cool shadows, warm highlights — blockbuster cinema |
| Desaturated Cool | Muted, blue-gray tones — thriller, drama |
| Warm Vintage | Golden haze, lifted blacks — nostalgic, indie film |
| High Contrast B&W | Dramatic black and white — documentary, noir |
| Pastel Soft | Low contrast, soft colors — romance, dream sequence |
| Neon Cyberpunk | Saturated pinks, blues, greens — sci-fi, music videos |