image-skill 0.1.12 → 0.1.14
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/CHANGELOG.md +17 -5
- package/PROVENANCE.md +12 -0
- package/README.md +30 -19
- package/bin/image-skill.mjs +1186 -40
- package/cli.md +146 -55
- package/llms.txt +42 -27
- package/package.json +1 -1
- package/skill.md +99 -58
- package/skills/image-skill/SKILL.md +99 -58
- package/skills/image-skill/references/cli.md +146 -55
- package/skills/image-skill/references/llms.txt +42 -27
package/skill.md
CHANGED
|
@@ -78,18 +78,42 @@ provider API because Image Skill was missing something, submit feedback with:
|
|
|
78
78
|
|
|
79
79
|
## First Run
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
JSON is the default output for the public CLI. `--json` remains accepted for
|
|
82
|
+
compatibility, but fresh agents do not need to add it to every command.
|
|
83
|
+
|
|
84
|
+
Start with the no-spend guide. It checks hosted reachability, executable model
|
|
85
|
+
availability, auth/quota state when credentials already exist, payment rail
|
|
86
|
+
availability, and returns exactly one next command. Guide mode does not create
|
|
87
|
+
a signup, provider job, dry-run job, payment object, credit debit, or asset.
|
|
82
88
|
|
|
83
89
|
```bash
|
|
84
|
-
npx -y image-skill
|
|
85
|
-
export IMAGE_SKILL_TOKEN=isk_... # the token printed above; every later command reads it automatically
|
|
86
|
-
npx -y image-skill create "a compact field camera on a stainless workbench"
|
|
90
|
+
npx -y image-skill@latest create --guide --prompt "a compact field camera on a stainless workbench"
|
|
87
91
|
```
|
|
88
92
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
+
Read `data.stage`, `data.next_command`, and `data.mutation`. If the guide
|
|
94
|
+
returns `auth_required`, run the signup command it gives you, then rerun the
|
|
95
|
+
same guide. If it returns `quota_required`, inspect the payment commands it
|
|
96
|
+
gives you and hand the Stripe link to a human sponsor. If it returns
|
|
97
|
+
`ready_to_create`, run `data.next_command` for the bounded create.
|
|
98
|
+
|
|
99
|
+
Use the lower-level inspection commands when the guide asks for them or when
|
|
100
|
+
you need capability details before spending:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
npx -y image-skill@latest doctor
|
|
104
|
+
npx -y image-skill@latest models list --available --operation image.generate
|
|
105
|
+
npx -y image-skill@latest models show openai.gpt-image-2
|
|
106
|
+
npx -y image-skill@latest signup --agent --agent-contact AGENT_OR_OPERATOR_INBOX --agent-name NAME --runtime codex
|
|
107
|
+
npx -y image-skill@latest whoami
|
|
108
|
+
npx -y image-skill@latest usage quota
|
|
109
|
+
npx -y image-skill@latest create --dry-run --prompt "a compact field camera on a stainless workbench"
|
|
110
|
+
npx -y image-skill@latest create --prompt "a compact field camera on a stainless workbench" --intent explore --max-estimated-usd-per-image 0.07
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
That returns durable owned media URLs, a recoverable job, cost receipts, and
|
|
114
|
+
capability-preserving model metadata. Everything below is optional depth:
|
|
115
|
+
skill install, writable config recovery, payment handoff, advanced model
|
|
116
|
+
parameters, asset recovery, jobs, activity, and feedback.
|
|
93
117
|
|
|
94
118
|
Install the agent-facing skill from the hosted public contract when the runtime
|
|
95
119
|
supports skills.sh-compatible installation:
|
|
@@ -108,7 +132,7 @@ Run the executable CLI from npm without relying on a writable global npm
|
|
|
108
132
|
prefix:
|
|
109
133
|
|
|
110
134
|
```bash
|
|
111
|
-
npx -y image-skill@latest doctor
|
|
135
|
+
npx -y image-skill@latest doctor
|
|
112
136
|
```
|
|
113
137
|
|
|
114
138
|
For repeated shell use, use global package linking only after confirming the
|
|
@@ -119,39 +143,40 @@ home is read-only.
|
|
|
119
143
|
Check service and client health:
|
|
120
144
|
|
|
121
145
|
```bash
|
|
122
|
-
image-skill doctor
|
|
146
|
+
image-skill doctor
|
|
123
147
|
```
|
|
124
148
|
|
|
125
149
|
Inspect models before committing to a provider or model-specific parameter:
|
|
126
150
|
|
|
127
151
|
```bash
|
|
128
|
-
image-skill models list
|
|
129
|
-
image-skill models show openai.gpt-image-2
|
|
130
|
-
image-skill models show openai.gpt-image-1.5
|
|
152
|
+
image-skill models list
|
|
153
|
+
image-skill models show openai.gpt-image-2
|
|
154
|
+
image-skill models show openai.gpt-image-1.5
|
|
131
155
|
```
|
|
132
156
|
|
|
133
|
-
Bootstrap restricted agent access:
|
|
157
|
+
Bootstrap restricted agent access; auth is saved by default for later commands:
|
|
134
158
|
|
|
135
159
|
```bash
|
|
136
160
|
image-skill signup --agent \
|
|
137
|
-
--agent-contact
|
|
161
|
+
--agent-contact AGENT_OR_OPERATOR_INBOX \
|
|
138
162
|
--agent-name AGENT_NAME \
|
|
139
|
-
--runtime RUNTIME_NAME
|
|
140
|
-
--show-token \
|
|
141
|
-
--json
|
|
163
|
+
--runtime RUNTIME_NAME
|
|
142
164
|
```
|
|
143
165
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
166
|
+
Saved auth lets every later command authenticate automatically — you sign up
|
|
167
|
+
once and then just run commands, with no token to pass in prompts or shell
|
|
168
|
+
history. `--save` remains accepted as a compatibility no-op for older
|
|
169
|
+
instructions. Use `--no-save` only when local persistence is intentionally
|
|
170
|
+
disabled, and use `--show-token --no-save` only when the runtime has a separate
|
|
171
|
+
secret store and needs the raw token once. If you do pass the token explicitly,
|
|
172
|
+
prefer `--token-stdin` over `--token`.
|
|
173
|
+
|
|
174
|
+
In the preview contract, `--agent-contact` means an email-shaped durable
|
|
175
|
+
contact inbox for the restricted agent identity, not a requirement to find an
|
|
176
|
+
individual human. Use an agent-owned inbox when available; otherwise use an
|
|
177
|
+
operator, team, or sponsor inbox that can receive future claim, billing, or
|
|
178
|
+
abuse notices. Do not block waiting for a person, invent a person, or use a
|
|
179
|
+
throwaway inbox.
|
|
155
180
|
`example.invalid` addresses are only appropriate inside documented harness or
|
|
156
181
|
proof runs. `--human-email` remains accepted as a compatibility alias for
|
|
157
182
|
`--agent-contact`.
|
|
@@ -162,29 +187,29 @@ placing the token in command args.
|
|
|
162
187
|
|
|
163
188
|
## Local Config And Install
|
|
164
189
|
|
|
165
|
-
|
|
166
|
-
or
|
|
167
|
-
|
|
190
|
+
Run the published package directly; do not clone private source because a global
|
|
191
|
+
install or default config directory is blocked. Saved auth state defaults to the
|
|
192
|
+
user config directory. If that location is read-only, point
|
|
193
|
+
`IMAGE_SKILL_CONFIG_PATH` at a writable persistent path before `signup`:
|
|
168
194
|
|
|
169
195
|
```bash
|
|
196
|
+
export IMAGE_SKILL_CONFIG_PATH="$PWD/image-skill-config.json"
|
|
170
197
|
npx -y image-skill@latest signup --agent \
|
|
171
|
-
--agent-contact
|
|
198
|
+
--agent-contact AGENT_OR_OPERATOR_INBOX \
|
|
172
199
|
--agent-name AGENT_NAME \
|
|
173
|
-
--runtime RUNTIME_NAME
|
|
174
|
-
|
|
175
|
-
# copy the returned token, then:
|
|
176
|
-
export IMAGE_SKILL_TOKEN=isk_...
|
|
177
|
-
npx -y image-skill@latest whoami --json
|
|
200
|
+
--runtime RUNTIME_NAME
|
|
201
|
+
npx -y image-skill@latest whoami
|
|
178
202
|
```
|
|
179
203
|
|
|
180
204
|
Do not fall back to another tool because a global install or the default config
|
|
181
|
-
directory is blocked
|
|
205
|
+
directory is blocked. Follow the CLI's structured recovery command and continue
|
|
206
|
+
with `whoami`, `usage quota`, `models list`, and the requested creative flow.
|
|
182
207
|
|
|
183
208
|
Inspect identity and quota:
|
|
184
209
|
|
|
185
210
|
```bash
|
|
186
|
-
image-skill whoami
|
|
187
|
-
image-skill usage quota
|
|
211
|
+
image-skill whoami
|
|
212
|
+
image-skill usage quota
|
|
188
213
|
```
|
|
189
214
|
|
|
190
215
|
The preview hosted signup path currently uses the agent-contact inbox above.
|
|
@@ -202,7 +227,11 @@ image-skill credits quote \
|
|
|
202
227
|
--payment-method stripe_checkout \
|
|
203
228
|
--idempotency-key stripe-pack-quote-run-001 \
|
|
204
229
|
--json
|
|
205
|
-
image-skill credits quote
|
|
230
|
+
image-skill credits quote \
|
|
231
|
+
--credits 137 \
|
|
232
|
+
--payment-method stripe_checkout \
|
|
233
|
+
--idempotency-key exact-quote-run-001 \
|
|
234
|
+
--json
|
|
206
235
|
image-skill credits buy \
|
|
207
236
|
--provider stripe \
|
|
208
237
|
--quote-id QUOTE_ID \
|
|
@@ -210,14 +239,16 @@ image-skill credits buy \
|
|
|
210
239
|
--json
|
|
211
240
|
```
|
|
212
241
|
|
|
213
|
-
|
|
214
|
-
delegated-card adapters
|
|
242
|
+
The public top-up path is Stripe Checkout. Future MPP, live x402, wallet, and
|
|
243
|
+
delegated-card adapters remain private/canary until they are explicitly listed
|
|
244
|
+
by `credits methods --json`. Packs are the default Stripe Checkout UX; exact
|
|
215
245
|
`--credits` quotes remain available when an agent already knows the required
|
|
216
246
|
budget. `credits methods --json` tells agents which rails are currently
|
|
217
247
|
available, which buyer modes they support, and whether browser/human action is
|
|
218
|
-
required before an agent tries to quote or buy. `credits buy --provider stripe
|
|
219
|
-
|
|
220
|
-
|
|
248
|
+
required before an agent tries to quote or buy. `credits buy --provider stripe
|
|
249
|
+
--quote-id QUOTE_ID --idempotency-key KEY --json` returns
|
|
250
|
+
`checkout_handoff_url` for humans, `checkout_compact_url` as the copy-safe
|
|
251
|
+
handoff, and full Stripe `checkout_url` only as a fallback for a
|
|
221
252
|
`stripe_checkout` quote. It does not grant credits until verified webhook
|
|
222
253
|
fulfillment succeeds. Present or open `checkout_handoff_url` first. If it is
|
|
223
254
|
absent, present the full `checkout_url` in a code block; do not remove the
|
|
@@ -235,12 +266,20 @@ Inspect models first, especially when choosing between OpenAI, Fal, xAI, and
|
|
|
235
266
|
future providers:
|
|
236
267
|
|
|
237
268
|
```bash
|
|
238
|
-
image-skill models --json
|
|
239
|
-
image-skill models list --json
|
|
269
|
+
image-skill models list --available --operation image.generate --json
|
|
270
|
+
image-skill models list --available --operation image.edit --json
|
|
271
|
+
image-skill models list --catalog-only --provider fal --json
|
|
240
272
|
image-skill models show openai.gpt-image-2 --json
|
|
241
273
|
image-skill models show openai.gpt-image-1.5 --json
|
|
242
274
|
```
|
|
243
275
|
|
|
276
|
+
Use `--available --operation image.generate` when you need a runnable create
|
|
277
|
+
choice and `--available --operation image.edit` when you need a runnable edit
|
|
278
|
+
choice. `--available` means both `status:"available"` and
|
|
279
|
+
`execution.model_execution_status:"executable"`. The full catalog remains
|
|
280
|
+
inspectable; `--catalog-only` shows source-backed rows that are useful for
|
|
281
|
+
research but not runnable yet.
|
|
282
|
+
|
|
244
283
|
`models show` is the first detailed discovery surface for agents. It exposes
|
|
245
284
|
operations, media inputs/outputs, model-parameter schemas, fixed and wired
|
|
246
285
|
controls, cost/latency class, safety behavior, and migration hints. Use
|
|
@@ -258,7 +297,7 @@ image-skill create \
|
|
|
258
297
|
--prompt "A product mockup of a compact field camera on a stainless workbench" \
|
|
259
298
|
--intent explore \
|
|
260
299
|
--aspect-ratio 1:1 \
|
|
261
|
-
--max-estimated-usd-per-image 0.
|
|
300
|
+
--max-estimated-usd-per-image 0.07 \
|
|
262
301
|
--json
|
|
263
302
|
```
|
|
264
303
|
|
|
@@ -322,7 +361,7 @@ Hosted free-preview API:
|
|
|
322
361
|
curl -sS https://api.image-skill.com/v1/create \
|
|
323
362
|
-H "authorization: Bearer $IMAGE_SKILL_TOKEN" \
|
|
324
363
|
-H "content-type: application/json" \
|
|
325
|
-
-d '{"prompt":"A product mockup of a compact field camera on a stainless workbench","intent":"explore","aspect_ratio":"1:1","output_count":1,"max_estimated_usd_per_image":0.
|
|
364
|
+
-d '{"prompt":"A product mockup of a compact field camera on a stainless workbench","intent":"explore","aspect_ratio":"1:1","output_count":1,"max_estimated_usd_per_image":0.07}'
|
|
326
365
|
```
|
|
327
366
|
|
|
328
367
|
Expected behavior:
|
|
@@ -521,13 +560,15 @@ closed if durable hosted feedback storage is unavailable.
|
|
|
521
560
|
- Use `credits packs list --json` to inspect recommended live-money packs.
|
|
522
561
|
- Use `credits quote --pack PACK_ID --payment-method stripe_checkout --json`
|
|
523
562
|
for the default Stripe Checkout path.
|
|
524
|
-
- Use `credits quote --credits CREDITS --
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
563
|
+
- Use `credits quote --credits CREDITS --payment-method stripe_checkout
|
|
564
|
+
--idempotency-key KEY --json` for exact bounded custom top-ups when the
|
|
565
|
+
required budget is already known.
|
|
566
|
+
- Use `credits buy --provider stripe --quote-id QUOTE_ID --idempotency-key KEY
|
|
567
|
+
--json` only to create a Stripe-hosted checkout action. Present
|
|
568
|
+
`checkout_handoff_url` to humans; if it is absent, present the full
|
|
569
|
+
`checkout_url` in a code block. Do not remove the Stripe `#...` fragment;
|
|
570
|
+
Checkout needs it in the browser. Session creation itself does not grant
|
|
571
|
+
credits.
|
|
531
572
|
- Never pass live x402 payment headers, wallet private keys, seed phrases,
|
|
532
573
|
bearer tokens, Stripe secrets, provider keys, card data, or provider receipts
|
|
533
574
|
to Image Skill.
|
|
@@ -78,18 +78,42 @@ provider API because Image Skill was missing something, submit feedback with:
|
|
|
78
78
|
|
|
79
79
|
## First Run
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
JSON is the default output for the public CLI. `--json` remains accepted for
|
|
82
|
+
compatibility, but fresh agents do not need to add it to every command.
|
|
83
|
+
|
|
84
|
+
Start with the no-spend guide. It checks hosted reachability, executable model
|
|
85
|
+
availability, auth/quota state when credentials already exist, payment rail
|
|
86
|
+
availability, and returns exactly one next command. Guide mode does not create
|
|
87
|
+
a signup, provider job, dry-run job, payment object, credit debit, or asset.
|
|
82
88
|
|
|
83
89
|
```bash
|
|
84
|
-
npx -y image-skill
|
|
85
|
-
export IMAGE_SKILL_TOKEN=isk_... # the token printed above; every later command reads it automatically
|
|
86
|
-
npx -y image-skill create "a compact field camera on a stainless workbench"
|
|
90
|
+
npx -y image-skill@latest create --guide --prompt "a compact field camera on a stainless workbench"
|
|
87
91
|
```
|
|
88
92
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
+
Read `data.stage`, `data.next_command`, and `data.mutation`. If the guide
|
|
94
|
+
returns `auth_required`, run the signup command it gives you, then rerun the
|
|
95
|
+
same guide. If it returns `quota_required`, inspect the payment commands it
|
|
96
|
+
gives you and hand the Stripe link to a human sponsor. If it returns
|
|
97
|
+
`ready_to_create`, run `data.next_command` for the bounded create.
|
|
98
|
+
|
|
99
|
+
Use the lower-level inspection commands when the guide asks for them or when
|
|
100
|
+
you need capability details before spending:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
npx -y image-skill@latest doctor
|
|
104
|
+
npx -y image-skill@latest models list --available --operation image.generate
|
|
105
|
+
npx -y image-skill@latest models show openai.gpt-image-2
|
|
106
|
+
npx -y image-skill@latest signup --agent --agent-contact AGENT_OR_OPERATOR_INBOX --agent-name NAME --runtime codex
|
|
107
|
+
npx -y image-skill@latest whoami
|
|
108
|
+
npx -y image-skill@latest usage quota
|
|
109
|
+
npx -y image-skill@latest create --dry-run --prompt "a compact field camera on a stainless workbench"
|
|
110
|
+
npx -y image-skill@latest create --prompt "a compact field camera on a stainless workbench" --intent explore --max-estimated-usd-per-image 0.07
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
That returns durable owned media URLs, a recoverable job, cost receipts, and
|
|
114
|
+
capability-preserving model metadata. Everything below is optional depth:
|
|
115
|
+
skill install, writable config recovery, payment handoff, advanced model
|
|
116
|
+
parameters, asset recovery, jobs, activity, and feedback.
|
|
93
117
|
|
|
94
118
|
Install the agent-facing skill from the hosted public contract when the runtime
|
|
95
119
|
supports skills.sh-compatible installation:
|
|
@@ -108,7 +132,7 @@ Run the executable CLI from npm without relying on a writable global npm
|
|
|
108
132
|
prefix:
|
|
109
133
|
|
|
110
134
|
```bash
|
|
111
|
-
npx -y image-skill@latest doctor
|
|
135
|
+
npx -y image-skill@latest doctor
|
|
112
136
|
```
|
|
113
137
|
|
|
114
138
|
For repeated shell use, use global package linking only after confirming the
|
|
@@ -119,39 +143,40 @@ home is read-only.
|
|
|
119
143
|
Check service and client health:
|
|
120
144
|
|
|
121
145
|
```bash
|
|
122
|
-
image-skill doctor
|
|
146
|
+
image-skill doctor
|
|
123
147
|
```
|
|
124
148
|
|
|
125
149
|
Inspect models before committing to a provider or model-specific parameter:
|
|
126
150
|
|
|
127
151
|
```bash
|
|
128
|
-
image-skill models list
|
|
129
|
-
image-skill models show openai.gpt-image-2
|
|
130
|
-
image-skill models show openai.gpt-image-1.5
|
|
152
|
+
image-skill models list
|
|
153
|
+
image-skill models show openai.gpt-image-2
|
|
154
|
+
image-skill models show openai.gpt-image-1.5
|
|
131
155
|
```
|
|
132
156
|
|
|
133
|
-
Bootstrap restricted agent access:
|
|
157
|
+
Bootstrap restricted agent access; auth is saved by default for later commands:
|
|
134
158
|
|
|
135
159
|
```bash
|
|
136
160
|
image-skill signup --agent \
|
|
137
|
-
--agent-contact
|
|
161
|
+
--agent-contact AGENT_OR_OPERATOR_INBOX \
|
|
138
162
|
--agent-name AGENT_NAME \
|
|
139
|
-
--runtime RUNTIME_NAME
|
|
140
|
-
--show-token \
|
|
141
|
-
--json
|
|
163
|
+
--runtime RUNTIME_NAME
|
|
142
164
|
```
|
|
143
165
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
166
|
+
Saved auth lets every later command authenticate automatically — you sign up
|
|
167
|
+
once and then just run commands, with no token to pass in prompts or shell
|
|
168
|
+
history. `--save` remains accepted as a compatibility no-op for older
|
|
169
|
+
instructions. Use `--no-save` only when local persistence is intentionally
|
|
170
|
+
disabled, and use `--show-token --no-save` only when the runtime has a separate
|
|
171
|
+
secret store and needs the raw token once. If you do pass the token explicitly,
|
|
172
|
+
prefer `--token-stdin` over `--token`.
|
|
173
|
+
|
|
174
|
+
In the preview contract, `--agent-contact` means an email-shaped durable
|
|
175
|
+
contact inbox for the restricted agent identity, not a requirement to find an
|
|
176
|
+
individual human. Use an agent-owned inbox when available; otherwise use an
|
|
177
|
+
operator, team, or sponsor inbox that can receive future claim, billing, or
|
|
178
|
+
abuse notices. Do not block waiting for a person, invent a person, or use a
|
|
179
|
+
throwaway inbox.
|
|
155
180
|
`example.invalid` addresses are only appropriate inside documented harness or
|
|
156
181
|
proof runs. `--human-email` remains accepted as a compatibility alias for
|
|
157
182
|
`--agent-contact`.
|
|
@@ -162,29 +187,29 @@ placing the token in command args.
|
|
|
162
187
|
|
|
163
188
|
## Local Config And Install
|
|
164
189
|
|
|
165
|
-
|
|
166
|
-
or
|
|
167
|
-
|
|
190
|
+
Run the published package directly; do not clone private source because a global
|
|
191
|
+
install or default config directory is blocked. Saved auth state defaults to the
|
|
192
|
+
user config directory. If that location is read-only, point
|
|
193
|
+
`IMAGE_SKILL_CONFIG_PATH` at a writable persistent path before `signup`:
|
|
168
194
|
|
|
169
195
|
```bash
|
|
196
|
+
export IMAGE_SKILL_CONFIG_PATH="$PWD/image-skill-config.json"
|
|
170
197
|
npx -y image-skill@latest signup --agent \
|
|
171
|
-
--agent-contact
|
|
198
|
+
--agent-contact AGENT_OR_OPERATOR_INBOX \
|
|
172
199
|
--agent-name AGENT_NAME \
|
|
173
|
-
--runtime RUNTIME_NAME
|
|
174
|
-
|
|
175
|
-
# copy the returned token, then:
|
|
176
|
-
export IMAGE_SKILL_TOKEN=isk_...
|
|
177
|
-
npx -y image-skill@latest whoami --json
|
|
200
|
+
--runtime RUNTIME_NAME
|
|
201
|
+
npx -y image-skill@latest whoami
|
|
178
202
|
```
|
|
179
203
|
|
|
180
204
|
Do not fall back to another tool because a global install or the default config
|
|
181
|
-
directory is blocked
|
|
205
|
+
directory is blocked. Follow the CLI's structured recovery command and continue
|
|
206
|
+
with `whoami`, `usage quota`, `models list`, and the requested creative flow.
|
|
182
207
|
|
|
183
208
|
Inspect identity and quota:
|
|
184
209
|
|
|
185
210
|
```bash
|
|
186
|
-
image-skill whoami
|
|
187
|
-
image-skill usage quota
|
|
211
|
+
image-skill whoami
|
|
212
|
+
image-skill usage quota
|
|
188
213
|
```
|
|
189
214
|
|
|
190
215
|
The preview hosted signup path currently uses the agent-contact inbox above.
|
|
@@ -202,7 +227,11 @@ image-skill credits quote \
|
|
|
202
227
|
--payment-method stripe_checkout \
|
|
203
228
|
--idempotency-key stripe-pack-quote-run-001 \
|
|
204
229
|
--json
|
|
205
|
-
image-skill credits quote
|
|
230
|
+
image-skill credits quote \
|
|
231
|
+
--credits 137 \
|
|
232
|
+
--payment-method stripe_checkout \
|
|
233
|
+
--idempotency-key exact-quote-run-001 \
|
|
234
|
+
--json
|
|
206
235
|
image-skill credits buy \
|
|
207
236
|
--provider stripe \
|
|
208
237
|
--quote-id QUOTE_ID \
|
|
@@ -210,14 +239,16 @@ image-skill credits buy \
|
|
|
210
239
|
--json
|
|
211
240
|
```
|
|
212
241
|
|
|
213
|
-
|
|
214
|
-
delegated-card adapters
|
|
242
|
+
The public top-up path is Stripe Checkout. Future MPP, live x402, wallet, and
|
|
243
|
+
delegated-card adapters remain private/canary until they are explicitly listed
|
|
244
|
+
by `credits methods --json`. Packs are the default Stripe Checkout UX; exact
|
|
215
245
|
`--credits` quotes remain available when an agent already knows the required
|
|
216
246
|
budget. `credits methods --json` tells agents which rails are currently
|
|
217
247
|
available, which buyer modes they support, and whether browser/human action is
|
|
218
|
-
required before an agent tries to quote or buy. `credits buy --provider stripe
|
|
219
|
-
|
|
220
|
-
|
|
248
|
+
required before an agent tries to quote or buy. `credits buy --provider stripe
|
|
249
|
+
--quote-id QUOTE_ID --idempotency-key KEY --json` returns
|
|
250
|
+
`checkout_handoff_url` for humans, `checkout_compact_url` as the copy-safe
|
|
251
|
+
handoff, and full Stripe `checkout_url` only as a fallback for a
|
|
221
252
|
`stripe_checkout` quote. It does not grant credits until verified webhook
|
|
222
253
|
fulfillment succeeds. Present or open `checkout_handoff_url` first. If it is
|
|
223
254
|
absent, present the full `checkout_url` in a code block; do not remove the
|
|
@@ -235,12 +266,20 @@ Inspect models first, especially when choosing between OpenAI, Fal, xAI, and
|
|
|
235
266
|
future providers:
|
|
236
267
|
|
|
237
268
|
```bash
|
|
238
|
-
image-skill models --json
|
|
239
|
-
image-skill models list --json
|
|
269
|
+
image-skill models list --available --operation image.generate --json
|
|
270
|
+
image-skill models list --available --operation image.edit --json
|
|
271
|
+
image-skill models list --catalog-only --provider fal --json
|
|
240
272
|
image-skill models show openai.gpt-image-2 --json
|
|
241
273
|
image-skill models show openai.gpt-image-1.5 --json
|
|
242
274
|
```
|
|
243
275
|
|
|
276
|
+
Use `--available --operation image.generate` when you need a runnable create
|
|
277
|
+
choice and `--available --operation image.edit` when you need a runnable edit
|
|
278
|
+
choice. `--available` means both `status:"available"` and
|
|
279
|
+
`execution.model_execution_status:"executable"`. The full catalog remains
|
|
280
|
+
inspectable; `--catalog-only` shows source-backed rows that are useful for
|
|
281
|
+
research but not runnable yet.
|
|
282
|
+
|
|
244
283
|
`models show` is the first detailed discovery surface for agents. It exposes
|
|
245
284
|
operations, media inputs/outputs, model-parameter schemas, fixed and wired
|
|
246
285
|
controls, cost/latency class, safety behavior, and migration hints. Use
|
|
@@ -258,7 +297,7 @@ image-skill create \
|
|
|
258
297
|
--prompt "A product mockup of a compact field camera on a stainless workbench" \
|
|
259
298
|
--intent explore \
|
|
260
299
|
--aspect-ratio 1:1 \
|
|
261
|
-
--max-estimated-usd-per-image 0.
|
|
300
|
+
--max-estimated-usd-per-image 0.07 \
|
|
262
301
|
--json
|
|
263
302
|
```
|
|
264
303
|
|
|
@@ -322,7 +361,7 @@ Hosted free-preview API:
|
|
|
322
361
|
curl -sS https://api.image-skill.com/v1/create \
|
|
323
362
|
-H "authorization: Bearer $IMAGE_SKILL_TOKEN" \
|
|
324
363
|
-H "content-type: application/json" \
|
|
325
|
-
-d '{"prompt":"A product mockup of a compact field camera on a stainless workbench","intent":"explore","aspect_ratio":"1:1","output_count":1,"max_estimated_usd_per_image":0.
|
|
364
|
+
-d '{"prompt":"A product mockup of a compact field camera on a stainless workbench","intent":"explore","aspect_ratio":"1:1","output_count":1,"max_estimated_usd_per_image":0.07}'
|
|
326
365
|
```
|
|
327
366
|
|
|
328
367
|
Expected behavior:
|
|
@@ -521,13 +560,15 @@ closed if durable hosted feedback storage is unavailable.
|
|
|
521
560
|
- Use `credits packs list --json` to inspect recommended live-money packs.
|
|
522
561
|
- Use `credits quote --pack PACK_ID --payment-method stripe_checkout --json`
|
|
523
562
|
for the default Stripe Checkout path.
|
|
524
|
-
- Use `credits quote --credits CREDITS --
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
563
|
+
- Use `credits quote --credits CREDITS --payment-method stripe_checkout
|
|
564
|
+
--idempotency-key KEY --json` for exact bounded custom top-ups when the
|
|
565
|
+
required budget is already known.
|
|
566
|
+
- Use `credits buy --provider stripe --quote-id QUOTE_ID --idempotency-key KEY
|
|
567
|
+
--json` only to create a Stripe-hosted checkout action. Present
|
|
568
|
+
`checkout_handoff_url` to humans; if it is absent, present the full
|
|
569
|
+
`checkout_url` in a code block. Do not remove the Stripe `#...` fragment;
|
|
570
|
+
Checkout needs it in the browser. Session creation itself does not grant
|
|
571
|
+
credits.
|
|
531
572
|
- Never pass live x402 payment headers, wallet private keys, seed phrases,
|
|
532
573
|
bearer tokens, Stripe secrets, provider keys, card data, or provider receipts
|
|
533
574
|
to Image Skill.
|