image-skill 0.1.58 → 0.1.59
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 +10 -0
- package/SKILL.md +6 -0
- package/bin/image-skill.mjs +48 -1
- package/cli.md +27 -1
- package/llms.txt +2 -2
- package/package.json +1 -1
- package/skill.md +6 -0
- package/skills/image-skill/SKILL.md +6 -0
- package/skills/image-skill/references/cli.md +27 -1
- package/skills/image-skill/references/llms.txt +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,16 @@ This changelog tracks the public `image-skill` CLI package and public skill
|
|
|
4
4
|
mirror. The npm package metadata remains the authority for tarball integrity and
|
|
5
5
|
provenance; this file is the human- and agent-readable release map.
|
|
6
6
|
|
|
7
|
+
## 0.1.59 - 2026-06-17
|
|
8
|
+
|
|
9
|
+
- Release (activation/self-fund): add
|
|
10
|
+
`credits methods --json` `data.next_actions.recommended_quote`, a ranked
|
|
11
|
+
copy-runnable quote handoff that prefers browserless agent-settleable x402
|
|
12
|
+
when available and falls back to Stripe Checkout when that is the only usable
|
|
13
|
+
live rail. The quote step is explicitly no-spend: it creates a live-money
|
|
14
|
+
payment object but does not move money, grant credits, debit credits, call a
|
|
15
|
+
provider, or write media.
|
|
16
|
+
|
|
7
17
|
## 0.1.58 - 2026-06-17
|
|
8
18
|
|
|
9
19
|
- Release (activation/self-fund): mirror top-up urgency and the no-spend
|
package/SKILL.md
CHANGED
|
@@ -173,6 +173,12 @@ One Image Skill credit is `$0.01`. Operation debits are model-priced, not flat.
|
|
|
173
173
|
| Same rail with `agent_settleable:false` but `purchasable:true` | The rail is quoteable but settlement still needs a wallet substrate you do not have. Skip to Stripe Checkout. |
|
|
174
174
|
| Only `stripe_checkout` available | Quote with `--payment-method stripe_checkout`, then `credits buy --provider stripe` returns `checkout_handoff_url`. Hand that URL to a human sponsor. Do not strip the Stripe `#...` fragment if you fall back to the full `checkout_url`. |
|
|
175
175
|
|
|
176
|
+
If `credits methods --json` returns `data.next_actions.recommended_quote`, use
|
|
177
|
+
that action's `command` as the next authenticated quote step. It is the ranked
|
|
178
|
+
handoff to the best currently usable rail. The quote command creates a
|
|
179
|
+
live-money payment object but does not move money, grant credits, debit
|
|
180
|
+
credits, call a provider, or write media.
|
|
181
|
+
|
|
176
182
|
Credits are not granted until verified settlement or webhook fulfillment succeeds in either rail. Operator-provided promotion codes are entered on Stripe-hosted Checkout, not in the CLI. For exact bounded budgets, keep the same rail choice: use `credits quote --credits CREDITS --payment-method stripe_x402.exact.usdc` when the method is agent-settleable, and use `--payment-method stripe_checkout` only for a human Checkout fallback.
|
|
177
183
|
|
|
178
184
|
At any guide stage, read `data.checks.quota.top_up`: when `recommended` is
|
package/bin/image-skill.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import { Readable } from "node:stream";
|
|
|
15
15
|
import { pipeline } from "node:stream/promises";
|
|
16
16
|
import os from "node:os";
|
|
17
17
|
|
|
18
|
-
const VERSION = "0.1.
|
|
18
|
+
const VERSION = "0.1.59";
|
|
19
19
|
const PACKAGE_NAME = "image-skill";
|
|
20
20
|
const DEFAULT_API_BASE_URL = "https://api.image-skill.com";
|
|
21
21
|
const DEFAULT_DOCS_BASE_URL = "https://image-skill.com";
|
|
@@ -2675,8 +2675,55 @@ function withCopyRunnablePaymentMethodCommands(result, commandPrefix) {
|
|
|
2675
2675
|
}
|
|
2676
2676
|
|
|
2677
2677
|
function paymentMethodCatalogWithCopyRunnableCommands(catalog, commandPrefix) {
|
|
2678
|
+
const nextActions =
|
|
2679
|
+
catalog.next_actions !== null && typeof catalog.next_actions === "object"
|
|
2680
|
+
? catalog.next_actions
|
|
2681
|
+
: null;
|
|
2682
|
+
const recommendedQuote =
|
|
2683
|
+
nextActions?.recommended_quote !== null &&
|
|
2684
|
+
typeof nextActions?.recommended_quote === "object"
|
|
2685
|
+
? nextActions.recommended_quote
|
|
2686
|
+
: null;
|
|
2678
2687
|
return {
|
|
2679
2688
|
...catalog,
|
|
2689
|
+
...(recommendedQuote === null
|
|
2690
|
+
? {}
|
|
2691
|
+
: {
|
|
2692
|
+
next_actions: {
|
|
2693
|
+
...nextActions,
|
|
2694
|
+
recommended_quote: {
|
|
2695
|
+
...recommendedQuote,
|
|
2696
|
+
command:
|
|
2697
|
+
typeof recommendedQuote.command === "string"
|
|
2698
|
+
? renderCopyRunnablePaymentCommand(
|
|
2699
|
+
commandPrefix,
|
|
2700
|
+
recommendedQuote.command,
|
|
2701
|
+
)
|
|
2702
|
+
: recommendedQuote.command,
|
|
2703
|
+
quote_command:
|
|
2704
|
+
typeof recommendedQuote.quote_command === "string"
|
|
2705
|
+
? renderCopyRunnablePaymentCommand(
|
|
2706
|
+
commandPrefix,
|
|
2707
|
+
recommendedQuote.quote_command,
|
|
2708
|
+
)
|
|
2709
|
+
: recommendedQuote.quote_command,
|
|
2710
|
+
buy_command:
|
|
2711
|
+
typeof recommendedQuote.buy_command === "string"
|
|
2712
|
+
? renderCopyRunnablePaymentCommand(
|
|
2713
|
+
commandPrefix,
|
|
2714
|
+
recommendedQuote.buy_command,
|
|
2715
|
+
)
|
|
2716
|
+
: recommendedQuote.buy_command,
|
|
2717
|
+
status_command:
|
|
2718
|
+
typeof recommendedQuote.status_command === "string"
|
|
2719
|
+
? renderCopyRunnablePaymentCommand(
|
|
2720
|
+
commandPrefix,
|
|
2721
|
+
recommendedQuote.status_command,
|
|
2722
|
+
)
|
|
2723
|
+
: recommendedQuote.status_command,
|
|
2724
|
+
},
|
|
2725
|
+
},
|
|
2726
|
+
}),
|
|
2680
2727
|
methods: Array.isArray(catalog.methods)
|
|
2681
2728
|
? catalog.methods.map((method) => ({
|
|
2682
2729
|
...method,
|
package/cli.md
CHANGED
|
@@ -421,6 +421,29 @@ Minimum success data shape:
|
|
|
421
421
|
"quote_endpoint": "/v1/credit-quotes",
|
|
422
422
|
"packs_endpoint": "/v1/credit-packs",
|
|
423
423
|
"status_endpoint": "/v1/credit-purchases/status",
|
|
424
|
+
"next_actions": {
|
|
425
|
+
"recommended_quote": {
|
|
426
|
+
"purpose": "quote_credit_top_up",
|
|
427
|
+
"recommendation_reason": "browserless_agent_self_fund",
|
|
428
|
+
"method_id": "stripe_x402.exact.usdc",
|
|
429
|
+
"pack_id": "starter-500",
|
|
430
|
+
"command": "image-skill credits quote --pack starter-500 --payment-method stripe_x402.exact.usdc --json",
|
|
431
|
+
"quote_command_copy_runnable": true,
|
|
432
|
+
"buy_command": "image-skill credits buy --provider stripe_x402 --quote-id QUOTE_ID --idempotency-key KEY --json",
|
|
433
|
+
"status_command": "image-skill credits status --payment-attempt-id PAYMENT_ATTEMPT_ID --json",
|
|
434
|
+
"requires_auth": true,
|
|
435
|
+
"live_money": true,
|
|
436
|
+
"requires_browser": false,
|
|
437
|
+
"agent_settleable": true,
|
|
438
|
+
"command_effect": {
|
|
439
|
+
"label": "live_money_quote_no_charge",
|
|
440
|
+
"no_spend": true,
|
|
441
|
+
"payment_object": true,
|
|
442
|
+
"credit_debit": false,
|
|
443
|
+
"media_write": false
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
},
|
|
424
447
|
"methods": [
|
|
425
448
|
{
|
|
426
449
|
"method_id": "stripe_checkout",
|
|
@@ -460,7 +483,10 @@ Public payment discovery is intentionally action-first. Limited-rollout rails
|
|
|
460
483
|
may be returned with `available:false`, `quoteable:false`, `purchasable:false`,
|
|
461
484
|
and a non-null `unavailable_reason` so headless agents can understand the path
|
|
462
485
|
without trying it. Use a method only when it is returned with `available:true`,
|
|
463
|
-
`quoteable:true`, and `purchasable:true`.
|
|
486
|
+
`quoteable:true`, and `purchasable:true`. When
|
|
487
|
+
`next_actions.recommended_quote` is present, prefer its `command` as the next
|
|
488
|
+
authenticated quote step; it creates a live-money payment object but does not
|
|
489
|
+
move money, grant credits, debit credits, call a provider, or write media.
|
|
464
490
|
|
|
465
491
|
Hosted API equivalent:
|
|
466
492
|
|
package/llms.txt
CHANGED
|
@@ -116,7 +116,7 @@ Hosted API endpoints:
|
|
|
116
116
|
- POST https://api.image-skill.com/v1/agent-claims attaches an email-shaped durable contact inbox to the authenticated agent after an (often anonymous) signup. Request JSON is {"contact": INBOX}. Re-sending the same contact is idempotent (data.state unchanged); a different contact replaces the previous one (data.state attached). Attaching a contact is not inbox-ownership verification: data.claim_state stays unclaimed and data.claim_request_state reports requested. The response echoes only a redacted contact.
|
|
117
117
|
- GET https://api.image-skill.com/v1/whoami returns durable hosted identity for Authorization: Bearer TOKEN.
|
|
118
118
|
- GET https://api.image-skill.com/v1/quota returns durable hosted quota for Authorization: Bearer TOKEN.
|
|
119
|
-
- GET https://api.image-skill.com/v1/payment-methods returns the no-auth action-only payment rail catalog. It tells agents which currently usable rails are available, whether live money can move, buyer modes (agent_only, hybrid, human_only), browser requirements, agent_initiated, agent_settleable, settlement_blocker, limits, endpoint paths,
|
|
119
|
+
- GET https://api.image-skill.com/v1/payment-methods returns the no-auth action-only payment rail catalog. It tells agents which currently usable rails are available, whether live money can move, buyer modes (agent_only, hybrid, human_only), browser requirements, agent_initiated, agent_settleable, settlement_blocker, limits, endpoint paths, recovery commands, and data.next_actions.recommended_quote when a currently usable live rail can be quoted next. Planned, watch-only, fake, and private harness rails are intentionally omitted.
|
|
120
120
|
- GET https://api.image-skill.com/v1/credit-packs returns the public pack catalog. Recommended live-money packs include starter-500, builder-2000, and studio-5000. Packs are the default top-up UX; exact quotes remain supported for agents that already know the required credit budget.
|
|
121
121
|
- POST https://api.image-skill.com/v1/credit-quotes returns a credit quote for Authorization: Bearer TOKEN. Request JSON: either credits or pack_id, optional payment_method, idempotency_key. Use stripe_checkout for the human Checkout path. Use payment_method stripe_x402.exact.usdc only when credits methods returns it available/quoteable/purchasable/requires_browser:false; treat it as autonomous self-settlement only when agent_settleable:true is also returned. Response includes quote_id, credits, price_amount_cents, currency, accepted_payment_method, pack_id, pack, and live_money. One credit equals $0.01, so price_amount_cents equals credits. This does not grant credits.
|
|
122
122
|
- POST https://api.image-skill.com/v1/credit-purchases/stripe-x402-deposits creates a browserless action-required USDC deposit attempt for a stripe_x402.exact.usdc quote. Request JSON: quote_id, idempotency_key. Response includes state: action_required, payment_attempt_id, accepted_payment_method: stripe_x402.exact.usdc, live_money, amount_cents, stripe_x402 challenge metadata, stripe_x402.payable_instructions when Stripe returns a Base deposit address, and next.agent_action: pay_stripe_crypto_deposit. A wallet-equipped agent can pay the exact USDC token_amount_atomic to payable_instructions.deposit_address on Base. This does not grant credits; verified settlement/webhook fulfillment grants paid credits exactly once.
|
|
@@ -196,7 +196,7 @@ Unclaimed agents may not:
|
|
|
196
196
|
- send card data, wallet secrets, wallet private keys, seed phrases, raw x402 payment headers, provider receipts, Stripe secrets, MPP tokens, SPTs, bearer tokens, or any payment credential to Image Skill; Stripe payment details must be entered only on Stripe-hosted checkout pages
|
|
197
197
|
|
|
198
198
|
Credits:
|
|
199
|
-
One Image Skill credit is $0.01. Use image-skill credits methods --json to inspect payment rail availability, browser/human requirements, agent_initiated, agent_settleable, and settlement_blocker. Always pass the returned payment method when quoting. When stripe_x402.exact.usdc is returned with available:true, quoteable:true, purchasable:true, requires_browser:false, and agent_settleable:true, image-skill credits quote --pack PACK_ID --payment-method stripe_x402.exact.usdc --json followed by image-skill credits buy --provider stripe_x402 --quote-id QUOTE_ID --idempotency-key KEY --json creates a browserless live deposit attempt with stripe_x402.payable_instructions. Treat live_money:true as real spend, stay inside the delegated cap, and pay exactly token_amount_atomic USDC units to payable_instructions.deposit_address on Base only from a wallet substrate you control. Use image-skill credits quote --pack PACK_ID --payment-method stripe_checkout --json and image-skill credits buy --provider stripe --quote-id QUOTE_ID --idempotency-key KEY --json only for the Stripe Checkout human path; this returns checkout_handoff_url, copy-safe checkout_compact_url, and full Stripe checkout_url fallback and does not grant credits. Present checkout_handoff_url or checkout_compact_url to humans, especially in mobile terminals, SSH, or chat. If checkout_handoff_url is absent, present the full checkout_url in a code block and preserve the Stripe # fragment. Use image-skill credits status --payment-attempt-id PAYMENT_ATTEMPT_ID --json after buy and after settlement/checkout completion to read state, receipt, credit_event, limits, and retry guidance. Create/edit debit model-priced credits after provider success; inspect models show and operation cost.credit_pricing for credits_required and pricing_confidence. Do not silently downgrade to the cheapest model to avoid payment when the user asked for quality or is willing to pay; quote the needed credits and use an agent_settleable:true x402 rail or Stripe Checkout fallback. Credits buy requires explicit --idempotency-key. Quote idempotency keys are scoped to the hosted agent identity and exact quote terms; the public CLI generates one when omitted and returns it in the quote response, while explicit keys remain available for retry-stable automation. Inspect error.recovery.suggested_command on CREDIT_QUOTE_CONFLICT. Never send payment credentials to Image Skill: no wallet private keys, seed phrases, x402 payment headers, deposit client secrets, provider receipts, card data, or Stripe secrets. Public request fields are credits, pack_id, payment_method, quote_id, status reference IDs, and idempotency_key.
|
|
199
|
+
One Image Skill credit is $0.01. Use image-skill credits methods --json to inspect payment rail availability, browser/human requirements, agent_initiated, agent_settleable, and settlement_blocker. If data.next_actions.recommended_quote is present, prefer its command as the next authenticated quote step; it is a no-spend live-money quote object handoff and does not move money, grant credits, debit credits, call a provider, or write media. Always pass the returned payment method when quoting. When stripe_x402.exact.usdc is returned with available:true, quoteable:true, purchasable:true, requires_browser:false, and agent_settleable:true, image-skill credits quote --pack PACK_ID --payment-method stripe_x402.exact.usdc --json followed by image-skill credits buy --provider stripe_x402 --quote-id QUOTE_ID --idempotency-key KEY --json creates a browserless live deposit attempt with stripe_x402.payable_instructions. Treat live_money:true as real spend, stay inside the delegated cap, and pay exactly token_amount_atomic USDC units to payable_instructions.deposit_address on Base only from a wallet substrate you control. Use image-skill credits quote --pack PACK_ID --payment-method stripe_checkout --json and image-skill credits buy --provider stripe --quote-id QUOTE_ID --idempotency-key KEY --json only for the Stripe Checkout human path; this returns checkout_handoff_url, copy-safe checkout_compact_url, and full Stripe checkout_url fallback and does not grant credits. Present checkout_handoff_url or checkout_compact_url to humans, especially in mobile terminals, SSH, or chat. If checkout_handoff_url is absent, present the full checkout_url in a code block and preserve the Stripe # fragment. Use image-skill credits status --payment-attempt-id PAYMENT_ATTEMPT_ID --json after buy and after settlement/checkout completion to read state, receipt, credit_event, limits, and retry guidance. Create/edit debit model-priced credits after provider success; inspect models show and operation cost.credit_pricing for credits_required and pricing_confidence. Do not silently downgrade to the cheapest model to avoid payment when the user asked for quality or is willing to pay; quote the needed credits and use an agent_settleable:true x402 rail or Stripe Checkout fallback. Credits buy requires explicit --idempotency-key. Quote idempotency keys are scoped to the hosted agent identity and exact quote terms; the public CLI generates one when omitted and returns it in the quote response, while explicit keys remain available for retry-stable automation. Inspect error.recovery.suggested_command on CREDIT_QUOTE_CONFLICT. Never send payment credentials to Image Skill: no wallet private keys, seed phrases, x402 payment headers, deposit client secrets, provider receipts, card data, or Stripe secrets. Public request fields are credits, pack_id, payment_method, quote_id, status reference IDs, and idempotency_key.
|
|
200
200
|
|
|
201
201
|
Telemetry:
|
|
202
202
|
- command or endpoint name
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "image-skill",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.59",
|
|
4
4
|
"description": "Zero-setup durable creative-media CLI for agents (image + video + audio + 3D): guide-first creation, model and cost inspection, owned URLs, JSON recovery, payments, reusable assets, and feedback.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
package/skill.md
CHANGED
|
@@ -173,6 +173,12 @@ One Image Skill credit is `$0.01`. Operation debits are model-priced, not flat.
|
|
|
173
173
|
| Same rail with `agent_settleable:false` but `purchasable:true` | The rail is quoteable but settlement still needs a wallet substrate you do not have. Skip to Stripe Checkout. |
|
|
174
174
|
| Only `stripe_checkout` available | Quote with `--payment-method stripe_checkout`, then `credits buy --provider stripe` returns `checkout_handoff_url`. Hand that URL to a human sponsor. Do not strip the Stripe `#...` fragment if you fall back to the full `checkout_url`. |
|
|
175
175
|
|
|
176
|
+
If `credits methods --json` returns `data.next_actions.recommended_quote`, use
|
|
177
|
+
that action's `command` as the next authenticated quote step. It is the ranked
|
|
178
|
+
handoff to the best currently usable rail. The quote command creates a
|
|
179
|
+
live-money payment object but does not move money, grant credits, debit
|
|
180
|
+
credits, call a provider, or write media.
|
|
181
|
+
|
|
176
182
|
Credits are not granted until verified settlement or webhook fulfillment succeeds in either rail. Operator-provided promotion codes are entered on Stripe-hosted Checkout, not in the CLI. For exact bounded budgets, keep the same rail choice: use `credits quote --credits CREDITS --payment-method stripe_x402.exact.usdc` when the method is agent-settleable, and use `--payment-method stripe_checkout` only for a human Checkout fallback.
|
|
177
183
|
|
|
178
184
|
At any guide stage, read `data.checks.quota.top_up`: when `recommended` is
|
|
@@ -173,6 +173,12 @@ One Image Skill credit is `$0.01`. Operation debits are model-priced, not flat.
|
|
|
173
173
|
| Same rail with `agent_settleable:false` but `purchasable:true` | The rail is quoteable but settlement still needs a wallet substrate you do not have. Skip to Stripe Checkout. |
|
|
174
174
|
| Only `stripe_checkout` available | Quote with `--payment-method stripe_checkout`, then `credits buy --provider stripe` returns `checkout_handoff_url`. Hand that URL to a human sponsor. Do not strip the Stripe `#...` fragment if you fall back to the full `checkout_url`. |
|
|
175
175
|
|
|
176
|
+
If `credits methods --json` returns `data.next_actions.recommended_quote`, use
|
|
177
|
+
that action's `command` as the next authenticated quote step. It is the ranked
|
|
178
|
+
handoff to the best currently usable rail. The quote command creates a
|
|
179
|
+
live-money payment object but does not move money, grant credits, debit
|
|
180
|
+
credits, call a provider, or write media.
|
|
181
|
+
|
|
176
182
|
Credits are not granted until verified settlement or webhook fulfillment succeeds in either rail. Operator-provided promotion codes are entered on Stripe-hosted Checkout, not in the CLI. For exact bounded budgets, keep the same rail choice: use `credits quote --credits CREDITS --payment-method stripe_x402.exact.usdc` when the method is agent-settleable, and use `--payment-method stripe_checkout` only for a human Checkout fallback.
|
|
177
183
|
|
|
178
184
|
At any guide stage, read `data.checks.quota.top_up`: when `recommended` is
|
|
@@ -421,6 +421,29 @@ Minimum success data shape:
|
|
|
421
421
|
"quote_endpoint": "/v1/credit-quotes",
|
|
422
422
|
"packs_endpoint": "/v1/credit-packs",
|
|
423
423
|
"status_endpoint": "/v1/credit-purchases/status",
|
|
424
|
+
"next_actions": {
|
|
425
|
+
"recommended_quote": {
|
|
426
|
+
"purpose": "quote_credit_top_up",
|
|
427
|
+
"recommendation_reason": "browserless_agent_self_fund",
|
|
428
|
+
"method_id": "stripe_x402.exact.usdc",
|
|
429
|
+
"pack_id": "starter-500",
|
|
430
|
+
"command": "image-skill credits quote --pack starter-500 --payment-method stripe_x402.exact.usdc --json",
|
|
431
|
+
"quote_command_copy_runnable": true,
|
|
432
|
+
"buy_command": "image-skill credits buy --provider stripe_x402 --quote-id QUOTE_ID --idempotency-key KEY --json",
|
|
433
|
+
"status_command": "image-skill credits status --payment-attempt-id PAYMENT_ATTEMPT_ID --json",
|
|
434
|
+
"requires_auth": true,
|
|
435
|
+
"live_money": true,
|
|
436
|
+
"requires_browser": false,
|
|
437
|
+
"agent_settleable": true,
|
|
438
|
+
"command_effect": {
|
|
439
|
+
"label": "live_money_quote_no_charge",
|
|
440
|
+
"no_spend": true,
|
|
441
|
+
"payment_object": true,
|
|
442
|
+
"credit_debit": false,
|
|
443
|
+
"media_write": false
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
},
|
|
424
447
|
"methods": [
|
|
425
448
|
{
|
|
426
449
|
"method_id": "stripe_checkout",
|
|
@@ -460,7 +483,10 @@ Public payment discovery is intentionally action-first. Limited-rollout rails
|
|
|
460
483
|
may be returned with `available:false`, `quoteable:false`, `purchasable:false`,
|
|
461
484
|
and a non-null `unavailable_reason` so headless agents can understand the path
|
|
462
485
|
without trying it. Use a method only when it is returned with `available:true`,
|
|
463
|
-
`quoteable:true`, and `purchasable:true`.
|
|
486
|
+
`quoteable:true`, and `purchasable:true`. When
|
|
487
|
+
`next_actions.recommended_quote` is present, prefer its `command` as the next
|
|
488
|
+
authenticated quote step; it creates a live-money payment object but does not
|
|
489
|
+
move money, grant credits, debit credits, call a provider, or write media.
|
|
464
490
|
|
|
465
491
|
Hosted API equivalent:
|
|
466
492
|
|
|
@@ -116,7 +116,7 @@ Hosted API endpoints:
|
|
|
116
116
|
- POST https://api.image-skill.com/v1/agent-claims attaches an email-shaped durable contact inbox to the authenticated agent after an (often anonymous) signup. Request JSON is {"contact": INBOX}. Re-sending the same contact is idempotent (data.state unchanged); a different contact replaces the previous one (data.state attached). Attaching a contact is not inbox-ownership verification: data.claim_state stays unclaimed and data.claim_request_state reports requested. The response echoes only a redacted contact.
|
|
117
117
|
- GET https://api.image-skill.com/v1/whoami returns durable hosted identity for Authorization: Bearer TOKEN.
|
|
118
118
|
- GET https://api.image-skill.com/v1/quota returns durable hosted quota for Authorization: Bearer TOKEN.
|
|
119
|
-
- GET https://api.image-skill.com/v1/payment-methods returns the no-auth action-only payment rail catalog. It tells agents which currently usable rails are available, whether live money can move, buyer modes (agent_only, hybrid, human_only), browser requirements, agent_initiated, agent_settleable, settlement_blocker, limits, endpoint paths,
|
|
119
|
+
- GET https://api.image-skill.com/v1/payment-methods returns the no-auth action-only payment rail catalog. It tells agents which currently usable rails are available, whether live money can move, buyer modes (agent_only, hybrid, human_only), browser requirements, agent_initiated, agent_settleable, settlement_blocker, limits, endpoint paths, recovery commands, and data.next_actions.recommended_quote when a currently usable live rail can be quoted next. Planned, watch-only, fake, and private harness rails are intentionally omitted.
|
|
120
120
|
- GET https://api.image-skill.com/v1/credit-packs returns the public pack catalog. Recommended live-money packs include starter-500, builder-2000, and studio-5000. Packs are the default top-up UX; exact quotes remain supported for agents that already know the required credit budget.
|
|
121
121
|
- POST https://api.image-skill.com/v1/credit-quotes returns a credit quote for Authorization: Bearer TOKEN. Request JSON: either credits or pack_id, optional payment_method, idempotency_key. Use stripe_checkout for the human Checkout path. Use payment_method stripe_x402.exact.usdc only when credits methods returns it available/quoteable/purchasable/requires_browser:false; treat it as autonomous self-settlement only when agent_settleable:true is also returned. Response includes quote_id, credits, price_amount_cents, currency, accepted_payment_method, pack_id, pack, and live_money. One credit equals $0.01, so price_amount_cents equals credits. This does not grant credits.
|
|
122
122
|
- POST https://api.image-skill.com/v1/credit-purchases/stripe-x402-deposits creates a browserless action-required USDC deposit attempt for a stripe_x402.exact.usdc quote. Request JSON: quote_id, idempotency_key. Response includes state: action_required, payment_attempt_id, accepted_payment_method: stripe_x402.exact.usdc, live_money, amount_cents, stripe_x402 challenge metadata, stripe_x402.payable_instructions when Stripe returns a Base deposit address, and next.agent_action: pay_stripe_crypto_deposit. A wallet-equipped agent can pay the exact USDC token_amount_atomic to payable_instructions.deposit_address on Base. This does not grant credits; verified settlement/webhook fulfillment grants paid credits exactly once.
|
|
@@ -196,7 +196,7 @@ Unclaimed agents may not:
|
|
|
196
196
|
- send card data, wallet secrets, wallet private keys, seed phrases, raw x402 payment headers, provider receipts, Stripe secrets, MPP tokens, SPTs, bearer tokens, or any payment credential to Image Skill; Stripe payment details must be entered only on Stripe-hosted checkout pages
|
|
197
197
|
|
|
198
198
|
Credits:
|
|
199
|
-
One Image Skill credit is $0.01. Use image-skill credits methods --json to inspect payment rail availability, browser/human requirements, agent_initiated, agent_settleable, and settlement_blocker. Always pass the returned payment method when quoting. When stripe_x402.exact.usdc is returned with available:true, quoteable:true, purchasable:true, requires_browser:false, and agent_settleable:true, image-skill credits quote --pack PACK_ID --payment-method stripe_x402.exact.usdc --json followed by image-skill credits buy --provider stripe_x402 --quote-id QUOTE_ID --idempotency-key KEY --json creates a browserless live deposit attempt with stripe_x402.payable_instructions. Treat live_money:true as real spend, stay inside the delegated cap, and pay exactly token_amount_atomic USDC units to payable_instructions.deposit_address on Base only from a wallet substrate you control. Use image-skill credits quote --pack PACK_ID --payment-method stripe_checkout --json and image-skill credits buy --provider stripe --quote-id QUOTE_ID --idempotency-key KEY --json only for the Stripe Checkout human path; this returns checkout_handoff_url, copy-safe checkout_compact_url, and full Stripe checkout_url fallback and does not grant credits. Present checkout_handoff_url or checkout_compact_url to humans, especially in mobile terminals, SSH, or chat. If checkout_handoff_url is absent, present the full checkout_url in a code block and preserve the Stripe # fragment. Use image-skill credits status --payment-attempt-id PAYMENT_ATTEMPT_ID --json after buy and after settlement/checkout completion to read state, receipt, credit_event, limits, and retry guidance. Create/edit debit model-priced credits after provider success; inspect models show and operation cost.credit_pricing for credits_required and pricing_confidence. Do not silently downgrade to the cheapest model to avoid payment when the user asked for quality or is willing to pay; quote the needed credits and use an agent_settleable:true x402 rail or Stripe Checkout fallback. Credits buy requires explicit --idempotency-key. Quote idempotency keys are scoped to the hosted agent identity and exact quote terms; the public CLI generates one when omitted and returns it in the quote response, while explicit keys remain available for retry-stable automation. Inspect error.recovery.suggested_command on CREDIT_QUOTE_CONFLICT. Never send payment credentials to Image Skill: no wallet private keys, seed phrases, x402 payment headers, deposit client secrets, provider receipts, card data, or Stripe secrets. Public request fields are credits, pack_id, payment_method, quote_id, status reference IDs, and idempotency_key.
|
|
199
|
+
One Image Skill credit is $0.01. Use image-skill credits methods --json to inspect payment rail availability, browser/human requirements, agent_initiated, agent_settleable, and settlement_blocker. If data.next_actions.recommended_quote is present, prefer its command as the next authenticated quote step; it is a no-spend live-money quote object handoff and does not move money, grant credits, debit credits, call a provider, or write media. Always pass the returned payment method when quoting. When stripe_x402.exact.usdc is returned with available:true, quoteable:true, purchasable:true, requires_browser:false, and agent_settleable:true, image-skill credits quote --pack PACK_ID --payment-method stripe_x402.exact.usdc --json followed by image-skill credits buy --provider stripe_x402 --quote-id QUOTE_ID --idempotency-key KEY --json creates a browserless live deposit attempt with stripe_x402.payable_instructions. Treat live_money:true as real spend, stay inside the delegated cap, and pay exactly token_amount_atomic USDC units to payable_instructions.deposit_address on Base only from a wallet substrate you control. Use image-skill credits quote --pack PACK_ID --payment-method stripe_checkout --json and image-skill credits buy --provider stripe --quote-id QUOTE_ID --idempotency-key KEY --json only for the Stripe Checkout human path; this returns checkout_handoff_url, copy-safe checkout_compact_url, and full Stripe checkout_url fallback and does not grant credits. Present checkout_handoff_url or checkout_compact_url to humans, especially in mobile terminals, SSH, or chat. If checkout_handoff_url is absent, present the full checkout_url in a code block and preserve the Stripe # fragment. Use image-skill credits status --payment-attempt-id PAYMENT_ATTEMPT_ID --json after buy and after settlement/checkout completion to read state, receipt, credit_event, limits, and retry guidance. Create/edit debit model-priced credits after provider success; inspect models show and operation cost.credit_pricing for credits_required and pricing_confidence. Do not silently downgrade to the cheapest model to avoid payment when the user asked for quality or is willing to pay; quote the needed credits and use an agent_settleable:true x402 rail or Stripe Checkout fallback. Credits buy requires explicit --idempotency-key. Quote idempotency keys are scoped to the hosted agent identity and exact quote terms; the public CLI generates one when omitted and returns it in the quote response, while explicit keys remain available for retry-stable automation. Inspect error.recovery.suggested_command on CREDIT_QUOTE_CONFLICT. Never send payment credentials to Image Skill: no wallet private keys, seed phrases, x402 payment headers, deposit client secrets, provider receipts, card data, or Stripe secrets. Public request fields are credits, pack_id, payment_method, quote_id, status reference IDs, and idempotency_key.
|
|
200
200
|
|
|
201
201
|
Telemetry:
|
|
202
202
|
- command or endpoint name
|