Spaces:
Running
Running
Add Modelflare start landing (index.html + README)
Browse files- README.md +15 -7
- index.html +108 -18
README.md
CHANGED
|
@@ -1,11 +1,19 @@
|
|
| 1 |
---
|
| 2 |
-
title: Start
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
-
pinned:
|
| 8 |
-
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Start with Modelflare
|
| 3 |
+
emoji: 🚀
|
| 4 |
+
colorFrom: indigo
|
| 5 |
+
colorTo: pink
|
| 6 |
sdk: static
|
| 7 |
+
pinned: true
|
| 8 |
+
license: mit
|
| 9 |
+
short_description: Modelflare gateway — console, docs, and SDK
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Start with Modelflare
|
| 13 |
+
|
| 14 |
+
Static landing Space that sends Hugging Face visitors to the Modelflare console and docs.
|
| 15 |
+
OpenAI-compatible gateway for LLM, image, and video — one key, group failover, usage & cost tracking.
|
| 16 |
+
|
| 17 |
+
- Console: https://modelflare.dev/
|
| 18 |
+
- Docs: https://docs.modelflare.dev/
|
| 19 |
+
- Org: https://huggingface.co/Modelflare
|
index.html
CHANGED
|
@@ -1,19 +1,109 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 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" />
|
| 6 |
+
<title>Modelflare — AI API Gateway</title>
|
| 7 |
+
<style>
|
| 8 |
+
:root {
|
| 9 |
+
--bg: #0b1020;
|
| 10 |
+
--card: #121a2f;
|
| 11 |
+
--text: #e8ecf7;
|
| 12 |
+
--muted: #9aa6c2;
|
| 13 |
+
--accent: #8b5cf6;
|
| 14 |
+
--accent2: #ec4899;
|
| 15 |
+
--border: rgba(255,255,255,.08);
|
| 16 |
+
}
|
| 17 |
+
* { box-sizing: border-box; }
|
| 18 |
+
body {
|
| 19 |
+
margin: 0;
|
| 20 |
+
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
|
| 21 |
+
background: radial-gradient(1200px 600px at 10% -10%, #2a1850 0%, transparent 50%),
|
| 22 |
+
radial-gradient(900px 500px at 100% 0%, #3b0f2e 0%, transparent 45%),
|
| 23 |
+
var(--bg);
|
| 24 |
+
color: var(--text);
|
| 25 |
+
min-height: 100vh;
|
| 26 |
+
}
|
| 27 |
+
.wrap { max-width: 880px; margin: 0 auto; padding: 48px 20px 64px; }
|
| 28 |
+
.badge {
|
| 29 |
+
display: inline-flex; gap: 8px; align-items: center;
|
| 30 |
+
padding: 6px 12px; border-radius: 999px;
|
| 31 |
+
background: rgba(139,92,246,.15); border: 1px solid rgba(139,92,246,.35);
|
| 32 |
+
color: #d6c7ff; font-size: 13px; margin-bottom: 18px;
|
| 33 |
+
}
|
| 34 |
+
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 0 0 12px; }
|
| 35 |
+
.lead { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 0 0 28px; max-width: 640px; }
|
| 36 |
+
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
|
| 37 |
+
a.btn {
|
| 38 |
+
display: inline-flex; align-items: center; justify-content: center;
|
| 39 |
+
padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 600;
|
| 40 |
+
border: 1px solid transparent;
|
| 41 |
+
}
|
| 42 |
+
a.btn.primary {
|
| 43 |
+
background: linear-gradient(135deg, var(--accent), var(--accent2));
|
| 44 |
+
color: white;
|
| 45 |
+
}
|
| 46 |
+
a.btn.ghost {
|
| 47 |
+
background: transparent; color: var(--text); border-color: var(--border);
|
| 48 |
+
}
|
| 49 |
+
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 28px; }
|
| 50 |
+
.card {
|
| 51 |
+
background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px;
|
| 52 |
+
}
|
| 53 |
+
.card h3 { margin: 0 0 8px; font-size: 16px; }
|
| 54 |
+
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
|
| 55 |
+
pre {
|
| 56 |
+
background: #070b16; border: 1px solid var(--border); border-radius: 14px;
|
| 57 |
+
padding: 16px; overflow: auto; font-size: 13px; line-height: 1.45; color: #d7def0;
|
| 58 |
+
}
|
| 59 |
+
.foot { margin-top: 28px; color: var(--muted); font-size: 13px; }
|
| 60 |
+
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
|
| 61 |
+
</style>
|
| 62 |
+
</head>
|
| 63 |
+
<body>
|
| 64 |
+
<div class="wrap">
|
| 65 |
+
<div class="badge">Hugging Face × Modelflare</div>
|
| 66 |
+
<h1>Stable, lower-cost AI API gateway</h1>
|
| 67 |
+
<p class="lead">
|
| 68 |
+
One key for LLM, image, and video. OpenAI-compatible chat — point your SDK at
|
| 69 |
+
<code>https://modelflare.dev/v1</code>, with group failover and per-request cost tracking.
|
| 70 |
+
</p>
|
| 71 |
+
<div class="cta">
|
| 72 |
+
<a class="btn primary" href="https://modelflare.dev/" target="_blank" rel="noopener">Open Console →</a>
|
| 73 |
+
<a class="btn ghost" href="https://docs.modelflare.dev/" target="_blank" rel="noopener">Read Docs</a>
|
| 74 |
+
<a class="btn ghost" href="https://huggingface.co/Modelflare" target="_blank" rel="noopener">Org on Hub</a>
|
| 75 |
+
</div>
|
| 76 |
+
<div class="grid">
|
| 77 |
+
<div class="card">
|
| 78 |
+
<h3>One key</h3>
|
| 79 |
+
<p>Chat, Responses, Anthropic Messages, Images, and Video on the same auth.</p>
|
| 80 |
+
</div>
|
| 81 |
+
<div class="card">
|
| 82 |
+
<h3>Group failover</h3>
|
| 83 |
+
<p>Ordered fallbacks so one unavailable route does not fail the request.</p>
|
| 84 |
+
</div>
|
| 85 |
+
<div class="card">
|
| 86 |
+
<h3>Usage & cost</h3>
|
| 87 |
+
<p>Track tokens, images, and video spend per request in one place.</p>
|
| 88 |
+
</div>
|
| 89 |
+
</div>
|
| 90 |
+
<h2 style="font-size:18px;margin:0 0 10px">Quick start</h2>
|
| 91 |
+
<pre>from openai import OpenAI
|
| 92 |
+
|
| 93 |
+
client = OpenAI(
|
| 94 |
+
api_key="YOUR_MODELFLARE_KEY",
|
| 95 |
+
base_url="https://modelflare.dev/v1",
|
| 96 |
+
)
|
| 97 |
+
|
| 98 |
+
r = client.chat.completions.create(
|
| 99 |
+
model="grok-4.7",
|
| 100 |
+
messages=[{"role": "user", "content": "Hello from Hugging Face"}],
|
| 101 |
+
)
|
| 102 |
+
print(r.choices[0].message.content)</pre>
|
| 103 |
+
<p class="foot">
|
| 104 |
+
Create a key in the console, then swap <code>base_url</code>. Guides for Codex, Claude Code, and more:
|
| 105 |
+
<a href="https://docs.modelflare.dev/" style="color:#c4b5fd">docs.modelflare.dev</a>
|
| 106 |
+
</p>
|
| 107 |
+
</div>
|
| 108 |
+
</body>
|
| 109 |
</html>
|