aiconductor-cli 1.3.3 → 1.3.5

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 (83) hide show
  1. package/AGENTS.md +44 -4
  2. package/README.md +26 -0
  3. package/api_docs/aic_web_search.md +84 -0
  4. package/api_docs/audio_converter.md +51 -0
  5. package/api_docs/balance_query.md +38 -0
  6. package/api_docs/bing_search.md +55 -0
  7. package/api_docs/china_stock_data.md +221 -0
  8. package/api_docs/delete_published_webpage.md +38 -0
  9. package/api_docs/doubao_search.md +80 -0
  10. package/api_docs/douyin_link_to_text_v1.md +50 -0
  11. package/api_docs/douyin_link_to_text_v2.md +50 -0
  12. package/api_docs/douyin_user_detail.md +65 -0
  13. package/api_docs/douyin_user_search.md +58 -0
  14. package/api_docs/douyin_user_videos.md +49 -0
  15. package/api_docs/douyin_user_videos_async.md +45 -0
  16. package/api_docs/douyin_user_videos_async_query.md +41 -0
  17. package/api_docs/douyin_user_videos_max.md +59 -0
  18. package/api_docs/douyin_video_comments.md +68 -0
  19. package/api_docs/douyin_video_info.md +70 -0
  20. package/api_docs/douyin_video_search.md +60 -0
  21. package/api_docs/douyin_video_search_fast.md +48 -0
  22. package/api_docs/fast_ocr.md +51 -0
  23. package/api_docs/flow_article2podcast_creat.md +41 -0
  24. package/api_docs/flow_article2podcast_query.md +41 -0
  25. package/api_docs/flow_wx_history_articles.md +45 -0
  26. package/api_docs/generate_image.md +68 -0
  27. package/api_docs/get_duration.md +37 -0
  28. package/api_docs/hot_list_mixed.md +122 -0
  29. package/api_docs/html_publish.md +50 -0
  30. package/api_docs/html_publish_flexible.md +65 -0
  31. package/api_docs/image_resize.md +58 -0
  32. package/api_docs/image_to_permalink.md +61 -0
  33. package/api_docs/link_expander.md +39 -0
  34. package/api_docs/llm_proxy.md +61 -0
  35. package/api_docs/markitdown.md +47 -0
  36. package/api_docs/md_to_docx.md +51 -0
  37. package/api_docs/md_to_html.md +53 -0
  38. package/api_docs/md_to_mindmap.md +52 -0
  39. package/api_docs/md_to_pdf.md +52 -0
  40. package/api_docs/md_to_png.md +53 -0
  41. package/api_docs/md_to_txt.md +51 -0
  42. package/api_docs/md_to_wxhtml.md +64 -0
  43. package/api_docs/md_to_xhs.md +87 -0
  44. package/api_docs/md_to_xlsx.md +52 -0
  45. package/api_docs/portrait_enhancement.md +69 -0
  46. package/api_docs/published_webpages.md +45 -0
  47. package/api_docs/r2_uploader.md +51 -0
  48. package/api_docs/schedulerx_job_create.md +56 -0
  49. package/api_docs/transaction_query.md +52 -0
  50. package/api_docs/url_to_markdown.md +50 -0
  51. package/api_docs/video_download_url.md +57 -0
  52. package/api_docs/video_download_url_oss.md +55 -0
  53. package/api_docs/video_to_text.md +48 -0
  54. package/api_docs/video_to_text_v2.md +49 -0
  55. package/api_docs/volcengine_face_pretty.md +55 -0
  56. package/api_docs/volcengine_faceswap.md +55 -0
  57. package/api_docs/website_screenshot.md +49 -0
  58. package/api_docs/wx_access_token.md +44 -0
  59. package/api_docs/wx_article_analysis_data_push.md +43 -0
  60. package/api_docs/wx_article_data.md +48 -0
  61. package/api_docs/wx_article_style_rewrite.md +45 -0
  62. package/api_docs/wx_draft_add.md +56 -0
  63. package/api_docs/wx_draft_publish.md +47 -0
  64. package/api_docs/wx_history_articles.md +70 -0
  65. package/api_docs/wx_image_upload.md +46 -0
  66. package/api_docs/wx_md_to_html.md +48 -0
  67. package/api_docs/wx_rss_reader.md +59 -0
  68. package/api_docs/xhs_hot_list.md +48 -0
  69. package/api_docs/xhs_note_comments_fast.md +54 -0
  70. package/api_docs/xhs_note_info_v2.md +45 -0
  71. package/api_docs/xhs_note_info_v3.md +69 -0
  72. package/api_docs/xhs_note_publish.md +54 -0
  73. package/api_docs/xhs_note_search_v2.md +73 -0
  74. package/api_docs/xhs_note_search_v3.md +54 -0
  75. package/api_docs/xhs_user_info_v2.md +57 -0
  76. package/api_docs/xhs_user_notes_v2.md +56 -0
  77. package/api_docs/xhs_user_notes_v3.md +46 -0
  78. package/bin/aiconductor-cli.js +23 -6
  79. package/package.json +1 -1
  80. package/src/api.js +58 -13
  81. package/src/api.test.js +127 -6
  82. package/src/commands/content.js +90 -0
  83. package/src/commands/web_search.js +3 -3
@@ -0,0 +1,60 @@
1
+ ## 接口信息
2
+ - **URL**: `http://plugin.aiconductor.fun/api/douyin_video_search`
3
+ - **方法**: `POST` / `GET`
4
+ - **Content-Type**: `application/json`
5
+ - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
+
7
+ ## 功能说明
8
+ 根据关键词搜索抖音视频,支持排序、发布时间、时长、内容类型等筛选,并自动翻页。按页计费,费用以 api_services 表配置为准(服务码 `douyin_video_search`,每翻一页扣一次费,不足一页不扣)。
9
+
10
+ ## 请求参数
11
+
12
+ | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
+ |--------|------|------|--------|------|
14
+ | keyword | string | 是 | - | 搜索关键词。 |
15
+ | sort_type | string | 否 | `0` | 排序类型(透传 TikHub 接口,如 `0` 综合、`1` 最多点赞等)。 |
16
+ | publish_time | string | 否 | `0` | 发布时间筛选(透传 TikHub 接口)。 |
17
+ | filter_duration | string | 否 | `0` | 时长筛选(透传 TikHub 接口)。 |
18
+ | content_type | string | 否 | `0` | 内容类型筛选(透传 TikHub 接口)。 |
19
+ | max_pages | integer | 否 | `1` | 最大翻页页数,`0` 表示不限制页数(受 max_seconds 约束)。 |
20
+ | max_seconds | integer | 否 | `50` | 最大运行秒数,内部上限 50 秒。 |
21
+
22
+ > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
23
+
24
+ ## 响应参数
25
+
26
+ | 参数名 | 类型 | 说明 |
27
+ |--------|------|------|
28
+ | success | boolean | 是否成功。 |
29
+ | message | string | 响应消息。 |
30
+ | data | object | 搜索结果。 |
31
+ | data.video_list | array | 视频列表,每项含:aweme_id、desc、create_time、author{uid,short_id,nickname,sec_uid,unique_id,signature,follower_count,total_favorited,is_verified,verification_type,enterprise_verify_reason,custom_verify,region,avatar_url}、music{id,title,author,duration,play_url}、video{duration,ratio,width,height,play_url,download_suffix,cover_url,dynamic_cover_url,origin_cover_url}、statistics{aweme_id,comment_count,digg_count,download_count,play_count,share_count,forward_count,collect_count...}、share_url、video_tag。 |
32
+ | data.cursor | integer | 下一页游标。 |
33
+ | data.has_more | integer | 是否还有更多(0/1)。 |
34
+ | billing | object | 计费信息。 |
35
+ | billing.service_fee | float | 单页服务费率。 |
36
+ | billing.total_fee | float | 实际总扣费(页数 × 单页费率)。 |
37
+ | billing.discount_applied | boolean | 是否应用折扣。 |
38
+ | billing.pages_charged | integer | 实际扣费页数。 |
39
+ | billing.balance_before | float | 扣费前余额。 |
40
+ | billing.balance_after | float | 扣费后余额。 |
41
+ | billing.currency | string | 货币类型,固定为 `CNY`。 |
42
+ | billing.transaction_ids | array | 各页扣费交易ID列表。 |
43
+
44
+ ## 请求示例
45
+
46
+ ```bash
47
+ curl -X POST "http://plugin.aiconductor.fun/api/douyin_video_search" \
48
+ -H "Authorization: Bearer your_api_key" \
49
+ -H "Content-Type: application/json" \
50
+ -d '{
51
+ "keyword": "露营攻略",
52
+ "sort_type": "1",
53
+ "max_pages": 2
54
+ }'
55
+ ```
56
+
57
+ ## 注意事项
58
+ 1. 仅当某一页成功返回视频数据时才对该页扣费;第一页即失败则不扣费,直接返回失败。
59
+ 2. 受 `max_pages` 与 `max_seconds`(上限 50 秒)双重限制;超时或后续翻页失败会返回已成功获取的部分数据(success 仍为 true)。
60
+ 3. 上游(TikHub)密钥仅配置在服务端,调用方无需也不应传入。
@@ -0,0 +1,48 @@
1
+ ## 接口信息
2
+ - **URL**: `http://plugin.aiconductor.fun/api/douyin_video_search_fast`
3
+ - **方法**: `POST` / `GET`
4
+ - **Content-Type**: `application/json`
5
+ - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
+
7
+ ## 功能说明
8
+ 通过 Coze 工作流对抖音关键词进行快速搜索,返回视频列表(每条视频附带格式化后的创建时间)。按次计费,费用以 api_services 表配置为准(服务码 `douyin_keywords_search_fast`)。
9
+
10
+ ## 请求参数
11
+
12
+ | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
+ |--------|------|------|--------|------|
14
+ | keyword | string | 是 | - | 搜索关键词。 |
15
+
16
+ > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
17
+
18
+ ## 响应参数
19
+
20
+ | 参数名 | 类型 | 说明 |
21
+ |--------|------|------|
22
+ | success | boolean | 是否成功。 |
23
+ | keyword | string | 回显的搜索关键词。 |
24
+ | video_list | array | 视频列表,每项含上游返回的原始字段;其中 `create_time` 经转换为 `create_time_converted`(YYYY-MM-DD HH:MM)。 |
25
+ | message | string | 响应消息。 |
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 | integer | 成功扣费后的交易ID;未扣费时为 `null`。 |
33
+
34
+ ## 请求示例
35
+
36
+ ```bash
37
+ curl -X POST "http://plugin.aiconductor.fun/api/douyin_video_search_fast" \
38
+ -H "Authorization: Bearer your_api_key" \
39
+ -H "Content-Type: application/json" \
40
+ -d '{
41
+ "keyword": "美食教程"
42
+ }'
43
+ ```
44
+
45
+ ## 注意事项
46
+ 1. 采用后扣费模式:仅在搜索成功(上游 code=0 且 HTTP 200)后才扣费;密钥无效/余额不足/网络异常/响应解析失败均不扣费。
47
+ 2. 上游 Coze 工作流密钥仅配置在服务端,调用方无需也不应传入。
48
+ 3. 返回结构依赖上游工作流输出,具体视频字段以 `video_list` 中实际内容为准。
@@ -0,0 +1,51 @@
1
+ ## 接口信息
2
+ - **URL**: `http://plugin.aiconductor.fun/api/fast_ocr`
3
+ - **方法**: `POST` / `GET`
4
+ - **Content-Type**: `application/json`
5
+ - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
+
7
+ ## 功能说明
8
+ 通过 Coze 工作流对图片进行 OCR 文字识别,返回拼接后的识别文本与原始结果。按次计费,费用以 api_services 表配置为准(服务码 `Fast_OCR`)。
9
+
10
+ ## 请求参数
11
+
12
+ | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
+ |--------|------|------|--------|------|
14
+ | image_url | string | 是 | - | 待识别的图片 URL |
15
+
16
+ > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
17
+
18
+ ## 响应参数
19
+
20
+ | 参数名 | 类型 | 说明 |
21
+ |--------|------|------|
22
+ | success | boolean | 是否成功 |
23
+ | message | string | 响应消息 |
24
+ | ocr_text | string | 拼接后的完整识别文字 |
25
+ | ocr_results | array | 原始 OCR 识别结果(按区块组织) |
26
+ | ocr_results[].words | array | 区块内文字项列表 |
27
+ | ocr_results[].words[].text | string | 单条识别文字 |
28
+ | billing | object | 计费信息 |
29
+ | billing.service_fee | float | 本次费用(单价) |
30
+ | billing.discount_applied | boolean | 是否应用折扣(成功分支为 true) |
31
+ | billing.balance_before | float | 扣费前余额 |
32
+ | billing.balance_after | float | 扣费后余额 |
33
+ | billing.currency | string | 货币单位,固定 `CNY` |
34
+ | billing.transaction_id | int/null | 交易 ID |
35
+
36
+ ## 请求示例
37
+
38
+ ```bash
39
+ curl -X POST "http://plugin.aiconductor.fun/api/fast_ocr" \
40
+ -H "Authorization: Bearer your_api_key" \
41
+ -H "Content-Type: application/json" \
42
+ -d '{
43
+ "image_url": "https://example.com/receipt.jpg"
44
+ }'
45
+ ```
46
+
47
+ ## 注意事项
48
+ 1. `image_url` 为必填,缺失返回 `success=false`。
49
+ 2. 单价由 `api_services` 表(服务码 `Fast_OCR`)读取,按次计费。
50
+ 3. 余额不足、Coze 调用失败、OCR 未识别到结果等情形均不扣费,返回 `success=false`。
51
+ 4. `ocr_results` 为 Coze 工作流返回的原始结构(含按区块/文字项组织),`ocr_text` 为所有文字项的拼接结果。
@@ -0,0 +1,41 @@
1
+ ## 接口信息
2
+ - **URL**: `http://plugin.aiconductor.fun/api/flow_article2podcast_creat`
3
+ - **方法**: `POST` / `GET`
4
+ - **Content-Type**: `application/json`
5
+ - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
+
7
+ ## 功能说明
8
+ 创建文章转播客工作流任务,支持文章 URL 或内容输入,返回执行 ID 用于后续查询。本插件不计费(无 billing)。
9
+
10
+ ## 请求参数
11
+
12
+ | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
+ |--------|------|------|--------|------|
14
+ | article_content | string | 否 | "" | 文章内容(与 article_url 至少填一个) |
15
+ | article_url | string | 否 | "" | 文章 URL(与 article_content 至少填一个) |
16
+
17
+ > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
18
+
19
+ ## 响应参数
20
+
21
+ | 参数名 | 类型 | 说明 |
22
+ |--------|------|------|
23
+ | success | boolean | 是否成功 |
24
+ | message | string | 响应消息 |
25
+ | execute_id | string | 执行 ID(用于查询接口) |
26
+ | debug_url | string | 调试 URL |
27
+
28
+ ## 请求示例
29
+
30
+ ```bash
31
+ curl -X POST "http://plugin.aiconductor.fun/api/flow_article2podcast_creat" \
32
+ -H "Authorization: Bearer your_api_key" \
33
+ -H "Content-Type: application/json" \
34
+ -d '{"article_url": "https://example.com/some-article", "article_content": ""}'
35
+ ```
36
+
37
+ ## 注意事项
38
+ 1. `article_content` 与 `article_url` 至少提供一个,否则返回失败(execute_id/debug_url 为空)。
39
+ 2. 该接口为异步任务创建入口,需配合 `flow_article2podcast_query` 接口,使用返回的 `execute_id` 轮询执行结果。
40
+ 3. 内部调用扣子(Coze)工作流 API,请求超时 30s(连接 10s)。
41
+ 4. 工作流创建失败、HTTP 非 200、未返回 execute_id 等情况均返回失败且不产生执行 ID。
@@ -0,0 +1,41 @@
1
+ ## 接口信息
2
+ - **URL**: `http://plugin.aiconductor.fun/api/flow_article2podcast_query`
3
+ - **方法**: `POST` / `GET`
4
+ - **Content-Type**: `application/json`
5
+ - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
+
7
+ ## 功能说明
8
+ 查询文章转播客工作流任务执行结果,输入执行 ID,返回执行状态与输出内容。本插件不计费(无 billing)。
9
+
10
+ ## 请求参数
11
+
12
+ | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
+ |--------|------|------|--------|------|
14
+ | execute_id | string | 是 | — | 执行 ID(由 flow_article2podcast_creat 创建时返回) |
15
+
16
+ > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
17
+
18
+ ## 响应参数
19
+
20
+ | 参数名 | 类型 | 说明 |
21
+ |--------|------|------|
22
+ | success | boolean | 是否成功(execute_status 为 Success 时为 true) |
23
+ | message | string | 响应消息(根据状态返回:成功/失败/执行中) |
24
+ | execute_status | string | 执行状态:`Running` / `Success` / `Failed` |
25
+ | output | string | 输出结果(已提取的 Output 内容,原始为 JSON 字符串) |
26
+
27
+ ## 请求示例
28
+
29
+ ```bash
30
+ curl -X POST "http://plugin.aiconductor.fun/api/flow_article2podcast_query" \
31
+ -H "Authorization: Bearer your_api_key" \
32
+ -H "Content-Type: application/json" \
33
+ -d '{"execute_id": "7484132558797553704_xxxx"}'
34
+ ```
35
+
36
+ ## 注意事项
37
+ 1. `execute_id` 不能为空,否则直接返回失败。
38
+ 2. 该接口为异步轮询接口:任务可能处于 `Running` 状态,需调用方按间隔重试直至 `Success` 或 `Failed`。
39
+ 3. `output` 为上游 Output 字段内容;若 JSON 解析失败则原样返回字符串。
40
+ 4. 内部调用扣子(Coze)工作流历史接口,请求超时 30s(连接 10s)。
41
+ 5. 本插件不产生费用(不计费)。
@@ -0,0 +1,45 @@
1
+ ## 接口信息
2
+ - **URL**: `http://plugin.aiconductor.fun/api/flow_wx_history_articles`
3
+ - **方法**: `POST` / `GET`
4
+ - **Content-Type**: `application/json`
5
+ - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
+
7
+ ## 功能说明
8
+ 通过扣子(Coze)工作流获取微信公众号历史文章数据,返回文章 Excel 与 ZIP 文件的下载链接。本接口**不接入本平台计费系统(不扣费)**,仅作为工作流调用桥接。
9
+
10
+ ## 请求参数
11
+
12
+ | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
+ |--------|------|------|--------|------|
14
+ | account_name | string | 是 | - | 目标微信公众号名称 |
15
+ | max_pages | int | 否 | `5` | 最大翻页数量 |
16
+
17
+ > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,框架自动注入;本插件同时会将该 `api_key` 作为工作流参数转发给扣子工作流。
18
+
19
+ ## 响应参数
20
+
21
+ | 参数名 | 类型 | 说明 |
22
+ |--------|------|------|
23
+ | success | boolean | 是否成功(工作流执行结果) |
24
+ | message | string | 处理结果消息 |
25
+ | article_xlsx | string | 文章数据 Excel 文件 URL(失败为空字符串) |
26
+ | article_zip | string | 文章数据 ZIP 文件 URL(失败为空字符串) |
27
+
28
+ ## 请求示例
29
+
30
+ ```bash
31
+ curl -X POST "http://plugin.aiconductor.fun/api/flow_wx_history_articles" \
32
+ -H "Authorization: Bearer your_api_key" \
33
+ -H "Content-Type: application/json" \
34
+ -d '{
35
+ "account_name": "人民日报",
36
+ "max_pages": 5
37
+ }'
38
+ ```
39
+
40
+ ## 注意事项
41
+ 1. 本接口**不接入本平台计费系统,不扣费**。
42
+ 2. `api_key` 除用于本平台鉴权外,会被作为工作流参数 `api_key` 转发给扣子工作流(框架自动从请求头注入到 body),请确保提供的密钥同时被工作流侧接受。
43
+ 3. 调用依赖外部扣子工作流(Coze),整体请求超时时间为 120 秒;超时或网络错误返回 `success=false`。
44
+ 4. 响应中 `data` 字段由扣子工作流返回(JSON 字符串),解析后提取 `article_xlsx`、`article_zip`、`message`、`success`;工作流执行失败(`code!=0`)或数据解析失败时返回失败。
45
+ 5. 返回的为文件下载链接,调用方自行下载;链接有效期取决于扣子/存储侧配置。
@@ -0,0 +1,68 @@
1
+ ## 接口信息
2
+ - **URL**: `http://plugin.aiconductor.fun/api/generate_image`
3
+ - **方法**: `POST` / `GET`
4
+ - **Content-Type**: `application/json`
5
+ - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
+
7
+ ## 功能说明
8
+ 调用火山引擎 Ark Seedream 文生图模型生成 AI 图片,支持 doubao-seedream-4.5/5.0、2K/4K 分辨率与多种宽高比。按实际生成张数计费,单价以 api_services 表配置为准(服务码 `Generate_Image`)。
9
+
10
+ ## 请求参数
11
+
12
+ | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
+ |--------|------|------|--------|------|
14
+ | prompt | string | 是 | - | 图片生成提示词 |
15
+ | model | string | 否 | `"doubao-seedream-5-0-260128"` | 模型名,仅支持 `doubao-seedream-5-0-260128` / `doubao-seedream-4-5-251128` |
16
+ | resolution | string | 否 | `"2K"` | 分辨率,仅支持 `2K`/`4K` |
17
+ | aspect_ratio | string | 否 | `"1:1"` | 宽高比,可选 `1:1`/`4:3`/`3:4`/`16:9`/`9:16`/`3:2`/`2:3`/`21:9` |
18
+ | image | array | 否 | `None` | 参考图 URL 列表(1-14 张,用于图生图) |
19
+ | watermark | boolean | 否 | `false` | 是否添加水印 |
20
+ | response_format | string | 否 | `"url"` | 返回格式:`url` 或 `b64_json` |
21
+ | sequential_image_generation | string | 否 | `"disabled"` | `disabled`=单图,`auto`=组图 |
22
+ | max_images | integer | 否 | `15` | 组图模式最大图片数(1-15,仅 `auto` 时生效) |
23
+
24
+ > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
25
+
26
+ ## 响应参数
27
+
28
+ | 参数名 | 类型 | 说明 |
29
+ |--------|------|------|
30
+ | success | boolean | 是否成功 |
31
+ | message | string | 响应消息 |
32
+ | images | array | 生成的图片列表 |
33
+ | images[].url | string | 图片 URL(已转存至 OSS temporary 目录) |
34
+ | images[].b64_json | string | base64 图片数据(仅 `response_format=b64_json` 时返回) |
35
+ | images[].size | string | 图片尺寸(若有) |
36
+ | model | string | 实际使用的模型名 |
37
+ | created | integer | 生成时间戳 |
38
+ | usage | object | 用量信息(来自 Ark 响应) |
39
+ | billing | object | 计费信息 |
40
+ | billing.service_fee | float | 本次总费用(单价 × 生成张数) |
41
+ | billing.discount_applied | boolean | 是否应用折扣(恒为 true) |
42
+ | billing.balance_before | float | 扣费前余额 |
43
+ | billing.balance_after | float | 扣费后余额 |
44
+ | billing.currency | string | 货币单位,固定 `CNY` |
45
+ | billing.transaction_id | int/null | 交易 ID |
46
+
47
+ ## 请求示例
48
+
49
+ ```bash
50
+ curl -X POST "http://plugin.aiconductor.fun/api/generate_image" \
51
+ -H "Authorization: Bearer your_api_key" \
52
+ -H "Content-Type: application/json" \
53
+ -d '{
54
+ "prompt": "一只在樱花树下打盹的橘猫,宫崎骏风格",
55
+ "model": "doubao-seedream-5-0-260128",
56
+ "resolution": "2K",
57
+ "aspect_ratio": "16:9",
58
+ "watermark": false,
59
+ "response_format": "url"
60
+ }'
61
+ ```
62
+
63
+ ## 注意事项
64
+ 1. 模型、分辨率、宽高比需匹配,非法值直接返回 `success=false`(错误信息会列出支持的选项)。
65
+ 2. `image` 参考图数量不能超过 14 张;组图模式下 `max_images` 取值 1-15。
66
+ 3. 单价由 `api_services` 表(服务码 `Generate_Image`)读取,按生成张数计费;`discount_applied` 恒为 `true`。
67
+ 4. 若 `余额 < 单张费用` 则直接返回 `success=false` 且不扣费;若余额足以支付单张但不足以支付全部,则正常生成并按 `min(应扣费用, 余额)` 实际扣减(仍返回 `success=true`)。
68
+ 5. 生成的图片 URL 为 Ark 原链(24h 有效),插件已自动转存至 OSS `temporary/` 目录以长期可用。
@@ -0,0 +1,37 @@
1
+ ## 接口信息
2
+ - **URL**: `http://plugin.aiconductor.fun/api/get_duration`
3
+ - **方法**: `POST`
4
+ - **Content-Type**: `application/json`
5
+ - **鉴权**: 本接口无需鉴权(代码中未读取 api_key,无计费)
6
+
7
+ ## 功能说明
8
+ 获取视频文件的时长信息,无计费。
9
+
10
+ ## 请求参数
11
+
12
+ | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
+ |--------|------|------|--------|------|
14
+ | file_url | string | 是 | - | 视频文件的 URL |
15
+
16
+ ## 响应参数
17
+
18
+ | 参数名 | 类型 | 说明 |
19
+ |--------|------|------|
20
+ | success | boolean | 是否成功 |
21
+ | message | string | 响应消息(成功/失败原因) |
22
+ | data | object | 时长信息 |
23
+ | data.duration | number | 视频时长(秒) |
24
+ | data.* | any | 底层时长服务返回的其他字段 |
25
+
26
+ ## 请求示例
27
+
28
+ ```bash
29
+ curl -X POST "http://plugin.aiconductor.fun/api/get_duration" \
30
+ -H "Content-Type: application/json" \
31
+ -d '{"file_url": "https://example.com/video.mp4"}'
32
+ ```
33
+
34
+ ## 注意事项
35
+ 1. 本插件无任何鉴权与计费逻辑,调用 free。
36
+ 2. data 字段具体结构取决于底层时长获取服务,duration(秒)为可靠返回字段。
37
+ 3. 获取失败或发生异常时返回 success=false 且 data 为空对象。
@@ -0,0 +1,122 @@
1
+ ## 接口信息
2
+ - **URL**: `http://plugin.aiconductor.fun/api/hot_list_mixed`
3
+ - **方法**: `POST` / `GET`
4
+ - **Content-Type**: `application/json`
5
+ - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
+
7
+ ## 功能说明
8
+ 聚合获取 NewsNow 支持的多平台热榜;每个成功返回数据的 `source_id` 按服务单价计费一次,失败来源不计费。
9
+
10
+ ## 请求参数
11
+
12
+ | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
+ |--------|------|------|--------|------|
14
+ | source_ids | array&lt;string&gt; / string | 是 | - | 平台来源 ID 数组,或以逗号分隔的字符串;去重后至少提供 1 个、最多 52 个。仅支持下表中的不重复来源 ID。 |
15
+ | latest | boolean | 否 | true | 是否请求上游尝试返回较新的数据。`true` 不保证绕过上游缓存。 |
16
+ | limit | integer | 否 | 30 | 每个平台最多返回的热榜条数,范围 1-30。 |
17
+
18
+ > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
19
+
20
+ **支持的平台 ID(52 个不重复来源):**
21
+
22
+ | 来源 ID | 平台 | 内容 |
23
+ |--------|------|------|
24
+ | `v2ex` | V2EX | 最新分享 |
25
+ | `zhihu` | 知乎 | 热点 |
26
+ | `weibo` | 微博 | 实时热搜 |
27
+ | `zaobao` | 联合早报 | 最新新闻 |
28
+ | `coolapk` | 酷安 | 今日最热 |
29
+ | `mktnews` | MKTNews | 快讯 |
30
+ | `mktnews-flash` | MKTNews | 快讯 |
31
+ | `wallstreetcn` | 华尔街见闻 | 快讯 |
32
+ | `wallstreetcn-quick` | 华尔街见闻 | 快讯 |
33
+ | `wallstreetcn-news` | 华尔街见闻 | 最新新闻 |
34
+ | `wallstreetcn-hot` | 华尔街见闻 | 最热 |
35
+ | `douyin` | 抖音 | 热点 |
36
+ | `hupu` | 虎扑 | 主干道热帖 |
37
+ | `dongqiudi` | 懂球帝 | 头条 |
38
+ | `aihot` | AIHOT | AI 新闻 |
39
+ | `tieba` | 百度贴吧 | 热议 |
40
+ | `toutiao` | 今日头条 | 热点 |
41
+ | `ithome` | IT之家 | 最新新闻 |
42
+ | `thepaper` | 澎湃新闻 | 热榜 |
43
+ | `sputniknewscn` | 卫星通讯社 | 最新新闻 |
44
+ | `cankaoxiaoxi` | 参考消息 | 最新新闻 |
45
+ | `pcbeta-windows11` | 远景论坛 | Win11 |
46
+ | `cls` | 财联社 | 电报 |
47
+ | `cls-telegraph` | 财联社 | 电报 |
48
+ | `cls-depth` | 财联社 | 深度 |
49
+ | `cls-hot` | 财联社 | 热门 |
50
+ | `xueqiu` | 雪球 | 热门股票 |
51
+ | `gelonghui` | 格隆汇 | 事件 |
52
+ | `fastbull` | 法布财经 | 快讯 |
53
+ | `fastbull-express` | 法布财经 | 快讯 |
54
+ | `fastbull-news` | 法布财经 | 头条 |
55
+ | `solidot` | Solidot | 最新新闻 |
56
+ | `hackernews` | Hacker News | 热门故事 |
57
+ | `producthunt` | Product Hunt | 热门产品 |
58
+ | `github` | GitHub | 今日趋势 |
59
+ | `bilibili` | 哔哩哔哩 | 热搜 |
60
+ | `bilibili-hot-search` | 哔哩哔哩 | 热搜 |
61
+ | `kaopu` | 靠谱新闻 | 最新新闻 |
62
+ | `jin10` | 金十数据 | 最新新闻 |
63
+ | `baidu` | 百度 | 热搜 |
64
+ | `nowcoder` | 牛客 | 热搜 |
65
+ | `sspai` | 少数派 | 热点 |
66
+ | `juejin` | 稀土掘金 | 热点 |
67
+ | `ifeng` | 凤凰网 | 热点资讯 |
68
+ | `chongbuluo-latest` | 虫部落 | 最新帖子 |
69
+ | `chongbuluo-hot` | 虫部落 | 热门帖子 |
70
+ | `douban` | 豆瓣 | 热门电影 |
71
+ | `steam` | Steam | 在线人数 |
72
+ | `tencent-hot` | 腾讯新闻 | 综合早报 |
73
+ | `freebuf` | FreeBuf | 网络安全 |
74
+ | `qqvideo-tv-hotsearch` | 腾讯视频 | 热搜榜 |
75
+ | `iqiyi-hot-ranklist` | 爱奇艺 | 热播榜 |
76
+
77
+ ## 响应参数
78
+
79
+ | 参数名 | 类型 | 说明 |
80
+ |--------|------|------|
81
+ | success | boolean | 是否成功 |
82
+ | message | string | 响应消息 |
83
+ | data | object | 热榜查询结果 |
84
+ | data.sources | array | 成功获取数据的平台列表,保持请求的来源顺序 |
85
+ | data.sources[].source_id | string | 上游实际使用的平台来源 ID |
86
+ | data.sources[].status | string | 上游数据状态,`success` 或 `cache` |
87
+ | data.sources[].updated_time | integer | 上游更新时间,Unix 毫秒时间戳 |
88
+ | data.sources[].items | array | 热榜条目列表 |
89
+ | data.sources[].items[].id | string | 条目 ID |
90
+ | data.sources[].items[].title | string | 标题 |
91
+ | data.sources[].items[].url | string | 原文链接 |
92
+ | data.sources[].items[].mobile_url | string | 移动端链接,可能为空 |
93
+ | data.sources[].items[].pub_date | integer / string | 发布时间,格式取决于来源 |
94
+ | data.sources[].items[].extra | object | 来源特有的补充信息,可能为空对象 |
95
+ | data.failed_sources | array | 请求失败的平台列表;成功平台仍会正常返回 |
96
+ | data.failed_sources[].source_id | string | 失败的平台来源 ID |
97
+ | data.failed_sources[].message | string | 失败原因概要 |
98
+ | billing | object | 计费信息 |
99
+ | billing.service_fee | float | 本次服务费,为服务单价乘以成功来源数量 |
100
+ | billing.discount_applied | boolean | 是否应用折扣 |
101
+ | billing.balance_before | float | 扣费前余额 |
102
+ | billing.balance_after | float | 扣费后余额 |
103
+ | billing.currency | string | 货币类型(CNY) |
104
+ | billing.transaction_id | string | 交易 ID;未扣费时为 null |
105
+
106
+ ## 请求示例
107
+
108
+ ```bash
109
+ curl -X POST "http://plugin.aiconductor.fun/api/hot_list_mixed" \
110
+ -H "Authorization: Bearer your_api_key" \
111
+ -H "Content-Type: application/json" \
112
+ -d '{
113
+ "source_ids": ["zhihu", "weibo"],
114
+ "latest": true,
115
+ "limit": 10
116
+ }'
117
+ ```
118
+
119
+ ## 注意事项
120
+ 1. 余额校验按请求的去重后来源数量计算;实际仅对成功返回数据的来源扣费,每个成功来源扣一次服务单价。
121
+ 2. 当部分来源失败时,接口仍返回成功来源和 `failed_sources`;当全部来源失败时不扣费。
122
+ 3. 上游服务可能返回缓存数据或临时不可用,调用方应根据 `status` 和 `failed_sources` 做容错处理。
@@ -0,0 +1,50 @@
1
+ ## 接口信息
2
+ - **URL**: `http://plugin.aiconductor.fun/api/html_publish`
3
+ - **方法**: `POST`
4
+ - **Content-Type**: `application/json`
5
+ - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
+
7
+ ## 功能说明
8
+ 将 HTML 代码发布为网页并上传到阿里云 OSS 存储,自动添加时间戳和 UUID 后缀确保文件名唯一性,并自动为链接添加 `target="_blank"`。按次计费,费用以 api_services 表配置为准。
9
+
10
+ ## 请求参数
11
+
12
+ | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
+ |--------|------|------|--------|------|
14
+ | html_code | string | 是 | - | HTML 格式文本内容(支持完整文档或 HTML 片段,系统会自动提取 `<!DOCTYPE html>` 到 `</html>` 部分) |
15
+ | title | string | 否 | 随机 8 位十六进制串 | 文档标题,用作文件名基础(不含后缀) |
16
+
17
+ > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
18
+
19
+ ## 响应参数
20
+
21
+ | 参数名 | 类型 | 说明 |
22
+ |--------|------|------|
23
+ | success | boolean | 是否成功 |
24
+ | message | string | 响应消息 |
25
+ | online_url | string | 在线访问的网页 URL(失败时为 "") |
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/html_publish" \
39
+ -H "Authorization: Bearer your_api_key" \
40
+ -H "Content-Type: application/json" \
41
+ -d '{
42
+ "html_code": "<!DOCTYPE html><html><head><title>页面</title></head><body><h1>你好</h1></body></html>",
43
+ "title": "我的页面"
44
+ }'
45
+ ```
46
+
47
+ ## 注意事项
48
+ 1. 采用后扣费模式:网页发布事务(finalize_webpage_publish)成功后才扣费;若发布事务失败,系统会尝试清理已上传的 OSS 文件且不扣费。
49
+ 2. API 密钥无效、账户禁用或余额不足时不扣费;OSS 上传或服务异常时不扣费。
50
+ 3. 系统会自动剥离 Markdown 代码块标记(```html ... ```)并提取纯 HTML 内容,且为所有 `<a href>` 链接追加 `target="_blank"`。
@@ -0,0 +1,65 @@
1
+ ## 接口信息
2
+ - **URL**: `http://plugin.aiconductor.fun/api/html_publish_flexible`
3
+ - **方法**: `POST`
4
+ - **Content-Type**: `application/json`
5
+ - **鉴权**: 请求头 `Authorization: Bearer <api_key>`(兼容 body/query 中 `api_key` 参数)
6
+
7
+ ## 功能说明
8
+ 将 HTML 代码发布为网页并上传到阿里云 OSS 存储,支持通过 `html_code` 或 `html_url` 提供内容(二选一),支持自定义 `file_name`、`base_url` 和 `directory`。按次计费,费用以 api_services 表配置为准。
9
+
10
+ ## 请求参数
11
+
12
+ | 参数名 | 类型 | 必填 | 默认值 | 说明 |
13
+ |--------|------|------|--------|------|
14
+ | file_name | string | 是 | - | 文件名(不含后缀,系统自动追加 .html) |
15
+ | html_code | string | 条件必填 | null | HTML 文本(与 html_url 二选一,二者只能提供一个) |
16
+ | html_url | string | 条件必填 | null | HTML 文件链接,仅支持 .html 文件(与 html_code 二选一) |
17
+ | base_url | string | 否 | 默认配置 | 可选的自定义 OSS base_url(访问域名) |
18
+ | directory | string | 否 | 默认配置 | 可选的自定义 OSS 存储目录 |
19
+
20
+ > **鉴权参数**:api_key 通过请求头 `Authorization: Bearer <api_key>` 传递,不再列入请求参数表。
21
+
22
+ ## 响应参数
23
+
24
+ | 参数名 | 类型 | 说明 |
25
+ |--------|------|------|
26
+ | success | boolean | 是否成功 |
27
+ | message | string | 响应消息 |
28
+ | online_url | string | 在线访问的网页 URL(失败时为 "") |
29
+ | billing | object | 计费信息(见下方子字段) |
30
+ | billing.service_fee | float | 本次服务费用 |
31
+ | billing.discount_applied | boolean | 是否应用折扣 |
32
+ | billing.balance_before | float | 扣费前账户余额 |
33
+ | billing.balance_after | float | 扣费后账户余额 |
34
+ | billing.currency | string | 货币单位(CNY) |
35
+ | billing.transaction_id | string | 交易流水号(未扣费时为 null) |
36
+ | billing.error | string | 错误信息(仅失败响应的 billing 中可能出现) |
37
+
38
+ ## 请求示例
39
+
40
+ ```bash
41
+ # 方式一:直接传 HTML 代码
42
+ curl -X POST "http://plugin.aiconductor.fun/api/html_publish_flexible" \
43
+ -H "Authorization: Bearer your_api_key" \
44
+ -H "Content-Type: application/json" \
45
+ -d '{
46
+ "file_name": "landing",
47
+ "html_code": "<!DOCTYPE html><html><body><h1>Hello</h1></body></html>",
48
+ "directory": "my_pages"
49
+ }'
50
+
51
+ # 方式二:传 HTML 文件链接
52
+ curl -X POST "http://plugin.aiconductor.fun/api/html_publish_flexible" \
53
+ -H "Authorization: Bearer your_api_key" \
54
+ -H "Content-Type: application/json" \
55
+ -d '{
56
+ "file_name": "landing",
57
+ "html_url": "https://example.com/page.html"
58
+ }'
59
+ ```
60
+
61
+ ## 注意事项
62
+ 1. `html_code` 与 `html_url` 必须且只能提供其中一个:两者都未提供或同时提供时返回失败且不扣费。
63
+ 2. 当提供 `html_url` 时,链接必须以 `.html` 结尾(忽略查询串与锚点),否则返回失败且不扣费;下载失败时不扣费。
64
+ 3. 采用后扣费模式:OSS 上传成功并记录交易后才扣费;API 密钥无效、账户禁用或余额不足时不扣费。
65
+ 4. 系统会自动为所有 `<a href>` 链接追加 `target="_blank"`,并提取纯 HTML 内容。