api2img 0.1.0 → 0.1.2

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 (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.en.md +65 -0
  3. package/README.md +65 -56
  4. package/package.json +25 -16
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Voler
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.en.md ADDED
@@ -0,0 +1,65 @@
1
+ # Api2img Skill
2
+
3
+ [中文](README.md) | [English](README.en.md)
4
+
5
+ ## Features
6
+
7
+ `Solves the problem that users who use Codex through a third-party API cannot generate images`.
8
+
9
+ api2img is designed for people who use Codex through a relay API and also need image generation and editing.
10
+
11
+ ## Advantages
12
+
13
+ - **Simple**: Install with one command.
14
+ - **Secure**: The API key is saved locally for the current Windows user with Windows DPAPI, so you do not need to paste the key into chat.
15
+ - **No environment pollution**: It does not overwrite your existing `OPENAI_API_KEY`, `OPENAI_BASE_URL`, or other variables. It only maps them temporarily inside the child process.
16
+
17
+ ## Installation
18
+
19
+ Method 1 (recommended for beginners): directly tell your Agent:
20
+
21
+ ```powershell
22
+ Install this Codex skill for me: npx api2img
23
+ ```
24
+
25
+ Method 2: enter this in the command line:
26
+
27
+ ```powershell
28
+ npx api2img
29
+ ```
30
+
31
+ ## Recommended Image API Relay Provider
32
+
33
+ [https://cc-vibe.com](https://cc-vibe.com/register?aff=7LBQWRFY5ETG)
34
+
35
+ Built by a friend, low price with volume:
36
+
37
+ - Personal request data is deleted every day, privacy-friendly
38
+ - Supports image generation: 1k image = RMB 0.1 each, 2k image = RMB 0.2 each, 4k image = RMB 0.3 each
39
+ - Claude Code/Codex are both available (RMB 10 for USD 200 quota, floor price, model can be verified)
40
+
41
+ ---
42
+
43
+ ## Supported Features
44
+
45
+ It will be automatically called by Codex when needed, and can also be used for normal image generation, for example:
46
+
47
+ - [Generate] Generate an xxx image
48
+ - [Edit] Replace a certain part of the image
49
+ - [Upload] Modify xxx in the image I uploaded
50
+
51
+ ### Other Features
52
+
53
+ Tell Codex in natural language:
54
+
55
+ ```powershell
56
+ I want to modify the url and apikey of the api2img skill
57
+ ```
58
+
59
+ ```powershell
60
+ I want to delete the url and apikey of the api2img skill
61
+ ```
62
+
63
+ ## Note
64
+
65
+ - Image generation sends prompts and uploaded images to the third-party relay provider you configured. If you are not familiar with the provider, do not process ID documents, faces, work secrets, or other private and sensitive content.
package/README.md CHANGED
@@ -1,56 +1,65 @@
1
- # Api2img Skill
2
-
3
- ## 功能
4
- 为了 **解决通过中转 API 使用 Codex的用户无法生图的问题**。
5
-
6
- api2img 专门面向通过中转 API 使用 Codex,同时又有图片生成&编辑需求的人。
7
-
8
-
9
- ## 优势
10
-
11
- - **简单**:一条指令安装。
12
- - **安全**:API Key 使用 Windows DPAPI 保存到当前用户本机,不要求把密钥贴到聊天里。
13
- - **不污染环境**:不会覆盖你原来的 `OPENAI_API_KEY`、`OPENAI_BASE_URL` 等变量,只在子进程里临时映射。
14
-
15
-
16
- ## 安装
17
-
18
- 方式1(小白推荐):直接告诉你的 Agent:
19
- ```powershell
20
- 帮我安装这个 codex 技能:npx api2img
21
- ```
22
-
23
- 方式2:命令行输入:
24
-
25
- ```powershell
26
- npx api2img
27
- ```
28
-
29
- ## 支持功能
30
-
31
- 会在必要时自动被 codex 调用,正常生图用也可以使用,比如:
32
-
33
- - 【生成】生成一张xxx图
34
- - 【修改】替换图片里的某个部分
35
- - 【上传】修改我上传图片里的xxx
36
-
37
- ### 使用流程
38
-
39
- ```powershell
40
- 1、第一次使用时,Codex 会自动引导你填写第三方生图 API 地址,并打开安全输入流程保存 API Key,不需要把密钥粘贴到聊天里。
41
- ```
42
- 其他功能(用自然语言跟 Codex 说):
43
- ```powershell
44
- 2、我要修改 api2img 技能的 url 与 apikey
45
- ```
46
-
47
- ```powershell
48
- 3、我要删除 api2img 技能的 url 与 apikey
49
- ```
50
-
51
-
52
-
53
- ## 注意
54
-
55
- - 生成图片会把提示词、上传的图片发送到你配置的三方中转商。
56
- - 请不要用不可信接口处理身份证件、人脸、工作机密等各类私人敏感内容。
1
+ # Api2img Skill
2
+
3
+ [中文](README.md) | [English](README.en.md)
4
+
5
+ ## 功能
6
+
7
+ `解决通过第三方 API 使用 Codex 的用户无法生图的问题`。
8
+
9
+ api2img 专门面向通过中转 API 使用 Codex,同时又有图片生成&编辑需求的人。
10
+
11
+ ## 优势
12
+
13
+ - **简单**:一条指令安装。
14
+ - **安全**:API Key 使用 Windows DPAPI 保存到当前用户本机,不要求把密钥贴到聊天里。
15
+ - **不污染环境**:不会覆盖你原来的 `OPENAI_API_KEY`、`OPENAI_BASE_URL` 等变量,只在子进程里临时映射。
16
+
17
+ ## 安装
18
+
19
+ 方式1(小白推荐):直接告诉你的 Agent:
20
+
21
+ ```powershell
22
+ 帮我安装这个 codex 技能:npx api2img
23
+ ```
24
+
25
+ 方式2:命令行输入:
26
+
27
+ ```powershell
28
+ npx api2img
29
+ ```
30
+
31
+ ## 生图 API 中转商推荐
32
+
33
+ [https://cc-vibe.com](https://cc-vibe.com/register?aff=7LBQWRFY5ETG)
34
+
35
+ 朋友搭的,低价走量:
36
+
37
+ - 个人请求数据每天删除,隐私放心
38
+ - 支持生图,1k图/张=1毛,2k图/张=2毛,4k图/张=3毛
39
+ - claude code/codex 都有(10块200刀额度,地板价可验模型)
40
+
41
+ ---
42
+
43
+ ## 支持功能
44
+
45
+ 会在必要时自动被 codex 调用,正常生图用也可以使用,比如:
46
+
47
+ - 【生成】生成一张xxx图
48
+ - 【修改】替换图片里的某个部分
49
+ - 【上传】修改我上传图片里的xxx
50
+
51
+ ### 其他功能
52
+
53
+ 用自然语言跟 Codex 说:
54
+
55
+ ```powershell
56
+ 我要修改 api2img 技能的 url 与 apikey
57
+ ```
58
+
59
+ ```powershell
60
+ 我要删除 api2img 技能的 url 与 apikey
61
+ ```
62
+
63
+ ## 注意
64
+
65
+ - 生成图片会把提示词、上传的图片发送到你配置的三方中转商,如果是不熟悉的中转商,不要处理身份证件、人脸、工作机密等各类私人敏感内容。
package/package.json CHANGED
@@ -1,16 +1,25 @@
1
- {
2
- "name": "api2img",
3
- "version": "0.1.0",
4
- "description": "Install the api2img Codex skill for image generation and editing through a relay API.",
5
- "bin": {
6
- "api2img": "bin/install.js"
7
- },
8
- "files": [
9
- "SKILL.md",
10
- "README.md",
11
- "agents",
12
- "scripts",
13
- "bin"
14
- ],
15
- "license": "MIT"
16
- }
1
+ {
2
+ "name": "api2img",
3
+ "version": "0.1.2",
4
+ "description": "Install the api2img Codex skill for image generation and editing through a relay API.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/MrVoler/api2img-codex-skill.git"
8
+ },
9
+ "homepage": "https://github.com/MrVoler/api2img-codex-skill#readme",
10
+ "bugs": {
11
+ "url": "https://github.com/MrVoler/api2img-codex-skill/issues"
12
+ },
13
+ "bin": {
14
+ "api2img": "bin/install.js"
15
+ },
16
+ "files": [
17
+ "SKILL.md",
18
+ "README.md",
19
+ "README.en.md",
20
+ "agents",
21
+ "scripts",
22
+ "bin"
23
+ ],
24
+ "license": "MIT"
25
+ }