Mangogo 营业厅Mangogo 营业厅
首页API 参考Skills插件

POST /v1/inspiration/works

POST/v1/inspiration/works

| 字段 | 类型 | 必填 | 说明 | | ----------- | ------ | --- | ------------------------------------------------------------------- | | `work_type` | int | 是 | `2` / `3` | | `keyword` | string | 是 | trim 后非空;模糊匹配 `work_code` / `name` / `creation_prompt` / `classtag` | | `page` | int | 否 | 默认 `1`

请求

字段类型必填说明
work_typeint是2 / 3
keywordstring是trim 后非空;模糊匹配 work_code / name / creation_prompt / classtag
pageint否默认 1
page_sizeint否默认 20,最大 100
sort_typeint否0 推荐值(默认);1 热度;2 发布时间
{  "work_type": 2,  "keyword": "sakura",  "page": 1,  "page_size": 20,  "sort_type": 0}

响应

{  "items": [    {      "id": 1057,      "work_code": "W00001057",      "work_type": 2,      "cover_url": "https://assets.example.com/cover.png",      "resource_url": "https://assets.example.com/resource.png",      "name": "intricate linework with expressive contrasts, soft lighting...",      "creation_prompt": "Mh1$AgThS2, intricate linework with expressive contrasts...",      "classtag": "drawing,animated,scenery,cherry blossoms",      "use_remark": "建议保留人物姿态,替换背景后重新生成",      "resolved_json": "{\"size\":\"832x1216\",\"width\":832,\"height\":1216,\"response_format\":\"url\"}",      "fee": 1.0    }  ],  "total": 5200}
字段类型说明
totalint符合条件的总条数
itemsarray当前页作品列表
items[].idint作品 ID
items[].work_codestring作品编码
items[].work_typeint作品类型:2=图片,3=视频
items[].cover_urlstring封面 URL
items[].resource_urlstring资源 URL
items[].namestring作品名称
items[].creation_promptstring创作提示词
items[].classtagstring分类/风格标签(逗号分隔)
items[].use_remarkstring使用说明;后续交互提示用,可为空
items[].resolved_jsonstring生成/展示参数 JSON。具体结构见 resolved_json 规则
items[].feefloat64售价(⚡);0 表示免费

不返回 internal_desc。