api2img 0.1.1 → 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.
- package/README.en.md +65 -0
- package/README.md +65 -56
- package/package.json +25 -24
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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,24 +1,25 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "api2img",
|
|
3
|
-
"version": "0.1.
|
|
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
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
+
}
|