算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
ai-food-photography【设计与创意】Generate professional food photography using each::sense AI. Create appetizing, restaurant-quality images of dishes, ingredients, beverages, and culinary scenes. Supports overhead flat lays, 45-degree angles, close-up macro shots, and lifestyle dining scenes. Use for: food photography, restaurant menus, food blogs, cookbook visuals, food marketing. T…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Generate professional, appetizing food photography for menus, blogs, and marketing 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": "A professional food photograph of a perfectly seared salmon fillet on a bed of wild rice with roasted asparagus and a drizzle of lemon butter sauce, ceramic plate on a dark slate surface, soft side lighting with gentle shadows, shallow depth of field, restaurant-quality plating, editorial food photography"
}
],
"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": "A professional food photograph of a perfectly seared salmon fillet on a bed of wild rice with roasted asparagus and a drizzle of lemon butter sauce, ceramic plate on a dark slate surface, soft side lighting with gentle shadows, shallow depth of field, restaurant-quality plating, editorial food photography"
}]
)
print(response.choices[0].message.content)
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": "Create a professional food photograph in the same style and lighting as this reference: match the color temperature, depth of field, and surface texture, but feature a different dish — a bowl of ramen with a soft-boiled egg, nori, and green onions"},
{"type": "image_url", "image_url": {"url": "https://example.com/food-style-reference.jpg"}}
]
}
],
"stream": false
}'
Images are sent inside messages using the OpenAI multimodal content format. Maximum 4 images per request.
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.
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": "An overhead flat lay food photograph of a full breakfast spread: avocado toast with poached eggs, a bowl of fresh berries, a cup of latte with art, fresh orange juice, and a croissant, all arranged on a white marble surface with linen napkins and small potted herbs, bright natural morning light, food blog aesthetic"
}
],
"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": "A dramatic close-up food photograph of a chocolate lava cake being cut open, molten chocolate flowing out onto the white plate, a dusting of powdered sugar, a single mint leaf, dark moody background with a single warm spotlight, macro detail showing the cake texture, fine dining dessert photography"
}
],
"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": "A professional beverage photograph of a craft cocktail: a copper Moscow mule mug with condensation droplets, fresh lime wedge and mint sprig garnish, crushed ice visible at the top, dark bar counter background with warm ambient bokeh lights, commercial beverage photography"
}
],
"stream": false
}'