1var e={rhythm:[{pricing:{input:{audio:{tokens:`0.00000208`}},output:{text:{tokens:`0`}}}}],symphony:[{pricing:{request:`0`,input:{text:{tokens:`0.00000018`,cached_tokens:`0.000000018`},image:{tokens:`0.00000070`,count:`0`},audio:{tokens:`0.00000198`},video:{tokens:`0.00000070`}},output:{text:{tokens:`0.00000126`},audio:{tokens:`0.0000277778`}}}}],"symphony-notes":[{pricing:{request:`0`,input:{text:{tokens:`0.0000002925`,cached_tokens:`0.00000003`},audio:{tokens:`0.0000031667`}},output:{text:{tokens:`0.00000203`}}}}],chorus:[{label:`Built-in voice`,pricing:{input:{text:{characters:`0`}},output:{audio:{tokens:`0.00001944`}}}},{label:`Cloned voice`,pricing:{input:{text:{characters:`0.0000045`},audio:{tokens:`0.0000277778`}},output:{audio:{tokens:`0`}}}},{label:`Designed voice`,pricing:{input:{text:{characters:`0.000015`}},output:{audio:{tokens:`0`}}}}]},t=[`text`,`image`,`audio`,`video`],n=`chorus`,r=`symphony`,i=`rhythm`,a=`symphony-notes`,o={top_p:`Top P`,top_k:`Top K`,max_tokens:`Max tokens`,min_tokens:`Min tokens`,seed:`Seed`,n:`N`};function s(e){return[...e].sort((e,n)=>{let r=t.indexOf(e),i=t.indexOf(n);return r===-1&&i===-1?e.localeCompare(n):r===-1?1:i===-1?-1:r-i})}function c(e){return s([...new Set([...e.architecture.input_modalities,...e.architecture.output_modalities])])}function l(e){let t=e.trim().toLowerCase();return t?t.charAt(0).toUpperCase()+t.slice(1):e}function u(e){let t=e.toLowerCase();return t===`api`?`API`:t===`id`?`ID`:t===`tts`?`TTS`:t===`url`?`URL`:t===`top`?`Top`:t===`p`?`P`:t===`k`?`K`:t===`n`?`N`:t.charAt(0).toUpperCase()+t.slice(1)}function d(e){return e.replace(/[./]+/g,` `).replace(/[-_]+/g,` `).trim().split(/\s+/).map(u).join(` `)}function f(e){return o[e]??d(e)}function p(e){let t=e.replace(/(\.\d*?[1-9])0+$/u,`$1`).replace(/\.0+$/u,``),[n,r=``]=t.split(`.`);return r.length>=2?t:`${n}.${r.padEnd(2,`0`)}`}function m(e){let t=e>=1?2:e>=.01?4:e>=1e-4?6:8;return`$${p(e.toFixed(t))}`}function h(e){let t=e.match(/[-+]?\d*\.?\d+(?:e[-+]?\d+)?/iu);if(!t)return null;let n=Number(t[0]);return Number.isFinite(n)?n:null}function g(e){let t=e.toLowerCase();return/(?:\/|\bper\b)\s*(?:1\s*)?m(?:illion)?\b/u.test(t)||/\b1m\b/u.test(t)?1e6:/(?:\/|\bper\b)\s*(?:1\s*)?k\b/u.test(t)||/\bthousand\b/u.test(t)?1e3:/(?:\/|\bper\b)\s*token\b/u.test(t)?1:null}function _(e){let t=e.toLowerCase();return t.includes(`image`)?`/ image`:t.includes(`audio token`)?`/ audio token`:t.includes(`token`)?`/ token`:t.includes(`second`)?`/ second`:t.includes(`minute`)?`/ minute`:t.includes(`hour`)?`/ hour`:t.includes(`video`)?`/ video`:``}function v(e,t,n){return t===null?n===1e6?e*1e6:e:e/t*n}function y(e,t){return t===null?e:e/t}var b=977,x=10,S=60,C=3600;function w(e,t){let n=h(e);if(n===null)return{value:e,unit:``};let r=g(e);return t===`token`?{value:m(v(n,r,1e6)),unit:`/ 1M tokens`}:t===`characters`?{value:m(v(n,r,1e6)),unit:`/ 1M characters`}:t===`audio_minute`?{value:m(y(n,r)*x*S),unit:`/ minute`}:t===`audio_hour`?{value:m(y(n,r)*x*C),unit:`/ hour`}:t===`visual_megapixel`?{value:m(y(n,r)*b),unit:`/ megapixel`}:t===`per_unit`?{value:m(n),unit:``}:{value:m(n),unit:_(e)}}var T=[`input`,`output`],E={input:`Input`,output:`Output`};function D(e,t,n={}){return t===`count`?`per_unit`:t===`characters`?`characters`:t===`tokens`||t===`cached_tokens`?e===`audio`?n.audioUnit===`hour`?`audio_hour`:`audio_minute`:e===`image`||e===`video`?`visual_megapixel`:`token`:`generic`}function O(e){return e===`image`?`Image`:e===`audio`?`Audio`:e===`video`?`Video`:e===`text`?`Text`:d(e)}function k(e,t){let n=O(e);return t===`cached_tokens`?`Cached ${n.toLowerCase()}`:t===`tokens`||t===`count`||t===`characters`?n:`${n} ${d(t).toLowerCase()}`}function A(e,t,n){return t===`count`?`/ ${O(e).toLowerCase()}`:n}function j(e){let n=t.indexOf(e);return n===-1?t.length:n}function M(e){return e===`tokens`||e===`characters`?0:e===`cached_tokens`?1:e===`count`?2:3}function N(e){if(!e||!e.trim()||e.trim().toLowerCase()===`free`)return!0;let t=h(e);return t===null?!1:t<=0}function P(e){let t=[];if(!e)return t;for(let n of[`input`,`output`]){let r=e[n];if(!r)continue;let i=Object.keys(r);for(let e of i){let i=r[e];if(!i)continue;let a=Object.keys(i);for(let r of a){let a=i[r];a!=null&&t.push({direction:n,modality:e,unit:r,rawValue:String(a)})}}}return t}function F(e,t={}){let n=new Map,r=new Map;for(let i of P(e)){if(N(i.rawValue))continue;let e=D(i.modality,i.unit,t),a=w(i.rawValue,e),o=`${i.direction}.${i.modality}.${i.unit}`,s=n.get(i.direction)??{id:i.direction,label:E[i.direction],items:[]};s.items.push({key:o,label:k(i.modality,i.unit),value:a.value,unit:A(i.modality,i.unit,a.unit),rawValue:i.rawValue}),r.set(o,j(i.modality)*10+M(i.unit)),n.set(i.direction,s)}return T.map(e=>n.get(e)).filter(e=>!!e).map(e=>({...e,items:[...e.items].sort((e,t)=>
1{let n=r.get(e.key)??99,i=r.get(t.key)??99;return n===i?e.label.localeCompare(t.label):n-i})}))}function I(e){let t=e?.request;if(!t||N(t))return null;let n=h(t);return{value:n===null?t:m(n),rawValue:t}}function L(e,t={}){let n=P(e),r=n.filter(e=>!N(e.rawValue)),i=I(e),a=!i&&n.length>0&&r.length===0;return{allFree:a,sections:a?[]:F(e,t),requestFee:i}}function R(t,n={}){return(e[t.id]??[]).map(e=>({label:e.label??null,pricing:L(e.pricing,n)}))}var z=[`input.audio.tokens`,`output.audio.tokens`,`input.text.characters`,`output.text.tokens`,`input.text.tokens`],B=[`input.text.tokens`,`output.text.tokens`,`output.voice.count`,`input.text.characters`,`input.audio.tokens`,`output.audio.tokens`,`request`],V=[`cached_tokens`],H=2;function U(e){let t=R(e,{audioUnit:`hour`}).flatMap(({label:e,pricing:{sections:t,requestFee:n}})=>[...t.flatMap(t=>t.items.map(n=>({key:n.key,label:e?`${e} ${n.label.toLowerCase()}`:`${t.label} ${n.label.toLowerCase()}`,value:n.value,unit:n.unit,group:e}))),...n?[{key:`request`,label:`Per request`,value:n.value,unit:``,group:e}]:[]]),n=t.filter(e=>e.group===t[0]?.group),r=z.find(e=>n.some(t=>t.key===e)),i=r?n.find(e=>e.key===r):t[0]??null,a=t.filter(e=>e!==i&&!V.some(t=>e.key.endsWith(`.${t}`))),o=e=>{let t=B.indexOf(e.key);return t===-1?B.length:t};return{headline:i,supporting:[...a].sort((e,t)=>o(e)-o(t)).slice(0,H)}}function W(e){return!Number.isFinite(e)||e<=0?`Unknown`:e>=1e3?`${e>=1e5?Math.round(e/1e3).toString():(e/1e3).toFixed(1).replace(/\.0$/,``)}K tokens`:`${e} tokens`}function G(e){return e?typeof e==`string`?e:e.id:``}function K(e){return G(e)===a}function q(e){return G(e)===n}var J=[`qwen/qwen3.8-27b`];function Y(e){return J.includes(e.id)}function X(e){let t=e.architecture.input_modalities,n=e.architecture.output_modalities;return q(e)?`Speech synthesis`:Y(e)?`Text`:t.includes(`video`)?`Omni-Modal`:t.includes(`image`)&&n.includes(`audio`)?`Omnimodal reasoning`:t.includes(`image`)?`Vision model`:n.includes(`audio`)?`Speech model`:n.includes(`image`)?`Image generation`:K(e)?`Audio captioning`:t.includes(`audio`)?`Speech to text`:`Language model`}export{W as a,c,R as d,q as f,n as i,U as l,r as n,l as o,s as p,i as r,f as s,a as t,X as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.