AVale-SGLMAI commited on
Commit
89d0e46
·
verified ·
1 Parent(s): 6210809

Add loomlensai-build.html

Browse files
Files changed (1) hide show
  1. loomlensai-build.html +259 -0
loomlensai-build.html ADDED
@@ -0,0 +1,259 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Build with LoomLensAI™ — Embed or API</title>
7
+ <style>
8
+ :root {
9
+ --bg: #0a0e1a; --surface: #111827; --surface2: #1a2235;
10
+ --border: #1e2d4a; --accent: #8b5cf6; --accent-bright: #a78bfa;
11
+ --text: #e8edf5; --text-dim: #8899bb; --text-muted: #4a6a9a;
12
+ --green: #10b981; --yellow: #f59e0b;
13
+ }
14
+ * { box-sizing: border-box; margin: 0; padding: 0; }
15
+ body {
16
+ background: var(--bg); color: var(--text);
17
+ font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
18
+ min-height: 100vh; padding: 40px 20px;
19
+ }
20
+ .container { max-width: 820px; margin: 0 auto; }
21
+
22
+ .logo-bar { text-align: center; margin-bottom: 48px; }
23
+ .logo-bar .logo { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
24
+
25
+ h1 { font-size: 38px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 16px; line-height: 1.2; }
26
+ h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
27
+ h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--accent-bright); }
28
+
29
+ .subtitle { font-size: 18px; color: var(--text-dim); line-height: 1.7; margin-bottom: 48px; }
30
+
31
+ .card {
32
+ background: var(--surface); border: 1px solid var(--border);
33
+ border-radius: 12px; padding: 28px; margin-bottom: 24px;
34
+ }
35
+
36
+ /* Options grid */
37
+ .options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
38
+ @media (max-width: 640px) { .options { grid-template-columns: 1fr; } }
39
+
40
+ .option { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
41
+ .option-icon { font-size: 36px; margin-bottom: 12px; }
42
+ .option h3 { color: var(--text); font-size: 15px; margin-bottom: 8px; }
43
+ .option p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
44
+ .option .tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; }
45
+ .tag-api { background: rgba(139,92,246,0.15); color: var(--accent-bright); border: 1px solid rgba(139,92,246,0.3); }
46
+ .tag-embed { background: rgba(16,185,129,0.15); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }
47
+
48
+ /* Code blocks */
49
+ pre {
50
+ background: var(--surface2); border: 1px solid var(--border);
51
+ border-radius: 8px; padding: 16px; overflow-x: auto;
52
+ font-size: 13px; color: var(--text-dim); line-height: 1.7;
53
+ margin: 12px 0;
54
+ }
55
+ code { font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace; }
56
+ .comment { color: #6a9955; }
57
+ .string { color: #ce9178; }
58
+ .keyword { color: #569cd6; }
59
+
60
+ /* CTA */
61
+ .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
62
+ .btn {
63
+ display: inline-flex; align-items: center; gap: 8px;
64
+ padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 700;
65
+ text-decoration: none; cursor: pointer; border: none; font-family: inherit;
66
+ transition: background 0.2s;
67
+ }
68
+ .btn-primary { background: var(--accent); color: #fff; }
69
+ .btn-primary:hover { background: var(--accent-bright); }
70
+ .btn-outline { background: transparent; color: var(--accent-bright); border: 1px solid var(--accent); }
71
+ .btn-outline:hover { background: rgba(139,92,246,0.1); }
72
+
73
+ /* Pricing table */
74
+ .pricing-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
75
+ .pricing-table th, .pricing-table td {
76
+ text-align: left; padding: 10px 14px; font-size: 13px;
77
+ border-bottom: 1px solid var(--border);
78
+ }
79
+ .pricing-table th { color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 11px; }
80
+ .pricing-table td { color: var(--text-dim); }
81
+ .pricing-table tr:last-child td { border-bottom: none; }
82
+ .pricing-table .price { font-weight: 700; color: var(--text); }
83
+ .pricing-table .highlight { color: var(--green); font-weight: 700; }
84
+
85
+ .note { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
86
+
87
+ .logo-img { height: 64px; width: 64px; border-radius: 16px; object-fit: cover; margin-bottom: 8px; }
88
+ </style>
89
+ </head>
90
+ <body>
91
+
92
+ <div class="container">
93
+
94
+ <div class="logo-bar">
95
+ <div class="logo">By SignalloomAI™</div>
96
+ <img class="logo-img" src="https://huggingface.co/spaces/Signalloom-ai/LoomLensAI/resolve/main/logo.png" alt="LoomLensAI logo" onerror="this.style.display='none'" />
97
+ </div>
98
+
99
+ <div style="text-align:center; margin-bottom: 48px;">
100
+ <h1>Build with LoomLensAI™</h1>
101
+ <p class="subtitle">Embed real-time AI cost estimation into your product, dashboard, or platform — or call the API directly from any agent pipeline.</p>
102
+
103
+ <div class="cta-row" style="justify-content:center;">
104
+ <a href="https://huggingface.co/spaces/Signalloom-ai/LoomLensAI" class="btn btn-primary" target="_blank">
105
+ Try the API →
106
+ </a>
107
+ <a href="https://api.signalloomai.com/v1/estimate" class="btn btn-outline" target="_blank">
108
+ API Docs →
109
+ </a>
110
+ </div>
111
+ </div>
112
+
113
+ <!-- Pricing -->
114
+ <div class="card">
115
+ <h2>Simple, transparent pricing</h2>
116
+ <p style="color:var(--text-muted); font-size:14px; margin-bottom:16px;">For developers and platforms who want to power their AI cost intelligence layer.</p>
117
+
118
+ <table class="pricing-table">
119
+ <thead>
120
+ <tr>
121
+ <th>Plan</th>
122
+ <th>Jobs/month</th>
123
+ <th>Per-job</th>
124
+ <th>Best for</th>
125
+ <th></th>
126
+ </tr>
127
+ </thead>
128
+ <tbody>
129
+ <tr>
130
+ <td>Free</td>
131
+ <td>5 / day (no account)</td>
132
+ <td class="highlight">$0</td>
133
+ <td>Evaluation, demos</td>
134
+ <td></td>
135
+ </tr>
136
+ <tr>
137
+ <td class="price">Pro</td>
138
+ <td>250 / month</td>
139
+ <td>$0.005</td>
140
+ <td>Individual developers</td>
141
+ <td><a href="/loomlensai-pro.html" class="btn btn-primary" style="padding:8px 16px;font-size:12px;">$5/mo →</a></td>
142
+ </tr>
143
+ <tr>
144
+ <td class="price">Scale</td>
145
+ <td>1,000 / month</td>
146
+ <td>$0.005</td>
147
+ <td>Teams, products</td>
148
+ <td><a href="/loomlensai-pro.html" class="btn btn-primary" style="padding:8px 16px;font-size:12px;">$20/mo →</a></td>
149
+ </tr>
150
+ <tr>
151
+ <td class="price">Per-Job</td>
152
+ <td>Pay as you go</td>
153
+ <td class="highlight">$0.005 / job</td>
154
+ <td>Agents, pipelines, platforms</td>
155
+ <td><a href="mailto:hello@signalloomai.com?subject=Per-Job+API+Access" class="btn btn-outline" style="padding:8px 16px;font-size:12px;">Contact →</a></td>
156
+ </tr>
157
+ <tr>
158
+ <td class="price">Platform / Enterprise</td>
159
+ <td>Custom volume</td>
160
+ <td>Custom rate</td>
161
+ <td>Embedding in your product</td>
162
+ <td><a href="mailto:hello@signalloomai.com?subject=Platform+Partnership" class="btn btn-outline" style="padding:8px 16px;font-size:12px;">Contact →</a></td>
163
+ </tr>
164
+ </tbody>
165
+ </table>
166
+ <p class="note">Per-job pricing available for API access after free tier. Contact us for custom volume agreements on 10,000+ jobs/month.</p>
167
+ </div>
168
+
169
+ <!-- Option 1: API -->
170
+ <div class="options">
171
+ <div class="option">
172
+ <div class="option-icon">⚡</div>
173
+ <h3>API Access</h3>
174
+ <p>Call LoomLensAI directly from any agent, pipeline, or backend. Return cost estimates in JSON in milliseconds.</p>
175
+ <span class="tag tag-api">REST API</span>
176
+ <span class="tag tag-api">JSON</span>
177
+ </div>
178
+
179
+ <div class="option">
180
+ <div class="option-icon">🔗</div>
181
+ <h3>Embeddable Widget</h3>
182
+ <p>Drop a single script tag on your site. LoomLensAI runs in an iframe — your users get cost estimation with zero setup.</p>
183
+ <span class="tag tag-embed">1-line embed</span>
184
+ <span class="tag tag-embed">No API key for free users</span>
185
+ </div>
186
+ </div>
187
+
188
+ <!-- API Example -->
189
+ <div class="card">
190
+ <h2>⚡ API — One call, cost data in milliseconds</h2>
191
+ <p style="color:var(--text-muted); font-size:14px; margin-bottom:16px;">No account needed for the free tier. Just call the endpoint.</p>
192
+
193
+ <pre><code><span class="comment"># Install</span>
194
+ pip install requests
195
+
196
+ <span class="comment"># Estimate cost for a single prompt</span>
197
+ <span class="keyword">import</span> requests, json
198
+
199
+ payload = {
200
+ <span class="string">"job_description"</span>: <span class="string">"Your prompt here"</span>,
201
+ <span class="string">"num_agents"</span>: 1,
202
+ <span class="string">"estimated_runtime_minutes"</span>: 5,
203
+ <span class="string">"complexity"</span>: <span class="string">"standard"</span>, <span class="comment"># simple | standard | reasoning | coding</span>
204
+ <span class="string">"target_models"</span>: [<span class="string">"openai/gpt-4o"</span>, <span class="string">"anthropic/claude-sonnet-4-20250514"</span>],
205
+ }
206
+
207
+ resp = requests.post(
208
+ <span class="string">"https://api.signalloomai.com/v1/estimate"</span>,
209
+ json=payload,
210
+ ).json()
211
+
212
+ <span class="comment"># Response</span>
213
+ <span class="keyword">for</span> model <span class="keyword">in</span> resp[<span class="string">"models"</span>]:
214
+ print(f<span class="string">"{model['model']}: ${model['estimated_cost_mid']:.4f}"</span>)
215
+
216
+ <span class="comment"># Track usage after the job</span>
217
+ requests.post(
218
+ <span class="string">"https://api.signalloomai.com/v1/promptcost/jobs/count"</span>,
219
+ data={<span class="string">"account_key"</span>: <span class="string">"your@email.com"</span>, <span class="string">"tier"</span>: <span class="string">"per_job"</span>}
220
+ )</code></pre>
221
+ </div>
222
+
223
+ <!-- Embed example -->
224
+ <div class="card">
225
+ <h2>🔗 Embed — One script tag</h2>
226
+ <p style="color:var(--text-muted); font-size:14px; margin-bottom:16px;">Add LoomLensAI to any website. Perfect for developer tools, SaaS dashboards, and AI platforms.</p>
227
+
228
+ <pre><code><span class="comment"># Drop this anywhere in your HTML</span>
229
+ &lt;<span class="keyword">iframe</span>
230
+ src=<span class="string">"https://huggingface.co/spaces/Signalloom-ai/LoomLensAI/embed"</span>
231
+ width=<span class="string">"100%"</span>
232
+ height=<span class="string">"600"</span>
233
+ style=<span class="string">"border:none;border-radius:12px;"</span>
234
+ allow=<span class="string">"clipboard-write"</span>
235
+ &gt;&lt;/<span class="keyword">iframe</span>&gt;</code></pre>
236
+
237
+ <p class="note">The embed uses the free tier by default. To enable Pro for your users, pass your API key as a URL parameter: <code>?api_key=sl_live_...</code></p>
238
+ </div>
239
+
240
+ <!-- Contact CTA -->
241
+ <div class="card" style="text-align:center; padding: 40px;">
242
+ <h2>Ready to build?</h2>
243
+ <p style="color:var(--text-muted); font-size:15px; margin: 14px 0 24px; max-width:480px; margin-left:auto; margin-right:auto;">
244
+ Whether you're embedding in a developer tool, powering an AI agent pipeline, or building a platform — LoomLensAI fits in your stack in minutes.
245
+ </p>
246
+ <div class="cta-row" style="justify-content:center;">
247
+ <a href="mailto:hello@signalloomai.com?subject=Building+with+LoomLensAI" class="btn btn-primary">
248
+ hello@signalloomai.com →
249
+ </a>
250
+ <a href="https://huggingface.co/spaces/Signalloom-ai/LoomLensAI" class="btn btn-outline" target="_blank">
251
+ Try Free on HF →
252
+ </a>
253
+ </div>
254
+ <p class="note" style="margin-top:20px;">Response time: usually &lt; 2 hours on business days.</p>
255
+ </div>
256
+
257
+ </div>
258
+ </body>
259
+ </html>