@pollinations/cli 0.1.41 → 0.1.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -103,10 +103,12 @@ polli keys create --name mybot --budget 100 # secret (default
103
103
  polli keys create --name myapp --type publishable # API publishable
104
104
  polli keys create --name myapp --type publishable \ # 3rd-party app key
105
105
  --redirect-uri https://myapp.com/callback --earnings
106
+ polli keys create --name server --models flux zimage # only these models
107
+ polli keys update <id> --models text flux # change the model list
106
108
  polli keys revoke <id>
107
109
  ```
108
110
 
109
- Keys can't be edited — to change a name, budget, or model list, revoke and recreate. Publishable app keys default developer earnings off; pass `--earnings` to enable them.
111
+ `--models` takes categories (`text`, `image`, ...) and model IDs from `polli models`; a category includes models added later, a model ID allows only that model. To change a key's name or budget, use the dashboard or revoke and recreate. Publishable app keys default developer earnings off; pass `--earnings` to enable them.
110
112
 
111
113
  ```bash
112
114
  polli usage # pollen balance
package/SKILL.md CHANGED
@@ -188,7 +188,7 @@ polli usage --daily # daily cost summary
188
188
  polli usage --daily --key polli-harness-claude --days 1 # cost of one harness key for the last day (`--model`, `--csv` filter/export both views; `--key` is repeatable)
189
189
  polli earnings # developer earnings total + per-entity breakdown (default 30d)
190
190
  polli earnings --days 7 # rolling window
191
- polli quests # your quests + claim state (open/claimable/claimed/coming)
191
+ polli quests # your quests + claim state (open/claimable/claimed/closed/coming)
192
192
  polli quests --claimable # only rewards ready to claim
193
193
  ```
194
194
  **History is eventually consistent** — a request you just made may not appear for 30–60s. When matching costs to freshly-generated media, use `--limit 50` and filter by timestamp, and retry if the expected entry is missing. `polli usage --json` returns `{"pollen": <number>}` — the current balance only; use `--history --json` or `--daily --json` for cost breakdowns. Those print a JSON array of the API usage records (numeric `cost_usd`, `api_key_id`, available per-modality token fields), not the table columns.
@@ -240,8 +240,11 @@ polli keys list # list all ke
240
240
  polli keys info # details about the CURRENTLY AUTHENTICATED key only (takes no id)
241
241
  polli keys create --name "my-bot" --type secret --budget 1000 --permissions profile usage # scoped key
242
242
  polli keys create --name "my-app" --type publishable --redirect-uri https://app.example/callback --earnings
243
+ polli keys create --name "server" --models flux zimage # only these two models
244
+ polli keys update <id> --models text flux # every text model plus flux
243
245
  polli keys revoke <id> # id comes from `keys list --json`
244
246
  ```
247
+ `--models` takes categories (`text`, `image`, `video`, `audio`, `3d`, `embedding`, `realtime`) and model IDs from `polli models`. A category includes models added later; a model ID allows only that model.
245
248
  `--permissions <perms...>` scopes what the new key can do on the account (e.g. `profile usage` lets it call `polli --key <new> usage`). **Without `--permissions`, new scoped keys can generate media but cannot read account state** — `polli --key <new> usage` will 403. Include `keys` to let the new key create, list, and revoke keys itself. Existing keys with `account:keys` can manage my-models where that invite-only feature is enabled, but still need `account:usage` for read-only account state. Publishable app keys default developer earnings off; pass `--earnings` to enable them. To inspect a specific key other than the current one, use `polli keys list --json | jq '.[] | select(.id == "<id>")'`. `keys info` is intentionally scoped to the caller's own key.
246
249
 
247
250
  ### Connect a coding harness