lovart
БесплатноБез исполняемых скриптовНе проверенLovart API for AI-powered design generation. Use when user mentions "Lovart", "AI design", "generate image", "generate video", "AI art", "product…
от okou-ai★ 81 звезда на GitHubОб этом скилле
Troubleshooting
If requests fail, run okou doctor check-connector --env-name LOVART_ACCESS_KEY or okou doctor check-connector --url https://lgw.lovart.ai/v1/openapi/mode/query --method POST
Authentication
All requests use AK/SK HMAC-SHA256 signature authentication. Each request requires five signed headers:
| Header | Value |
|---|---|
X-Access-Key |
$LOVART_ACCESS_KEY |
X-Timestamp |
Current Unix timestamp |
X-Signature |
HMAC-SHA256 of {METHOD}\n{PATH}\n{TIMESTAMP} using $LOVART_SECRET_KEY |
X-Signed-Method |
HTTP method (e.g. POST) |
X-Signed-Path |
Request path (e.g. /v1/openapi/chat) |
Environment Variables
| Variable | Description |
|---|---|
LOVART_ACCESS_KEY |
Lovart access key (format: ak_...) |
LOVART_SECRET_KEY |
Lovart secret key (format: sk_...) |
Key Endpoints
Base URL: https://lgw.lovart.ai
1. Generate Design (Chat)
POST /v1/openapi/chat
Send a natural-language prompt to generate images, videos, or other visual content. Returns a thread_id for tracking.
TIMESTAMP=$(date +%s) && SIGNATURE=$(echo -ne "POST\n/v1/openapi/chat\n${TIMESTAMP}" | openssl dgst -sha256 -hmac "$LOVART_SECRET_KEY" | awk '{print $NF}') && curl -s -X POST "https://lgw.lovart.ai/v1/openapi/chat" --header "Content-Type: application/json" --header "X-Access-Key: $LOVART_ACCESS_KEY" --header "X-Timestamp: ${TIMESTAMP}" --header "X-Signature: ${SIGNATURE}" --header "X-Signed-Method: POST" --header "X-Signed-Path: /v1/openapi/chat" -d @/tmp/lovart_chat.json
Write to /tmp/lovart_chat.json:
{
"prompt": "<your-design-description>",
"project_id": "<your-project-id>"
}
To continue a conversation, add "thread_id": "<your-thread-id>".
To attach reference images, add "attachments": ["<cdn-url>"].
To specify a preferred model, add "tool_config": {"prefer_tool_categories": {"IMAGE": ["generate_image_flux_2_max"]}}.
To force a specific tool (e.g. upscale), add "tool_config": {"include_tools": ["upscale_image"]}.
Response: {"thread_id": "..."}
2. Check Generation Status
GET /v1/openapi/chat/status?thread_id=<thread-id>
TIMESTAMP=$(date +%s) && SIGNATURE=$(echo -ne "GET\n/v1/openapi/chat/status\n${TIMESTAMP}" | openssl dgst -sha256 -hmac "$LOVART_SECRET_KEY" | awk '{print $NF}') && curl -s "https://lgw.lovart.ai/v1/openapi/chat/status?thread_id=<your-thread-id>" --header "X-Access-Key: $LOVART_ACCESS_KEY" --header "X-Timestamp: ${TIMESTAMP}" --header "X-Signature: ${SIGNATURE}" --header "X-Signed-Method: GET" --header "X-Signed-Path: /v1/openapi/chat/status"
Response includes status (running, done, pending_confirmation, failed) and progress (0-100).
3. Get Generation Result
GET /v1/openapi/chat/result?thread_id=<thread-id>
TIMESTAMP=$(date +%s) && SIGNATURE=$(echo -ne "GET\n/v1/openapi/chat/result\n${TIMESTAMP}" | openssl dgst -sha256 -hmac "$LOVART_SECRET_KEY" | awk '{print $NF}') && curl -s "https://lgw.lovart.ai/v1/openapi/chat/result?thread_id=<your-thread-id>" --header "X-Access-Key: $LOVART_ACCESS_KEY" --header "X-Timestamp: ${TIMESTAMP}" --header "X-Signature: ${SIGNATURE}" --header "X-Signed-Method: GET" --header "X-Signed-Path: /v1/openapi/chat/result"
Response includes items with generated artifacts (image URLs, video URLs) and thread_id.
4. Confirm High-Cost Operation
POST /v1/openapi/chat/confirm
When status is pending_confirmation, confirm to proceed with high-cost operations (e.g. video generation).
TIMESTAMP=$(date +%s) && SIGNATURE=$(echo -ne "POST\n/v1/openapi/chat/confirm\n${TIMESTAMP}" | openssl dgst -sha256 -hmac "$LOVART_SECRET_KEY" | awk '{print $NF}') && curl -s -X POST "https://lgw.lovart.ai/v1/openapi/chat/confirm" --header "Content-Type: application/json" --header "X-Access-Key: $LOVART_ACCESS_KEY" --header "X-Timestamp: ${TIMESTAMP}" --header "X-Signature: ${SIGNATURE}" --header "X-Signed-Method: POST" --header "X-Signed-Path: /v1/openapi/chat/confirm" -d @/tmp/lovart_confirm.json
Write to /tmp/lovart_confirm.json:
{
"thread_id": "<your-thread-id>"
}
5. Create Project
POST /v1/openapi/project/save
TIMESTAMP=$(date +%s) && SIGNATURE=$(echo -ne "POST\n/v1/openapi/project/save\n${TIMESTAMP}" | openssl dgst -sha256 -hmac "$LOVART_SECRET_KEY" | awk '{print $NF}') && curl -s -X POST "https://lgw.lovart.ai/v1/openapi/project/save" --header "Content-Type: application/json" --header "X-Access-Key: $LOVART_ACCESS_KEY" --header "X-Timestamp: ${TIMESTAMP}" --header "X-Signature: ${SIGNATURE}" --header "X-Signed-Method: POST" --header "X-Signed-Path: /v1/openapi/project/save" -d @/tmp/lovart_project.json
Write to /tmp/lovart_project.json:
{
"project_id": "",
"project_name": "<your-project-name>",
"project_type": 3
}
Response includes project_id. Use the returned ID in subsequent chat requests.
6. Set Generation Mode
POST /v1/openapi/mode/set
Switch
Установить lovart в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл lovart?
Lovart API for AI-powered design generation. Use when user mentions "Lovart", "AI design", "generate image", "generate video", "AI art", "product photography", "marketing design", or visual content creation.
Как установить скилл lovart?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lovart запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic