LoomLensAI / build.md
Aster Vale
update: Per-Job pricing to $0.033/estimate — 1,000 jobs = $33 vs $15 Pro subscription
2dee62e
|
Raw History Blame Contribute Delete
3.83 kB
---
title: "Build with LoomLens"
description: "Embed cost intelligence in your AI product. Free to start. Developers earn 23–28% revenue share on every estimate."
layout: "loomlens/list"
---
## Embed Cost Intelligence in 10 Minutes
Free to embed. Developers earn **23–28% revenue share** on every estimate routed through their API key.
---
## Three Ways to Embed
### Widget — 10 Minutes
Copy and paste a few lines of HTML into your prompt input area. Your users see cost estimates before every run. No backend changes required.
```html
<div id="loomlens-widget"></div>
<script src="https://cdn.signalloomai.com/loomlens.js?api_key=YOUR_API_KEY"></script>
```
**What you get:**
- Pre-flight cost estimates across 24+ AI models
- Live savings display
- Model recommendation
- No server-side changes needed
---
### REST API — 1–4 Hours
For full control, call the LoomLens REST API from your backend.
**Base URL:** `https://api.signalloomai.com`
**Endpoint:** `POST /v1/estimate`
**Authentication:** Bearer token — your API key
**Request:**
```json
{
"job_description": "Translate this customer email to French",
"prompt_tokens": 250,
"completion_tokens": 180,
"complexity": "standard",
"num_agents": 1,
"estimated_runtime_minutes": 1
}
```
**Response:**
```json
{
"estimates": [
{
"model": "gpt-4o",
"estimated_cost": 0.045,
"estimated_tokens": 430,
"currency": "USD",
"routing_tier": "recommended"
},
{
"model": "gpt-4o-mini",
"estimated_cost": 0.003,
"estimated_tokens": 430,
"currency": "USD",
"routing_tier": "cheapest"
}
],
"savings_vs_default": 0.042,
"savings_percent": 93
}
```
---
### SDK — 1 Day
Full SDKs for Node.js and Python. White-label ready. Full control over appearance and behavior.
```bash
npm install @signalloomai/sdk
```
```javascript
import { LoomLens } from '@signalloomai/sdk';
const loom = new LoomLens({ apiKey: 'YOUR_API_KEY' });
const result = await loom.estimate({
promptTokens: 250,
completionTokens: 180,
complexity: 'standard',
numAgents: 1,
estimatedRuntimeMinutes: 1
});
console.log(result.savingsVsDefault); // e.g. 0.042
```
---
## Revenue Share
Every estimate and transcription routed through your API key earns you revenue share. No separate integration required.
| Tier | Monthly Volume | Rev-Share |
|---|---|---|
| **Loom Partner** | 10K+ estimates/mo | **23%** |
| **Loom Elite** | 100K+ estimates/mo | **28%** |
Revenue share applies to **both** LoomLens estimates **and** Signal Loom Transcription.
---
## Track Your Earnings
Check your API key performance at any time:
```
GET https://api.signalloomai.com/v1/analytics/loomlens/lookup?key_id=YOUR_KEY_ID
```
Response:
```json
{
"found": true,
"total_estimates": 1247,
"total_savings_usd": 43.21,
"average_savings_per_job": 0.035,
"free_calls": 892,
"paid_calls": 355,
"top_model": "gpt-4o-mini"
}
```
---
## Get Your API Key
**Free to join. Revenue starts from day one.**
1. Sign up at [signalloomai.com](https://signalloomai.com)
2. Go to **Dashboard → API Keys**
3. Copy your key
4. Start embedding
No credit card required.
---
## Revenue Share FAQ
**Q: How is revenue share calculated?**
A: Every time a user makes an estimate through your API key, we track the savings they realized vs. picking the most expensive model. You earn a percentage of the estimated value routed.
**Q: When do I get paid?**
A: Monthly, via Stripe, when your balance exceeds the minimum payout threshold.
**Q: Does transcription count too?**
A: Yes. Transcription revenue counts toward your tier and your rev-share at the same rates.
**Q: What if I don't hit 10K estimates?**
A: You earn at the Loom Partner rate (23%) from day one. There's no minimum to start earning.