Skip to content

7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.

TypeScript

feat(models): month-to-date usage card on the Embeddings, Image and Audio tabs (#695)

Tashfeen08c98fa0db51
diff --git a/client/src/components/media-models.tsx b/client/src/components/media-models.tsx
index e8f349b2..ef30b64c 100644
--- a/client/src/components/media-models.tsx
+++ b/client/src/components/media-models.tsx
@@ -8,6 +8,7 @@ import { EmptyState } from '@/components/empty-state'
import { CardSkeleton } from '@/components/ui/skeleton'
import { PageHeader } from '@/components/page-header'
import { ModelsTabs } from '@/components/models-tabs'
+import { UsageSummaryCard } from '@/components/usage-summary-card'
import { useI18n } from '@/i18n'
export interface MediaModel {
@@ -23,6 +24,21 @@ export interface MediaModel {
}
interface MediaData { models: MediaModel[] }
+interface MediaUsage {
+ modality: 'image' | 'audio'
+ models: {
+ id: number
+ platform: string
+ modelId: string
+ displayName: string
+ quotaLabel: string | null
+ requestsToday: number
+ requestsMonth: number
+ }[]
+ totalRequestsToday: number
+ totalRequestsMonth: number
+}
+
export interface MediaGroup {
label: string
slug: string
@@ -130,6 +146,12 @@ export function MediaModelsView({ modality }: { modality: 'image' | 'audio' }) {
queryFn: () => apiFetch('/api/media'),
})
+ const { data: usage } = useQuery<MediaUsage>({
+ queryKey: ['media', 'usage', modality],
+ queryFn: () => apiFetch(`/api/media/usage?modality=${modality}`),
+ refetchInterval: 30_000,
+ })
+
const toggle = useMutation({
mutationFn: ({ id, enabled }: { id: number; enabled: boolean }) =>
apiFetch(`/api/media/${id}`, { method: 'PUT', body: JSON.stringify({ enabled }) }),
@@ -144,7 +166,9 @@ export function MediaModelsView({ modality }: { modality: 'image' | 'audio' }) {
const models = data?.models ?? []
const groups = groupMedia(models.filter(m => m.modality === modality))
const sttGroups = groupMedia(models.filter(m => m.modality === 'transcription'))
- const title = modality === 'image' ? t('models.imageTitle') : t('models.audioTitle')
+ // Every models tab shares one title; the tab bar above says which set you are
+ // looking at, so repeating "Image"/"Audio" here just competed with it.
+ const title = t('models.title')
const description = modality === 'image' ? t('models.imageDesc') : t('models.audioDesc')
const endpoint = modality === 'image' ? '/v1/images/generations' : '/v1/audio/speech'
@@ -169,6 +193,23 @@ export function MediaModelsView({ modality }: { modality: 'image' | 'audio' }) {
{t('models.mediaHint')} <code className="rounded bg-muted px-1 py-0.5 font-mono text-[11px]">{endpoint}</code>
</p>
+ {usage && usage.models.length > 0 && (
+ <UsageSummaryCard
+ unit="requests"
+ total={usage.totalRequestsMonth}
+ requestsToday={usage.totalRequestsToday}
+ rows={usage.models.map(m => ({
+ label: m.displayName,
+ platform: m.platform,
+ // Two providers can serve the same model name (FLUX.1 on both
+ // nvidia and cloudflare), so name the provider to tell them apart.
+ quotaLabel: [m.platform, m.quotaLabel].filter(Boolean).join(' · '),
+ amount: m.requestsMonth,
+ requestsToday: m.requestsToday,
+ }))}
+ />
+ )}
+
{isLoading ? (
<>
<CardSkeleton />
diff --git a/client/src/components/usage-summary-card.tsx b/client/src/components/usage-summary-card.tsx
new file mode 100644
index 00000000..943e02b0
--- /dev/null
+++ b/client/src/components/usage-summary-card.tsx
@@ -0,0 +1,91 @@
+import { useI18n } from '@/i18n'
+import { formatTokens, platformColors } from '@/lib/routing'
+
+// Month-to-date spend for the embedding / image / audio tabs, in the same card
+// slot the chat tab uses for its budget bar.
+//
+// It is deliberately NOT a budget bar. Chat can draw a percentage because
+// `models.monthly_token_budget` is a real number. `embedding_models` and
+// `media_models` only carry a free-text `quota_label` — "10K neurons/day
+// (shared)", "$0.10/mo credits", "MP3 output - multilingual" — and there is no
+// honest conversion from Neurons or dollar credits to tokens, nor is the last
+// one a quota at all. So the bar shows how spend is *distributed* across
+// providers (which is real), the total is what was actually spent, and each
+// provider's quota label is printed verbatim for the reader to judge.
+export interface UsageRow {
+ /** Family name for embeddings, model display name for media. */
+ label: string
+ platform: string | null
+ quotaLabel?: string | null
+ /** Whichever unit this modality is metered in. */
+ amount: number
+ requestsToday: number
+}
+
+export function UsageSummaryCard({
+ rows,
+ total,
+ requestsToday,
+ unit,
+}: {
+ rows: UsageRow[]
+ total: number
+ requestsToday: number
+ /** 'tokens' for embeddings, 'requests' for image/audio (billed per image or per character). */
+ unit: 'tokens' | 'requests'
+}) {
+ const { t } = useI18n()
+ const spent = rows.filter(r => r.amount > 0)
+ const fmt = (n: number) => (unit === 'tokens' ? formatTokens(n) : String(n))
+
+ return (
+ <section className="rounded-3xl border bg-card p-5">
+ <div className="flex items-baseline justify-between gap-3 mb-3">
+ <h2 className="text-sm font-medium">{t('models.usageThisMonth')}</h2>
+ <span className="text-xs text-muted-foreground tabular-nums">
+ {unit === 'tokens'
+ ? t('embeddings.usageMonth', { count: fmt(total) })
+ : t('models.usageRequestsMonth', { count: total })}
+ <span className="mx-1.5">·</span>
+ {t('embeddings.usageToday', { count: requestsToday })}
+ </span>
+ </div>
+
+ {total > 0 && (
+ <div className="flex h-2.5 rounded-full overflow-hidden bg-muted">
+ {spent.map((r, i) => (
+ <div
+ key={i}
+ title={`${r.label}${r.platform ? ` (${r.platform})` : ''}: ${fmt(r.amount)}`}
+ style={{
+ width: `${(r.amount / total) * 100}%`,
+ backgroundColor: platformColors[r.platform ?? ''] ?? '#94a3b8',
+ }}
+ />
+ ))}
+ </div>
+ )}
+
+ <div className="mt-4 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-5 gap-y-1.5 text-xs tabular-nums">
+ {rows.map((r, i) => (
+ <div key={i} className="flex items-center gap-2 min-w-0">
+ <span
+ className="size-2 rounded-sm flex-shrink-0"
+ style={{ backgroundColor: platformColors[r.platform ?? ''] ?? '#94a3b8' }}
+ />
+ <span className="truncate">{r.label}</span>
+ {r.quotaLabel && (
+ <span className="truncate text-muted-foreground/70 font-normal">{r.quotaLabel}</span>
+ )}
+ <span className="flex-1" />
+ <span className="font-mono text-muted-foreground">{fmt(r.amount)}</span>
+ </div>
+ ))}
+ </div>
+
+ {total === 0 && (
+ <p className="mt-3 text-xs text-muted-foreground">{t('models.usageEmpty')}</p>
+ )}
+ </section>
+ )
+}
diff --git a/client/src/i18n/locales/am.json b/client/src/i18n/locales/am.json
index f3c15018..e1ba9e9c 100644
--- a/client/src/i18n/locales/am.json
+++ b/client/src/i18n/locales/am.json
@@ -133,8 +133,6 @@
"embeddingsTab": "መክተቻዎች",
"imageTab": "ምስል",
"audioTab": "ኦዲዮ",
- "imageTitle": "የምስል ሞዴሎች",
- "audioTitle": "የድምጽ ሞዴሎች",
"imageDesc": "የጽሑፍ-ወደ-ምስል ማመንጨት ሞዴሎች.",
"audioDesc": "የጽሑፍ-ወደ-ንግግር እና የንግግር-ወደ-ጽሑፍ ሞዴሎች.",
"mediaHint": "በኩል ይፍጠሩ",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "ገደብ እንዳይኖር ባዶ ይተዉት።"
+ "limitHint": "ገደብ እንዳይኖር ባዶ ይተዉት።",
+ "usageThisMonth": "የዚህ ወር አጠቃቀም",
+ "usageEmpty": "በዚህ ወር ገና ጥያቄዎች የሉም።",
+ "usageRequestsMonth": "በዚህ ወር {count} ጥያቄዎች"
},
"strategies": {
"title": "የማዞሪያ ስትራቴጂ",
diff --git a/client/src/i18n/locales/ar.json b/client/src/i18n/locales/ar.json
index 190539e8..eec55b6f 100644
--- a/client/src/i18n/locales/ar.json
+++ b/client/src/i18n/locales/ar.json
@@ -133,8 +133,6 @@
"embeddingsTab": "التضمين",
"imageTab": "صورة",
"audioTab": "الصوت",
- "imageTitle": "نماذج الصور",
- "audioTitle": "نماذج صوتية",
"imageDesc": "نماذج توليد النص إلى الصورة.",
"audioDesc": "نماذج تحويل النص إلى كلام ومن الكلام إلى نص.",
"mediaHint": "توليد عبر",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "اتركه فارغًا لعدم وجود حد."
+ "limitHint": "اتركه فارغًا لعدم وجود حد.",
+ "usageThisMonth": "الاستخدام هذا الشهر",
+ "usageEmpty": "لا توجد طلبات هذا الشهر بعد.",
+ "usageRequestsMonth": "{count} طلب هذا الشهر"
},
"strategies": {
"title": "استراتيجية التوجيه",
diff --git a/client/src/i18n/locales/az.json b/client/src/i18n/locales/az.json
index 0fac8073..4087d507 100644
--- a/client/src/i18n/locales/az.json
+++ b/client/src/i18n/locales/az.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Yerləşdirmələr",
"imageTab": "Şəkil",
"audioTab": "Audio",
- "imageTitle": "Şəkil modelləri",
- "audioTitle": "Audio modellər",
"imageDesc": "Mətn-şəkildən görüntüyə generasiya modelləri.",
"audioDesc": "Mətn-çıxış və nitq-mətn modelləri.",
"mediaHint": "Generasiya vasitəsilə",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Limit olmaması üçün boş buraxın."
+ "limitHint": "Limit olmaması üçün boş buraxın.",
+ "usageThisMonth": "Bu ayın istifadəsi",
+ "usageEmpty": "Bu ay hələ sorğu yoxdur.",
+ "usageRequestsMonth": "bu ay {count} sorğu"
},
"strategies": {
"title": "Marşrut strategiyası",
diff --git a/client/src/i18n/locales/bg.json b/client/src/i18n/locales/bg.json
index 1d80d223..feda517b 100644
--- a/client/src/i18n/locales/bg.json
+++ b/client/src/i18n/locales/bg.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Вграждания",
"imageTab": "Изображение",
"audioTab": "Аудио",
- "imageTitle": "Модели на изображения",
- "audioTitle": "Аудио модели",
"imageDesc": "Модели за генериране на текст в изображение.",
"audioDesc": "Модели текст в реч и реч в текст.",
"mediaHint": "Генерирай чрез",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Оставете празно за без ограничение."
+ "limitHint": "Оставете празно за без ограничение.",
+ "usageThisMonth": "Потребление този месец",
+ "usageEmpty": "Няма заявки този месец.",
+ "usageRequestsMonth": "{count} заявки този месец"
},
"strategies": {
"title": "Стратегия за маршрутизиране",
diff --git a/client/src/i18n/locales/bn.json b/client/src/i18n/locales/bn.json
index 758eeb94..5e6d719b 100644
--- a/client/src/i18n/locales/bn.json
+++ b/client/src/i18n/locales/bn.json
@@ -133,8 +133,6 @@
"embeddingsTab": "এমবেডিং",
"imageTab": "ছবি",
"audioTab": "অডিও",
- "imageTitle": "ইমেজ মডেল",
- "audioTitle": "অডিও মডেল",
"imageDesc": "টেক্সট-টু-ইমেজ জেনারেশন মডেল।",
"audioDesc": "টেক্সট-টু-স্পিচ এবং স্পিচ-টু-টেক্সট মডেল।",
"mediaHint": "এর মাধ্যমে তৈরি করুন",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "কোনো সীমা না রাখতে ফাঁকা রাখুন।"
+ "limitHint": "কোনো সীমা না রাখতে ফাঁকা রাখুন।",
+ "usageThisMonth": "এই মাসের ব্যবহার",
+ "usageEmpty": "এই মাসে এখনও কোনো অনুরোধ নেই।",
+ "usageRequestsMonth": "এই মাসে {count}টি অনুরোধ"
},
"strategies": {
"title": "রাউটিং কৌশল",
diff --git a/client/src/i18n/locales/cs.json b/client/src/i18n/locales/cs.json
index 9141a344..d0f998af 100644
--- a/client/src/i18n/locales/cs.json
+++ b/client/src/i18n/locales/cs.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Vložení",
"imageTab": "Obrázek",
"audioTab": "Audio",
- "imageTitle": "Modely obrazů",
- "audioTitle": "Audio modely",
"imageDesc": "Modely generování textu na obraz.",
"audioDesc": "Modely převodu textu na řeč a převodu řeči na text.",
"mediaHint": "Generujte přes",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Ponechte prázdné pro žádný limit."
+ "limitHint": "Ponechte prázdné pro žádný limit.",
+ "usageThisMonth": "Spotřeba tento měsíc",
+ "usageEmpty": "Tento měsíc zatím žádné požadavky.",
+ "usageRequestsMonth": "{count} pož. tento měsíc"
},
"strategies": {
"title": "Strategie směrování",
diff --git a/client/src/i18n/locales/da.json b/client/src/i18n/locales/da.json
index 55239100..1ac53606 100644
--- a/client/src/i18n/locales/da.json
+++ b/client/src/i18n/locales/da.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Indlejringer",
"imageTab": "Billede",
"audioTab": "Lyd",
- "imageTitle": "Billedmodeller",
- "audioTitle": "Lydmodeller",
"imageDesc": "Modeller til generering af tekst til billede.",
"audioDesc": "Tekst-til-tale og tale-til-tekst-modeller.",
"mediaHint": "Generer via",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Lad stå tomt for ingen grænse."
+ "limitHint": "Lad stå tomt for ingen grænse.",
+ "usageThisMonth": "Forbrug denne måned",
+ "usageEmpty": "Ingen anmodninger denne måned endnu.",
+ "usageRequestsMonth": "{count} anmodn. denne måned"
},
"strategies": {
"title": "Routingstrategi",
diff --git a/client/src/i18n/locales/de.json b/client/src/i18n/locales/de.json
index 6e8d371b..3dac074f 100644
--- a/client/src/i18n/locales/de.json
+++ b/client/src/i18n/locales/de.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Einbettungen",
"imageTab": "Bild",
"audioTab": "Audio",
- "imageTitle": "Bildmodelle",
- "audioTitle": "Audiomodelle",
"imageDesc": "Modelle zur Text-zu-Bild-Generierung.",
"audioDesc": "Text-to-Speech- und Speech-to-Text-Modelle.",
"mediaHint": "Generieren über",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Leer lassen für kein Limit."
+ "limitHint": "Leer lassen für kein Limit.",
+ "usageThisMonth": "Nutzung diesen Monat",
+ "usageEmpty": "Diesen Monat noch keine Anfragen.",
+ "usageRequestsMonth": "{count} Anfr. diesen Monat"
},
"strategies": {
"title": "Routing-Strategie",
diff --git a/client/src/i18n/locales/el.json b/client/src/i18n/locales/el.json
index 6537dc8f..e7280900 100644
--- a/client/src/i18n/locales/el.json
+++ b/client/src/i18n/locales/el.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Ενσωματώσεις",
"imageTab": "Εικόνα",
"audioTab": "Ήχος",
- "imageTitle": "Μοντέλα εικόνας",
- "audioTitle": "Μοντέλα ήχου",
"imageDesc": "Μοντέλα δημιουργίας κειμένου σε εικόνα.",
"audioDesc": "Μοντέλα μετατροπής κειμένου σε ομιλία και ομιλίας σε κείμενο.",
"mediaHint": "Δημιουργία μέσω",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Αφήστε το κενό για κανένα όριο."
+ "limitHint": "Αφήστε το κενό για κανένα όριο.",
+ "usageThisMonth": "Χρήση αυτόν τον μήνα",
+ "usageEmpty": "Δεν υπάρχουν αιτήματα αυτόν τον μήνα.",
+ "usageRequestsMonth": "{count} αιτήματα αυτόν τον μήνα"
},
"strategies": {
"title": "Στρατηγική δρομολόγησης",
diff --git a/client/src/i18n/locales/en.json b/client/src/i18n/locales/en.json
index dc1bbb34..a7c31480 100644
--- a/client/src/i18n/locales/en.json
+++ b/client/src/i18n/locales/en.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Embeddings",
"imageTab": "Image",
"audioTab": "Audio",
- "imageTitle": "Image models",
- "audioTitle": "Audio models",
"imageDesc": "Text-to-image generation models.",
"audioDesc": "Text-to-speech and speech-to-text models.",
"mediaHint": "Generate via",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Leave blank for no limit."
+ "limitHint": "Leave blank for no limit.",
+ "usageThisMonth": "Usage this month",
+ "usageEmpty": "No requests yet this month.",
+ "usageRequestsMonth": "{count} req this month"
},
"strategies": {
"title": "Routing strategy",
diff --git a/client/src/i18n/locales/es.json b/client/src/i18n/locales/es.json
index 2cbb81a2..7f859831 100644
--- a/client/src/i18n/locales/es.json
+++ b/client/src/i18n/locales/es.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Embeddings",
"imageTab": "Imagen",
"audioTab": "Audio",
- "imageTitle": "Modelos de imagen",
- "audioTitle": "Modelos de audio",
"imageDesc": "Modelos de generación de texto a imagen.",
"audioDesc": "Modelos de texto a voz y de voz a texto.",
"mediaHint": "Generar mediante",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Déjalo en blanco para no aplicar límite."
+ "limitHint": "Déjalo en blanco para no aplicar límite.",
+ "usageThisMonth": "Uso de este mes",
+ "usageEmpty": "Aún no hay solicitudes este mes.",
+ "usageRequestsMonth": "{count} sol. este mes"
},
"strategies": {
"title": "Estrategia de enrutamiento",
diff --git a/client/src/i18n/locales/fa.json b/client/src/i18n/locales/fa.json
index 73fb3ca4..fe599e81 100644
--- a/client/src/i18n/locales/fa.json
+++ b/client/src/i18n/locales/fa.json
@@ -133,8 +133,6 @@
"embeddingsTab": "جاسازی ها",
"imageTab": "تصویر",
"audioTab": "صوتی",
- "imageTitle": "مدل های تصویری",
- "audioTitle": "مدل های صوتی",
"imageDesc": "مدل های تولید متن به تصویر",
"audioDesc": "مدل های تبدیل متن به گفتار و گفتار به متن.",
"mediaHint": "ایجاد از طریق",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "برای بدون محدودیت خالی بگذارید."
+ "limitHint": "برای بدون محدودیت خالی بگذارید.",
+ "usageThisMonth": "مصرف این ماه",
+ "usageEmpty": "هنوز درخواستی در این ماه نیست.",
+ "usageRequestsMonth": "{count} درخواست این ماه"
},
"strategies": {
"title": "استراتژی مسیریابی",
diff --git a/client/src/i18n/locales/fi.json b/client/src/i18n/locales/fi.json
index b39d0f7e..1d984fe8 100644
--- a/client/src/i18n/locales/fi.json
+++ b/client/src/i18n/locales/fi.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Upotukset",
"imageTab": "Kuva",
"audioTab": "Ääni",
- "imageTitle": "Kuvamallit",
- "audioTitle": "Äänimallit",
"imageDesc": "Tekstistä kuvaksi -generointimallit.",
"audioDesc": "Tekstistä puheeksi -mallit ja puheesta tekstiksi -mallit.",
"mediaHint": "Generoi",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Jätä tyhjäksi, jos ei rajaa."
+ "limitHint": "Jätä tyhjäksi, jos ei rajaa.",
+ "usageThisMonth": "Tämän kuun käyttö",
+ "usageEmpty": "Ei vielä pyyntöjä tässä kuussa.",
+ "usageRequestsMonth": "{count} pyyntöä tässä kuussa"
},
"strategies": {
"title": "Reititysstrategia",
diff --git a/client/src/i18n/locales/fr.json b/client/src/i18n/locales/fr.json
index ddf01524..c8f50727 100644
--- a/client/src/i18n/locales/fr.json
+++ b/client/src/i18n/locales/fr.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Embeddings",
"imageTab": "Image",
"audioTab": "Audio",
- "imageTitle": "Modèles d'image",
- "audioTitle": "Modèles audio",
"imageDesc": "Modèles de génération texte-image.",
"audioDesc": "Modèles de synthèse et de reconnaissance vocales.",
"mediaHint": "Générer via",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Laissez vide pour aucune limite."
+ "limitHint": "Laissez vide pour aucune limite.",
+ "usageThisMonth": "Utilisation ce mois-ci",
+ "usageEmpty": "Aucune requête ce mois-ci pour l'instant.",
+ "usageRequestsMonth": "{count} req. ce mois-ci"
},
"strategies": {
"title": "Stratégie de routage",
diff --git a/client/src/i18n/locales/gu.json b/client/src/i18n/locales/gu.json
index df52bb78..125feb2d 100644
--- a/client/src/i18n/locales/gu.json
+++ b/client/src/i18n/locales/gu.json
@@ -133,8 +133,6 @@
"embeddingsTab": "એમ્બેડિંગ્સ",
"imageTab": "છબી",
"audioTab": "ઓડિયો",
- "imageTitle": "છબી મોડેલો",
- "audioTitle": "ઓડિયો મોડલ્સ",
"imageDesc": "ટેક્સ્ટ-ટુ-ઇમેજ જનરેશન મોડલ્સ.",
"audioDesc": "ટેક્સ્ટ-ટુ-સ્પીચ અને સ્પીચ-ટુ-ટેક્સ્ટ મોડલ્સ.",
"mediaHint": "દ્વારા જનરેટ કરો",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "કોઈ મર્યાદા ન રાખવા ખાલી છોડો."
+ "limitHint": "કોઈ મર્યાદા ન રાખવા ખાલી છોડો.",
+ "usageThisMonth": "આ મહિનાનો વપરાશ",
+ "usageEmpty": "આ મહિને હજી કોઈ વિનંતી નથી.",
+ "usageRequestsMonth": "આ મહિને {count} વિનંતી"
},
"strategies": {
"title": "રૂટીંગ વ્યૂહરચના",
diff --git a/client/src/i18n/locales/ha.json b/client/src/i18n/locales/ha.json
index 11b980d1..105c40f7 100644
--- a/client/src/i18n/locales/ha.json
+++ b/client/src/i18n/locales/ha.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Abun ciki",
"imageTab": "Hoto",
"audioTab": "Audio",
- "imageTitle": "Samfuran hoto",
- "audioTitle": "Samfuran sauti",
"imageDesc": "Tsarin tsara rubutu-zuwa-hoto.",
"audioDesc": "Tsarin rubutu-zuwa-magana da magana-zuwa-rubutu.",
"mediaHint": "Ƙirƙira ta hanyar",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Bar shi fanko domin babu iyaka."
+ "limitHint": "Bar shi fanko domin babu iyaka.",
+ "usageThisMonth": "Amfani na wannan wata",
+ "usageEmpty": "Babu buƙatu tukuna wannan wata.",
+ "usageRequestsMonth": "buƙatu {count} wannan wata"
},
"strategies": {
"title": "Dabarar hanya",
diff --git a/client/src/i18n/locales/he.json b/client/src/i18n/locales/he.json
index d29e625c..06ee4a8d 100644
--- a/client/src/i18n/locales/he.json
+++ b/client/src/i18n/locales/he.json
@@ -133,8 +133,6 @@
"embeddingsTab": "הטבעות",
"imageTab": "תמונה",
"audioTab": "אודיו",
- "imageTitle": "מודלים של תמונות",
- "audioTitle": "דגמי אודיו",
"imageDesc": "מודלים ליצירת טקסט לתמונה.",
"audioDesc": "מודלים של טקסט לדיבור ודיבור לטקסט.",
"mediaHint": "יצור דרך",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "השאירו ריק כדי לא להגביל."
+ "limitHint": "השאירו ריק כדי לא להגביל.",
+ "usageThisMonth": "שימוש החודש",
+ "usageEmpty": "אין עדיין בקשות החודש.",
+ "usageRequestsMonth": "{count} בקשות החודש"
},
"strategies": {
"title": "אסטרטגיית ניתוב",
diff --git a/client/src/i18n/locales/hi.json b/client/src/i18n/locales/hi.json
index d39cad32..94c33e64 100644
--- a/client/src/i18n/locales/hi.json
+++ b/client/src/i18n/locales/hi.json
@@ -133,8 +133,6 @@
"embeddingsTab": "एंबेडिंग",
"imageTab": "छवि",
"audioTab": "ऑडियो",
- "imageTitle": "छवि मॉडल",
- "audioTitle": "ऑडियो मॉडल",
"imageDesc": "टेक्स्ट-टू-इमेज जनरेशन मॉडल।",
"audioDesc": "पाठ-से-वाक् और वाक्-से-पाठ मॉडल।",
"mediaHint": "के माध्यम से उत्पन्न करें",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "कोई सीमा न रखने के लिए खाली छोड़ें।"
+ "limitHint": "कोई सीमा न रखने के लिए खाली छोड़ें।",
+ "usageThisMonth": "इस महीने का उपयोग",
+ "usageEmpty": "इस महीने अभी कोई अनुरोध नहीं।",
+ "usageRequestsMonth": "इस महीने {count} अनुरोध"
},
"strategies": {
"title": "रूटिंग रणनीति",
diff --git a/client/src/i18n/locales/hr.json b/client/src/i18n/locales/hr.json
index 3f1bb63a..bab8ef3c 100644
--- a/client/src/i18n/locales/hr.json
+++ b/client/src/i18n/locales/hr.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Ugradnja",
"imageTab": "Slika",
"audioTab": "Audio",
- "imageTitle": "Modeli slika",
- "audioTitle": "Audio modeli",
"imageDesc": "Modeli generiranja teksta u sliku.",
"audioDesc": "Modeli pretvaranja teksta u govor i govora u tekst.",
"mediaHint": "Generirajte putem",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Ostavite prazno za bez ograničenja."
+ "limitHint": "Ostavite prazno za bez ograničenja.",
+ "usageThisMonth": "Potrošnja ovog mjeseca",
+ "usageEmpty": "Ovog mjeseca još nema zahtjeva.",
+ "usageRequestsMonth": "{count} zaht. ovog mjeseca"
},
"strategies": {
"title": "Strategija usmjeravanja",
diff --git a/client/src/i18n/locales/hu.json b/client/src/i18n/locales/hu.json
index e6fb2a57..322f3022 100644
--- a/client/src/i18n/locales/hu.json
+++ b/client/src/i18n/locales/hu.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Beágyazások",
"imageTab": "Kép",
"audioTab": "Hang",
- "imageTitle": "Képmodellek",
- "audioTitle": "Hangmodellek",
"imageDesc": "Szövegből képre generáló modellek.",
"audioDesc": "Szöveg-beszéd és beszéd-szöveg modellek.",
"mediaHint": "Generálj",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Hagyja üresen, ha nincs korlát."
+ "limitHint": "Hagyja üresen, ha nincs korlát.",
+ "usageThisMonth": "Havi felhasználás",
+ "usageEmpty": "Ebben a hónapban még nincs kérés.",
+ "usageRequestsMonth": "{count} kérés e hónapban"
},
"strategies": {
"title": "Útvonaltervezési stratégia",
diff --git a/client/src/i18n/locales/id.json b/client/src/i18n/locales/id.json
index 96e0259c..490a68fc 100644
--- a/client/src/i18n/locales/id.json
+++ b/client/src/i18n/locales/id.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Penyematan",
"imageTab": "Gambar",
"audioTab": "Audio",
- "imageTitle": "Model gambar",
- "audioTitle": "Model audio",
"imageDesc": "Model pembuatan teks-ke-gambar.",
"audioDesc": "Model teks-ke-ucapan dan ucapan-ke-teks.",
"mediaHint": "Hasilkan melalui",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Kosongkan untuk tanpa batas."
+ "limitHint": "Kosongkan untuk tanpa batas.",
+ "usageThisMonth": "Penggunaan bulan ini",
+ "usageEmpty": "Belum ada permintaan bulan ini.",
+ "usageRequestsMonth": "{count} permintaan bulan ini"
},
"strategies": {
"title": "Strategi perutean",
diff --git a/client/src/i18n/locales/ig.json b/client/src/i18n/locales/ig.json
index 005260d5..aac1c615 100644
--- a/client/src/i18n/locales/ig.json
+++ b/client/src/i18n/locales/ig.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Ntinye",
"imageTab": "Onyonyo",
"audioTab": "Audio",
- "imageTitle": "Ụdị onyonyo",
- "audioTitle": "Ụdị ọdịyo",
"imageDesc": "Ụdị ọgbọ ederede gaa na onyonyo.",
"audioDesc": "Ụdị ederede na-okwu na okwu-na-ederede.",
"mediaHint": "Mepụta site na",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Hapụ ya efu ka enweghị oke."
+ "limitHint": "Hapụ ya efu ka enweghị oke.",
+ "usageThisMonth": "Ojiji ọnwa a",
+ "usageEmpty": "Enweghị arịrịọ ọ bụla ọnwa a.",
+ "usageRequestsMonth": "arịrịọ {count} ọnwa a"
},
"strategies": {
"title": "Atụmatụ ụzọ",
diff --git a/client/src/i18n/locales/it.json b/client/src/i18n/locales/it.json
index ff597f1c..fe15cc82 100644
--- a/client/src/i18n/locales/it.json
+++ b/client/src/i18n/locales/it.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Embedding",
"imageTab": "Immagine",
"audioTab": "Audio",
- "imageTitle": "Modelli di immagini",
- "audioTitle": "Modelli audio",
"imageDesc": "Modelli di generazione testo-immagine.",
"audioDesc": "Modelli di sintesi e riconoscimento vocale.",
"mediaHint": "Genera tramite",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Lascia vuoto per nessun limite."
+ "limitHint": "Lascia vuoto per nessun limite.",
+ "usageThisMonth": "Utilizzo di questo mese",
+ "usageEmpty": "Nessuna richiesta questo mese.",
+ "usageRequestsMonth": "{count} rich. questo mese"
},
"strategies": {
"title": "Strategia di routing",
diff --git a/client/src/i18n/locales/ja.json b/client/src/i18n/locales/ja.json
index 2f15b9c9..c2d3f088 100644
--- a/client/src/i18n/locales/ja.json
+++ b/client/src/i18n/locales/ja.json
@@ -133,8 +133,6 @@
"embeddingsTab": "埋め込み",
"imageTab": "画像",
"audioTab": "オーディオ",
- "imageTitle": "画像モデル",
- "audioTitle": "オーディオモデル",
"imageDesc": "テキストから画像への生成モデル。",
"audioDesc": "テキスト読み上げモデルと音声読み上げモデル。",
"mediaHint": "経由で生成",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "制限なしにするには空欄にします。"
+ "limitHint": "制限なしにするには空欄にします。",
+ "usageThisMonth": "今月の使用量",
+ "usageEmpty": "今月はまだリクエストがありません。",
+ "usageRequestsMonth": "今月 {count} 件"
},
"strategies": {
"title": "ルーティング戦略",
diff --git a/client/src/i18n/locales/ka.json b/client/src/i18n/locales/ka.json
index 4f443aa6..cd8ec6f0 100644
--- a/client/src/i18n/locales/ka.json
+++ b/client/src/i18n/locales/ka.json
@@ -133,8 +133,6 @@
"embeddingsTab": "ჩაშენებები",
"imageTab": "გამოსახულება",
"audioTab": "აუდიო",
- "imageTitle": "გამოსახულების მოდელები",
- "audioTitle": "აუდიო მოდელები",
"imageDesc": "ტექსტის გამოსახულების გენერირების მოდელები.",
"audioDesc": "ტექსტი-სიტყვა და მეტყველება-ტექსტის მოდელები.",
"mediaHint": "გენერირება მეშვეობით",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "დატოვეთ ცარიელი ლიმიტის გარეშე."
+ "limitHint": "დატოვეთ ცარიელი ლიმიტის გარეშე.",
+ "usageThisMonth": "ამ თვის მოხმარება",
+ "usageEmpty": "ამ თვეში ჯერ მოთხოვნები არ არის.",
+ "usageRequestsMonth": "{count} მოთხოვნა ამ თვეში"
},
"strategies": {
"title": "მარშრუტიზაციის სტრატეგია",
diff --git a/client/src/i18n/locales/km.json b/client/src/i18n/locales/km.json
index 2a00233e..f4feeaf8 100644
--- a/client/src/i18n/locales/km.json
+++ b/client/src/i18n/locales/km.json
@@ -133,8 +133,6 @@
"embeddingsTab": "ការបញ្ចូល",
"imageTab": "រូបភាព",
"audioTab": "សំឡេង",
- "imageTitle": "ម៉ូដែលរូបភាព",
- "audioTitle": "ម៉ូដែលសំឡេង",
"imageDesc": "ម៉ូដែលបង្កើតអត្ថបទទៅរូបភាព។",
"audioDesc": "គំរូបម្លែងអត្ថបទទៅសំឡេង និងសំឡេងទៅអត្ថបទ។",
"mediaHint": "បង្កើតតាមរយៈ",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "ទុកឱ្យទទេ ដើម្បីគ្មានដែនកំណត់។"
+ "limitHint": "ទុកឱ្យទទេ ដើម្បីគ្មានដែនកំណត់។",
+ "usageThisMonth": "ការប្រើប្រាស់ខែនេះ",
+ "usageEmpty": "មិនទាន់មានសំណើនៅខែនេះទេ។",
+ "usageRequestsMonth": "ខែនេះ {count} សំណើ"
},
"strategies": {
"title": "យុទ្ធសាស្ត្រផ្លូវបញ្ជូន",
diff --git a/client/src/i18n/locales/kn.json b/client/src/i18n/locales/kn.json
index 148369e6..d1f03f4f 100644
--- a/client/src/i18n/locales/kn.json
+++ b/client/src/i18n/locales/kn.json
@@ -133,8 +133,6 @@
"embeddingsTab": "ಎಂಬೆಡಿಂಗ್‌ಗಳು",
"imageTab": "ಚಿತ್ರ",
"audioTab": "ಆಡಿಯೋ",
- "imageTitle": "ಚಿತ್ರ ಮಾದರಿಗಳು",
- "audioTitle": "ಆಡಿಯೋ ಮಾದರಿಗಳು",
"imageDesc": "ಪಠ್ಯದಿಂದ ಚಿತ್ರ ರಚನೆಯ ಮಾದರಿಗಳು.",
"audioDesc": "ಪಠ್ಯದಿಂದ ಭಾಷಣ ಮತ್ತು ಭಾಷಣದಿಂದ ಪಠ್ಯದ ಮಾದರಿಗಳು.",
"mediaHint": "ಮೂಲಕ ಉತ್ಪಾದಿಸಿ",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "ಮಿತಿ ಬೇಡವಾದರೆ ಖಾಲಿ ಬಿಡಿ."
+ "limitHint": "ಮಿತಿ ಬೇಡವಾದರೆ ಖಾಲಿ ಬಿಡಿ.",
+ "usageThisMonth": "ಈ ತಿಂಗಳ ಬಳಕೆ",
+ "usageEmpty": "ಈ ತಿಂಗಳು ಇನ್ನೂ ವಿನಂತಿಗಳಿಲ್ಲ.",
+ "usageRequestsMonth": "ಈ ತಿಂಗಳು {count} ವಿನಂತಿಗಳು"
},
"strategies": {
"title": "ರೂಟಿಂಗ್ ತಂತ್ರ",
diff --git a/client/src/i18n/locales/ko.json b/client/src/i18n/locales/ko.json
index 25780a5f..2291f9a4 100644
--- a/client/src/i18n/locales/ko.json
+++ b/client/src/i18n/locales/ko.json
@@ -133,8 +133,6 @@
"embeddingsTab": "임베딩",
"imageTab": "이미지",
"audioTab": "오디오",
- "imageTitle": "이미지 모델",
- "audioTitle": "오디오 모델",
"imageDesc": "Text-to-image generation models.",
"audioDesc": "Text-to-speech and speech-to-text models.",
"mediaHint": "다음을 통해 생성",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "제한 없음으로 두려면 비워 두세요."
+ "limitHint": "제한 없음으로 두려면 비워 두세요.",
+ "usageThisMonth": "이번 달 사용량",
+ "usageEmpty": "이번 달에는 아직 요청이 없습니다.",
+ "usageRequestsMonth": "이번 달 {count}건"
},
"strategies": {
"title": "라우팅 전략",
diff --git a/client/src/i18n/locales/lt.json b/client/src/i18n/locales/lt.json
index a619df58..236608fe 100644
--- a/client/src/i18n/locales/lt.json
+++ b/client/src/i18n/locales/lt.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Įterpimai",
"imageTab": "Vaizdas",
"audioTab": "Garsas",
- "imageTitle": "Vaizdų modeliai",
- "audioTitle": "Garso modeliai",
"imageDesc": "Teksto į vaizdą generavimo modeliai.",
"audioDesc": "Teksto į kalbą ir kalbos į tekstą modeliai.",
"mediaHint": "Generuoti per",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Palikite tuščią, jei nėra ribos."
+ "limitHint": "Palikite tuščią, jei nėra ribos.",
+ "usageThisMonth": "Šio mėnesio naudojimas",
+ "usageEmpty": "Šį mėnesį užklausų dar nėra.",
+ "usageRequestsMonth": "{count} užkl. šį mėnesį"
},
"strategies": {
"title": "Maršrutizavimo strategija",
diff --git a/client/src/i18n/locales/ml.json b/client/src/i18n/locales/ml.json
index 8d30e980..bdc0d565 100644
--- a/client/src/i18n/locales/ml.json
+++ b/client/src/i18n/locales/ml.json
@@ -133,8 +133,6 @@
"embeddingsTab": "ഉൾച്ചേർക്കലുകൾ",
"imageTab": "ചിത്രം",
"audioTab": "ഓഡിയോ",
- "imageTitle": "ഇമേജ് മോഡലുകൾ",
- "audioTitle": "ഓഡിയോ മോഡലുകൾ",
"imageDesc": "ടെക്സ്റ്റ്-ടു-ഇമേജ് ജനറേഷൻ മോഡലുകൾ.",
"audioDesc": "ടെക്സ്റ്റ്-ടു-സ്പീച്ച്, സ്പീച്ച്-ടു-ടെക്സ്റ്റ് മോഡലുകൾ.",
"mediaHint": "വഴി സൃഷ്ടിക്കുക",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "പരിധി വേണ്ടെങ്കിൽ ശൂന്യമായി വിടുക."
+ "limitHint": "പരിധി വേണ്ടെങ്കിൽ ശൂന്യമായി വിടുക.",
+ "usageThisMonth": "ഈ മാസത്തെ ഉപയോഗം",
+ "usageEmpty": "ഈ മാസം ഇതുവരെ അഭ്യർത്ഥനകളില്ല.",
+ "usageRequestsMonth": "ഈ മാസം {count} അഭ്യർത്ഥനകൾ"
},
"strategies": {
"title": "റൂട്ടിംഗ് തന്ത്രം",
diff --git a/client/src/i18n/locales/mr.json b/client/src/i18n/locales/mr.json
index 7db49378..757f60af 100644
--- a/client/src/i18n/locales/mr.json
+++ b/client/src/i18n/locales/mr.json
@@ -133,8 +133,6 @@
"embeddingsTab": "एम्बेडिंग",
"imageTab": "प्रतिमा",
"audioTab": "ऑडिओ",
- "imageTitle": "प्रतिमा मॉडेल",
- "audioTitle": "ऑडिओ मॉडेल्स",
"imageDesc": "मजकूर ते प्रतिमा निर्मिती मॉडेल.",
"audioDesc": "टेक्स्ट-टू-स्पीच आणि स्पीच-टू-टेक्स्ट मॉडेल.",
"mediaHint": "द्वारे व्युत्पन्न करा",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "मर्यादा नको असल्यास रिकामे ठेवा."
+ "limitHint": "मर्यादा नको असल्यास रिकामे ठेवा.",
+ "usageThisMonth": "या महिन्याचा वापर",
+ "usageEmpty": "या महिन्यात अद्याप विनंत्या नाहीत.",
+ "usageRequestsMonth": "या महिन्यात {count} विनंत्या"
},
"strategies": {
"title": "राउटिंग धोरण",
diff --git a/client/src/i18n/locales/ms.json b/client/src/i18n/locales/ms.json
index 68fe1e01..e5f8d8a4 100644
--- a/client/src/i18n/locales/ms.json
+++ b/client/src/i18n/locales/ms.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Penyisipan",
"imageTab": "Imej",
"audioTab": "Audio",
- "imageTitle": "Model imej",
- "audioTitle": "Model audio",
"imageDesc": "Model penjanaan teks-ke-imej.",
"audioDesc": "Model teks-ke-ucapan dan pertuturan-ke-teks.",
"mediaHint": "Jana melalui",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Biarkan kosong untuk tiada had."
+ "limitHint": "Biarkan kosong untuk tiada had.",
+ "usageThisMonth": "Penggunaan bulan ini",
+ "usageEmpty": "Tiada permintaan lagi bulan ini.",
+ "usageRequestsMonth": "{count} permintaan bulan ini"
},
"strategies": {
"title": "Strategi penghalaan",
diff --git a/client/src/i18n/locales/my.json b/client/src/i18n/locales/my.json
index 6575a6c8..9654aeaf 100644
--- a/client/src/i18n/locales/my.json
+++ b/client/src/i18n/locales/my.json
@@ -133,8 +133,6 @@
"embeddingsTab": "ထည့်သွင်းမှုများ",
"imageTab": "ပုံ",
"audioTab": "အသံ",
- "imageTitle": "ပုံရိပ်မော်ဒယ်များ",
- "audioTitle": "အသံမော်ဒယ်များ",
"imageDesc": "စာသားမှ ပုံသို့ ဖန်တီးမှု မော်ဒယ်များ။",
"audioDesc": "စာသားမှ အသံသို့ ပြောင်းလဲခြင်းနှင့် အသံမှ စာသားသို့ ပြောင်းလဲခြင်း မော်ဒယ်များ။",
"mediaHint": "ထုတ်လုပ်ခြင်းမှတဆင့်",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "ကန့်သတ်ချက်မလိုပါက ကွက်လပ်ထားပါ။"
+ "limitHint": "ကန့်သတ်ချက်မလိုပါက ကွက်လပ်ထားပါ။",
+ "usageThisMonth": "ဤလအသုံးပြုမှု",
+ "usageEmpty": "ဤလတွင် တောင်းဆိုမှု မရှိသေးပါ။",
+ "usageRequestsMonth": "ဤလတွင် တောင်းဆိုမှု {count} ခု"
},
"strategies": {
"title": "လမ်းကြောင်းသတ်မှတ်မှု မဟာဗျူဟာ",
diff --git a/client/src/i18n/locales/ne.json b/client/src/i18n/locales/ne.json
index 32e24539..e9a80a98 100644
--- a/client/src/i18n/locales/ne.json
+++ b/client/src/i18n/locales/ne.json
@@ -133,8 +133,6 @@
"embeddingsTab": "सम्मिलित गर्नुहोस्",
"imageTab": "छवि",
"audioTab": "अडियो",
- "imageTitle": "छवि मोडेलहरू",
- "audioTitle": "अडियो मोडेलहरू",
"imageDesc": "पाठ-देखि-छवि उत्पादन मोडेलहरू।",
"audioDesc": "पाठ-देखि-भाषण र भाषण-देखि-पाठ मोडेलहरू।",
"mediaHint": "यसबाट उत्पन्न गर्नुहोस्",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "कुनै सीमा नराख्न खाली छोड्नुहोस्।"
+ "limitHint": "कुनै सीमा नराख्न खाली छोड्नुहोस्।",
+ "usageThisMonth": "यो महिनाको प्रयोग",
+ "usageEmpty": "यो महिना अहिलेसम्म कुनै अनुरोध छैन।",
+ "usageRequestsMonth": "यो महिना {count} अनुरोध"
},
"strategies": {
"title": "राउटिङ रणनीति",
diff --git a/client/src/i18n/locales/nl.json b/client/src/i18n/locales/nl.json
index b19c569d..242b4b3d 100644
--- a/client/src/i18n/locales/nl.json
+++ b/client/src/i18n/locales/nl.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Embeddings",
"imageTab": "Afbeelding",
"audioTab": "Audio",
- "imageTitle": "Beeldmodellen",
- "audioTitle": "Audiomodellen",
"imageDesc": "Tekst-naar-beeld generatiemodellen.",
"audioDesc": "Tekst-naar-spraak en spraak-naar-tekst modellen.",
"mediaHint": "Genereer via",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Laat leeg voor geen limiet."
+ "limitHint": "Laat leeg voor geen limiet.",
+ "usageThisMonth": "Gebruik deze maand",
+ "usageEmpty": "Nog geen verzoeken deze maand.",
+ "usageRequestsMonth": "{count} verz. deze maand"
},
"strategies": {
"title": "Routingstrategie",
diff --git a/client/src/i18n/locales/no.json b/client/src/i18n/locales/no.json
index 2d803a8f..22d35878 100644
--- a/client/src/i18n/locales/no.json
+++ b/client/src/i18n/locales/no.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Innleiringer",
"imageTab": "Bilde",
"audioTab": "Lyd",
- "imageTitle": "Bildemodeller",
- "audioTitle": "Lydmodeller",
"imageDesc": "Modeller for tekst-til-bilde-generering.",
"audioDesc": "Tekst-til-tale og tale-til-tekst-modeller.",
"mediaHint": "Generer via",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "La stå tomt for ingen grense."
+ "limitHint": "La stå tomt for ingen grense.",
+ "usageThisMonth": "Bruk denne måneden",
+ "usageEmpty": "Ingen forespørsler denne måneden ennå.",
+ "usageRequestsMonth": "{count} forespørsler denne måneden"
},
"strategies": {
"title": "Routingstrategi",
diff --git a/client/src/i18n/locales/or.json b/client/src/i18n/locales/or.json
index 588f6a3f..c122f43b 100644
--- a/client/src/i18n/locales/or.json
+++ b/client/src/i18n/locales/or.json
@@ -133,8 +133,6 @@
"embeddingsTab": "ଏମ୍ବେଡିଂ",
"imageTab": "ଚିତ୍ର",
"audioTab": "ଅଡିଓ",
- "imageTitle": "ପ୍ରତିଛବି ମଡେଲ",
- "audioTitle": "ଅଡିଓ ମଡେଲ",
"imageDesc": "ଟେକ୍ସଟ୍-ରୁ-ଫଟୋ ଜେନେରେସନ୍ ମଡେଲ୍।",
"audioDesc": "ଟେକ୍ସଟ୍-ରୁ-ସ୍ପିଚ୍ ଏବଂ ସ୍ପିଚ୍-ରୁ-ଟେକ୍ସଟ୍ ମଡେଲ୍।",
"mediaHint": "ମାଧ୍ୟମରେ ସୃଷ୍ଟି କରନ୍ତୁ",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "କୌଣସି ସୀମା ନ ରଖିବାକୁ ଖାଲି ଛାଡ଼ନ୍ତୁ।"
+ "limitHint": "କୌଣସି ସୀମା ନ ରଖିବାକୁ ଖାଲି ଛାଡ଼ନ୍ତୁ।",
+ "usageThisMonth": "ଏହି ମାସର ବ୍ୟବହାର",
+ "usageEmpty": "ଏହି ମାସରେ ଏପର୍ଯ୍ୟନ୍ତ କୌଣସି ଅନୁରୋଧ ନାହିଁ।",
+ "usageRequestsMonth": "ଏହି ମାସରେ {count} ଅନୁରୋଧ"
},
"strategies": {
"title": "ରାଉଟିଂ ରଣନୀତି",
diff --git a/client/src/i18n/locales/pa.json b/client/src/i18n/locales/pa.json
index 7a254df6..966404c6 100644
--- a/client/src/i18n/locales/pa.json
+++ b/client/src/i18n/locales/pa.json
@@ -133,8 +133,6 @@
"embeddingsTab": "ਏਮਬੈਡਿੰਗਸ",
"imageTab": "ਚਿੱਤਰ",
"audioTab": "ਆਡੀਓ",
- "imageTitle": "ਚਿੱਤਰ ਮਾਡਲ",
- "audioTitle": "ਆਡੀਓ ਮਾਡਲ",
"imageDesc": "ਟੈਕਸਟ ਤੋਂ ਚਿੱਤਰ ਬਣਾਉਣ ਵਾਲੇ ਮਾਡਲ।",
"audioDesc": "ਟੈਕਸਟ-ਟੂ-ਸਪੀਚ ਅਤੇ ਸਪੀਚ-ਟੂ-ਟੈਕਸਟ ਮਾਡਲ।",
"mediaHint": "ਰਾਹੀਂ ਤਿਆਰ ਕਰੋ",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "ਕੋਈ ਹੱਦ ਨਾ ਰੱਖਣ ਲਈ ਖਾਲੀ ਛੱਡੋ।"
+ "limitHint": "ਕੋਈ ਹੱਦ ਨਾ ਰੱਖਣ ਲਈ ਖਾਲੀ ਛੱਡੋ।",
+ "usageThisMonth": "ਇਸ ਮਹੀਨੇ ਦੀ ਵਰਤੋਂ",
+ "usageEmpty": "ਇਸ ਮਹੀਨੇ ਹਾਲੇ ਕੋਈ ਬੇਨਤੀ ਨਹੀਂ।",
+ "usageRequestsMonth": "ਇਸ ਮਹੀਨੇ {count} ਬੇਨਤੀਆਂ"
},
"strategies": {
"title": "ਰੂਟਿੰਗ ਰਣਨੀਤੀ",
diff --git a/client/src/i18n/locales/pl.json b/client/src/i18n/locales/pl.json
index 0b409eab..655f2211 100644
--- a/client/src/i18n/locales/pl.json
+++ b/client/src/i18n/locales/pl.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Osadzenia",
"imageTab": "Obraz",
"audioTab": "Dźwięk",
- "imageTitle": "Modele obrazu",
- "audioTitle": "Modele dźwiękowe",
"imageDesc": "Modele generowania tekstu na obraz.",
"audioDesc": "Modele zamiany tekstu na mowę i mowy na tekst.",
"mediaHint": "Generuj przez",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Pozostaw puste, aby nie było limitu."
+ "limitHint": "Pozostaw puste, aby nie było limitu.",
+ "usageThisMonth": "Zużycie w tym miesiącu",
+ "usageEmpty": "Brak żądań w tym miesiącu.",
+ "usageRequestsMonth": "{count} żąd. w tym miesiącu"
},
"strategies": {
"title": "Strategia routingu",
diff --git a/client/src/i18n/locales/pt-BR.json b/client/src/i18n/locales/pt-BR.json
index be3008fd..b88a3947 100644
--- a/client/src/i18n/locales/pt-BR.json
+++ b/client/src/i18n/locales/pt-BR.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Embeddings",
"imageTab": "Imagem",
"audioTab": "Áudio",
- "imageTitle": "Modelos de imagem",
- "audioTitle": "Modelos de áudio",
"imageDesc": "Modelos de geração de texto para imagem.",
"audioDesc": "Modelos de texto para fala e de fala para texto.",
"mediaHint": "Gerar via",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Deixe em branco para não ter limite."
+ "limitHint": "Deixe em branco para não ter limite.",
+ "usageThisMonth": "Uso neste mês",
+ "usageEmpty": "Ainda não há solicitações neste mês.",
+ "usageRequestsMonth": "{count} sol. neste mês"
},
"strategies": {
"title": "Estratégia de roteamento",
diff --git a/client/src/i18n/locales/pt-PT.json b/client/src/i18n/locales/pt-PT.json
index 8de6b5e8..a5631425 100644
--- a/client/src/i18n/locales/pt-PT.json
+++ b/client/src/i18n/locales/pt-PT.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Embeddings",
"imageTab": "Imagem",
"audioTab": "Áudio",
- "imageTitle": "Modelos de imagem",
- "audioTitle": "Modelos de áudio",
"imageDesc": "Modelos de geração de texto para imagem.",
"audioDesc": "Modelos de texto para fala e de voz para texto.",
"mediaHint": "Gerar via",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Deixe em branco para não ter limite."
+ "limitHint": "Deixe em branco para não ter limite.",
+ "usageThisMonth": "Utilização este mês",
+ "usageEmpty": "Ainda não há pedidos este mês.",
+ "usageRequestsMonth": "{count} ped. este mês"
},
"strategies": {
"title": "Estratégia de encaminhamento",
diff --git a/client/src/i18n/locales/ro.json b/client/src/i18n/locales/ro.json
index 967e49e0..108fcb99 100644
--- a/client/src/i18n/locales/ro.json
+++ b/client/src/i18n/locales/ro.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Încorporații",
"imageTab": "Imagine",
"audioTab": "Audio",
- "imageTitle": "Modele de imagine",
- "audioTitle": "Modele audio",
"imageDesc": "Modele de generare text-to-image.",
"audioDesc": "Modele text-to-speech și speech-to-text.",
"mediaHint": "Generează prin",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Lăsați gol pentru nicio limită."
+ "limitHint": "Lăsați gol pentru nicio limită.",
+ "usageThisMonth": "Utilizare luna aceasta",
+ "usageEmpty": "Nicio cerere luna aceasta.",
+ "usageRequestsMonth": "{count} cereri luna aceasta"
},
"strategies": {
"title": "Strategia de rutare",
diff --git a/client/src/i18n/locales/ru.json b/client/src/i18n/locales/ru.json
index 1375c713..cdfea0c6 100644
--- a/client/src/i18n/locales/ru.json
+++ b/client/src/i18n/locales/ru.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Вложения",
"imageTab": "Изображение",
"audioTab": "Аудио",
- "imageTitle": "Модели изображений",
- "audioTitle": "Аудио модели",
"imageDesc": "Модели преобразования текста в изображение.",
"audioDesc": "Модели преобразования текста в речь и речи в текст.",
"mediaHint": "Создать через",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Оставьте пустым, чтобы не было ограничения."
+ "limitHint": "Оставьте пустым, чтобы не было ограничения.",
+ "usageThisMonth": "Расход за этот месяц",
+ "usageEmpty": "В этом месяце запросов пока нет.",
+ "usageRequestsMonth": "{count} запр. за месяц"
},
"strategies": {
"title": "Стратегия маршрутизации",
diff --git a/client/src/i18n/locales/si.json b/client/src/i18n/locales/si.json
index e75a1d61..04a182fb 100644
--- a/client/src/i18n/locales/si.json
+++ b/client/src/i18n/locales/si.json
@@ -133,8 +133,6 @@
"embeddingsTab": "කාවැද්දීම",
"imageTab": "රූපය",
"audioTab": "ශ්රව්ය උපකරණ",
- "imageTitle": "රූප ආකෘති",
- "audioTitle": "ශ්රව්ය ආකෘති",
"imageDesc": "පෙළ සිට රූප උත්පාදන ආකෘති.",
"audioDesc": "පෙළ සිට කථනය සහ කථනයෙන් පෙළ ආකෘති.",
"mediaHint": "හරහා ජනනය කරන්න",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "සීමාවක් නොමැති නම් හිස්ව තබන්න."
+ "limitHint": "සීමාවක් නොමැති නම් හිස්ව තබන්න.",
+ "usageThisMonth": "මෙම මාසයේ භාවිතය",
+ "usageEmpty": "මෙම මාසයේ තවම ඉල්ලීම් නැත.",
+ "usageRequestsMonth": "මෙම මාසයේ ඉල්ලීම් {count}"
},
"strategies": {
"title": "මාර්ගගත කිරීමේ උපාය",
diff --git a/client/src/i18n/locales/sk.json b/client/src/i18n/locales/sk.json
index 4c026baa..7f89ca21 100644
--- a/client/src/i18n/locales/sk.json
+++ b/client/src/i18n/locales/sk.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Vkladania",
"imageTab": "Obrázok",
"audioTab": "Zvuk",
- "imageTitle": "Obrazové modely",
- "audioTitle": "Audio modely",
"imageDesc": "Modely generovania textu na obraz.",
"audioDesc": "Modely prevodu textu na reč a prevodu reči na text.",
"mediaHint": "Generovať cez",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Ponechajte prázdne pre žiadny limit."
+ "limitHint": "Ponechajte prázdne pre žiadny limit.",
+ "usageThisMonth": "Spotreba tento mesiac",
+ "usageEmpty": "Tento mesiac zatiaľ žiadne požiadavky.",
+ "usageRequestsMonth": "{count} pož. tento mesiac"
},
"strategies": {
"title": "Stratégia smerovania",
diff --git a/client/src/i18n/locales/sr.json b/client/src/i18n/locales/sr.json
index 022e7693..c58f92aa 100644
--- a/client/src/i18n/locales/sr.json
+++ b/client/src/i18n/locales/sr.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Ембеддингс",
"imageTab": "Слика",
"audioTab": "Аудио",
- "imageTitle": "Модели слика",
- "audioTitle": "Аудио модели",
"imageDesc": "Модели генерисања текста у слику.",
"audioDesc": "Модели претварања текста у говор и говора у текст.",
"mediaHint": "Генеришите преко",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Оставите празно за без ограничења."
+ "limitHint": "Оставите празно за без ограничења.",
+ "usageThisMonth": "Потрошња овог месеца",
+ "usageEmpty": "Овог месеца још нема захтева.",
+ "usageRequestsMonth": "{count} захтева овог месеца"
},
"strategies": {
"title": "Стратегија рутирања",
diff --git a/client/src/i18n/locales/sv.json b/client/src/i18n/locales/sv.json
index 5a4f0967..88919dc2 100644
--- a/client/src/i18n/locales/sv.json
+++ b/client/src/i18n/locales/sv.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Inbäddningar",
"imageTab": "Bild",
"audioTab": "Ljud",
- "imageTitle": "Bildmodeller",
- "audioTitle": "Ljudmodeller",
"imageDesc": "Text-till-bild-genereringsmodeller.",
"audioDesc": "Text-till-tal och tal-till-text-modeller.",
"mediaHint": "Generera via",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Lämna tomt för ingen gräns."
+ "limitHint": "Lämna tomt för ingen gräns.",
+ "usageThisMonth": "Användning denna månad",
+ "usageEmpty": "Inga förfrågningar denna månad än.",
+ "usageRequestsMonth": "{count} förfr. denna månad"
},
"strategies": {
"title": "Routingstrategi",
diff --git a/client/src/i18n/locales/sw.json b/client/src/i18n/locales/sw.json
index 7b705a5f..23a36819 100644
--- a/client/src/i18n/locales/sw.json
+++ b/client/src/i18n/locales/sw.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Upachikaji",
"imageTab": "Picha",
"audioTab": "Sauti",
- "imageTitle": "Mifano ya picha",
- "audioTitle": "Mifano ya sauti",
"imageDesc": "Miundo ya kutengeneza maandishi-hadi-picha.",
"audioDesc": "Miundo ya maandishi-hadi-hotuba na mifano ya hotuba-kwa-maandishi.",
"mediaHint": "Tengeneza kupitia",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Acha wazi ili kusiwe na kikomo."
+ "limitHint": "Acha wazi ili kusiwe na kikomo.",
+ "usageThisMonth": "Matumizi ya mwezi huu",
+ "usageEmpty": "Bado hakuna maombi mwezi huu.",
+ "usageRequestsMonth": "maombi {count} mwezi huu"
},
"strategies": {
"title": "Mkakati wa uelekezaji",
diff --git a/client/src/i18n/locales/ta.json b/client/src/i18n/locales/ta.json
index 493673dd..ccffca42 100644
--- a/client/src/i18n/locales/ta.json
+++ b/client/src/i18n/locales/ta.json
@@ -133,8 +133,6 @@
"embeddingsTab": "உட்பொதிப்புகள்",
"imageTab": "படம்",
"audioTab": "ஆடியோ",
- "imageTitle": "பட மாதிரிகள்",
- "audioTitle": "ஆடியோ மாதிரிகள்",
"imageDesc": "உரையிலிருந்து பட உருவாக்க மாதிரிகள்.",
"audioDesc": "உரையிலிருந்து பேச்சு மற்றும் பேச்சுக்கு உரை மாதிரிகள்.",
"mediaHint": "மூலம் உருவாக்கவும்",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "வரம்பு வேண்டாம் எனில் காலியாக விடவும்."
+ "limitHint": "வரம்பு வேண்டாம் எனில் காலியாக விடவும்.",
+ "usageThisMonth": "இந்த மாத பயன்பாடு",
+ "usageEmpty": "இந்த மாதம் இதுவரை கோரிக்கைகள் இல்லை.",
+ "usageRequestsMonth": "இந்த மாதம் {count} கோரிக்கை"
},
"strategies": {
"title": "ரூட்டிங் உத்தி",
diff --git a/client/src/i18n/locales/te.json b/client/src/i18n/locales/te.json
index 104b27a9..0e2be529 100644
--- a/client/src/i18n/locales/te.json
+++ b/client/src/i18n/locales/te.json
@@ -133,8 +133,6 @@
"embeddingsTab": "పొందుపరచడం",
"imageTab": "చిత్రం",
"audioTab": "ఆడియో",
- "imageTitle": "చిత్ర నమూనాలు",
- "audioTitle": "ఆడియో నమూనాలు",
"imageDesc": "టెక్స్ట్-టు-ఇమేజ్ జనరేషన్ మోడల్స్.",
"audioDesc": "టెక్స్ట్-టు-స్పీచ్ మరియు స్పీచ్-టు-టెక్స్ట్ మోడల్స్.",
"mediaHint": "ద్వారా రూపొందించండి",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "పరిమితి వద్దనుకుంటే ఖాళీగా వదిలేయండి."
+ "limitHint": "పరిమితి వద్దనుకుంటే ఖాళీగా వదిలేయండి.",
+ "usageThisMonth": "ఈ నెల వినియోగం",
+ "usageEmpty": "ఈ నెలలో ఇంకా అభ్యర్థనలు లేవు.",
+ "usageRequestsMonth": "ఈ నెలలో {count} అభ్యర్థనలు"
},
"strategies": {
"title": "రూటింగ్ వ్యూహం",
diff --git a/client/src/i18n/locales/th.json b/client/src/i18n/locales/th.json
index e5c65e53..8b8ec162 100644
--- a/client/src/i18n/locales/th.json
+++ b/client/src/i18n/locales/th.json
@@ -133,8 +133,6 @@
"embeddingsTab": "การฝัง",
"imageTab": "รูปภาพ",
"audioTab": "เสียง",
- "imageTitle": "โมเดลรูปภาพ",
- "audioTitle": "โมเดลเครื่องเสียง",
"imageDesc": "แบบจำลองการสร้างข้อความเป็นรูปภาพ",
"audioDesc": "รูปแบบการอ่านออกเสียงข้อความและคำพูดเป็นข้อความ",
"mediaHint": "สร้างผ่าน",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "เว้นว่างไว้หากไม่จำกัด"
+ "limitHint": "เว้นว่างไว้หากไม่จำกัด",
+ "usageThisMonth": "การใช้งานเดือนนี้",
+ "usageEmpty": "ยังไม่มีคำขอในเดือนนี้",
+ "usageRequestsMonth": "เดือนนี้ {count} คำขอ"
},
"strategies": {
"title": "กลยุทธ์การกำหนดเส้นทาง",
diff --git a/client/src/i18n/locales/tl.json b/client/src/i18n/locales/tl.json
index 46127fbc..886a22bf 100644
--- a/client/src/i18n/locales/tl.json
+++ b/client/src/i18n/locales/tl.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Mga Embedding",
"imageTab": "Larawan",
"audioTab": "Audio",
- "imageTitle": "Mga modelo ng imahe",
- "audioTitle": "Mga Audio Model",
"imageDesc": "Mga modelo ng pagbuo ng teksto-sa-larawan.",
"audioDesc": "Mga modelo ng text-to-speech at speech-to-text.",
"mediaHint": "Mag-generate sa pamamagitan ng",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Iwanang blangko para walang limitasyon."
+ "limitHint": "Iwanang blangko para walang limitasyon.",
+ "usageThisMonth": "Paggamit ngayong buwan",
+ "usageEmpty": "Wala pang mga kahilingan ngayong buwan.",
+ "usageRequestsMonth": "{count} kahilingan ngayong buwan"
},
"strategies": {
"title": "Estratehiya sa Pag-ruta",
diff --git a/client/src/i18n/locales/tr.json b/client/src/i18n/locales/tr.json
index 0abf480f..1d406fc8 100644
--- a/client/src/i18n/locales/tr.json
+++ b/client/src/i18n/locales/tr.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Gömmeler",
"imageTab": "Resim",
"audioTab": "Ses",
- "imageTitle": "Resim modelleri",
- "audioTitle": "Ses modelleri",
"imageDesc": "Metinden görüntüye üretim modelleri.",
"audioDesc": "Metinden konuşmaya ve konuşmayı metne dönüştürme modelleri.",
"mediaHint": "Şununla oluştur:",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Sınır olmaması için boş bırakın."
+ "limitHint": "Sınır olmaması için boş bırakın.",
+ "usageThisMonth": "Bu ayki kullanım",
+ "usageEmpty": "Bu ay henüz istek yok.",
+ "usageRequestsMonth": "bu ay {count} istek"
},
"strategies": {
"title": "Yönlendirme stratejisi",
diff --git a/client/src/i18n/locales/uk.json b/client/src/i18n/locales/uk.json
index 42147bc4..db13c84b 100644
--- a/client/src/i18n/locales/uk.json
+++ b/client/src/i18n/locales/uk.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Вбудовування",
"imageTab": "Зображення",
"audioTab": "Аудіо",
- "imageTitle": "Іміджеві моделі",
- "audioTitle": "Аудіо моделі",
"imageDesc": "Моделі генерації тексту в зображення.",
"audioDesc": "Моделі синтезу мовлення та мовлення в текст.",
"mediaHint": "Згенерувати через",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Залиште порожнім, щоб не було обмеження."
+ "limitHint": "Залиште порожнім, щоб не було обмеження.",
+ "usageThisMonth": "Витрати цього місяця",
+ "usageEmpty": "Цього місяця ще немає запитів.",
+ "usageRequestsMonth": "{count} запитів цього місяця"
},
"strategies": {
"title": "Стратегія маршрутизації",
diff --git a/client/src/i18n/locales/ur.json b/client/src/i18n/locales/ur.json
index 2ccb56c7..dd946b3a 100644
--- a/client/src/i18n/locales/ur.json
+++ b/client/src/i18n/locales/ur.json
@@ -133,8 +133,6 @@
"embeddingsTab": "ایمبیڈنگز",
"imageTab": "تصویر",
"audioTab": "آڈیو",
- "imageTitle": "تصویری ماڈلز",
- "audioTitle": "آڈیو ماڈلز",
"imageDesc": "ٹیکسٹ ٹو امیج جنریشن ماڈلز۔",
"audioDesc": "متن سے تقریر اور تقریر سے متن کے ماڈل۔",
"mediaHint": "کے ذریعے پیدا کریں۔",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "کوئی حد نہ رکھنے کے لیے خالی چھوڑیں۔"
+ "limitHint": "کوئی حد نہ رکھنے کے لیے خالی چھوڑیں۔",
+ "usageThisMonth": "اس مہینے کا استعمال",
+ "usageEmpty": "اس مہینے ابھی کوئی درخواست نہیں۔",
+ "usageRequestsMonth": "اس مہینے {count} درخواستیں"
},
"strategies": {
"title": "روٹنگ کی حکمت عملی",
diff --git a/client/src/i18n/locales/uz.json b/client/src/i18n/locales/uz.json
index 190dc8c3..fc1435c8 100644
--- a/client/src/i18n/locales/uz.json
+++ b/client/src/i18n/locales/uz.json
@@ -133,8 +133,6 @@
"embeddingsTab": "O'rnatishlar",
"imageTab": "Rasm",
"audioTab": "Audio",
- "imageTitle": "Tasvir modellari",
- "audioTitle": "Audio modellar",
"imageDesc": "Matnni tasvirga yaratish modellari.",
"audioDesc": "Matndan nutqqa va nutqdan matnga modellar.",
"mediaHint": "orqali yaratish",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Cheklov boʻlmasligi uchun boʻsh qoldiring."
+ "limitHint": "Cheklov boʻlmasligi uchun boʻsh qoldiring.",
+ "usageThisMonth": "Shu oydagi foydalanish",
+ "usageEmpty": "Bu oyda hali so'rovlar yo'q.",
+ "usageRequestsMonth": "bu oyda {count} ta so'rov"
},
"strategies": {
"title": "Marshrut strategiyasi",
diff --git a/client/src/i18n/locales/vi.json b/client/src/i18n/locales/vi.json
index c51a0e7e..d37f8700 100644
--- a/client/src/i18n/locales/vi.json
+++ b/client/src/i18n/locales/vi.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Nhúng",
"imageTab": "Hình ảnh",
"audioTab": "Âm thanh",
- "imageTitle": "Mô hình hình ảnh",
- "audioTitle": "Mô hình âm thanh",
"imageDesc": "Các mô hình tạo văn bản thành hình ảnh.",
"audioDesc": "Mô hình chuyển văn bản thành giọng nói và chuyển lời nói thành văn bản.",
"mediaHint": "Tạo thông qua",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Để trống nếu không giới hạn."
+ "limitHint": "Để trống nếu không giới hạn.",
+ "usageThisMonth": "Mức dùng tháng này",
+ "usageEmpty": "Chưa có yêu cầu nào trong tháng này.",
+ "usageRequestsMonth": "{count} yêu cầu tháng này"
},
"strategies": {
"title": "Chiến lược định tuyến",
diff --git a/client/src/i18n/locales/yo.json b/client/src/i18n/locales/yo.json
index 571e7b6f..5f2a8e92 100644
--- a/client/src/i18n/locales/yo.json
+++ b/client/src/i18n/locales/yo.json
@@ -133,8 +133,6 @@
"embeddingsTab": "Awọn ifibọ",
"imageTab": "Aworan",
"audioTab": "Ohun",
- "imageTitle": "Awọn awoṣe aworan",
- "audioTitle": "Audio si dede",
"imageDesc": "Awọn awoṣe iran ọrọ-si-image.",
"audioDesc": "Ọrọ-si-ọrọ ati awọn awoṣe ọrọ-si-ọrọ.",
"mediaHint": "Ṣe ina nipasẹ",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "Fi sílẹ̀ ní òfìfo fún àìní ààlà."
+ "limitHint": "Fi sílẹ̀ ní òfìfo fún àìní ààlà.",
+ "usageThisMonth": "Ìlò oṣù yìí",
+ "usageEmpty": "Kò sí ìbéèrè kankan ní oṣù yìí.",
+ "usageRequestsMonth": "ìbéèrè {count} ní oṣù yìí"
},
"strategies": {
"title": "Ilana ipa ọna",
diff --git a/client/src/i18n/locales/zh-CN.json b/client/src/i18n/locales/zh-CN.json
index dd4ca3f0..b893aece 100644
--- a/client/src/i18n/locales/zh-CN.json
+++ b/client/src/i18n/locales/zh-CN.json
@@ -133,8 +133,6 @@
"embeddingsTab": "嵌入模型",
"imageTab": "图像",
"audioTab": "音频",
- "imageTitle": "图像模型",
- "audioTitle": "音频模型",
"imageDesc": "文本生成图像模型。",
"audioDesc": "文本转语音与语音转文本模型。",
"mediaHint": "通过以下端点生成",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "留空表示不限制。"
+ "limitHint": "留空表示不限制。",
+ "usageThisMonth": "本月用量",
+ "usageEmpty": "本月还没有请求。",
+ "usageRequestsMonth": "本月 {count} 次请求"
},
"strategies": {
"title": "路由策略",
diff --git a/client/src/i18n/locales/zh-TW.json b/client/src/i18n/locales/zh-TW.json
index aefe59d9..5cf8604f 100644
--- a/client/src/i18n/locales/zh-TW.json
+++ b/client/src/i18n/locales/zh-TW.json
@@ -133,8 +133,6 @@
"embeddingsTab": "嵌入模型",
"imageTab": "圖像",
"audioTab": "音訊",
- "imageTitle": "圖像模型",
- "audioTitle": "音訊模型",
"imageDesc": "文字轉圖像生成模型。",
"audioDesc": "文字轉語音與語音轉文字模型。",
"mediaHint": "透過以下端點生成",
@@ -219,7 +217,10 @@
"limitRpd": "RPD",
"limitTpm": "TPM",
"limitTpd": "TPD",
- "limitHint": "留空表示不限制。"
+ "limitHint": "留空表示不限制。",
+ "usageThisMonth": "本月用量",
+ "usageEmpty": "本月尚無請求。",
+ "usageRequestsMonth": "本月 {count} 次請求"
},
"strategies": {
"title": "路由策略",
diff --git a/client/src/pages/EmbeddingsPage.tsx b/client/src/pages/EmbeddingsPage.tsx
index 9b0451ac..3b91e0f4 100644
--- a/client/src/pages/EmbeddingsPage.tsx
+++ b/client/src/pages/EmbeddingsPage.tsx
@@ -23,6 +23,7 @@ import { Switch } from '@/components/ui/switch'
import { PageHeader } from '@/components/page-header'
import { FloatingBar } from '@/components/floating-bar'
import { ModelsTabs } from '@/components/models-tabs'
+import { UsageSummaryCard } from '@/components/usage-summary-card'
import { useI18n } from '@/i18n'
interface ProviderEntry {
@@ -51,7 +52,15 @@ interface EmbeddingsData {
}
interface UsageData {
- families: { family: string; requestsToday: number; tokensMonth: number }[]
+ families: {
+ family: string
+ requestsToday: number
+ tokensMonth: number
+ platform?: string | null
+ quotaLabel?: string | null
+ }[]
+ totalTokensMonth?: number
+ totalRequestsToday?: number
}
function formatTokens(n: number): string {
@@ -252,6 +261,21 @@ export default function EmbeddingsPage() {
{t('embeddings.autoDescription')}
</p>
+ {usage && usage.families.length > 0 && (
+ <UsageSummaryCard
+ unit="tokens"
+ total={usage.totalTokensMonth ?? 0}
+ requestsToday={usage.totalRequestsToday ?? 0}
+ rows={usage.families.map(f => ({
+ label: f.family,
+ platform: f.platform ?? null,
+ quotaLabel: f.quotaLabel ?? null,
+ amount: f.tokensMonth,
+ requestsToday: f.requestsToday,
+ }))}
+ />
+ )}
+
{isLoading ? (
<>
<CardSkeleton />
diff --git a/server/src/__tests__/routes/embeddings-usage.test.ts b/server/src/__tests__/routes/embeddings-usage.test.ts
new file mode 100644
index 00000000..af0c03cb
--- /dev/null
+++ b/server/src/__tests__/routes/embeddings-usage.test.ts
@@ -0,0 +1,103 @@
+import { beforeEach, describe, expect, it } from 'vitest';
+import type { Express } from 'express';
+import { createApp } from '../../app.js';
+import { initDb, getDb } from '../../db/index.js';
+import { mintDashboardToken, isGatedApiPath } from '../helpers/auth.js';
+
+// GET /api/embeddings/usage backs the month-to-date card on the Embeddings tab.
+// The response gained `platform`, `quotaLabel` and the two totals; the three
+// original per-family fields are load-bearing for the family rows and must keep
+// their shape. There is deliberately no budget field — embedding_models carries
+// only a free-text quota_label, so a percentage would have to be invented.
+
+let dashToken = '';
+
+async function get(app: Express, path: string) {
+ const server = app.listen(0);
+ const addr = server.address() as any;
+ const res = await fetch(`http://127.0.0.1:${addr.port}${path}`, {
+ headers: isGatedApiPath(path) ? { Authorization: `Bearer ${dashToken}` } : {},
+ });
+ const data = await res.json().catch(() => null);
+ server.close();
+ return { status: res.status, body: data };
+}
+
+function seedFamily(family: string, platform: string, modelId: string, priority: number, quota: string, enabled = 1) {
+ getDb().prepare(`
+ INSERT INTO embedding_models (family, platform, model_id, display_name, dimensions, priority, enabled, quota_label)
+ VALUES (?, ?, ?, ?, 1024, ?, ?, ?)
+ `).run(family, platform, modelId, modelId, priority, enabled, quota);
+}
+
+describe('GET /api/embeddings/usage', () => {
+ let app: Express;
+
+ beforeEach(() => {
+ process.env.ENCRYPTION_KEY = '0'.repeat(64);
+ initDb(':memory:');
+ getDb().prepare('DELETE FROM embedding_models').run();
+ app = createApp();
+ dashToken = mintDashboardToken();
+ });
+
+ it('keeps the original per-family fields', async () => {
+ seedFamily('bge-m3', 'cloudflare', '@cf/baai/bge-m3', 1, '10K neurons/day (shared)');
+
+ const { status, body } = await get(app, '/api/embeddings/usage');
+ expect(status).toBe(200);
+ expect(body.families[0]).toMatchObject({
+ family: 'bge-m3',
+ requestsToday: 0,
+ tokensMonth: 0,
+ });
+ });
+
+ it('reports the highest-priority enabled provider for the legend', async () => {
+ // Priority 2 is seeded first on purpose: order must come from priority.
+ seedFamily('bge-m3', 'huggingface', 'BAAI/bge-m3', 2, '$0.10/mo credits');
+ seedFamily('bge-m3', 'cloudflare', '@cf/baai/bge-m3', 1, '10K neurons/day (shared)');
+
+ const { body } = await get(app, '/api/embeddings/usage');
+ const f = body.families.find((x: any) => x.family === 'bge-m3');
+ expect(f.platform).toBe('cloudflare');
+ expect(f.quotaLabel).toBe('10K neurons/day (shared)');
+ });
+
+ it('sums tokens this month and totals across families', async () => {
+ seedFamily('bge-m3', 'cloudflare', '@cf/baai/bge-m3', 1, '10K neurons/day (shared)');
+ seedFamily('embed-v4.0', 'cohere', 'embed-v4.0', 1, '1K calls/mo');
+ getDb().prepare(`
+ INSERT INTO requests (platform, model_id, status, input_tokens, output_tokens, latency_ms, created_at, request_type)
+ VALUES ('cloudflare', '@cf/baai/bge-m3', 'success', 120, 0, 10, datetime('now'), 'embedding'),
+ ('cloudflare', '@cf/baai/bge-m3', 'success', 80, 0, 10, datetime('now'), 'embedding'),
+ ('cohere', 'embed-v4.0', 'success', 50, 0, 10, datetime('now'), 'embedding')
+ `).run();
+
+ const { body } = await get(app, '/api/embeddings/usage');
+ expect(body.totalTokensMonth).toBe(250);
+ expect(body.totalRequestsToday).toBe(3);
+ expect(body.totalTokensMonth).toBe(
+ body.families.reduce((s: number, f: any) => s + f.tokensMonth, 0),
+ );
+ });
+
+ it('ignores chat traffic on the same platform and model id', async () => {
+ seedFamily('bge-m3', 'cloudflare', '@cf/baai/bge-m3', 1, '10K neurons/day (shared)');
+ getDb().prepare(`
+ INSERT INTO requests (platform, model_id, status, input_tokens, output_tokens, latency_ms, created_at, request_type)
+ VALUES ('cloudflare', '@cf/baai/bge-m3', 'success', 999, 0, 10, datetime('now'), 'chat')
+ `).run();
+
+ const { body } = await get(app, '/api/embeddings/usage');
+ expect(body.totalTokensMonth).toBe(0);
+ });
+
+ it('exposes no budget field — quota labels are not token budgets', async () => {
+ seedFamily('bge-m3', 'cloudflare', '@cf/baai/bge-m3', 1, '10K neurons/day (shared)');
+
+ const { body } = await get(app, '/api/embeddings/usage');
+ expect(body).not.toHaveProperty('totalBudget');
+ for (const f of body.families) expect(f).not.toHaveProperty('budget');
+ });
+});
diff --git a/server/src/__tests__/routes/media-usage.test.ts b/server/src/__tests__/routes/media-usage.test.ts
new file mode 100644
index 00000000..190219a5
--- /dev/null
+++ b/server/src/__tests__/routes/media-usage.test.ts
@@ -0,0 +1,112 @@
+import { beforeEach, describe, expect, it } from 'vitest';
+import type { Express } from 'express';
+import { createApp } from '../../app.js';
+import { initDb, getDb } from '../../db/index.js';
+import { mintDashboardToken, isGatedApiPath } from '../helpers/auth.js';
+
+// GET /api/media/usage backs the month-to-date card on the Image and Audio
+// tabs. Image and audio calls are billed per image or per character, not per
+// token, so the unit here is requests. There is deliberately no budget field:
+// media_models only carries a free-text quota_label, so any percentage would
+// be invented.
+
+let dashToken = '';
+
+async function get(app: Express, path: string) {
+ const server = app.listen(0);
+ const addr = server.address() as any;
+ const res = await fetch(`http://127.0.0.1:${addr.port}${path}`, {
+ headers: isGatedApiPath(path) ? { Authorization: `Bearer ${dashToken}` } : {},
+ });
+ const data = await res.json().catch(() => null);
+ server.close();
+ return { status: res.status, body: data };
+}
+
+function seedModels() {
+ const insert = getDb().prepare(`
+ INSERT INTO media_models (platform, model_id, display_name, modality, priority, enabled, quota_label)
+ VALUES (?, ?, ?, ?, ?, ?, ?)
+ `);
+ insert.run('cloudflare', 'flux-1-schnell', 'FLUX.1 [schnell]', 'image', 1, 1, 'Shared 10k neurons/day');
+ insert.run('pollinations', 'turbo', 'Turbo', 'image', 2, 1, '1024x1024 - 40 req/min free');
+ insert.run('groq', 'playai-tts', 'PlayAI TTS', 'audio', 1, 1, 'WAV/PCM - 30+ voices');
+ // Disabled rows stay out of the summary entirely.
+ insert.run('cloudflare', 'melotts', 'MeloTTS', 'audio', 2, 0, 'Shared 10k neurons/day');
+}
+
+function seedRequest(platform: string, modelId: string, type: string, when: string) {
+ getDb().prepare(`
+ INSERT INTO requests (platform, model_id, status, input_tokens, output_tokens, latency_ms, created_at, request_type)
+ VALUES (?, ?, 'success', 0, 0, 10, ?, ?)
+ `).run(platform, modelId, when, type);
+}
+
+describe('GET /api/media/usage', () => {
+ let app: Express;
+
+ beforeEach(() => {
+ process.env.ENCRYPTION_KEY = '0'.repeat(64);
+ initDb(':memory:');
+ app = createApp();
+ dashToken = mintDashboardToken();
+ seedModels();
+ });
+
+ it('rejects a missing or unknown modality', async () => {
+ expect((await get(app, '/api/media/usage')).status).toBe(400);
+ expect((await get(app, '/api/media/usage?modality=video')).status).toBe(400);
+ });
+
+ it('counts this month\'s requests per model and separates today', async () => {
+ seedRequest('cloudflare', 'flux-1-schnell', 'image', "datetime('now')");
+ getDb().prepare(`
+ INSERT INTO requests (platform, model_id, status, input_tokens, output_tokens, latency_ms, created_at, request_type)
+ VALUES ('cloudflare', 'flux-1-schnell', 'success', 0, 0, 10, datetime('now'), 'image'),
+ ('cloudflare', 'flux-1-schnell', 'success', 0, 0, 10, datetime('now', 'start of month'), 'image'),
+ ('pollinations', 'turbo', 'success', 0, 0, 10, datetime('now'), 'image')
+ `).run();
+
+ const { status, body } = await get(app, '/api/media/usage?modality=image');
+ expect(status).toBe(200);
+ expect(body.modality).toBe('image');
+
+ const flux = body.models.find((m: any) => m.modelId === 'flux-1-schnell');
+ expect(flux.requestsMonth).toBeGreaterThanOrEqual(2);
+ expect(flux.requestsToday).toBeGreaterThanOrEqual(1);
+ expect(flux.quotaLabel).toBe('Shared 10k neurons/day');
+ expect(body.totalRequestsMonth).toBe(
+ body.models.reduce((s: number, m: any) => s + m.requestsMonth, 0),
+ );
+ });
+
+ it('scopes to one modality and skips disabled rows', async () => {
+ const image = await get(app, '/api/media/usage?modality=image');
+ const audio = await get(app, '/api/media/usage?modality=audio');
+
+ expect(image.body.models.map((m: any) => m.modelId).sort()).toEqual(['flux-1-schnell', 'turbo']);
+ // MeloTTS is disabled, so only PlayAI is reported.
+ expect(audio.body.models.map((m: any) => m.modelId)).toEqual(['playai-tts']);
+ });
+
+ it('does not count chat or embedding traffic', async () => {
+ seedRequest('cloudflare', 'flux-1-schnell', 'chat', "datetime('now')");
+ getDb().prepare(`
+ INSERT INTO requests (platform, model_id, status, input_tokens, output_tokens, latency_ms, created_at, request_type)
+ VALUES ('cloudflare', 'flux-1-schnell', 'success', 0, 0, 10, datetime('now'), 'chat')
+ `).run();
+
+ const { body } = await get(app, '/api/media/usage?modality=image');
+ const flux = body.models.find((m: any) => m.modelId === 'flux-1-schnell');
+ expect(flux.requestsMonth).toBe(0);
+ });
+
+ it('reports no budget field — media quota labels are not token budgets', async () => {
+ const { body } = await get(app, '/api/media/usage?modality=audio');
+ for (const m of body.models) {
+ expect(m).not.toHaveProperty('budget');
+ expect(m).not.toHaveProperty('totalBudget');
+ }
+ expect(body).not.toHaveProperty('totalBudget');
+ });
+});
diff --git a/server/src/routes/embeddings.ts b/server/src/routes/embeddings.ts
index df1a2c63..43569978 100644
--- a/server/src/routes/embeddings.ts
+++ b/server/src/routes/embeddings.ts
@@ -262,6 +262,13 @@ embeddingsRouter.delete('/custom/:id', (req: Request, res: Response) => {
// Per-family usage: requests today (most embedding quotas are daily/RPM) and
// tokens this calendar month, from the tagged request log.
+//
+// Deliberately no budget denominator. `models.monthly_token_budget` gives chat
+// a real number to divide by; `embedding_models` only carries a free-text
+// `quota_label` ("10K neurons/day (shared)", "$0.10/mo credits"), and there is
+// no honest conversion from Cloudflare Neurons or dollar credits to tokens. So
+// the summary reports what was actually spent and shows each provider's quota
+// label verbatim, rather than inventing a ceiling to draw a percentage against.
embeddingsRouter.get('/usage', (_req: Request, res: Response) => {
const db = getDb();
const usage = db.prepare(`
@@ -278,11 +285,28 @@ embeddingsRouter.get('/usage', (_req: Request, res: Response) => {
GROUP BY em.family
`).all() as { family: string; requests_today: number; tokens_month: number }[];
+ // One representative provider per family for the legend: the highest-priority
+ // enabled row, so the label matches whoever actually serves the family first.
+ const meta = db.prepare(`
+ SELECT family, platform, quota_label
+ FROM embedding_models
+ WHERE enabled = 1
+ ORDER BY priority ASC
+ `).all() as { family: string; platform: string; quota_label: string | null }[];
+ const metaByFamily = new Map<string, { platform: string; quota_label: string | null }>();
+ for (const m of meta) if (!metaByFamily.has(m.family)) metaByFamily.set(m.family, m);
+
+ const families = usage.map(u => ({
+ family: u.family,
+ requestsToday: u.requests_today,
+ tokensMonth: u.tokens_month,
+ platform: metaByFamily.get(u.family)?.platform ?? null,
+ quotaLabel: metaByFamily.get(u.family)?.quota_label ?? null,
+ }));
+
res.json({
- families: usage.map(u => ({
- family: u.family,
- requestsToday: u.requests_today,
- tokensMonth: u.tokens_month,
- })),
+ families,
+ totalTokensMonth: families.reduce((s, f) => s + f.tokensMonth, 0),
+ totalRequestsToday: families.reduce((s, f) => s + f.requestsToday, 0),
});
});
diff --git a/server/src/routes/media.ts b/server/src/routes/media.ts
index b04c899d..88a0cbda 100644
--- a/server/src/routes/media.ts
+++ b/server/src/routes/media.ts
@@ -42,6 +42,59 @@ mediaRouter.get('/', (_req: Request, res: Response) => {
});
});
+// Per-model usage for one modality: requests today and this calendar month,
+// from the tagged request log. Image and audio calls are billed per image or
+// per character, not per token, so `requests` is the honest unit here and no
+// token counts are reported. As with embeddings there is no budget
+// denominator — `media_models` only carries a free-text `quota_label`
+// ("Shared 10k neurons/day", "MP3 output - multilingual", which is not even a
+// quota) — so the summary shows spend and the label verbatim.
+mediaRouter.get('/usage', (req: Request, res: Response) => {
+ const parsed = z.enum(['image', 'audio']).safeParse(req.query.modality);
+ if (!parsed.success) {
+ res.status(400).json({ error: { message: 'modality must be image or audio' } });
+ return;
+ }
+ const modality = parsed.data;
+ const db = getDb();
+
+ const rows = db.prepare(`
+ SELECT mm.id, mm.platform, mm.model_id, mm.display_name, mm.quota_label,
+ COALESCE(SUM(CASE WHEN r.created_at >= datetime('now', 'start of day') THEN 1 ELSE 0 END), 0) AS requests_today,
+ COALESCE(SUM(CASE WHEN r.created_at >= datetime('now', 'start of month') THEN 1 ELSE 0 END), 0) AS requests_month
+ FROM media_models mm
+ LEFT JOIN requests r
+ ON r.request_type = ?
+ AND r.status = 'success'
+ AND r.platform = mm.platform
+ AND r.model_id = mm.model_id
+ AND r.created_at >= datetime('now', 'start of month')
+ WHERE mm.modality = ? AND mm.enabled = 1
+ GROUP BY mm.id
+ ORDER BY mm.priority ASC
+ `).all(modality, modality) as {
+ id: number; platform: string; model_id: string; display_name: string;
+ quota_label: string | null; requests_today: number; requests_month: number;
+ }[];
+
+ const models = rows.map(r => ({
+ id: r.id,
+ platform: r.platform,
+ modelId: r.model_id,
+ displayName: r.display_name,
+ quotaLabel: r.quota_label,
+ requestsToday: r.requests_today,
+ requestsMonth: r.requests_month,
+ }));
+
+ res.json({
+ modality,
+ models,
+ totalRequestsToday: models.reduce((s, m) => s + m.requestsToday, 0),
+ totalRequestsMonth: models.reduce((s, m) => s + m.requestsMonth, 0),
+ });
+});
+
const customMediaSchema = z.object({
baseUrl: z.string().url('baseUrl must be a valid URL'),
model: z.string().min(1),