aiconductor-cli 1.6.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/README.md +582 -488
  2. package/bin/aiconductor-cli.js +412 -351
  3. package/package.json +1 -1
  4. package/src/api.js +151 -3
  5. package/src/api.test.js +360 -4
  6. package/src/commands/content.js +184 -184
  7. package/src/commands/douyin.js +252 -0
  8. package/src/commands/html_publish.js +54 -54
  9. package/src/commands/md_publish.js +175 -175
  10. package/src/commands/web.js +69 -0
  11. package/src/commands/web_search.js +99 -99
  12. package/src/commands/wx.js +116 -116
  13. package/src/commands/xhs.js +763 -609
  14. package/src/lib/cli-utils.js +172 -172
  15. package/src/lib/daren-score.js +91 -0
  16. package/src/lib/daren-score.test.js +57 -0
  17. package/AGENTS.md +0 -193
  18. package/api_docs/aic_web_search.md +0 -84
  19. package/api_docs/audio_converter.md +0 -51
  20. package/api_docs/balance_query.md +0 -38
  21. package/api_docs/bing_search.md +0 -55
  22. package/api_docs/china_stock_data.md +0 -221
  23. package/api_docs/delete_published_webpage.md +0 -38
  24. package/api_docs/doubao_search.md +0 -80
  25. package/api_docs/douyin_link_to_text_v1.md +0 -50
  26. package/api_docs/douyin_link_to_text_v2.md +0 -50
  27. package/api_docs/douyin_user_detail.md +0 -65
  28. package/api_docs/douyin_user_search.md +0 -58
  29. package/api_docs/douyin_user_videos.md +0 -49
  30. package/api_docs/douyin_user_videos_async.md +0 -45
  31. package/api_docs/douyin_user_videos_async_query.md +0 -41
  32. package/api_docs/douyin_user_videos_max.md +0 -59
  33. package/api_docs/douyin_video_comments.md +0 -68
  34. package/api_docs/douyin_video_info.md +0 -70
  35. package/api_docs/douyin_video_search.md +0 -60
  36. package/api_docs/douyin_video_search_fast.md +0 -48
  37. package/api_docs/fast_ocr.md +0 -51
  38. package/api_docs/flow_article2podcast_creat.md +0 -41
  39. package/api_docs/flow_article2podcast_query.md +0 -41
  40. package/api_docs/flow_wx_history_articles.md +0 -45
  41. package/api_docs/generate_image.md +0 -68
  42. package/api_docs/get_duration.md +0 -37
  43. package/api_docs/hot_list_mixed.md +0 -122
  44. package/api_docs/html_publish.md +0 -50
  45. package/api_docs/html_publish_flexible.md +0 -65
  46. package/api_docs/image_resize.md +0 -58
  47. package/api_docs/image_to_permalink.md +0 -61
  48. package/api_docs/link_expander.md +0 -39
  49. package/api_docs/llm_proxy.md +0 -61
  50. package/api_docs/markitdown.md +0 -47
  51. package/api_docs/md_to_docx.md +0 -51
  52. package/api_docs/md_to_html.md +0 -53
  53. package/api_docs/md_to_mindmap.md +0 -52
  54. package/api_docs/md_to_pdf.md +0 -52
  55. package/api_docs/md_to_png.md +0 -53
  56. package/api_docs/md_to_txt.md +0 -51
  57. package/api_docs/md_to_wxhtml.md +0 -64
  58. package/api_docs/md_to_xhs.md +0 -87
  59. package/api_docs/md_to_xlsx.md +0 -52
  60. package/api_docs/portrait_enhancement.md +0 -69
  61. package/api_docs/published_webpages.md +0 -45
  62. package/api_docs/r2_uploader.md +0 -51
  63. package/api_docs/schedulerx_job_create.md +0 -56
  64. package/api_docs/transaction_query.md +0 -52
  65. package/api_docs/url_to_markdown.md +0 -50
  66. package/api_docs/video_download_url.md +0 -57
  67. package/api_docs/video_download_url_oss.md +0 -55
  68. package/api_docs/video_to_text.md +0 -48
  69. package/api_docs/video_to_text_v2.md +0 -49
  70. package/api_docs/volcengine_face_pretty.md +0 -55
  71. package/api_docs/volcengine_faceswap.md +0 -55
  72. package/api_docs/website_screenshot.md +0 -49
  73. package/api_docs/wx_access_token.md +0 -44
  74. package/api_docs/wx_article_analysis_data_push.md +0 -43
  75. package/api_docs/wx_article_data.md +0 -48
  76. package/api_docs/wx_article_style_rewrite.md +0 -45
  77. package/api_docs/wx_draft_add.md +0 -56
  78. package/api_docs/wx_draft_publish.md +0 -47
  79. package/api_docs/wx_history_articles.md +0 -89
  80. package/api_docs/wx_image_upload.md +0 -46
  81. package/api_docs/wx_md_to_html.md +0 -48
  82. package/api_docs/wx_rss_reader.md +0 -59
  83. package/api_docs/xhs_hot_list.md +0 -48
  84. package/api_docs/xhs_note_comments_fast.md +0 -54
  85. package/api_docs/xhs_note_info_v2.md +0 -45
  86. package/api_docs/xhs_note_info_v3.md +0 -69
  87. package/api_docs/xhs_note_publish.md +0 -54
  88. package/api_docs/xhs_note_search_v2.md +0 -73
  89. package/api_docs/xhs_note_search_v3.md +0 -54
  90. package/api_docs/xhs_user_info_v2.md +0 -61
  91. package/api_docs/xhs_user_notes_v2.md +0 -56
  92. package/api_docs/xhs_user_notes_v3.md +0 -48
@@ -1,52 +0,0 @@
1
- ## 接口信息
2
- - **URL**: `http://plugin.aiconductor.fun/api/users/transaction_query`
3
- - **方法**: `POST` / `GET`
4
- - **Content-Type**: `application/json`
5
- - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
-
7
- ## 功能说明
8
- 根据 API 密钥查询当前账户的消费/充值记录,支持类型、时间范围筛选、排序与分页(每页 20 条)。本插件仅校验密钥、不计费(无 billing)。
9
-
10
- ## 请求参数
11
-
12
- | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
- |--------|------|------|--------|------|
14
- | page | int | 否 | 1 | 页码(从 1 开始) |
15
- | type | string | 否 | "" | 交易类型筛选:`consume`(消费)/ `recharge`(充值),为空则不筛选 |
16
- | start_date | string | 否 | "" | 起始日期,格式 `YYYY-MM-DD` |
17
- | end_date | string | 否 | "" | 结束日期,格式 `YYYY-MM-DD` |
18
- | order | string | 否 | "desc" | 排序方向:`asc`(升序)/ `desc`(降序) |
19
-
20
- > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
21
-
22
- ## 响应参数
23
-
24
- | 参数名 | 类型 | 说明 |
25
- |--------|------|------|
26
- | success | boolean | 是否成功 |
27
- | message | string | 响应消息 |
28
- | data | array[object] | 交易记录列表(见下) |
29
- | pagination | object | 分页信息(见下) |
30
- | summary | object | 金额汇总(见下) |
31
-
32
- `data[]` 字段:`id`(int)、`service_code`(string)、`amount`(float)、`balance_after`(float)、`type`(string, consume/recharge)、`notes`(string)、`created_at`(string, `YYYY-MM-DD HH:MM:SS`)。
33
-
34
- `pagination` 字段:`page`(int)、`page_size`(int, 固定 20)、`total`(int)、`total_pages`(int)。
35
-
36
- `summary` 字段:`total_consume`(float, 消费总额)、`total_recharge`(float, 充值总额)。
37
-
38
- ## 请求示例
39
-
40
- ```bash
41
- curl -X POST "http://plugin.aiconductor.fun/api/users/transaction_query" \
42
- -H "Authorization: Bearer your_api_key" \
43
- -H "Content-Type: application/json" \
44
- -d '{"page": 1, "type": "consume", "start_date": "2026-07-01", "end_date": "2026-07-29", "order": "desc"}'
45
- ```
46
-
47
- ## 注意事项
48
- 1. 本插件仅校验 api_key 并查询其对应账户记录,不扣费(无 billing 字段)。
49
- 2. 参数校验:`page < 1`、`type` 非 consume/recharge、`order` 非 asc/desc 均返回失败。
50
- 3. 筛选 `start_date`/`end_date` 自动补全为当日 `00:00:00` ~ `23:59:59`。
51
- 4. `summary` 汇总金额针对全部匹配记录(不限当前页);`page` 超出 `total_pages` 时返回失败。
52
- 5. 失败情况(密钥无效、账户禁用、参数错误、服务异常)均返回空 data 与零值分页/汇总。
@@ -1,50 +0,0 @@
1
- ## 接口信息
2
- - **URL**: `http://plugin.aiconductor.fun/api/url_to_markdown`
3
- - **方法**: `POST`
4
- - **Content-Type**: `application/json`
5
- - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
-
7
- ## 功能说明
8
- 将网页 URL 转换为干净的 Markdown 格式文本(使用 defuddle-proxy 服务)。按次计费,费用以 api_services 表配置为准。
9
-
10
- ## 请求参数
11
-
12
- | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
- |--------|------|------|--------|------|
14
- | url | string | 是 | - | 要转换的网页 URL(必须以 http:// 或 https:// 开头) |
15
- | timeout | int | 否 | 30 | 请求超时时间(秒) |
16
-
17
- > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
18
-
19
- ## 响应参数
20
-
21
- | 参数名 | 类型 | 说明 |
22
- |--------|------|------|
23
- | success | boolean | 是否成功 |
24
- | message | string | 响应消息 |
25
- | markdown | string | 转换后的 Markdown 内容(失败时为 "") |
26
- | billing | object | 计费信息(见下方子字段) |
27
- | billing.service_fee | float | 本次服务费用 |
28
- | billing.discount_applied | boolean | 是否应用折扣 |
29
- | billing.balance_before | float | 扣费前账户余额 |
30
- | billing.balance_after | float | 扣费后账户余额 |
31
- | billing.currency | string | 货币单位(CNY) |
32
- | billing.transaction_id | string | 交易流水号(未扣费时为 null) |
33
- | billing.error | string | 错误信息(仅失败响应的 billing 中可能出现) |
34
-
35
- ## 请求示例
36
-
37
- ```bash
38
- curl -X POST "http://plugin.aiconductor.fun/api/url_to_markdown" \
39
- -H "Authorization: Bearer your_api_key" \
40
- -H "Content-Type: application/json" \
41
- -d '{
42
- "url": "https://example.com/article",
43
- "timeout": 30
44
- }'
45
- ```
46
-
47
- ## 注意事项
48
- 1. 采用后扣费模式:仅当成功取得非空 Markdown 内容后才记录交易并扣费;下游返回 400/500、内容为空或请求超时时返回失败且不扣费。
49
- 2. URL 格式无效(非 http/https 开头)、余额不足、API 密钥无效、账户禁用时不扣费。
50
- 3. 请求下游服务的超时时间由 `timeout` 参数控制(连接阶段固定 10 秒)。
@@ -1,57 +0,0 @@
1
- ## 接口信息
2
- - **URL**: `http://plugin.aiconductor.fun/api/video_download_url`
3
- - **方法**: `POST`
4
- - **Content-Type**: `application/json`
5
- - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
-
7
- ## 功能说明
8
- 解析视频链接并获取无水印下载地址,支持抖音、快手等多个平台,提供视频信息与下载链接,包含 API 密钥验证与按次计费,费用以 api_services 表配置为准。
9
-
10
- ## 请求参数
11
-
12
- | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
- |--------|------|------|--------|------|
14
- | video_url | string | 是 | - | 视频链接 URL(支持从分享文本中提取链接,保留 URL 参数) |
15
-
16
- > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
17
-
18
- ## 响应参数
19
-
20
- | 参数名 | 类型 | 说明 |
21
- |--------|------|------|
22
- | success | boolean | 是否成功 |
23
- | message | string | 响应消息(成功/失败原因) |
24
- | source | string | 视频来源平台(如 douyin) |
25
- | author | string | 视频作者 |
26
- | title | string | 视频标题 |
27
- | thumbnail | string | 视频缩略图 URL |
28
- | duration | number | 视频时长(毫秒) |
29
- | medias | array | 媒体文件列表 |
30
- | medias[].url | string | 媒体文件下载地址 |
31
- | medias[].type | string | 媒体类型(video / audio) |
32
- | medias[].quality | string | 质量标识(如 No Watermark / Audio) |
33
- | medias[].extension | string | 文件扩展名(如 mp4 / mp3) |
34
- | medias[].data_size | number | 文件大小(备用方案无法获取时为 0) |
35
- | medias[].duration | number | 音频时长(秒,仅音频类型返回) |
36
- | billing | object | 计费信息 |
37
- | billing.service_fee | number | 本次服务费用 |
38
- | billing.discount_applied | boolean | 是否应用折扣/计费 |
39
- | billing.balance_before | number | 扣费前余额 |
40
- | billing.balance_after | number | 扣费后余额 |
41
- | billing.currency | string | 货币单位(CNY) |
42
- | billing.transaction_id | string | 交易流水号(失败为 null) |
43
-
44
- ## 请求示例
45
-
46
- ```bash
47
- curl -X POST "http://plugin.aiconductor.fun/api/video_download_url" \
48
- -H "Authorization: Bearer your_api_key" \
49
- -H "Content-Type: application/json" \
50
- -d '{"video_url": "https://v.douyin.com/xxxx/"}'
51
- ```
52
-
53
- ## 注意事项
54
- 1. 采用后扣费模式:解析失败(主方案失败且抖音备用方案也失败、非抖音域名)均不扣费(service_fee 为 0)。
55
- 2. 抖音域名主方案失败时自动尝试抖音备用解析方案(parse_douyin_video),备用方案成功同样计费并返回无水印视频与音频。
56
- 3. 按次计费:解析成功即扣费,与返回媒体数量无关。
57
- 4. medias 中音频类型会额外返回 duration 字段;备用方案返回的媒体 data_size 为 0。
@@ -1,55 +0,0 @@
1
- ## 接口信息
2
- - **URL**: `http://plugin.aiconductor.fun/api/video_download_url_oss`
3
- - **方法**: `POST`
4
- - **Content-Type**: `application/json`
5
- - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
-
7
- ## 功能说明
8
- 解析视频链接获取无水印下载地址,将无水印视频文件下载并上传至用户指定的阿里云 OSS,返回单个 OSS 链接。仅保留 quality=no_watermark 的视频,支持抖音、快手等多平台,包含 API 密钥验证与按次计费,费用以 api_services 表配置为准。
9
-
10
- ## 请求参数
11
-
12
- | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
- |--------|------|------|--------|------|
14
- | video_url | string | 是 | - | 视频链接 URL(支持从分享文本中提取链接,保留 URL 参数) |
15
- | OSS_ACCESS_KEY_ID | string | 是 | - | 用户阿里云 OSS 的 AccessKeyId |
16
- | OSS_ACCESS_KEY_SECRET | string | 是 | - | 用户阿里云 OSS 的 AccessKeySecret |
17
- | OSS_ENDPOINT | string | 是 | - | 用户阿里云 OSS 的 Endpoint(如 oss-cn-hangzhou.aliyuncs.com) |
18
- | OSS_BUCKET_NAME | string | 是 | - | 用户阿里云 OSS 的 Bucket 名称 |
19
- | oss_directory | string | 否 | temporary | OSS 中的存储目录 |
20
-
21
- > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
22
-
23
- ## 响应参数
24
-
25
- | 参数名 | 类型 | 说明 |
26
- |--------|------|------|
27
- | success | boolean | 是否成功 |
28
- | message | string | 响应消息 |
29
- | source | string | 视频来源平台(如 douyin) |
30
- | author | string | 视频作者 |
31
- | title | string | 视频标题 |
32
- | video_url_oss | string | 上传至 OSS 后的无水印视频链接 |
33
- | billing | object | 计费信息 |
34
- | billing.service_fee | number | 本次服务费用 |
35
- | billing.discount_applied | boolean | 是否应用折扣/计费 |
36
- | billing.balance_before | number | 扣费前余额 |
37
- | billing.balance_after | number | 扣费后余额 |
38
- | billing.currency | string | 货币单位(CNY) |
39
- | billing.transaction_id | string | 交易流水号(失败为 null) |
40
-
41
- ## 请求示例
42
-
43
- ```bash
44
- curl -X POST "http://plugin.aiconductor.fun/api/video_download_url_oss" \
45
- -H "Authorization: Bearer your_api_key" \
46
- -H "Content-Type: application/json" \
47
- -d '{"video_url": "https://v.douyin.com/xxxx/", "OSS_ACCESS_KEY_ID": "your_ak", "OSS_ACCESS_KEY_SECRET": "your_sk", "OSS_ENDPOINT": "oss-cn-hangzhou.aliyuncs.com", "OSS_BUCKET_NAME": "my-bucket", "oss_directory": "temporary"}'
48
- ```
49
-
50
- ## 注意事项
51
- 1. 仅保留 type=video 且 quality=no_watermark 的媒资,未找到则失败且不扣费。
52
- 2. 采用后扣费模式:解析失败、OSS 配置错误、上传失败均不扣费(service_fee 为 0)。
53
- 3. OSS 凭证由调用方自行提供,平台仅做上传不托管密钥;OSS 配置错误会返回明确错误。
54
- 4. 下载并上传至 OSS 的超时时间为 300 秒;上传失败(如下载异常、OSS 写入失败)返回失败且不扣费。
55
- 5. 按次计费:上传成功即扣费。
@@ -1,48 +0,0 @@
1
- ## 接口信息
2
- - **URL**: `http://plugin.aiconductor.fun/api/video_to_text`
3
- - **方法**: `POST`
4
- - **Content-Type**: `application/json`
5
- - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
-
7
- ## 功能说明
8
- 将视频文件 URL 转换为文字,使用 DashScope API 进行语音识别转写,包含 API 密钥验证与按秒计费(基础费率 × 视频时长秒数,向上取整),具体费率以 api_services 表配置为准。
9
-
10
- ## 请求参数
11
-
12
- | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
- |--------|------|------|--------|------|
14
- | file_url | string | 是 | - | 待转写的视频文件 URL |
15
-
16
- > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
17
-
18
- ## 响应参数
19
-
20
- | 参数名 | 类型 | 说明 |
21
- |--------|------|------|
22
- | success | boolean | 是否成功 |
23
- | message | string | 响应消息(成功/失败原因) |
24
- | text | string | 转写文本结果 |
25
- | billing | object | 计费信息 |
26
- | billing.service_fee | number | 本次服务费用 |
27
- | billing.discount_applied | boolean | 是否应用折扣/计费 |
28
- | billing.balance_before | number | 扣费前余额 |
29
- | billing.balance_after | number | 扣费后余额 |
30
- | billing.currency | string | 货币单位(CNY) |
31
- | billing.transaction_id | string | 交易流水号(失败为 null) |
32
- | billing.base_fee | number | 基础费率(成功及余额不足分支返回) |
33
- | billing.duration_seconds | number | 计费时长(秒,向上取整,成功及余额不足分支返回) |
34
-
35
- ## 请求示例
36
-
37
- ```bash
38
- curl -X POST "http://plugin.aiconductor.fun/api/video_to_text" \
39
- -H "Authorization: Bearer your_api_key" \
40
- -H "Content-Type: application/json" \
41
- -d '{"file_url": "https://example.com/video.mp4"}'
42
- ```
43
-
44
- ## 注意事项
45
- 1. 视频时长超过 20 分钟将被拒绝转写并返回失败,不计费。
46
- 2. 采用后扣费模式:转写失败、无法获取时长、密钥无效等异常均不扣费(service_fee 为 0)。
47
- 3. 单次转写超时约 55 秒,超时视为失败且不扣费。
48
- 4. 费用 = 基础费率 × 视频时长(向上取整秒数);余额不足时返回失败且预置计费信息(transaction_id 为 null)。
@@ -1,49 +0,0 @@
1
- ## 接口信息
2
- - **URL**: `http://plugin.aiconductor.fun/api/video_to_text_v2`
3
- - **方法**: `POST`
4
- - **Content-Type**: `application/json`
5
- - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
-
7
- ## 功能说明
8
- 将视频文件 URL 转换为文字。长视频(>5 分钟的非 MP3 文件)直接使用阿里云 STT 转写,短视频和 MP3 使用 Coze STT 转写,包含 API 密钥验证与按秒计费(基础费率 × 实际转写时长,四舍五入至少 1 秒),具体费率以 api_services 表配置为准。
9
-
10
- ## 请求参数
11
-
12
- | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
- |--------|------|------|--------|------|
14
- | file_url | string | 是 | - | 待转写的视频文件 URL |
15
-
16
- > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
17
-
18
- ## 响应参数
19
-
20
- | 参数名 | 类型 | 说明 |
21
- |--------|------|------|
22
- | success | boolean | 是否成功 |
23
- | message | string | 响应消息(成功/失败原因) |
24
- | text | string | 转写文本结果 |
25
- | billing | object | 计费信息 |
26
- | billing.service_fee | number | 本次服务费用 |
27
- | billing.discount_applied | boolean | 是否应用折扣/计费 |
28
- | billing.balance_before | number | 扣费前余额 |
29
- | billing.balance_after | number | 扣费后余额 |
30
- | billing.currency | string | 货币单位(CNY) |
31
- | billing.transaction_id | string | 交易流水号(失败为 null) |
32
- | billing.base_fee | number | 基础费率(成功及余额不足分支返回) |
33
- | billing.duration_seconds | number | 计费时长(秒,四舍五入,成功及余额不足分支返回) |
34
-
35
- ## 请求示例
36
-
37
- ```bash
38
- curl -X POST "http://plugin.aiconductor.fun/api/video_to_text_v2" \
39
- -H "Authorization: Bearer your_api_key" \
40
- -H "Content-Type: application/json" \
41
- -d '{"file_url": "https://example.com/video.mp4"}'
42
- ```
43
-
44
- ## 注意事项
45
- 1. 视频时长超过 20 分钟将被拒绝转写并返回失败,不计费。
46
- 2. 余额 ≤ 0 将直接返回失败且不计费(额外校验)。
47
- 3. 路由策略:>5 分钟且非 mp3 用阿里云 STT;其余(≤5 分钟视频或 mp3)用 Coze STT。
48
- 4. 采用后扣费模式:转写失败、未获取到文本、密钥无效等异常均不扣费(service_fee 为 0)。
49
- 5. 费用 = 基础费率 × 实际转写时长(四舍五入,至少 1 秒);余额不足时返回失败且预置计费信息(transaction_id 为 null)。
@@ -1,55 +0,0 @@
1
- ## 接口信息
2
- - **URL**: `http://plugin.aiconductor.fun/api/volcengine_face_pretty`
3
- - **方法**: `POST` / `GET`
4
- - **Content-Type**: `application/json`
5
- - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
-
7
- ## 功能说明
8
- 调用火山引擎智能变美(FacePretty)接口进行人脸美颜。本插件在平台侧不执行计费(handler 未调用计费模块),仅消耗调用方提供的火山引擎 AccessKey 配额。
9
-
10
- ## 请求参数
11
-
12
- | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
- |--------|------|------|--------|------|
14
- | access_key_id | string | 是 | - | 火山引擎 AccessKeyId |
15
- | secret_access_key | string | 是 | - | 火山引擎 SecretAccessKey |
16
- | image_url | string | 是 | - | 待处理图片 URL |
17
- | region | string | 否 | `"cn-north-1"` | 火山引擎服务区域 |
18
- | do_risk | boolean | 否 | `false` | 是否需要内容安全审核 |
19
- | multi_face | string | 否 | `"0"` | 多人脸策略:`"1"` 处理所有人脸,其他值仅处理最大人脸 |
20
- | beauty_level | float | 否 | `1.0` | 美颜程度,范围 0.0-1.0,值越大越明显 |
21
-
22
- > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
23
-
24
- ## 响应参数
25
-
26
- | 参数名 | 类型 | 说明 |
27
- |--------|------|------|
28
- | success | boolean | 是否成功 |
29
- | message | string | 响应消息 |
30
- | image_url | string | 处理后图片 URL(已转存至 OSS 临时目录),失败时为空字符串 |
31
-
32
- ## 请求示例
33
-
34
- ```bash
35
- curl -X POST "http://plugin.aiconductor.fun/api/volcengine_face_pretty" \
36
- -H "Authorization: Bearer your_api_key" \
37
- -H "Content-Type: application/json" \
38
- -d '{
39
- "access_key_id": "你的火山引擎AK",
40
- "secret_access_key": "你的火山引擎SK",
41
- "image_url": "https://example.com/portrait.jpg",
42
- "beauty_level": 0.8,
43
- "multi_face": "0",
44
- "do_risk": false,
45
- "region": "cn-north-1"
46
- }'
47
- ```
48
-
49
- ## 注意事项
50
- 1. 需调用方自备有效的火山引擎 AccessKey,平台侧不校验、不托管该密钥。
51
- 2. `image_url` 为必填,缺失直接返回 `success=false`。
52
- 3. `beauty_level` 取值 0.0-1.0;`multi_face="1"` 时处理图中所有人脸。
53
- 4. 火山引擎接口失败时会自动重试最多 10 次;全部失败返回 `success=false`。
54
- 5. 处理后的图片由插件转存至阿里云 OSS 临时目录并返回 URL,原响应为 base64 时也会上传。
55
- 6. 平台侧不扣费,仅消耗火山引擎侧配额。
@@ -1,55 +0,0 @@
1
- ## 接口信息
2
- - **URL**: `http://plugin.aiconductor.fun/api/volcengine_faceswap`
3
- - **方法**: `POST` / `GET`
4
- - **Content-Type**: `application/json`
5
- - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
-
7
- ## 功能说明
8
- 调用火山引擎 CVProcess(face_swap3_6)接口进行人脸融合(换脸)。本插件在平台侧不执行计费(handler 未调用计费模块),仅消耗调用方自行提供的火山引擎 AccessKey 配额。
9
-
10
- ## 请求参数
11
-
12
- | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
- |--------|------|------|--------|------|
14
- | access_key_id | string | 是 | - | 火山引擎 AccessKeyId |
15
- | secret_access_key | string | 是 | - | 火山引擎 SecretAccessKey |
16
- | source_image | string | 是 | - | 源图 URL(被替换的人脸图) |
17
- | template_image | string | 是 | - | 模板图 URL(目标人脸图) |
18
- | face_type | string | 否 | `"area"` | 换脸类型:`l2r`/`t2b`/`area`,非法值自动回退为 `area` |
19
- | source_similarity | float | 否 | `1.0` | 源脸相似度,范围 0-1;无法转为 float 时回退 1.0 |
20
- | ref_img_url | string | 否 | `None` | 参考图 URL(可选,用于增强) |
21
- | region | string | 否 | `"cn-north-1"` | 火山引擎服务区域 |
22
-
23
- > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
24
-
25
- ## 响应参数
26
-
27
- | 参数名 | 类型 | 说明 |
28
- |--------|------|------|
29
- | success | boolean | 是否成功 |
30
- | message | string | 响应消息 |
31
- | image_url | string | 融合后的图片 URL,失败时为空字符串 |
32
-
33
- ## 请求示例
34
-
35
- ```bash
36
- curl -X POST "http://plugin.aiconductor.fun/api/volcengine_faceswap" \
37
- -H "Authorization: Bearer your_api_key" \
38
- -H "Content-Type: application/json" \
39
- -d '{
40
- "access_key_id": "你的火山引擎AK",
41
- "secret_access_key": "你的火山引擎SK",
42
- "source_image": "https://example.com/face.jpg",
43
- "template_image": "https://example.com/template.jpg",
44
- "face_type": "area",
45
- "source_similarity": 1.0,
46
- "region": "cn-north-1"
47
- }'
48
- ```
49
-
50
- ## 注意事项
51
- 1. 需调用方自备有效的火山引擎 AccessKey,平台侧不校验、不托管该密钥。
52
- 2. `face_type` 仅接受 `l2r`/`t2b`/`area`,其余值自动回退为 `area`。
53
- 3. `source_similarity` 传入非法值时回退为 `1.0`,不会报错。
54
- 4. 火山引擎接口失败时会自动重试,最多重试 10 次;全部失败返回 `success=false`。
55
- 5. 平台侧不扣费,仅消耗火山引擎侧的调用配额。
@@ -1,49 +0,0 @@
1
- ## 接口信息
2
- - **URL**: `http://plugin.aiconductor.fun/api/website_screenshot`
3
- - **方法**: `POST`
4
- - **Content-Type**: `application/json`
5
- - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
-
7
- ## 功能说明
8
- 对指定网站进行截图并返回截图 URL,支持自定义截图宽度与加载延迟,包含 API 密钥验证与按次计费,费用以 api_services 表配置为准。
9
-
10
- ## 请求参数
11
-
12
- | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
- |--------|------|------|--------|------|
14
- | url | string | 是 | - | 要截图的网站 URL(须以 http:// 或 https:// 开头) |
15
- | delay_seconds | int | 否 | 1 | 页面加载后的延迟秒数 |
16
- | width | int | 否 | 1920 | 截图宽度(像素) |
17
-
18
- > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
19
-
20
- ## 响应参数
21
-
22
- | 参数名 | 类型 | 说明 |
23
- |--------|------|------|
24
- | success | boolean | 是否成功 |
25
- | message | string | 响应消息 |
26
- | screenshot_url | string | 生成的截图文件 URL |
27
- | file_name | string | 截图文件名 |
28
- | billing | object | 计费信息 |
29
- | billing.service_fee | number | 本次服务费用 |
30
- | billing.discount_applied | boolean | 是否应用折扣/计费 |
31
- | billing.balance_before | number | 扣费前余额 |
32
- | billing.balance_after | number | 扣费后余额 |
33
- | billing.currency | string | 货币单位(CNY) |
34
- | billing.transaction_id | string | 交易流水号(失败为 null) |
35
-
36
- ## 请求示例
37
-
38
- ```bash
39
- curl -X POST "http://plugin.aiconductor.fun/api/website_screenshot" \
40
- -H "Authorization: Bearer your_api_key" \
41
- -H "Content-Type: application/json" \
42
- -d '{"url": "https://example.com", "delay_seconds": 2, "width": 1920}'
43
- ```
44
-
45
- ## 注意事项
46
- 1. 采用后扣费模式:截图生成失败、URL 格式无效、请求异常均不扣费(service_fee 为 0)。
47
- 2. url 必须以 http:// 或 https:// 开头,否则返回格式错误且不扣费。
48
- 3. 截图服务请求超时 180 秒,超时视为服务异常且不扣费。
49
- 4. 按次计费:截图成功即扣费。
@@ -1,44 +0,0 @@
1
- ## 接口信息
2
- - **URL**: `http://plugin.aiconductor.fun/api/wx_access_token`
3
- - **方法**: `POST` / `GET`
4
- - **Content-Type**: `application/json`
5
- - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
-
7
- ## 功能说明
8
- 获取微信公众号接口调用凭据(Access Token)。仅做 API 密钥有效性校验,**不扣费**,Token 有效期为 7200 秒(由微信返回,需调用方自行缓存)。
9
-
10
- ## 请求参数
11
-
12
- | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
- |--------|------|------|--------|------|
14
- | appid | string | 是 | - | 微信公众号的 AppID |
15
- | secret | string | 是 | - | 微信公众号的 AppSecret |
16
-
17
- > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
18
-
19
- ## 响应参数
20
-
21
- | 参数名 | 类型 | 说明 |
22
- |--------|------|------|
23
- | success | boolean | 是否成功 |
24
- | message | string | 响应消息 |
25
- | access_token | string | 获取到的接口调用凭据(失败为空字符串) |
26
- | expires_in | int | 凭证有效时间,单位:秒(成功时微信返回,一般为 7200;失败为 0) |
27
-
28
- ## 请求示例
29
-
30
- ```bash
31
- curl -X POST "http://plugin.aiconductor.fun/api/wx_access_token" \
32
- -H "Authorization: Bearer your_api_key" \
33
- -H "Content-Type: application/json" \
34
- -d '{
35
- "appid": "wx1234567890abcdef",
36
- "secret": "your_app_secret"
37
- }'
38
- ```
39
-
40
- ## 注意事项
41
- 1. 本接口**不扣费**,仅验证 API 密钥;密钥无效或账户被禁用时返回 `success=false`。
42
- 2. `appid` / `secret` 为公众号后台凭证,请妥善保管,避免泄露。
43
- 3. 微信返回的 `access_token` 全局唯一且有效期 7200 秒,建议调用方缓存复用,避免频繁调用触发频率限制。
44
- 4. 调用微信接口的网络超时时间为 30 秒,超时返回失败提示。
@@ -1,43 +0,0 @@
1
- ## 接口信息
2
- - **URL**: `http://plugin.aiconductor.fun/api/wx_article_analysis_data_push`
3
- - **方法**: `POST` / `GET`
4
- - **Content-Type**: `application/json`
5
- - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
-
7
- ## 功能说明
8
- 微信文章分析数据推送服务(纯扣费/触发接口)。为**计费插件**:每次调用直接扣费一次,费用以 `api_services` 表(`service_code=wx_article_analysis_data_push`)配置为准。
9
-
10
- ## 请求参数
11
-
12
- > 本接口无额外业务参数,仅需 API 密钥鉴权。
13
-
14
- > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
15
-
16
- ## 响应参数
17
-
18
- | 参数名 | 类型 | 说明 |
19
- |--------|------|------|
20
- | success | boolean | 是否成功(扣费是否成功) |
21
- | message | string | 响应消息(成功示例:「扣费成功」) |
22
- | billing | object | 计费信息,含以下子字段 |
23
- | billing.service_fee | float | 本次扣费金额 |
24
- | billing.discount_applied | boolean | 是否应用了折扣(成功扣费时恒为 `true`) |
25
- | billing.balance_before | float | 扣费前账户余额 |
26
- | billing.balance_after | float | 扣费后账户余额 |
27
- | billing.currency | string | 货币单位,固定 `CNY` |
28
- | billing.transaction_id | int/None | 交易流水 ID(成功时为整数;失败或未扣费时为 `null`) |
29
- | billing.error | string | 失败分支额外携带的错误说明(仅失败时存在) |
30
-
31
- ## 请求示例
32
-
33
- ```bash
34
- curl -X POST "http://plugin.aiconductor.fun/api/wx_article_analysis_data_push" \
35
- -H "Authorization: Bearer your_api_key" \
36
- -H "Content-Type: application/json" \
37
- -d '{}'
38
- ```
39
-
40
- ## 注意事项
41
- 1. 本接口为**纯扣费/触发接口**,每次成功调用即扣费一次,用于触发后续的微信文章分析数据推送流程。
42
- 2. **不扣费场景**:API 密钥无效、账户被禁用、余额不足、服务异常——此时 `transaction_id=null`,余额不变(异常分支 `service_fee=0`)。
43
- 3. 调用方应据 `success` 判断扣费结果;失败分支的 `billing` 中会包含 `error` 字段说明原因。
@@ -1,48 +0,0 @@
1
- ## 接口信息
2
- - **URL**: `http://plugin.aiconductor.fun/api/wx_article_data`
3
- - **方法**: `POST` / `GET`
4
- - **Content-Type**: `application/json`
5
- - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
-
7
- ## 功能说明
8
- 获取指定微信文章的互动数据(阅读、点赞、在看、分享、收藏、评论等)。为**计费插件**:按次计费,费用以 `api_services` 表(`service_code=wx_article_data`)配置为准。
9
-
10
- ## 请求参数
11
-
12
- | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
- |--------|------|------|--------|------|
14
- | url | string | 是 | - | 微信文章链接 |
15
-
16
- > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
17
-
18
- ## 响应参数
19
-
20
- | 参数名 | 类型 | 说明 |
21
- |--------|------|------|
22
- | success | boolean | 是否成功 |
23
- | message | string | 响应消息 |
24
- | billing | object | 计费信息,含以下子字段 |
25
- | billing.service_fee | float | 本次扣费金额 |
26
- | billing.discount_applied | boolean | 是否应用了折扣(本插件恒为 `true`) |
27
- | billing.balance_before | float | 扣费前账户余额 |
28
- | billing.balance_after | float | 扣费后账户余额 |
29
- | billing.currency | string | 货币单位,固定 `CNY` |
30
- | billing.transaction_ids | array | 交易流水 ID 列表(成功时为 `[transaction_id]`,未扣费时为空列表 `[]`) |
31
- | data | object | 文章互动数据(结构取决于第三方数据源,通常含阅读数、点赞数、在看数、分享数、收藏数、评论数等字段;失败时为 `{}`) |
32
-
33
- ## 请求示例
34
-
35
- ```bash
36
- curl -X POST "http://plugin.aiconductor.fun/api/wx_article_data" \
37
- -H "Authorization: Bearer your_api_key" \
38
- -H "Content-Type: application/json" \
39
- -d '{
40
- "url": "https://mp.weixin.qq.com/s?__biz=xxxx&mid=xxxx&idx=1&sn=xxxx"
41
- }'
42
- ```
43
-
44
- ## 注意事项
45
- 1. 本接口**计费**,仅在成功获取文章数据后扣费一次;`billing.transaction_ids` 为列表。
46
- 2. **不扣费场景**:缺少 `url`、API 密钥无效、账户被禁用、余额不足、第三方 API 返回错误(`code!=0`)、服务异常——上述情况 `transaction_ids` 为空列表且余额不变。
47
- 3. 上游数据服务最多重试 10 次,单次调用整体超时 60 秒。
48
- 4. `data` 字段结构由第三方数据源决定,调用方应做容错处理;异常分支下 `data` 含 `error_details`。
@@ -1,45 +0,0 @@
1
- ## 接口信息
2
- - **URL**: `http://plugin.aiconductor.fun/api/users/wx_article_style_rewrite`
3
- - **方法**: `POST` / `GET`
4
- - **Content-Type**: `application/json`
5
- - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
-
7
- ## 功能说明
8
- 异步调用扣子工作流,将微信公众号文章按指定风格改写,返回 task_url 供轮询结果。本插件仅校验密钥、不计费(无 billing)。
9
-
10
- ## 请求参数
11
-
12
- | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
- |--------|------|------|--------|------|
14
- | coze_token | string | 是 | — | 用户的 Coze API Token |
15
- | article_url | string | 是 | — | 微信公众号文章链接 |
16
- | article_style | string | 是 | — | 文章风格,如:招商小话匣 |
17
- | model | string | 否 | "minimax/minimax-m2.7" | 使用的模型 |
18
-
19
- > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
20
-
21
- ## 响应参数
22
-
23
- | 参数名 | 类型 | 说明 |
24
- |--------|------|------|
25
- | success | boolean | 是否成功(任务已提交) |
26
- | message | string | 响应消息(成功时为「任务已提交,请打开result_url查看结果」) |
27
- | task_id | string | 工作流任务 ID |
28
- | result_url | string | 结果查看 URL |
29
- | debug_url | string | 调试 URL |
30
-
31
- ## 请求示例
32
-
33
- ```bash
34
- curl -X POST "http://plugin.aiconductor.fun/api/users/wx_article_style_rewrite" \
35
- -H "Authorization: Bearer your_api_key" \
36
- -H "Content-Type: application/json" \
37
- -d '{"coze_token": "pat_xxxxxxxx", "article_url": "https://mp.weixin.qq.com/s/abcdef", "article_style": "招商小话匣"}'
38
- ```
39
-
40
- ## 注意事项
41
- 1. 本插件仅校验 api_key 有效性,不扣费(无 billing 字段)。
42
- 2. `coze_token`、`article_url`、`article_style` 均为必填,缺失任一将返回失败。
43
- 3. 为异步任务:提交后通过响应中的 `result_url` 查看改写结果,需自行轮询。
44
- 4. 工作流内部使用固定的飞书多维表格参数与 workflow_id,调用方无需关心。
45
- 5. 校验失败、密钥无效或账户禁用时返回空 task_id/result_url/debug_url。