visual-ai-assertions 0.19.0 → 0.21.0
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 +18 -13
- package/dist/index.cjs +21 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +21 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -503,7 +503,7 @@ type SupportedMimeType = "image/jpeg" | "image/png" | "image/webp" | "image/gif"
|
|
|
503
503
|
| Provider | Default Model |
|
|
504
504
|
| ---------- | ------------------------ |
|
|
505
505
|
| Anthropic | `claude-sonnet-4-6` |
|
|
506
|
-
| OpenAI | `gpt-5.
|
|
506
|
+
| OpenAI | `gpt-5.6-luna` |
|
|
507
507
|
| Google | `gemini-3-flash-preview` |
|
|
508
508
|
| OpenRouter | `qwen/qwen3.6-flash` |
|
|
509
509
|
|
|
@@ -545,18 +545,18 @@ All listed models support image/vision input. Pass any model ID to the `model` c
|
|
|
545
545
|
|
|
546
546
|
### OpenAI
|
|
547
547
|
|
|
548
|
-
| Model | Model ID | Input $/MTok | Output $/MTok | Notes
|
|
549
|
-
| ------------- | --------------- | ------------ | ------------- |
|
|
550
|
-
| GPT-5.6 Sol | `gpt-5.6-sol` | $5 | $30 | Newest flagship, frontier tier
|
|
551
|
-
| GPT-5.6 Terra | `gpt-5.6-terra` | $2 | $12 | Newest balanced, everyday tier
|
|
552
|
-
| GPT-5.6 Luna | `gpt-5.6-luna` | $0.20 | $1.20 |
|
|
553
|
-
| GPT-5.5 | `gpt-5.5` | $5 | $30 | Previous flagship, 1M context
|
|
554
|
-
| GPT-5.4 Pro | `gpt-5.4-pro` | $30 | $180 | Most capable, extended context
|
|
555
|
-
| GPT-5.4 | `gpt-5.4` | $2.50 | $15 | Best vision quality
|
|
556
|
-
| GPT-5.2 | `gpt-5.2` | $1.75 | $14 | Balanced quality and cost
|
|
557
|
-
| GPT-5.4 mini | `gpt-5.4-mini` | $0.75 | $4.50 |
|
|
558
|
-
| GPT-5.4 nano | `gpt-5.4-nano` | $0.20 | $1.25 | Cheapest older-generation option
|
|
559
|
-
| GPT-5 mini | `gpt-5-mini` | $0.25 | $2 | Fast and cheap
|
|
548
|
+
| Model | Model ID | Input $/MTok | Output $/MTok | Notes |
|
|
549
|
+
| ------------- | --------------- | ------------ | ------------- | -------------------------------------- |
|
|
550
|
+
| GPT-5.6 Sol | `gpt-5.6-sol` | $5 | $30 | Newest flagship, frontier tier |
|
|
551
|
+
| GPT-5.6 Terra | `gpt-5.6-terra` | $2 | $12 | Newest balanced, everyday tier |
|
|
552
|
+
| GPT-5.6 Luna | `gpt-5.6-luna` | $0.20 | $1.20 | **Default** — newest, fastest/cheapest |
|
|
553
|
+
| GPT-5.5 | `gpt-5.5` | $5 | $30 | Previous flagship, 1M context |
|
|
554
|
+
| GPT-5.4 Pro | `gpt-5.4-pro` | $30 | $180 | Most capable, extended context |
|
|
555
|
+
| GPT-5.4 | `gpt-5.4` | $2.50 | $15 | Best vision quality |
|
|
556
|
+
| GPT-5.2 | `gpt-5.2` | $1.75 | $14 | Balanced quality and cost |
|
|
557
|
+
| GPT-5.4 mini | `gpt-5.4-mini` | $0.75 | $4.50 | Prior default — fast and affordable |
|
|
558
|
+
| GPT-5.4 nano | `gpt-5.4-nano` | $0.20 | $1.25 | Cheapest older-generation option |
|
|
559
|
+
| GPT-5 mini | `gpt-5-mini` | $0.25 | $2 | Fast and cheap |
|
|
560
560
|
|
|
561
561
|
### Google
|
|
562
562
|
|
|
@@ -579,6 +579,7 @@ Any [OpenRouter](https://openrouter.ai/models) model slug (always `vendor/model`
|
|
|
579
579
|
|
|
580
580
|
| Model | Model ID | Input $/MTok | Output $/MTok | Notes |
|
|
581
581
|
| -------------- | --------------------------- | ------------ | ------------- | ------------------------------------- |
|
|
582
|
+
| Muse Spark 1.3 | `meta/muse-spark-1.3` | $1.25 | $4.25 | Meta flagship, 1M context; gated¹ |
|
|
582
583
|
| Grok 4.6 | `x-ai/grok-4.6` | $2 | $6 | Newest xAI flagship, 500K context |
|
|
583
584
|
| Grok 4.5 | `x-ai/grok-4.5` | $2 | $6 | Prior xAI flagship, 500K context |
|
|
584
585
|
| Kimi K3 | `moonshotai/kimi-k3` | $3 | $15 | Moonshot flagship, 1M context |
|
|
@@ -587,6 +588,10 @@ Any [OpenRouter](https://openrouter.ai/models) model slug (always `vendor/model`
|
|
|
587
588
|
| Qwen3.7 Plus | `qwen/qwen3.7-plus` | $0.32 | $1.28 | Cost-effective, GUI/screen-reading |
|
|
588
589
|
| Qwen3.6 Flash | `qwen/qwen3.6-flash` | $0.19 | $1.13 | **Default** — cheap flash vision tier |
|
|
589
590
|
|
|
591
|
+
¹ Muse Spark 1.3 is age-gated by OpenRouter: calls return HTTP 403 (`VisualAIAuthError`) until the account completes the 18+ confirmation at [openrouter.ai/settings/preferences](https://openrouter.ai/settings/preferences). It also reasons by default — expect several hundred reasoning tokens per call even with no `reasoningEffort` set.
|
|
592
|
+
|
|
593
|
+
Meta also publishes `meta/muse-spark-1.3-contributor`, the same model at $0.10 / $0.20 per MTok — about 12x cheaper — because Meta uses everything submitted through it for product improvement. It has **no named constant** (`Model.OpenRouter` does not expose it) and never appears by default anywhere in this library, so using it takes a deliberate, explicit choice: pass the slug directly as a plain string, `visualAI({ model: "meta/muse-spark-1.3-contributor" })`. Any OpenRouter slug works this way — see the note above the table — and cost tracking works correctly once you opt in. OpenRouter itself blocks it with HTTP 404 (`paid-model-training-violation-by-account`) until the account's privacy settings allow training endpoints, at [openrouter.ai/settings/privacy](https://openrouter.ai/settings/privacy). Only use it if sending your screenshots to Meta for training is a trade you've deliberately made.
|
|
594
|
+
|
|
590
595
|
`qwen/qwen3.7-max` and the DeepSeek V4 family (`deepseek/deepseek-v4-pro`, `deepseek/deepseek-v4-flash`, and dated variants such as `deepseek/deepseek-v4-pro-0813`) are not listed because they accept no image input on OpenRouter.
|
|
591
596
|
|
|
592
597
|
## License
|
package/dist/index.cjs
CHANGED
|
@@ -126,6 +126,7 @@ var Model = {
|
|
|
126
126
|
* recognizes them. All listed models accept image input.
|
|
127
127
|
*/
|
|
128
128
|
OpenRouter: {
|
|
129
|
+
MUSE_SPARK_1_3: "meta/muse-spark-1.3",
|
|
129
130
|
GROK_4_6: "x-ai/grok-4.6",
|
|
130
131
|
GROK_4_5: "x-ai/grok-4.5",
|
|
131
132
|
KIMI_K3: "moonshotai/kimi-k3",
|
|
@@ -137,7 +138,7 @@ var Model = {
|
|
|
137
138
|
};
|
|
138
139
|
var DEFAULT_MODELS = {
|
|
139
140
|
[Provider.ANTHROPIC]: Model.Anthropic.SONNET_4_6,
|
|
140
|
-
[Provider.OPENAI]: Model.OpenAI.
|
|
141
|
+
[Provider.OPENAI]: Model.OpenAI.GPT_5_6_LUNA,
|
|
141
142
|
[Provider.GOOGLE]: Model.Google.GEMINI_3_FLASH_PREVIEW,
|
|
142
143
|
[Provider.OPENROUTER]: Model.OpenRouter.QWEN_3_6_FLASH
|
|
143
144
|
};
|
|
@@ -1263,8 +1264,26 @@ var PRICING_TABLE = {
|
|
|
1263
1264
|
inputPricePerToken: 0.5 / PER_MILLION,
|
|
1264
1265
|
outputPricePerToken: 3 / PER_MILLION
|
|
1265
1266
|
},
|
|
1266
|
-
// OpenRouter passes through upstream per-model pricing (verified 2026-
|
|
1267
|
+
// OpenRouter passes through upstream per-model pricing (verified 2026-09-03
|
|
1267
1268
|
// against https://openrouter.ai/api/v1/models).
|
|
1269
|
+
// Meta's own listed rates ($1.25 / $4.25, cached input $0.15) match
|
|
1270
|
+
// OpenRouter's pass-through exactly. Cached input is not modelled here:
|
|
1271
|
+
// `calculateCost` applies no cache discount on any provider.
|
|
1272
|
+
[`${Provider.OPENROUTER}:${Model.OpenRouter.MUSE_SPARK_1_3}`]: {
|
|
1273
|
+
inputPricePerToken: 1.25 / PER_MILLION,
|
|
1274
|
+
outputPricePerToken: 4.25 / PER_MILLION
|
|
1275
|
+
},
|
|
1276
|
+
// Muse Spark 1.3's data-sharing tier: same model, ~12x cheaper, because
|
|
1277
|
+
// Meta trains on everything submitted through it. Deliberately keyed by the
|
|
1278
|
+
// literal slug rather than a `Model.OpenRouter` entry — it must never be
|
|
1279
|
+
// reachable via autocomplete or default selection. Pass the string yourself
|
|
1280
|
+
// (`model: "meta/muse-spark-1.3-contributor"`) to opt in; cost is still
|
|
1281
|
+
// tracked correctly once you do. Cached input is $0.002/MTok, not modelled
|
|
1282
|
+
// (no provider gets a cache discount here).
|
|
1283
|
+
[`${Provider.OPENROUTER}:meta/muse-spark-1.3-contributor`]: {
|
|
1284
|
+
inputPricePerToken: 0.1 / PER_MILLION,
|
|
1285
|
+
outputPricePerToken: 0.2 / PER_MILLION
|
|
1286
|
+
},
|
|
1268
1287
|
[`${Provider.OPENROUTER}:${Model.OpenRouter.GROK_4_6}`]: {
|
|
1269
1288
|
inputPricePerToken: 2 / PER_MILLION,
|
|
1270
1289
|
outputPricePerToken: 6 / PER_MILLION
|