The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
/**
* Money spent or allowed (project spend, cost caps): "$0.00", "<$0.01", "$1.25". formatCost's
* "Free" is for prices, not for what was spent. Kept apart from the catalog so the projects list
* doesn't load it.
*/
export function formatUsd(usd: number | null | undefined): string {
const v = usd ?? 0;
if (v <= 0) return "$0.00";
if (v < 0.01) return "<$0.01";
return `$${v.toFixed(2)}`;
}