modelflaredev commited on
Commit
c62af56
·
verified ·
1 Parent(s): 174e766

Update org card README.md

Browse files
Files changed (1) hide show
  1. README.md +34 -14
README.md CHANGED
@@ -16,27 +16,31 @@ license: mit
16
  One key for OpenAI-compatible Chat & Responses, Anthropic Messages, plus native image and video contracts —
17
  with ordered model-group fallbacks and per-request usage & cost tracking.
18
  </p>
 
 
 
 
19
  </div>
20
 
21
- <a href="https://modelflare.dev/" class="block overflow-hidden group">
22
  <div class="w-full h-28 mb-2 rounded-lg flex items-center justify-center bg-gradient-to-br from-indigo-50 to-pink-50 border border-gray-100 px-4">
23
  <span class="text-lg font-semibold text-gray-800">Console &amp; Pricing</span>
24
  </div>
25
  <div class="underline">modelflare.dev</div>
26
  </a>
27
 
28
- <a href="https://docs.modelflare.dev/" class="block overflow-hidden group">
29
  <div class="w-full h-28 mb-2 rounded-lg flex items-center justify-center bg-gradient-to-br from-indigo-50 to-pink-50 border border-gray-100 px-4">
30
  <span class="text-lg font-semibold text-gray-800">API Docs</span>
31
  </div>
32
  <div class="underline">docs.modelflare.dev</div>
33
  </a>
34
 
35
- <a href="https://docs.modelflare.dev/guides/features/" class="block overflow-hidden group">
36
- <div class="w-full h-28 mb-2 rounded-lg flex items-center justify-center bg-gradient-to-br from-indigo-50 to-pink-50 border border-gray-100 px-4">
37
- <span class="text-lg font-semibold text-gray-800">Platform Features</span>
38
  </div>
39
- <div class="underline">Failover · Smart keys · Cache guarantee</div>
40
  </a>
41
 
42
  <a href="https://huggingface.co/spaces/Modelflare/start" class="block overflow-hidden group">
@@ -53,6 +57,13 @@ license: mit
53
  <div class="underline">One-line base_url switch</div>
54
  </a>
55
 
 
 
 
 
 
 
 
56
  <div class="lg:col-span-3">
57
  <h2>What you get</h2>
58
  <ul>
@@ -67,22 +78,31 @@ license: mit
67
  <div class="lg:col-span-3">
68
  <h2>Quick start</h2>
69
  <div class="p-4 bg-gradient-to-b from-gray-50 to-white border border-gray-100 rounded-lg relative mb-2">
70
- <pre class="break-words whitespace-pre-line text-xs md:text-sm text-gray-800">curl https://modelflare.dev/v1/chat/completions \
71
- -H "Authorization: Bearer $MODELFLARE_API_KEY" \
72
- -H "Content-Type: application/json" \
73
- -d '{"model":"gpt-4o","messages":[{"role":"user","content":"Hello"}]}'</pre>
 
 
 
 
 
 
 
 
74
  </div>
75
  <p>
76
- Create a key in the console, then switch your OpenAI client <code>base_url</code> to
77
- <a href="https://modelflare.dev/" class="underline">https://modelflare.dev/v1</a>.
78
- Full guides: <a href="https://docs.modelflare.dev/" class="underline">docs.modelflare.dev</a>.
 
79
  </p>
80
  </div>
81
 
82
  <div class="lg:col-span-3">
83
  <p>
84
  This Hub organization hosts Modelflare demos, examples, and community Spaces.
85
- Follow along for new Gradio / MCP Spaces and integration templates.
86
  </p>
87
  </div>
88
  </div>
 
16
  One key for OpenAI-compatible Chat &amp; Responses, Anthropic Messages, plus native image and video contracts —
17
  with ordered model-group fallbacks and per-request usage &amp; cost tracking.
18
  </p>
19
+ <p>
20
+ 中文:统一 AI API 网关(文本 / 图片 / 视频),OpenAI 兼容,一行切换 <code>base_url</code>,
21
+ 带分组故障转移与按请求用量成本记录。
22
+ </p>
23
  </div>
24
 
25
+ <a href="https://modelflare.dev/?utm_source=huggingface&utm_medium=org&utm_campaign=card" class="block overflow-hidden group">
26
  <div class="w-full h-28 mb-2 rounded-lg flex items-center justify-center bg-gradient-to-br from-indigo-50 to-pink-50 border border-gray-100 px-4">
27
  <span class="text-lg font-semibold text-gray-800">Console &amp; Pricing</span>
28
  </div>
29
  <div class="underline">modelflare.dev</div>
30
  </a>
31
 
32
+ <a href="https://docs.modelflare.dev/?utm_source=huggingface&utm_medium=org&utm_campaign=card" class="block overflow-hidden group">
33
  <div class="w-full h-28 mb-2 rounded-lg flex items-center justify-center bg-gradient-to-br from-indigo-50 to-pink-50 border border-gray-100 px-4">
34
  <span class="text-lg font-semibold text-gray-800">API Docs</span>
35
  </div>
36
  <div class="underline">docs.modelflare.dev</div>
37
  </a>
38
 
39
+ <a href="https://huggingface.co/collections/Modelflare/modelflare-getting-started" class="block overflow-hidden group">
40
+ <div class="w-full h-28 mb-2 rounded-lg flex items-center justify-center bg-gradient-to-br from-amber-50 to-orange-50 border border-gray-100 px-4">
41
+ <span class="text-lg font-semibold text-gray-800">Getting Started</span>
42
  </div>
43
+ <div class="underline">Hub collection · start here</div>
44
  </a>
45
 
46
  <a href="https://huggingface.co/spaces/Modelflare/start" class="block overflow-hidden group">
 
57
  <div class="underline">One-line base_url switch</div>
58
  </a>
59
 
60
+ <a href="https://docs.modelflare.dev/guides/features/?utm_source=huggingface&utm_medium=org&utm_campaign=card" class="block overflow-hidden group">
61
+ <div class="w-full h-28 mb-2 rounded-lg flex items-center justify-center bg-gradient-to-br from-indigo-50 to-pink-50 border border-gray-100 px-4">
62
+ <span class="text-lg font-semibold text-gray-800">Platform Features</span>
63
+ </div>
64
+ <div class="underline">Failover · Smart keys · Cache guarantee</div>
65
+ </a>
66
+
67
  <div class="lg:col-span-3">
68
  <h2>What you get</h2>
69
  <ul>
 
78
  <div class="lg:col-span-3">
79
  <h2>Quick start</h2>
80
  <div class="p-4 bg-gradient-to-b from-gray-50 to-white border border-gray-100 rounded-lg relative mb-2">
81
+ <pre class="break-words whitespace-pre-line text-xs md:text-sm text-gray-800">from openai import OpenAI
82
+
83
+ client = OpenAI(
84
+ api_key="YOUR_MODELFLARE_KEY",
85
+ base_url="https://modelflare.dev/v1",
86
+ )
87
+
88
+ r = client.chat.completions.create(
89
+ model="grok-4.7", # use a model id enabled on your group
90
+ messages=[{"role":"user","content":"Hello from Hugging Face"}],
91
+ )
92
+ print(r.choices[0].message.content)</pre>
93
  </div>
94
  <p>
95
+ Create a key in the <a href="https://modelflare.dev/?utm_source=huggingface&utm_medium=org&utm_campaign=card" class="underline">console</a>,
96
+ then switch <code>base_url</code> to <code>https://modelflare.dev/v1</code>.
97
+ Full guides: <a href="https://docs.modelflare.dev/?utm_source=huggingface&utm_medium=org&utm_campaign=card" class="underline">docs.modelflare.dev</a>
98
+ · bilingual walkthrough: <a href="https://huggingface.co/spaces/Modelflare/openai-sdk" class="underline">openai-sdk Space</a>.
99
  </p>
100
  </div>
101
 
102
  <div class="lg:col-span-3">
103
  <p>
104
  This Hub organization hosts Modelflare demos, examples, and community Spaces.
105
+ Interactive Gradio Chat Demo ships after HF PRO; until then use the console + API path above.
106
  </p>
107
  </div>
108
  </div>