Seedream图像生成
第三方 via LinkAISeedream图像生成 - 基于Seedream模型的图片生成和编辑工具,
LinkAI v1.0.0
安装命令
$ cow skill install plugin-seedream-image
终端输入或发送给 CowAgent 一键安装
需要环境变量
LINKAI_API_KEY 需要工具
curl 内容创作
当用户需要生成、编辑或合成图片时选择该工具,如果只是文本创作类的请求则不要选择该工具。输入的参数为用户提供的画图描述,需要保持完全一致,不要有任何修改。当需要执行该插件提供的功能时可使用此技能。
---
name: plugin-seedream-image
description: Seedream图像生成 - 基于Seedream模型的图片生成和编辑工具,当用户需要生成、编辑或合成图片时选择该工具,如果只是文本创作类的请求则不要选择该工具。输入的参数为用户提供的画图描述,需要保持完全一致,不要有任何修改。当需要执行该插件提供的功能时可使用此技能。
metadata:
requires:
bins: ["curl"]
env: ["LINKAI_API_KEY"]
---
# Seedream图像生成
## Setup
This skill requires a LinkAI API Key.
1. Get your API Key from [LinkAI Console](https://link-ai.tech/console/interface)
2. Set the environment variable: `export LINKAI_API_KEY=Link_xxxxxxxxxxxx`
## Skill Args Definition
```json
{
"type": "function",
"function": {
"name": "plugin-seedream-image",
"description": "Seedream图像生成 - 基于Seedream模型的图片生成和编辑工具,当用户需要生成、编辑或合成图片时选择该工具,如果只是文本创作类的请求则不要选择该工具。输入的参数为用户提供的画图描述,需要保持完全一致,不要有任何修改。当需要执行该插件提供的功能时可使用此技能。",
"parameters": {
"type": "object",
"properties": {
"prompt": {
"type": "string",
"description": "提示词"
},
"image_url": {
"type": "string",
"description": "原始图片url(选填,改图时需要)"
},
"version": {
"type": "string",
"description": "模型版本",
"default": "doubao-seedream-4.5",
"enum": [
"doubao-seedream-4.5",
"doubao-seedream-4.0"
]
},
"image_size": {
"type": "string",
"description": "图片尺寸,支持填写 2K、4K",
"default": "2K"
}
},
"required": [
"prompt"
]
}
}
}
```
## Usage
**Example**:
```bash
curl -X POST "https://api.link-ai.tech/v1/plugin/execute" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LINKAI_API_KEY" \
-d '{
"code": "seedream-image",
"args": {
"prompt": "<提示词>",
"image_url": "<原始图片url(选填,改图时需要)>",
"version": "doubao-seedream-4.5",
"image_size": "2K"
}
}'
```
> 建议设置超时时间为 120s。
**Response**:
```json
{
"success": true,
"code": 200,
"message": "success",
"data": "<execution result>"
}
```