Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(replay-vision): restore gemini-3-flash-preview as 5-credit default (#73026)

Arno Hillen2f7095eaee0e
diff --git a/products/replay_vision/backend/api/scanners.py b/products/replay_vision/backend/api/scanners.py
index 769457d0924f..6993977b124b 100644
--- a/products/replay_vision/backend/api/scanners.py
+++ b/products/replay_vision/backend/api/scanners.py
@@ -731,7 +731,7 @@ class EstimateRequestSerializer(serializers.Serializer):
model = serializers.ChoiceField(
choices=ScannerModel.choices,
required=False,
- default=ScannerModel.GEMINI_3_6_FLASH,
+ default=ScannerModel.GEMINI_3_FLASH_PREVIEW,
help_text="Proposed model; determines `credits_per_observation` in the response.",
)
diff --git a/products/replay_vision/backend/billing.py b/products/replay_vision/backend/billing.py
index cb20b40db45b..8979822df006 100644
--- a/products/replay_vision/backend/billing.py
+++ b/products/replay_vision/backend/billing.py
@@ -38,34 +38,35 @@ class GeminiModelInfo:
retired: bool = False # unselectable, but frozen snapshots/receipts still need its price
-# Per-model source of truth. Non-retired rows are the lineup, one model per Google tier, and must
-# mirror `ScannerModel`. No pro option on purpose: Google's only pro model is a preview id, and
-# preview retirements have burned us before.
+# Per-model source of truth. Non-retired rows are the selectable lineup and must mirror `ScannerModel`.
+# The flash tier has two options: the cheaper `gemini-3-flash-preview` (the default) and the stable
+# `gemini-3.6-flash`. `gemini-3-flash-preview` is a preview id, so watch for Google retiring it and
+# remap it like migration 0052 did if that happens. No pro option: Google's only pro model is a preview id.
#
# | model | tier | $/1M in | $/1M out | credits/observation |
# |------------------------------|------------|---------|----------|---------------------|
# | gemini-3.5-flash-lite | flash lite | 0.30 | 2.50 | 2 |
+# | gemini-3-flash-preview | flash | 0.50 | 3.00 | 5 |
# | gemini-3.6-flash | flash | 1.50 | 7.50 | 15 |
# | gemini-2.5-flash | (retired) | 0.30 | 2.50 | 2 |
-# | gemini-3-flash-preview | (retired) | 0.50 | 3.00 | 5 |
# | gemini-3.5-flash | (retired) | 1.50 | 9.00 | 15 |
# | gemini-3.1-flash-lite-preview| (retired) | 0.25 | 1.50 | 2 |
#
-# Credit prices are hand-set to keep the price points users already know (2 budget, 15 flash);
-# `suggested_observation_credits` reproduces 15 at TARGET_MARGIN and is the tool for repricing.
+# Credit prices are hand-set. The two flash prices (5 and 15) reproduce via `suggested_observation_credits`
+# at TARGET_MARGIN; the budget tier is pinned below its suggestion to keep the 2-credit price users know.
GEMINI_MODELS: dict[str, GeminiModelInfo] = {
ScannerModel.GEMINI_3_5_FLASH_LITE: GeminiModelInfo(
tier="flash lite", input_usd_per_1m=0.30, output_usd_per_1m=2.50, credits_per_observation=2
),
+ ScannerModel.GEMINI_3_FLASH_PREVIEW: GeminiModelInfo(
+ tier="flash", input_usd_per_1m=0.50, output_usd_per_1m=3.00, credits_per_observation=5
+ ),
ScannerModel.GEMINI_3_6_FLASH: GeminiModelInfo(
tier="flash", input_usd_per_1m=1.50, output_usd_per_1m=7.50, credits_per_observation=15
),
"gemini-2.5-flash": GeminiModelInfo(
tier="flash", input_usd_per_1m=0.30, output_usd_per_1m=2.50, credits_per_observation=2, retired=True
),
- "gemini-3-flash-preview": GeminiModelInfo(
- tier="flash", input_usd_per_1m=0.50, output_usd_per_1m=3.00, credits_per_observation=5, retired=True
- ),
"gemini-3.5-flash": GeminiModelInfo(
tier="flash", input_usd_per_1m=1.50, output_usd_per_1m=9.00, credits_per_observation=15, retired=True
),
diff --git a/products/replay_vision/backend/migrations/0053_alter_replayscanner_model.py b/products/replay_vision/backend/migrations/0053_alter_replayscanner_model.py
new file mode 100644
index 000000000000..679f5645375d
--- /dev/null
+++ b/products/replay_vision/backend/migrations/0053_alter_replayscanner_model.py
@@ -0,0 +1,24 @@
+# Generated by Django 5.2.14 on 2026-07-22 20:52
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ("replay_vision", "0052_remap_scanner_models"),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name="replayscanner",
+ name="model",
+ field=models.CharField(
+ choices=[
+ ("gemini-3.5-flash-lite", "Gemini 3.5 Flash Lite"),
+ ("gemini-3-flash-preview", "Gemini 3 Flash (preview)"),
+ ("gemini-3.6-flash", "Gemini 3.6 Flash"),
+ ],
+ max_length=64,
+ ),
+ ),
+ ]
diff --git a/products/replay_vision/backend/migrations/max_migration.txt b/products/replay_vision/backend/migrations/max_migration.txt
index e2971e31a9ba..1f76aa4130b1 100644
--- a/products/replay_vision/backend/migrations/max_migration.txt
+++ b/products/replay_vision/backend/migrations/max_migration.txt
@@ -1 +1 @@
-0052_remap_scanner_models
+0053_alter_replayscanner_model
diff --git a/products/replay_vision/backend/models/replay_scanner.py b/products/replay_vision/backend/models/replay_scanner.py
index 5c6261b4dd80..dd5721e9e882 100644
--- a/products/replay_vision/backend/models/replay_scanner.py
+++ b/products/replay_vision/backend/models/replay_scanner.py
@@ -39,10 +39,11 @@ class ScannerProvider(models.TextChoices):
class ScannerModel(models.TextChoices):
- """One model per Google tier, cheapest first. Members must mirror `billing.GEMINI_MODELS`; when
+ """Selectable models, cheapest first. Members must mirror `billing.GEMINI_MODELS`; when
Google supersedes a model, swap the member and remap existing scanners in a migration (see 0052)."""
GEMINI_3_5_FLASH_LITE = "gemini-3.5-flash-lite", "Gemini 3.5 Flash Lite"
+ GEMINI_3_FLASH_PREVIEW = "gemini-3-flash-preview", "Gemini 3 Flash (preview)"
GEMINI_3_6_FLASH = "gemini-3.6-flash", "Gemini 3.6 Flash"
diff --git a/products/replay_vision/backend/tests/test_api.py b/products/replay_vision/backend/tests/test_api.py
index 2d9e0abd9f82..9506c082cf24 100644
--- a/products/replay_vision/backend/tests/test_api.py
+++ b/products/replay_vision/backend/tests/test_api.py
@@ -2107,9 +2107,9 @@ class TestReplayScannerEstimateAction(ClickhouseTestMixin, _VisionAPITestCase):
self.assertEqual(body["matched_sessions_in_window"], 3)
self.assertEqual(body["window_days"], 30)
self.assertEqual(body["estimated_observations_per_month"], 3)
- # Defaults to the baseline model when the request names none.
- self.assertEqual(body["credits_per_observation"], 15)
- self.assertEqual(body["estimated_credits_per_month"], 45)
+ # Defaults to gemini-3-flash-preview (5 credits) when the request names no model.
+ self.assertEqual(body["credits_per_observation"], 5)
+ self.assertEqual(body["estimated_credits_per_month"], 15)
def test_estimate_prices_credits_at_proposed_model(self) -> None:
for index in range(3):
diff --git a/products/replay_vision/backend/tests/test_billing.py b/products/replay_vision/backend/tests/test_billing.py
index aaf125faf8a2..81d1c9d1f57a 100644
--- a/products/replay_vision/backend/tests/test_billing.py
+++ b/products/replay_vision/backend/tests/test_billing.py
@@ -1,6 +1,7 @@
from datetime import UTC, datetime, timedelta
from uuid import uuid4
+import pytest
from posthog.test.base import APIBaseTest
from django.utils import timezone
@@ -85,8 +86,9 @@ def test_gemini_models_config_mirrors_scanner_model_enum() -> None:
)
-def test_flash_credit_price_tracks_the_margin_formula() -> None:
- # The flash price is contractually the formula output (the budget tier is pinned below it), so a
- # token price or margin change here must come with a conscious repricing, not silently stale credits.
- flash = GEMINI_MODELS[ScannerModel.GEMINI_3_6_FLASH]
- assert flash.credits_per_observation == suggested_observation_credits(flash)
[email protected]("model", [ScannerModel.GEMINI_3_FLASH_PREVIEW, ScannerModel.GEMINI_3_6_FLASH])
+def test_flash_credit_price_tracks_the_margin_formula(model: str) -> None:
+ # Both flash-tier prices are contractually the formula output (the budget tier is pinned below it), so a
+ # token price or margin change must come with a conscious repricing, not silently stale credits.
+ info = GEMINI_MODELS[model]
+ assert info.credits_per_observation == suggested_observation_credits(info)
diff --git a/products/replay_vision/frontend/generated/api.schemas.ts b/products/replay_vision/frontend/generated/api.schemas.ts
index b76684d95428..3ac00049e123 100644
--- a/products/replay_vision/frontend/generated/api.schemas.ts
+++ b/products/replay_vision/frontend/generated/api.schemas.ts
@@ -709,12 +709,14 @@ export const ScannerProviderEnumApi = {
/**
* * `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite
+ * * `gemini-3-flash-preview` - Gemini 3 Flash (preview)
* * `gemini-3.6-flash` - Gemini 3.6 Flash
*/
export type ScannerModelEnumApi = (typeof ScannerModelEnumApi)[keyof typeof ScannerModelEnumApi]
export const ScannerModelEnumApi = {
Gemini35FlashLite: 'gemini-3.5-flash-lite',
+ Gemini3FlashPreview: 'gemini-3-flash-preview',
Gemini36Flash: 'gemini-3.6-flash',
} as const
@@ -790,6 +792,7 @@ export interface ReplayScannerApi {
/** Concrete model to use for this scanner.
*
* * `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite
+ * * `gemini-3-flash-preview` - Gemini 3 Flash (preview)
* * `gemini-3.6-flash` - Gemini 3.6 Flash */
model: ScannerModelEnumApi
/** When false, the reconciler removes the scanner's Temporal schedule. On-demand triggers still work. */
@@ -881,6 +884,7 @@ export interface PatchedReplayScannerApi {
/** Concrete model to use for this scanner.
*
* * `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite
+ * * `gemini-3-flash-preview` - Gemini 3 Flash (preview)
* * `gemini-3.6-flash` - Gemini 3.6 Flash */
model?: ScannerModelEnumApi
/** When false, the reconciler removes the scanner's Temporal schedule. On-demand triggers still work. */
@@ -1373,6 +1377,7 @@ export interface EstimateRequestApi {
/** Proposed model; determines `credits_per_observation` in the response.
*
* * `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite
+ * * `gemini-3-flash-preview` - Gemini 3 Flash (preview)
* * `gemini-3.6-flash` - Gemini 3.6 Flash */
model?: ScannerModelEnumApi
}
diff --git a/products/replay_vision/frontend/generated/api.zod.ts b/products/replay_vision/frontend/generated/api.zod.ts
index 829d7bc7a269..d9c88699a879 100644
--- a/products/replay_vision/frontend/generated/api.zod.ts
+++ b/products/replay_vision/frontend/generated/api.zod.ts
@@ -417,10 +417,12 @@ export const VisionScannersCreateBody = /* @__PURE__ */ zod
.optional()
.describe('LLM provider. v1 is Google-only.\n\n\* `google` - Google'),
model: zod
- .enum(['gemini-3.5-flash-lite', 'gemini-3.6-flash'])
- .describe('\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3.6-flash` - Gemini 3.6 Flash')
+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.6-flash'])
.describe(
- 'Concrete model to use for this scanner.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'
+ '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash (preview)\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'
+ )
+ .describe(
+ 'Concrete model to use for this scanner.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash (preview)\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'
),
enabled: zod
.boolean()
@@ -501,11 +503,13 @@ export const VisionScannersPartialUpdateBody = /* @__PURE__ */ zod
.optional()
.describe('LLM provider. v1 is Google-only.\n\n\* `google` - Google'),
model: zod
- .enum(['gemini-3.5-flash-lite', 'gemini-3.6-flash'])
- .describe('\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3.6-flash` - Gemini 3.6 Flash')
+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.6-flash'])
+ .describe(
+ '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash (preview)\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'
+ )
.optional()
.describe(
- 'Concrete model to use for this scanner.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'
+ 'Concrete model to use for this scanner.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash (preview)\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'
),
enabled: zod
.boolean()
@@ -653,7 +657,7 @@ export const visionScannersEstimateCreateBodySamplingRateMin = 0
export const visionScannersEstimateCreateBodySamplingRateMax = 1
export const visionScannersEstimateCreateBodySamplingModeDefault = `comprehensive`
-export const visionScannersEstimateCreateBodyModelDefault = `gemini-3.6-flash`
+export const visionScannersEstimateCreateBodyModelDefault = `gemini-3-flash-preview`
export const VisionScannersEstimateCreateBody = /* @__PURE__ */ zod
.object({
@@ -683,11 +687,13 @@ export const VisionScannersEstimateCreateBody = /* @__PURE__ */ zod
"The scanner being edited, excluded from `other_enabled_scanners_monthly_credits` so its stored estimate isn't double-counted in the forecast. Omit (or null) when estimating a brand-new scanner."
),
model: zod
- .enum(['gemini-3.5-flash-lite', 'gemini-3.6-flash'])
- .describe('\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3.6-flash` - Gemini 3.6 Flash')
+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.6-flash'])
+ .describe(
+ '\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash (preview)\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'
+ )
.default(visionScannersEstimateCreateBodyModelDefault)
.describe(
- 'Proposed model; determines `credits_per_observation` in the response.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'
+ 'Proposed model; determines `credits_per_observation` in the response.\n\n\* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n\* `gemini-3-flash-preview` - Gemini 3 Flash (preview)\n\* `gemini-3.6-flash` - Gemini 3.6 Flash'
),
})
.describe('Body of POST \/vision\/scanners\/estimate\/ — a proposed, unsaved scanner config.')
diff --git a/products/replay_vision/frontend/replay_scanners/types.ts b/products/replay_vision/frontend/replay_scanners/types.ts
index 5a46227a946f..cef63996ff7b 100644
--- a/products/replay_vision/frontend/replay_scanners/types.ts
+++ b/products/replay_vision/frontend/replay_scanners/types.ts
@@ -134,7 +134,7 @@ export function ineligibleKindDescription(kind: IneligibleKind): string {
}
export const DEFAULT_PROVIDER = 'google'
-export const DEFAULT_MODEL: ScannerModelEnumApi = ScannerModelEnumApi.Gemini36Flash
+export const DEFAULT_MODEL: ScannerModelEnumApi = ScannerModelEnumApi.Gemini3FlashPreview
export const ENABLED_OPTIONS: { value: EnabledFilter; label: string }[] = [
{ value: 'enabled', label: 'Enabled' },
@@ -145,11 +145,13 @@ export const ENABLED_OPTIONS: { value: EnabledFilter; label: string }[] = [
// the picker needs a price per model before anything is saved, so it can't come from a per-instance response.
export const OBSERVATION_CREDITS_BY_MODEL: Record<ScannerModelEnumApi, number> = {
[ScannerModelEnumApi.Gemini35FlashLite]: 2,
+ [ScannerModelEnumApi.Gemini3FlashPreview]: 5,
[ScannerModelEnumApi.Gemini36Flash]: 15,
}
const MODEL_NAMES: Record<ScannerModelEnumApi, string> = {
[ScannerModelEnumApi.Gemini35FlashLite]: 'Gemini 3.5 Flash Lite',
+ [ScannerModelEnumApi.Gemini3FlashPreview]: 'Gemini 3 Flash (preview)',
[ScannerModelEnumApi.Gemini36Flash]: 'Gemini 3.6 Flash',
}
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index 8190adf54a66..efc65da6d451 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -25213,6 +25213,7 @@ export namespace Schemas {
/**
* * `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite
+ * * `gemini-3-flash-preview` - Gemini 3 Flash (preview)
* * `gemini-3.6-flash` - Gemini 3.6 Flash
*/
export type ScannerModelEnum = typeof ScannerModelEnum[keyof typeof ScannerModelEnum];
@@ -25220,6 +25221,7 @@ export namespace Schemas {
export const ScannerModelEnum = {
Gemini35FlashLite: 'gemini-3.5-flash-lite',
+ Gemini3FlashPreview: 'gemini-3-flash-preview',
Gemini36Flash: 'gemini-3.6-flash',
} as const;
@@ -25249,6 +25251,7 @@ export namespace Schemas {
/** Proposed model; determines `credits_per_observation` in the response.
*
* * `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite
+ * * `gemini-3-flash-preview` - Gemini 3 Flash (preview)
* * `gemini-3.6-flash` - Gemini 3.6 Flash */
model?: ScannerModelEnum;
}
@@ -42649,6 +42652,7 @@ export namespace Schemas {
/** Concrete model to use for this scanner.
*
* * `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite
+ * * `gemini-3-flash-preview` - Gemini 3 Flash (preview)
* * `gemini-3.6-flash` - Gemini 3.6 Flash */
model: ScannerModelEnum;
/** When false, the reconciler removes the scanner's Temporal schedule. On-demand triggers still work. */
@@ -51302,6 +51306,7 @@ export namespace Schemas {
/** Concrete model to use for this scanner.
*
* * `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite
+ * * `gemini-3-flash-preview` - Gemini 3 Flash (preview)
* * `gemini-3.6-flash` - Gemini 3.6 Flash */
model?: ScannerModelEnum;
/** When false, the reconciler removes the scanner's Temporal schedule. On-demand triggers still work. */
diff --git a/services/mcp/src/generated/replay_vision/api.ts b/services/mcp/src/generated/replay_vision/api.ts
index 74d313860032..001cdfea8831 100644
--- a/services/mcp/src/generated/replay_vision/api.ts
+++ b/services/mcp/src/generated/replay_vision/api.ts
@@ -244,10 +244,12 @@ export const VisionScannersCreateBody = /* @__PURE__ */ zod
.optional()
.describe('LLM provider. v1 is Google-only.\n\n* `google` - Google'),
model: zod
- .enum(['gemini-3.5-flash-lite', 'gemini-3.6-flash'])
- .describe('* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n* `gemini-3.6-flash` - Gemini 3.6 Flash')
+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.6-flash'])
.describe(
- 'Concrete model to use for this scanner.\n\n* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n* `gemini-3.6-flash` - Gemini 3.6 Flash'
+ '* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n* `gemini-3-flash-preview` - Gemini 3 Flash (preview)\n* `gemini-3.6-flash` - Gemini 3.6 Flash'
+ )
+ .describe(
+ 'Concrete model to use for this scanner.\n\n* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n* `gemini-3-flash-preview` - Gemini 3 Flash (preview)\n* `gemini-3.6-flash` - Gemini 3.6 Flash'
),
enabled: zod
.boolean()
@@ -349,11 +351,13 @@ export const VisionScannersPartialUpdateBody = /* @__PURE__ */ zod
.optional()
.describe('LLM provider. v1 is Google-only.\n\n* `google` - Google'),
model: zod
- .enum(['gemini-3.5-flash-lite', 'gemini-3.6-flash'])
- .describe('* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n* `gemini-3.6-flash` - Gemini 3.6 Flash')
+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.6-flash'])
+ .describe(
+ '* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n* `gemini-3-flash-preview` - Gemini 3 Flash (preview)\n* `gemini-3.6-flash` - Gemini 3.6 Flash'
+ )
.optional()
.describe(
- 'Concrete model to use for this scanner.\n\n* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n* `gemini-3.6-flash` - Gemini 3.6 Flash'
+ 'Concrete model to use for this scanner.\n\n* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n* `gemini-3-flash-preview` - Gemini 3 Flash (preview)\n* `gemini-3.6-flash` - Gemini 3.6 Flash'
),
enabled: zod
.boolean()
@@ -748,7 +752,7 @@ export const visionScannersEstimateCreateBodySamplingRateMin = 0
export const visionScannersEstimateCreateBodySamplingRateMax = 1
export const visionScannersEstimateCreateBodySamplingModeDefault = `comprehensive`
-export const visionScannersEstimateCreateBodyModelDefault = `gemini-3.6-flash`
+export const visionScannersEstimateCreateBodyModelDefault = `gemini-3-flash-preview`
export const VisionScannersEstimateCreateBody = /* @__PURE__ */ zod
.object({
@@ -778,11 +782,13 @@ export const VisionScannersEstimateCreateBody = /* @__PURE__ */ zod
"The scanner being edited, excluded from `other_enabled_scanners_monthly_credits` so its stored estimate isn't double-counted in the forecast. Omit (or null) when estimating a brand-new scanner."
),
model: zod
- .enum(['gemini-3.5-flash-lite', 'gemini-3.6-flash'])
- .describe('* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n* `gemini-3.6-flash` - Gemini 3.6 Flash')
+ .enum(['gemini-3.5-flash-lite', 'gemini-3-flash-preview', 'gemini-3.6-flash'])
+ .describe(
+ '* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n* `gemini-3-flash-preview` - Gemini 3 Flash (preview)\n* `gemini-3.6-flash` - Gemini 3.6 Flash'
+ )
.default(visionScannersEstimateCreateBodyModelDefault)
.describe(
- 'Proposed model; determines `credits_per_observation` in the response.\n\n* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n* `gemini-3.6-flash` - Gemini 3.6 Flash'
+ 'Proposed model; determines `credits_per_observation` in the response.\n\n* `gemini-3.5-flash-lite` - Gemini 3.5 Flash Lite\n* `gemini-3-flash-preview` - Gemini 3 Flash (preview)\n* `gemini-3.6-flash` - Gemini 3.6 Flash'
),
})
.describe('Body of POST /vision/scanners/estimate/ — a proposed, unsaved scanner config.')