@kazzle/app 0.1.828 → 0.1.830

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kazzle/app",
3
- "version": "0.1.828",
3
+ "version": "0.1.830",
4
4
  "description": "Contracts, tool helpers, Vite helper, and templates for building Kazzle apps.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -5,10 +5,10 @@ This app was created from the `ai` template. It's a multi-modality starter and a
5
5
  | Template route | Kazzle route | Default model |
6
6
  |---|---|---|
7
7
  | `POST /chat` | `POST /ai/chat/completions` | `openai/gpt-5.5` |
8
- | `POST /image` | `POST /ai/images/generations` | `@cf/black-forest-labs/flux-1-schnell` |
9
- | `POST /speech` | `POST /ai/audio/speech` | `openai/tts-1` |
10
- | `POST /transcribe` | `POST /ai/audio/transcriptions` | `openai/whisper-1` |
11
- | `POST /video` + `GET /video/:id` | `POST /ai/video/generations` + `GET /ai/responses/:id` | `openai/sora-2` |
8
+ | `POST /image` | `POST /ai/images/generations` | `google/gemini-2.5-flash-image` |
9
+ | `POST /speech` | `POST /ai/audio/speech` | `openai/gpt-audio` |
10
+ | `POST /transcribe` | `POST /ai/audio/transcriptions` | `google/gemini-3.5-flash` |
11
+ | `POST /video` + `GET /video/:id` | `POST /ai/video/generations` + `GET /ai/responses/:id` | `bytedance/seedance-2.0-mini` |
12
12
 
13
13
  Auth is one `kzl_…` API key (`KAZZLE_API_KEY`) plus the matching environment API root (`KAZZLE_API_URL`). The browser never sees either value — every modality round-trips through the server so customers can layer their own auth/rate-limits/business rules on top. Billing is metered against the Kazzle space that owns the key.
14
14
 
@@ -20,10 +20,10 @@
20
20
  * - `KAZZLE_API_KEY` required.
21
21
  * - `KAZZLE_API_URL` required API root, for example `https://api.kazzle.app`.
22
22
  * - `KAZZLE_AI_MODEL` default `openai/gpt-5.5`.
23
- * - `KAZZLE_IMAGE_MODEL` default `@cf/black-forest-labs/flux-1-schnell`.
24
- * - `KAZZLE_SPEECH_MODEL` default `openai/tts-1`.
25
- * - `KAZZLE_TRANSCRIPTION_MODEL` default `openai/whisper-1`.
26
- * - `KAZZLE_VIDEO_MODEL` default `openai/sora-2`.
23
+ * - `KAZZLE_IMAGE_MODEL` default `google/gemini-2.5-flash-image`.
24
+ * - `KAZZLE_SPEECH_MODEL` default `openai/gpt-audio`.
25
+ * - `KAZZLE_TRANSCRIPTION_MODEL` default `google/gemini-3.5-flash`.
26
+ * - `KAZZLE_VIDEO_MODEL` default `bytedance/seedance-2.0-mini`.
27
27
  *
28
28
  * Override any model via the request body (`{ model: '…' }`); the env
29
29
  * default is just a sensible fallback.
@@ -42,10 +42,10 @@ if (!apiUrl) throw new Error('KAZZLE_API_URL is required and must point at the m
42
42
  const baseUrl = `${apiUrl.replace(/\/$/, '')}/ai`;
43
43
  const defaults = {
44
44
  chat: process.env.KAZZLE_AI_MODEL || 'openai/gpt-5.5',
45
- image: process.env.KAZZLE_IMAGE_MODEL || '@cf/black-forest-labs/flux-1-schnell',
46
- speech: process.env.KAZZLE_SPEECH_MODEL || 'openai/tts-1',
47
- transcription: process.env.KAZZLE_TRANSCRIPTION_MODEL || 'openai/whisper-1',
48
- video: process.env.KAZZLE_VIDEO_MODEL || 'openai/sora-2',
45
+ image: process.env.KAZZLE_IMAGE_MODEL || 'google/gemini-2.5-flash-image',
46
+ speech: process.env.KAZZLE_SPEECH_MODEL || 'openai/gpt-audio',
47
+ transcription: process.env.KAZZLE_TRANSCRIPTION_MODEL || 'google/gemini-3.5-flash',
48
+ video: process.env.KAZZLE_VIDEO_MODEL || 'bytedance/seedance-2.0-mini',
49
49
  };
50
50
 
51
51
  type ChatMessage = { role: 'system' | 'user' | 'assistant'; content: string };