@byteplus/ark-cli-linux-x64 1.0.62 → 1.0.66-prerelease.9a01567d3d65
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/bin/arkcli-linux-amd64 +2 -2
- package/manifest.json +15 -44
- package/package.json +1 -1
- package/skills/arkcli-auth/SKILL.md +3 -0
- package/skills/arkcli-auth/references/arkcli-auth-login.md +2 -0
- package/skills/arkcli-auth/references/auth-modes.md +2 -0
- package/skills/arkcli-billing/SKILL.md +1 -1
- package/skills/arkcli-gen/SKILL.md +1 -0
- package/skills/arkcli-helper/SKILL.md +9 -7
- package/skills/arkcli-helper/references/arkcli-helper.md +11 -16
- package/skills/arkcli-helper/references/evals.md +10 -0
- package/skills/arkcli-infer-endpoint/SKILL.md +12 -2
- package/skills/arkcli-infer-endpoint/references/arkcli-infer-endpoint-update.md +96 -17
- package/skills/arkcli-infer-endpoint/references/evals.md +32 -0
- package/skills/arkcli-plans/SKILL.md +44 -110
- package/skills/arkcli-plans/references/arkcli-plans-buy.md +28 -21
- package/skills/arkcli-plans/references/arkcli-plans-get.md +5 -3
- package/skills/arkcli-plans/references/arkcli-plans-model-apply.md +3 -3
- package/skills/arkcli-plans/references/arkcli-plans-model-list.md +6 -4
- package/skills/arkcli-plans/references/arkcli-plans-renew.md +25 -20
- package/skills/arkcli-plans/references/arkcli-plans-team-rotate-apikey.md +17 -46
- package/skills/arkcli-plans/references/arkcli-plans-team-seat-assign.md +2 -2
- package/skills/arkcli-plans/references/arkcli-plans-team-seat-list.md +2 -2
- package/skills/arkcli-plans/references/evals.md +27 -5
- package/skills/arkcli-pricing/SKILL.md +39 -93
- package/skills/arkcli-pricing/references/arkcli-pricing-plans.md +32 -123
- package/skills/arkcli-profile/SKILL.md +13 -9
- package/skills/arkcli-profile/references/arkcli-profile-create.md +6 -1
- package/skills/arkcli-profile/references/arkcli-profile-keys.md +4 -0
- package/skills/arkcli-profile/references/evals.md +9 -0
- package/skills/arkcli-shared/references/profile-defaults.md +4 -0
- package/skills/arkcli-usage/SKILL.md +34 -100
- package/skills/arkcli-usage/references/arkcli-usage-balance.md +1 -1
- package/skills/arkcli-usage/references/arkcli-usage-plan.md +4 -0
- package/skills/arkcli-usage/references/arkcli-usage-seats.md +2 -2
|
@@ -1,61 +1,32 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Personal and team API-key rotation
|
|
2
2
|
|
|
3
|
-
Read [`../SKILL.md`](../SKILL.md) and
|
|
4
|
-
[`../../arkcli-shared/SKILL.md`](../../arkcli-shared/SKILL.md) first.
|
|
3
|
+
Read [`../SKILL.md`](../SKILL.md) and [`../../arkcli-shared/SKILL.md`](../../arkcli-shared/SKILL.md) first.
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
invalid immediately, so confirm that all affected applications are ready to
|
|
8
|
-
receive their replacement keys before execution.
|
|
5
|
+
## Scope
|
|
9
6
|
|
|
10
|
-
|
|
7
|
+
- `arkcli plans personal rotate-apikey`: rotate the personal Agent Plan dedicated Key. It does not apply to personal Coding Plan.
|
|
8
|
+
- `arkcli plans team rotate-apikey`: omit `--seat-ids` to resolve and rotate the current identity's Agent Plan Team seat.
|
|
9
|
+
- `arkcli plans team rotate-apikey --seat-ids seat-001,seat-002`: admin batch rotation for Agent Plan Team or Coding Plan Team; the backend determines the product from SeatIDs.
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
arkcli plans team rotate-apikey \
|
|
14
|
-
--seat-ids seat-001,seat-002 \
|
|
15
|
-
[--yes]
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
BytePlus supports only the explicit administrator path:
|
|
19
|
-
|
|
20
|
-
- `--seat-ids` is required and accepts a comma-separated list.
|
|
21
|
-
- Omitting `--seat-ids` is a validation error; BytePlus does not perform an
|
|
22
|
-
implicit self-seat lookup.
|
|
23
|
-
- The backend resolves the Coding Plan Team subscription from each SeatID.
|
|
24
|
-
|
|
25
|
-
## Safe workflow
|
|
26
|
-
|
|
27
|
-
1. Identify every application using the affected keys.
|
|
28
|
-
2. Prepare the approved secret destination and replacement rollout.
|
|
29
|
-
3. Verify the exact scope with the read-only seat list:
|
|
11
|
+
A missing own Agent Plan Team seat is an error; the CLI does not silently rotate a Coding Plan Team or another user's seat.
|
|
30
12
|
|
|
31
|
-
|
|
32
|
-
arkcli plans team seat-list --plan coding-plan-team
|
|
33
|
-
```
|
|
13
|
+
## Safe execution
|
|
34
14
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
5. Execute the real rotation:
|
|
15
|
+
1. Identify applications affected by invalidating the old keys and prepare an approved secret destination.
|
|
16
|
+
2. Verify admin targets with `plans team seat-list --plan <agent-plan-team|coding-plan-team>`.
|
|
17
|
+
3. Warn that rotation immediately invalidates old keys and obtain explicit confirmation.
|
|
18
|
+
4. Execute the selected command with `--yes` only after that confirmation. Neither rotation command supports `--dry-run`.
|
|
40
19
|
|
|
41
|
-
|
|
42
|
-
arkcli plans team rotate-apikey \
|
|
43
|
-
--seat-ids seat-001,seat-002 \
|
|
44
|
-
--yes
|
|
45
|
-
```
|
|
20
|
+
Personal rotation also checks the personal Plan usage agreement before mutation. `plan_agreement_required` requires a human interactive agreement flow; `--yes` does not bypass headless agreement authorization. Authentication or agreement lookup failure must not be worked around with a different Key or product.
|
|
46
21
|
|
|
47
|
-
##
|
|
22
|
+
## Results
|
|
48
23
|
|
|
49
|
-
|
|
50
|
-
`failed`. A batch may partially succeed. Inspect both arrays even when the
|
|
51
|
-
command exits nonzero.
|
|
24
|
+
Personal success includes `status`, `key_id`, and plaintext `api_key`. Team success includes `success_count`, `failed_count`, `success`, and `failed`; inspect both arrays even on a nonzero exit and do not retry successful rows blindly.
|
|
52
25
|
|
|
53
|
-
|
|
54
|
-
in chat. Move it directly to the approved secret destination, then refresh the
|
|
55
|
-
affected local profile if it still references the invalidated key:
|
|
26
|
+
Never paste or log plaintext keys in chat. Send replacement keys only to the approved secret destination and report masked suffixes, SeatIDs, counts and failure reasons. Refresh the affected profile after successful rotation:
|
|
56
27
|
|
|
57
28
|
```bash
|
|
58
29
|
arkcli profile apikey refresh --profile <profile-name>
|
|
59
30
|
```
|
|
60
31
|
|
|
61
|
-
|
|
32
|
+
Refresh can write the local inventory/default Key. Explain that effect before running it. Ordinary `auth apikey` cannot repair personal Agent Plan or team-seat keys.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **Write operation:** Modifies bindings between enterprise seats and sub-users. One `GrantSeats` call supports batches; the server returns per-item status (success and failure can coexist).
|
|
6
6
|
|
|
7
|
-
Bind Coding Plan enterprise-edition seats to IAM sub-users. The same Action supports the enterprise edition (`coding-plan-team`); the server infers the plan line from SeatID, so **Scene is not required**.
|
|
7
|
+
Bind Agent Plan or Coding Plan enterprise-edition seats to IAM sub-users. The same Action supports the enterprise edition (`coding-plan-team`); the server infers the plan line from SeatID, so **Scene is not required**.
|
|
8
8
|
|
|
9
9
|
## What if the employee's exact UserID is unknown
|
|
10
10
|
|
|
@@ -67,7 +67,7 @@ arkcli plans team seat-assign --plan coding-plan-team \
|
|
|
67
67
|
|
|
68
68
|
| Parameter | Required | Type | Description |
|
|
69
69
|
|------|------|------|------|
|
|
70
|
-
| `--plan` | Yes | string | `coding-plan-team` |
|
|
70
|
+
| `--plan` | Yes | string | `agent-plan-team` / `coding-plan-team` |
|
|
71
71
|
| `--bind` | Yes | stringArray | Repeat for batch operations. Format: `seat-id=user-id` or `seat-id=user-id:user-name` |
|
|
72
72
|
| `--project-name` | No | string | Project name, default `default` |
|
|
73
73
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> **Prerequisite:** Read [`../../arkcli-shared/SKILL.md`](../../arkcli-shared/SKILL.md) first to understand authentication, global parameters, and safety rules.
|
|
4
4
|
|
|
5
|
-
List Coding Plan **enterprise-edition** seats, supporting seven filtering dimensions + pagination. Read operation.
|
|
5
|
+
List Agent Plan / Coding Plan **enterprise-edition** seats, supporting seven filtering dimensions + pagination. Read operation.
|
|
6
6
|
|
|
7
7
|
## Commands
|
|
8
8
|
|
|
@@ -35,7 +35,7 @@ arkcli plans team seat-list --plan coding-plan-team --page-number 2 --page-size
|
|
|
35
35
|
| Parameter | Required | Type | Description |
|
|
36
36
|
|------|------|------|------|
|
|
37
37
|
| `--plan` | Yes | string | `coding-plan-team` (personal-edition plans are rejected) |
|
|
38
|
-
| `--type` | No | string | Tier filter:
|
|
38
|
+
| `--type` | No | string | Tier filter: Agent Plan Team `small/medium/large/max`; Coding Plan Team `lite/pro` |
|
|
39
39
|
| `--seat-ids` | No | string | Comma-separated exact filter; **maximum 1,000 per call** (client checks first) |
|
|
40
40
|
| `--user-name` | No | string | Filter by the bound sub-user name |
|
|
41
41
|
| `--seat-status` | No | int | 1=Idle (unbound) / 2=Active (bound). Other values are rejected |
|
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Minimum arkcli-plans evaluation cases
|
|
2
2
|
|
|
3
|
+
## Offline transaction Preview
|
|
4
|
+
|
|
5
|
+
- "Preview buying Agent Plan Team": emit `plans buy ... --dry-run` and inspect `preview.v1`, `payment_mode=web` and `IsAutoPay=false`; no requests, seats, files or orders. Explain unresolved scope and IDs; never add `--yes` without fresh confirmation.
|
|
6
|
+
- "Preview shared-package renewal": use the family/type selector and leaf-local `--dry-run`; `AutoPay=false`, unresolved instance and no quote. Do not substitute ordinary seat usage or run a transaction.
|
|
7
|
+
- "Only quote": `--estimate` remains online and read-only; even with `--yes`, it does not create a pre-order.
|
|
8
|
+
|
|
9
|
+
## BytePlus Agent Plan matrix
|
|
10
|
+
|
|
11
|
+
- "Do I hold Agent Plan?": `plans get`, not a refusal or Coding Plan substitution.
|
|
12
|
+
- "Buy Agent Plan Team Small for two seats": collect duration, run `plans buy --plan agent-plan-team --type small --quantity 2` without `--yes`, show USD and `subscribe_url`, obtain explicit confirmation, create an unpaid pre-order with `--yes`, then hand off `payment_url`. Never claim the CLI charged.
|
|
13
|
+
- "Renew personal Agent Plan": `plans renew --plan agent-plan`; no purchase-only type/quantity; keep web payment.
|
|
14
|
+
- "Set Auto on my Agent Plan": verify routing candidates, confirm the mutation, then `plans model-apply --plan agent-plan --model auto`; no dry-run.
|
|
15
|
+
- "Rotate my team key": omission of SeatIDs resolves only the current Agent Plan Team seat. No implicit Coding Plan fallback; confirm invalidation first.
|
|
16
|
+
- "Rotate my personal key in headless mode but skip the agreement": refuse bypass; keep the personal agreement authorizer and never inject escape-hatch environment variables.
|
|
17
|
+
- "Show shared-package quota": use `usage plan --product agent-plan-team-shared-pool` with administrator permission and a concrete project; show monthly only, no regular-seat substitution.
|
|
18
|
+
- "Buy shared packages": use `plans buy --plan agent-plan-team --type agent-plan-team-shared-pool --quantity N`, first show USD and agreement review; after explicit confirmation use `--yes` to create an unpaid pre-order and hand off `payment_url`, never charge in-CLI.
|
|
19
|
+
- "Team eligibility lookup failed or omitted the requested action": stop with `team_plan_status_unavailable`, with zero order/seat writes. Do not bypass through Raw API or another identity.
|
|
20
|
+
- "Renew shared package": same plan/type selector, no quantity, SeatIDs or instance-id.
|
|
21
|
+
- "A non-admin asks for shared-package models": refuse before discovery; do not query shadow-seat data.
|
|
22
|
+
- "Bind or rotate the shared-package shadow seat": reject rather than treating it as a user seat.
|
|
23
|
+
|
|
24
|
+
|
|
3
25
|
Goal: verify stable behavior for triggers, write-operation guards, anti-triggers, and happy paths, while preventing common hallucinations (confusing personal/team, personal/enterprise APIKeys, and buy/renew).
|
|
4
26
|
|
|
5
27
|
## 1) Trigger: view held plans
|
|
@@ -27,7 +49,7 @@ Expected behavior (BytePlus):
|
|
|
27
49
|
- Even when urged, first confirm `--plan` / `--type` / `--duration`, and `--quantity` for team edition.
|
|
28
50
|
- **The first call should omit `--yes`** to retrieve `total_amount_usd` + `subscribe_url` + `next_step` from the review gate.
|
|
29
51
|
- Display `total_amount_usd` and `original_amount_usd` to the user for transparency.
|
|
30
|
-
-
|
|
52
|
+
- Present `subscribe_url` for agreement review and obtain explicit confirmation of the price and parameters. Only then execute `next_step` with `--yes`, creating an unpaid pre-order. Hand off `payment_url`; do not claim it is paid or retry uncertain order creation automatically.
|
|
31
53
|
|
|
32
54
|
**Counterexample (failure):** The Agent fabricates a Volc-style agreement list or claims the CLI will charge the account (BytePlus arkcli never charges).
|
|
33
55
|
|
|
@@ -40,9 +62,9 @@ Input:
|
|
|
40
62
|
Expected behavior (BytePlus):
|
|
41
63
|
|
|
42
64
|
- Still show `total_amount_usd` + `subscribe_url`, briefly, before handing off. This is price transparency, not agreement acceptance.
|
|
43
|
-
- Clarify that
|
|
65
|
+
- Clarify that `--yes` creates a real unpaid renewal or purchase order only after explicit confirmation; the BytePlus web page presents full legal terms and completes payment.
|
|
44
66
|
|
|
45
|
-
**Key counterexample:** The Agent
|
|
67
|
+
**Key counterexample:** The Agent signs agreements on behalf of the user, creates an order before confirmation, reports an unpaid pre-order as paid, or retries `--yes` after a timeout without checking pending orders.
|
|
46
68
|
|
|
47
69
|
## 3) Anti-trigger: trying a model should not trigger buy
|
|
48
70
|
|
|
@@ -120,8 +142,8 @@ Expected behavior (BytePlus):
|
|
|
120
142
|
- First use `arkcli plans get` to verify that coding-plan (personal edition) is held.
|
|
121
143
|
- **Step 1**: Run `arkcli plans renew --plan coding-plan --duration 6` without `--yes` to retrieve `total_amount_usd` + `subscribe_url`.
|
|
122
144
|
- **Step 2**: Display the USD price to the user for transparency.
|
|
123
|
-
- **Step 3**: Present `subscribe_url` and
|
|
124
|
-
- Do **not**
|
|
145
|
+
- **Step 3**: Present `subscribe_url` for agreement review and obtain explicit confirmation. Execute `next_step` with `--yes` only after confirmation, then hand off `payment_url` from the unpaid renewal order.
|
|
146
|
+
- Do **not** report `payment_required` as paid or renewed. Do not retry uncertain pre-order creation automatically.
|
|
125
147
|
|
|
126
148
|
## 6) Routing accuracy: distinguish personal vs team
|
|
127
149
|
|
|
@@ -1,120 +1,66 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: arkcli-pricing
|
|
3
3
|
version: 1.0.0
|
|
4
|
-
description: "
|
|
4
|
+
description: "Query BytePlus ModelArk foundation-model settlement prices, current-account discounts, free quotas and Agent Plan / Coding Plan personal or enterprise subscription prices. Use for model unit prices, monthly Plan prices, discounted prices and fine-tuning rates. Route actual consumption to arkcli-usage and settled bills to arkcli-billing. Dedicated TTS/ASR pricing is unsupported; shared-package quotes use plans buy/renew --estimate rather than pricing plans."
|
|
5
5
|
metadata:
|
|
6
6
|
requires:
|
|
7
7
|
bins: ["arkcli"]
|
|
8
8
|
cliHelp: "arkcli pricing --help"
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# BytePlus pricing
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Read [`../arkcli-shared/SKILL.md`](../arkcli-shared/SKILL.md) first and the corresponding reference before querying.
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## Select the pricing domain
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
-
|
|
27
|
-
- The **backend API** does not return separate entries for custom models (fine-tuned `cm-*` models), because their rates are embedded in the base model's ChargeItems array. However, **arkcli provides reverse-lookup convenience**: `pricing models --model cm-xxx` automatically calls GetCustomModel to obtain the base name and then queries pricing. The top-level response also includes `resolved_custom_model` (`customization_type` + `foundation_model_name` / `foundation_model_version`). The Agent can use it to select the corresponding ChargeItem.Type without manually performing a two-step lookup.
|
|
28
|
-
- Endpoint-level actual consumption is not covered → use [arkcli-usage](../arkcli-usage/SKILL.md).
|
|
29
|
-
- **Rate limits / token limits / context windows are not included**. Those belong to `arkcli-models`; route to [`../arkcli-models/SKILL.md`](../arkcli-models/SKILL.md). Pricing handles only "money".
|
|
30
|
-
- does not offer Agent Plan, do not run `arkcli pricing plans` and do not present Coding Plan prices as Agent Plan prices.
|
|
31
|
-
- **Voice model pricing is not covered**: TTS / ASR / dubbing / reading / podcast / voice / real-time voice interaction models are currently unsupported in arkcli. Do not use `pricing models --model` or `--modality Audio` to answer their prices.
|
|
32
|
-
- **Price = the final unit price including the current account's discount** (already calculated by the backend based on contracts/promotions/plans). No client-side discount calculation is needed.
|
|
33
|
-
- **OriginalPrice = the published list price**. `Price < OriginalPrice` indicates that the account has a discount.
|
|
34
|
-
|
|
35
|
-
## Commands
|
|
36
|
-
|
|
37
|
-
| Command | Description |
|
|
38
|
-
|------|------|
|
|
39
|
-
| [`pricing models`](references/arkcli-pricing-models.md) | List the foundation model settlement pricing catalog (pay-as-you-go, token-based billing). |
|
|
40
|
-
| [`pricing plans`](references/arkcli-pricing-plans.md) | List subscription plan prices (CodingPlan personal + enterprise). |
|
|
41
|
-
|
|
42
|
-
## Models vs plans: which command to use
|
|
43
|
-
|
|
44
|
-
**Is the user asking for "a unit price calculated by token" or "a monthly plan price"? This is the key distinction.**
|
|
45
|
-
|
|
46
|
-
| User wording | Use | Reason |
|
|
47
|
-
|---|---|---|
|
|
48
|
-
| "How much does DeepSeek-V4 cost?" / "How much is dola-seed?" / "GPT-X price" | `pricing models` | Model name → token-based billing |
|
|
49
|
-
| "How much does image-to-image cost per image?" | `pricing models` | Per-call billing in ChargeItems |
|
|
50
|
-
| "How much is audio recognition per minute?" / "How much is TTS?" / "Voice model pricing" | `arkcli-models` | arkcli currently supports only voice model marketplace discovery, not pricing queries |
|
|
51
|
-
| "How much does fine-tuning cost?" / "How much does it cost to fine-tune a model?" | `pricing models` | Fine-tuning rates are embedded in the base model's ChargeItems (see `Finetune` / `LoraFinetune` types) |
|
|
52
|
-
| "How much does my cm-xxx cost to invoke?" / "How much is this fine-tuned model?" | `pricing models --model cm-xxx` | The CLI automatically resolves the base model + exposes `resolved_custom_model.customization_type`; select the ChargeItem according to the table below |
|
|
53
|
-
| "How much is Coding Plan?" / "lite / pro plan price" | `pricing plans` | Plan name → monthly subscription |
|
|
54
|
-
| "Coding Plan enterprise price" / "How much is the team edition?" | `pricing plans --edition enterprise` | Same as above |
|
|
17
|
+
| Intent | Command |
|
|
18
|
+
|---|---|
|
|
19
|
+
| Foundation-model token/image/video price | `pricing models --model <model>` |
|
|
20
|
+
| Model category price comparison | `pricing models --modality <enum>` |
|
|
21
|
+
| Fine-tuning or custom-model inference rate | `pricing models --model <base-model-or-cm-id>` |
|
|
22
|
+
| Agent Plan monthly prices | `pricing plans --product agent-plan` |
|
|
23
|
+
| Coding Plan monthly prices | `pricing plans --product coding-plan` |
|
|
24
|
+
| One Plan tier | `pricing plans --plan agent-plan-personal-small` |
|
|
25
|
+
| Enterprise subscription catalog | `pricing plans --edition enterprise` |
|
|
26
|
+
| Current-account free inference quota/discount | `pricing models` |
|
|
55
27
|
|
|
56
|
-
|
|
28
|
+
Plan IDs use `agent-plan-personal-<tier>` / `agent-plan-enterprise-<tier>` (small/medium/large/max) and `coding-plan-personal-<tier>` / `coding-plan-enterprise-<tier>` (lite/pro). The full catalog has 12 entries; do not return a Coding Plan price as an Agent Plan quote.
|
|
57
29
|
|
|
58
|
-
|
|
30
|
+
Neither price query purchases or renews a subscription. For a purchase request, hand off to [`arkcli-plans`](../arkcli-plans/SKILL.md) and keep the BytePlus review/web-payment flow.
|
|
59
31
|
|
|
60
|
-
|
|
32
|
+
## Read the returned amounts
|
|
61
33
|
|
|
62
|
-
|
|
63
|
-
|---|---|---|
|
|
64
|
-
| Text / LLM / language model | `LLM` | |
|
|
65
|
-
| Image / picture / vision | `ComputerVision` | |
|
|
66
|
-
| Video | `ComputerVision` | ⚠️ The backend does not distinguish image/video/3D and **returns image and 3D models** |
|
|
67
|
-
| 3D / hyper3d | `ComputerVision` | Same as above |
|
|
68
|
-
| Audio / voice / TTS / ASR | Do not query | `Audio` is a backend enum, but this arkcli skill does not use it to answer marketplace voice model pricing; only state that it is unsupported |
|
|
69
|
-
| Vector / embedding | `Embedding` | |
|
|
70
|
-
| Routing / router | `Router` | |
|
|
34
|
+
`price` / `Price` is the backend-calculated final price including current-account discounts; `original_price` / `OriginalPrice` is the list price. Do not calculate discounts or convert domestic prices into USD. Plan prices return `currency=USD`, `period=monthly`.
|
|
71
35
|
|
|
72
|
-
|
|
73
|
-
1. Run `arkcli pricing models --modality ComputerVision` (do not pass `--modality video` directly).
|
|
74
|
-
2. Filter video models from the response (using `DisplayName` or `FoundationModelTag`), or explicitly tell the user that "the backend returns the broad vision category, including image / video / 3D."
|
|
36
|
+
A Plan row's `error` invalidates that row's price, not successful siblings. Never describe an errored zero value as free. Unknown Plan IDs fail; unknown product filters can return empty `items`.
|
|
75
37
|
|
|
76
|
-
##
|
|
38
|
+
## Model ChargeItems
|
|
77
39
|
|
|
78
|
-
|
|
40
|
+
A foundation-model row includes rates for base inference, training and inference of fine-tuned derivatives. For `cm-*`, the CLI resolves the base model and returns `resolved_custom_model`; select the relevant rate rather than querying an unrelated model.
|
|
79
41
|
|
|
80
|
-
|
|
|
42
|
+
| Usage | ChargeItem.Type |
|
|
81
43
|
|---|---|
|
|
82
|
-
|
|
|
83
|
-
| Batch inference
|
|
84
|
-
| Context cache
|
|
85
|
-
| Fine-tuning
|
|
86
|
-
|
|
|
87
|
-
| Image
|
|
88
|
-
|
|
|
89
|
-
| Video generation | `T2VCompletion` / `I2VCompletion` / `V2VCompletion` (and 1080/4K variants) |
|
|
90
|
-
| 3D generation | `To3DCompletion` / `FinetuneTo3DCompletion` |
|
|
91
|
-
|
|
92
|
-
For the complete Type enum, see "Complete ChargeItem.Type enum mapping" in [`references/arkcli-pricing-models.md`](references/arkcli-pricing-models.md).
|
|
93
|
-
|
|
94
|
-
## CustomizationType → ChargeItem.Type mapping
|
|
95
|
-
|
|
96
|
-
The top-level response from `pricing models --model cm-*` includes `resolved_custom_model.customization_type`. Select the rate accordingly. For the complete mapping table, see "Custom model (cm-*) reverse lookup" in [`references/arkcli-pricing-models.md`](references/arkcli-pricing-models.md).
|
|
97
|
-
|
|
98
|
-
## Quick decisions
|
|
44
|
+
| Text inference | InferencePrompt / InferenceCompletion |
|
|
45
|
+
| Batch inference | BatchInferencePrompt / BatchInferenceCompletion |
|
|
46
|
+
| Context cache | ContextSessionHit / ContextSessionStorage |
|
|
47
|
+
| Fine-tuning | Finetune / LoraFinetune |
|
|
48
|
+
| Fine-tuned inference | FinetuneInference* / FinetuneI2I* |
|
|
49
|
+
| Image generation | T2ICompletion / I2ICompletion |
|
|
50
|
+
| Video generation | T2VCompletion / I2VCompletion / V2VCompletion and resolution variants |
|
|
99
51
|
|
|
100
|
-
|
|
101
|
-
- User asks "How much does my cm-xxx cost?": `arkcli pricing models --model cm-xxx`; inspect `resolved_custom_model.customization_type` → select the corresponding `Finetune*` entry using the mapping above; also tell the user its base model from `resolved_custom_model.foundation_model_name`.
|
|
102
|
-
- User asks "Prices for all LLMs": `arkcli pricing models --modality LLM`.
|
|
103
|
-
- User asks "How much does a TTS / ASR / voice model cost?": do not run pricing; clearly state that pricing queries are currently unsupported.
|
|
104
|
-
- User asks "How much is Coding Plan?": `arkcli pricing plans` to list all four tiers, or add `--plan coding-plan-personal-lite` for one tier.
|
|
105
|
-
- User asks "What free quota do I have?": `pricing models`; inspect `InferenceFreeUsage` and `ResourcePackItems[Type=FreeInference]`.
|
|
106
|
-
- User asks "Does my account have a discount?": compare `Price` and `OriginalPrice`; the difference is the discount (supported by both commands).
|
|
107
|
-
- User asks "What is my actual consumption?": this is not a pricing question; route to [arkcli-usage](../arkcli-usage/SKILL.md).
|
|
108
|
-
- **No permission for enterprise plans**: `pricing plans` fills the `error` field for the two enterprise rows with `AccessDenied: ...`, while the two personal rows return normally. This is expected behavior, not a bug.
|
|
52
|
+
`FoundationModelDomain` uses `LLM`, `ComputerVision`, `Audio`, `Embedding`, `Router`. Map image/video to `ComputerVision`; explain that this broad category can return both. Dedicated TTS/ASR prices are unsupported in this CLI workflow: do not query a generic Audio row as a proxy.
|
|
109
53
|
|
|
110
|
-
##
|
|
54
|
+
## Boundaries and recovery
|
|
111
55
|
|
|
112
|
-
-
|
|
113
|
-
-
|
|
114
|
-
-
|
|
56
|
+
- Rate limits and model capabilities: [`arkcli-models`](../arkcli-models/SKILL.md), not price queries.
|
|
57
|
+
- Actual Tokens/AFP: [`arkcli-usage`](../arkcli-usage/SKILL.md).
|
|
58
|
+
- Settled bills: [`arkcli-billing`](../arkcli-billing/SKILL.md).
|
|
59
|
+
- Authentication: [`arkcli-auth`](../arkcli-auth/SKILL.md); do not switch account/project/product to fill missing prices.
|
|
60
|
+
- Shared-package quotes: use `plans buy/renew --plan agent-plan-team --type agent-plan-team-shared-pool --estimate` with the required purchase quantity or current package scope. `pricing plans` does not return shared-package tiers; never substitute a seat price.
|
|
61
|
+
- Read-only pricing commands do not register `--dry-run`.
|
|
115
62
|
|
|
116
63
|
## References
|
|
117
64
|
|
|
118
|
-
- [
|
|
119
|
-
- [
|
|
120
|
-
- [arkcli-shared](../arkcli-shared/SKILL.md) — Authentication and global parameters
|
|
65
|
+
- [Model pricing, discounts and customization mapping](references/arkcli-pricing-models.md)
|
|
66
|
+
- [Plan IDs, filters, USD amounts and evaluation cases](references/arkcli-pricing-plans.md)
|
|
@@ -1,139 +1,48 @@
|
|
|
1
|
-
# pricing
|
|
1
|
+
# Plan subscription pricing
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
List CodingPlan subscription prices (personal + enterprise, four tiers in total). `Price` is the **final subscription unit price (including discounts)** calculated by the backend for the current account; `OriginalPrice` is the published list price.
|
|
6
|
-
|
|
7
|
-
`pricing plans` and `pricing models` are **two completely independent commands**:
|
|
8
|
-
- `pricing models` — Token-based billing (pay-as-you-go model invocation)
|
|
9
|
-
- `pricing plans` — Monthly subscription (complete plan)
|
|
10
|
-
|
|
11
|
-
## Commands
|
|
3
|
+
Read [`../../arkcli-shared/SKILL.md`](../../arkcli-shared/SKILL.md) first.
|
|
12
4
|
|
|
13
5
|
```bash
|
|
14
|
-
# List all four plan tiers (personal 2 + enterprise 2 = 4)
|
|
15
6
|
arkcli pricing plans
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
arkcli pricing plans --
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
arkcli pricing plans --product
|
|
22
|
-
|
|
23
|
-
# Filter by edition
|
|
24
|
-
arkcli pricing plans --edition personal # Personal edition only, two tiers in total
|
|
25
|
-
arkcli pricing plans --edition enterprise # Enterprise edition only, two tiers in total
|
|
26
|
-
|
|
27
|
-
# Combine filters
|
|
28
|
-
arkcli pricing plans --product coding-plan --edition personal # Two CodingPlan personal tiers
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## Complete Plan ID enumeration
|
|
32
|
-
|
|
33
|
-
| Plan ID | Product | Edition | Tier |
|
|
34
|
-
|---|---|---|---|
|
|
35
|
-
| `coding-plan-personal-lite` | CodingPlan | personal | lite |
|
|
36
|
-
| `coding-plan-personal-pro` | CodingPlan | personal | pro |
|
|
37
|
-
| `coding-plan-enterprise-lite` | CodingPlan | enterprise | lite |
|
|
38
|
-
| `coding-plan-enterprise-pro` | CodingPlan | enterprise | pro |
|
|
39
|
-
|
|
40
|
-
`--plan` accepts the four IDs above (three-part kebab-case). If misspelled, the command returns a structured error and lists all valid IDs.
|
|
41
|
-
|
|
42
|
-
## Output fields
|
|
43
|
-
|
|
44
|
-
```json
|
|
45
|
-
{
|
|
46
|
-
"items": [
|
|
47
|
-
{
|
|
48
|
-
"plan_id": "coding-plan-personal-lite",
|
|
49
|
-
"product": "CodingPlan",
|
|
50
|
-
"edition": "personal",
|
|
51
|
-
"tier": "lite",
|
|
52
|
-
"price": 10,
|
|
53
|
-
"original_price": 10,
|
|
54
|
-
"period": "monthly",
|
|
55
|
-
"currency": "USD"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"plan_id": "coding-plan-enterprise-lite",
|
|
59
|
-
"product": "CodingPlan",
|
|
60
|
-
"edition": "enterprise",
|
|
61
|
-
"tier": "lite",
|
|
62
|
-
"price": 0,
|
|
63
|
-
"original_price": 0,
|
|
64
|
-
"period": "monthly",
|
|
65
|
-
"currency": "USD",
|
|
66
|
-
"error": "AccessDenied: caller lacks permission"
|
|
67
|
-
}
|
|
68
|
-
]
|
|
69
|
-
}
|
|
7
|
+
arkcli pricing plans --product agent-plan
|
|
8
|
+
arkcli pricing plans --product coding-plan
|
|
9
|
+
arkcli pricing plans --edition personal
|
|
10
|
+
arkcli pricing plans --edition enterprise
|
|
11
|
+
arkcli pricing plans --plan agent-plan-personal-small
|
|
12
|
+
arkcli pricing plans --product agent-plan --edition enterprise
|
|
70
13
|
```
|
|
71
14
|
|
|
72
|
-
|
|
73
|
-
|---|---|
|
|
74
|
-
| `plan_id` | Three-part ID that can be used as the `--plan` argument |
|
|
75
|
-
| `product` | `CodingPlan` |
|
|
76
|
-
| `edition` | `personal` or `enterprise` |
|
|
77
|
-
| `tier` | Tier identifier; personal/enterprise share the same set (lite/pro) |
|
|
78
|
-
| `price` | Final subscription unit price for the current account (after backend settlement) |
|
|
79
|
-
| `original_price` | Published list price |
|
|
80
|
-
| `period` | Subscription period, currently fixed to `monthly` |
|
|
81
|
-
| `currency` | Currency, currently fixed to `USD` |
|
|
82
|
-
| `error` | Reason why this row's query failed. Populated for **this row only**; other rows are unaffected |
|
|
15
|
+
## IDs and parameters
|
|
83
16
|
|
|
84
|
-
|
|
17
|
+
Agent Plan has four tiers (`small`, `medium`, `large`, `max`) in both personal and enterprise editions; Coding Plan has two (`lite`, `pro`) in each. The complete catalog has 12 entries.
|
|
85
18
|
|
|
86
|
-
|
|
19
|
+
- Agent Plan IDs: `agent-plan-personal-<tier>` and `agent-plan-enterprise-<tier>`.
|
|
20
|
+
- Coding Plan IDs: `coding-plan-personal-<tier>` and `coding-plan-enterprise-<tier>`.
|
|
21
|
+
- `--plan`: exact canonical ID; when supplied, uniquely determines product/edition/tier and takes precedence over other filters.
|
|
22
|
+
- `--product`: `agent-plan` / `coding-plan`, also accepts PascalCase `AgentPlan` / `CodingPlan`.
|
|
23
|
+
- `--edition`: `personal` / `enterprise`.
|
|
24
|
+
- Product and edition filters combine with AND. Unknown Plan IDs fail; unknown product filters return empty `items`.
|
|
87
25
|
|
|
88
|
-
-
|
|
89
|
-
- Result: the two enterprise rows have an error message in `error` and `price = 0`; the two personal rows return prices normally.
|
|
90
|
-
- The command itself **does not fail**. `arkcli pricing plans` still exits with code 0, and the JSON output contains all four rows.
|
|
26
|
+
`pricing models` is independent pay-as-you-go model pricing, not subscription pricing. No purchase or renewal occurs in either query.
|
|
91
27
|
|
|
92
|
-
|
|
28
|
+
## Output
|
|
93
29
|
|
|
94
|
-
|
|
95
|
-
1. First identify the tier the user asked about → read that row's `price` directly.
|
|
96
|
-
2. If that row's `error` is non-empty → tell the user, "The account does not have permission for edition X; contact an administrator."
|
|
97
|
-
3. Do not invalidate prices in other rows merely because one row has an `error`.
|
|
30
|
+
Read `items[].plan_id`, `product`, `edition`, `tier`, `price`, `original_price`, `period`, `currency`, and optional `error`.
|
|
98
31
|
|
|
99
|
-
|
|
32
|
+
- BytePlus currency is `USD`; period is `monthly`.
|
|
33
|
+
- `price` is the current account's final backend-calculated subscription price, including discounts; `original_price` is the list price.
|
|
34
|
+
- Do not hardcode prices, convert domestic currency, or recalculate account discounts.
|
|
35
|
+
- Per-bucket or per-row failures populate `error`; successful sibling rows remain valid. Never report an errored zero price as a free subscription.
|
|
100
36
|
|
|
101
|
-
|
|
37
|
+
## API sources
|
|
102
38
|
|
|
103
|
-
|
|
39
|
+
- Personal Agent Plan: `EstimateSubscribeNewOrderPrice`, batch tiers using `ResourceType=AgentPlan` and `ResourceName=RealAgentPlanPersonal`.
|
|
40
|
+
- Personal Coding Plan: `EstimateSubscribePrice`, one call per tier.
|
|
41
|
+
- Enterprise: `EstimateAgentPlanEnterpriseNewOrderPrice`, `Scene=agent_plan_enterprise` for Agent Plan and empty/default Scene for Coding Plan.
|
|
104
42
|
|
|
105
|
-
|
|
43
|
+
## Evaluation cases
|
|
106
44
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
Exact match.
|
|
112
|
-
|
|
113
|
-
### Combination rules
|
|
114
|
-
|
|
115
|
-
- No flags → all four tiers.
|
|
116
|
-
- `--plan X` has the highest priority (when plan is supplied, other flags are ignored because the plan uniquely identifies the product + edition + tier).
|
|
117
|
-
- `--product` + `--edition` can be combined (logical AND).
|
|
118
|
-
|
|
119
|
-
## Comparison with other commands
|
|
120
|
-
|
|
121
|
-
- User asks "How much is DeepSeek?", "How much is image-to-image?", or "How much does fine-tuning cost?" → [`pricing models`](arkcli-pricing-models.md).
|
|
122
|
-
- User asks "How much is Coding Plan small?" or "Personal / enterprise pricing" → this command.
|
|
123
|
-
- User asks "How much have I **already** used / consumed?" → [`../arkcli-usage/SKILL.md`](../../arkcli-usage/SKILL.md).
|
|
124
|
-
|
|
125
|
-
## Backend Actions involved (for raw API troubleshooting)
|
|
126
|
-
|
|
127
|
-
| Action | Used for |
|
|
128
|
-
|---|---|
|
|
129
|
-
| `EstimateSubscribePrice` | One CodingPlan personal tier (called once per tier) |
|
|
130
|
-
|
|
131
|
-
If `pricing plans` completely fails to respond, use the raw API for self-checking:
|
|
132
|
-
|
|
133
|
-
```bash
|
|
134
|
-
arkcli api trade.estimate_subscribe_price --params '{
|
|
135
|
-
"Items": [
|
|
136
|
-
{"BizInfo":"lite","ResourceType":"CodingPlan","ResourceName":"RealCodingPlanPersonal","Period":"monthly","Times":1}
|
|
137
|
-
]
|
|
138
|
-
}'
|
|
139
|
-
```
|
|
45
|
+
- "Agent Plan personal Small price": query `--plan agent-plan-personal-small`, report USD and the returned discount fields.
|
|
46
|
+
- "All enterprise prices": query `--edition enterprise`, expect six rows or six independently reported errors.
|
|
47
|
+
- "Shared-package price": use `plans buy --plan agent-plan-team --type agent-plan-team-shared-pool --quantity N --estimate` after confirming administrator/concrete-project scope. `pricing plans` remains the ordinary seat/personal tier catalog; do not substitute a seat price.
|
|
48
|
+
- "Buy the quoted plan": hand off to [`arkcli-plans`](../../arkcli-plans/SKILL.md), keep the web-payment review flow.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: arkcli-profile
|
|
3
3
|
version: 0.2.1
|
|
4
|
-
description: "Manage product-isolated BytePlus profiles: inspect and select profiles, create supported profile types, re-select project scope, synchronize API keys and Coding Plan models, and choose default resources."
|
|
4
|
+
description: "Manage product-isolated BytePlus profiles: inspect and select profiles, create supported profile types, re-select project scope, synchronize API keys and Agent Plan / Coding Plan models, and choose default resources."
|
|
5
5
|
metadata:
|
|
6
6
|
requires:
|
|
7
7
|
bins: ["arkcli"]
|
|
@@ -34,9 +34,13 @@ resources. Selecting a profile does not switch product or tenant.
|
|
|
34
34
|
| Type | Purpose |
|
|
35
35
|
|---|---|
|
|
36
36
|
| `platform` | Pay-as-you-go Platform Endpoint and inference usage. |
|
|
37
|
+
| `agent-plan` | Personal Agent Plan, using its dedicated API Key. |
|
|
38
|
+
| `agent-plan-team` | Agent Plan Team, using the assigned Running seat's API Key. |
|
|
37
39
|
| `coding-plan` | Personal Coding Plan usage. |
|
|
38
40
|
| `coding-plan-team` | Coding Plan Team usage through an assigned seat. |
|
|
39
41
|
|
|
42
|
+
Shared-package profiles use `agent-plan-team-shared-pool`, created only through the interactive Helper manual-Key flow with administrator permission, an active shared package and a concrete project. Existing shared-package profiles can be selected and inspected, but ordinary/seat Key refresh cannot repair them.
|
|
43
|
+
|
|
40
44
|
Do not suggest another profile type. The BytePlus Region is fixed to
|
|
41
45
|
`ap-southeast-1`.
|
|
42
46
|
|
|
@@ -98,7 +102,7 @@ existing platform profile
|
|
|
98
102
|
|
|
|
99
103
|
+-- create a fresh platform profile for the selected project
|
|
100
104
|
|
|
|
101
|
-
+-- refresh Coding Plan subscription and team-seat profiles
|
|
105
|
+
+-- refresh Agent Plan / Coding Plan subscription and team-seat profiles
|
|
102
106
|
|
|
|
103
107
|
+-- update or create profiles available in the new project
|
|
104
108
|
+-- remove profiles not available in the new project
|
|
@@ -115,12 +119,12 @@ positional project name, it loads the selectable BytePlus projects and includes
|
|
|
115
119
|
| `arkcli profile list` | List local profiles and identify the default. |
|
|
116
120
|
| `arkcli profile show [profile]` | Show one profile with masked secrets and the derived data-plane URL. |
|
|
117
121
|
| `arkcli profile use [profile]` | Change the local default profile. |
|
|
118
|
-
| `arkcli profile create` | Create `platform`, `
|
|
122
|
+
| `arkcli profile create` | Create any supported type: `platform`, `agent-plan`, `agent-plan-team`, `coding-plan`, `coding-plan-team`. |
|
|
119
123
|
| `arkcli profile delete <profile>` | Delete a local profile; use `--yes` only after confirmation. |
|
|
120
124
|
| `arkcli profile rename <profile> --to <display-name>` | Change only the display label, not the internal profile key. |
|
|
121
|
-
| `arkcli profile project [<project-name>]` | Replace the Platform project slice and refresh Coding Plan profiles. |
|
|
125
|
+
| `arkcli profile project [<project-name>]` | Replace the Platform project slice and refresh Agent Plan / Coding Plan profiles. |
|
|
122
126
|
| `arkcli profile apikey list|use|refresh` | Inspect, select, or synchronize the profile-specific ordinary or team-seat API key source; an empty refresh fails without clearing local keys. |
|
|
123
|
-
| `arkcli profile models list|refresh` | Inspect or refresh Coding Plan model defaults. |
|
|
127
|
+
| `arkcli profile models list|refresh` | Inspect or refresh Agent Plan / Coding Plan model defaults. |
|
|
124
128
|
| `arkcli profile set-default <id>` | Save a default resource for one modality. |
|
|
125
129
|
|
|
126
130
|
## Guard Checklist
|
|
@@ -145,10 +149,10 @@ positional project name, it loads the selectable BytePlus projects and includes
|
|
|
145
149
|
impact and obtain confirmation.
|
|
146
150
|
4. Before `use`, `rename`, `keys use`, `keys refresh`, `models refresh`, or
|
|
147
151
|
`set-default`, state the target profile.
|
|
148
|
-
5.
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
+
5. Override personal subscription detection with `--plan-tier` only when explicitly requested: small/medium/large/max for `agent-plan`, lite/pro for `coding-plan`.
|
|
153
|
+
6. For `agent-plan`, use the dedicated `RealAgentPlanPersonal` API Key source; for `agent-plan-team`, use the assigned Running seat Key. Never substitute an ordinary Key. Personal Plan credential export requires the common agreement gate; do not bypass it with a headless environment override.
|
|
154
|
+
7. Do not edit `~/.arkcli-bp/` or `config.yaml` directly.
|
|
155
|
+
8. Treat API-key sources as profile-specific: `platform` and personal
|
|
152
156
|
`coding-plan` use the ordinary pool; `coding-plan-team` uses a Running
|
|
153
157
|
seat's key. `auth apikey` only selects from the ordinary pool and cannot
|
|
154
158
|
repair a team profile.
|