通用开放接口灵感 API
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_type | int | 是 | 2 / 3 |
keyword | string | 是 | trim 后非空;模糊匹配 work_code / name / creation_prompt / classtag |
page | int | 否 | 默认 1 |
page_size | int | 否 | 默认 20,最大 100 |
sort_type | int | 否 | 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}| 字段 | 类型 | 说明 |
|---|---|---|
total | int | 符合条件的总条数 |
items | array | 当前页作品列表 |
items[].id | int | 作品 ID |
items[].work_code | string | 作品编码 |
items[].work_type | int | 作品类型:2=图片,3=视频 |
items[].cover_url | string | 封面 URL |
items[].resource_url | string | 资源 URL |
items[].name | string | 作品名称 |
items[].creation_prompt | string | 创作提示词 |
items[].classtag | string | 分类/风格标签(逗号分隔) |
items[].use_remark | string | 使用说明;后续交互提示用,可为空 |
items[].resolved_json | string | 生成/展示参数 JSON。具体结构见 resolved_json 规则 |
items[].fee | float64 | 售价(⚡);0 表示免费 |
不返回 internal_desc。