-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
427 lines (383 loc) · 18.5 KB
/
index.html
File metadata and controls
427 lines (383 loc) · 18.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MLvoca - Free LLM API</title>
<meta name="description" content="Try our free LLM API for easy and fast text generation using DeepSeek R1 and TinyLlama. No API key needed — just plug in and start building.">
<meta name="keywords" content="free llm api, text generation API, AI models, TinyLlama, DeepSeek R1, open-source AI, github">
<meta name="author" content="mlvoca">
<meta name="google-site-verification" content="fdyq3CHPPN3-FQjd51PCUT7FsuE-HMECoHXx_Vs0QBg">
<link rel="canonical" href="https://mlvoca.github.io/free-llm-api/">
<link rel="icon" href="https://mlvoca.github.io/favicon.ico" sizes="any">
<link rel="icon" type="image/png" href="https://raw.githubusercontent.com/mlvoca/free-llm-api/refs/heads/main/images/favicon-48x48.png" sizes="48x48" />
<link rel="icon" type="image/png" href="https://raw.githubusercontent.com/mlvoca/free-llm-api/refs/heads/main/images/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="https://raw.githubusercontent.com/mlvoca/free-llm-api/refs/heads/main/images/favicon-16x16.png" sizes="16x16" />
<meta property="og:title" content="Free LLM API - mlvoca.com">
<meta property="og:site_name" content="Free LLM API - mlvoca">
<meta property="og:description" content="Try our free LLM API for easy and fast text generation using DeepSeek R1 and TinyLlama. No API key needed — just plug in and start building.">
<meta property="og:image" content="https://github.com/mlvoca/mlvoca.com/blob/main/images/mlvoca_image2.png?raw=true">
<meta property="og:url" content="https://mlvoca.github.io/free-llm-api/">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Free LLM API - mlvoca.com">
<meta name="twitter:description" content="Try our free LLM API for easy and fast text generation using DeepSeek R1 and TinyLlama. No API key needed — just plug in and start building.">
<meta name="twitter:image" content="https://github.com/mlvoca/mlvoca.com/blob/main/images/mlvoca_image2.png?raw=true">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "TechArticle",
"name": "Free LLM API - mlvoca",
"headline": "Free LLM API – Access Powerful, Cost-Free Language Models",
"description": "Try our free LLM API for easy and fast text generation using DeepSeek R1 and TinyLlama. No API key needed — just plug in and start building.",
"url": "https://mlvoca.github.io/free-llm-api/"
}
</script>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f8f9fa;
color: #333;
text-align: center;
}
header {
background-color: #b91788;
color: white;
border-radius: 10px;
padding: 20px;
margin-bottom: 15px !important;
max-width: 800px;
margin: auto;
box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.4);
}
header h1 {
margin: 0;
}
.container {
max-width: 800px;
margin: auto;
padding: 20px;
background: white;
border-radius: 10px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
img {
width: 70%;
border-radius: 10px;
margin: 20px 0;
}
section {
margin-bottom: 20px;
text-align: left;
}
h2 {
color: #b91788;
}
code {
background: #eee;
padding: 5px;
border-radius: 5px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.code-container {
background-color: #282c34;
color: #fff;
padding: 15px;
border-radius: 8px;
position: relative;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
text-align: left;
display: inline-block;
width: 100%;
max-width: 100%;
box-sizing: border-box;
overflow: visible;
border-color: #b91788;
border: 2px solid #b91788;
}
.copy-btn {
position: absolute;
top: 10px;
right: 10px;
background: #b91788;
color: #fff;
border: none;
padding: 5px 10px;
cursor: pointer;
border-radius: 5px;
font-size: 14px;
}
.copy-btn:hover {
background: #a6157b;
}
.cookie-btn {
top: 10px;
right: 10px;
background: #b91788;
color: #fff;
border: none;
padding: 5px 10px;
cursor: pointer;
border-radius: 5px;
font-size: 16px;
}
.cookie-btn:hover {
background: #a6157b;
}
.copy-message {
position: absolute;
top: -30px; /* Position above the button */
left: 50%;
transform: translateX(-50%);
background: #ffb4e8;
color: white;
padding: 5px 10px;
border-radius: 5px;
font-size: 12px;
opacity: 1;
transition: opacity 0.3s ease-in-out;
}
@media (max-width: 600px) {
.copy-btn {
top: -30px; /* Moves the button above the code block */
right: 7%; /* Centers the button */
transform: translateX(50%); /* Keeps positioning responsive */
}
}
pre {
margin: 0;
padding-bottom: 0;
}
li {
margin-bottom: 10px; /* Adds more space between list items */
}
.responsive-img {
width: 40%;
height: auto;
}
</style>
</head>
<body>
<header role="banner">
<h1>Free LLM API - mlvoca.com</h1>
<p>Unlock AI-powered text generation with no API key required.</p>
</header>
<main role="main">
<div class="container">
<picture>
<source srcset="https://raw.githubusercontent.com/mlvoca/mlvoca.com/refs/heads/main/images/mlvoca_image3.avif" type="image/avif">
<img src="https://raw.githubusercontent.com/mlvoca/mlvoca.com/refs/heads/main/images/mlvoca_image3.png" class="responsive-img" fetchpriority="high" width="560" height="373" alt="mlvoca.com API">
</picture>
<section>
<h2>What is mlvoca.com?</h2>
<p>mlvoca.com provides a free LLM API. The API provides access to a publicly hosted <code>/api/generate</code> endpoint based on the Ollama API, enabling text generation through various models.</p>
</section>
<section>
<h2>Base URL</h2>
<code>https://mlvoca.com</code>
</section>
<section>
<h2>Endpoint for the free LLM API:</h2>
<p><code>POST /api/generate</code></p>
<p>Generates a response based on a given prompt using a specified model. It supports both streaming and single-response generation.</p>
</section>
<section>
<h2>Available Models:</h2>
<ul>
<li>TinyLlama</li>
<li>DeepSeek R1 (1.5b)</li>
</ul>
</section>
<section>
<h2>Example Usage</h2>
<h3>Streaming Request:</h3>
<div class="code-container">
<button class="copy-btn" onclick="copyToClipboard(this)">Copy</button>
<pre>
curl -X POST https://mlvoca.com/api/generate -d '{
"model": "tinyllama",
"prompt": "Why is the sky blue?"
}'
</pre>
</div>
<h3>Streaming Response:</h3>
<div class="code-container" style="overflow-x: auto !important; border: 0px;">
<pre>
{"model":"tinyllama","created_at":"2025-12-30T15:32:28.531852218Z","response":"The","done":false}
{"model":"tinyllama","created_at":"2025-12-30T15:32:28.568068974Z","response":" sky","done":false}
{"model":"tinyllama","created_at":"2025-12-30T15:32:28.605811799Z","response":" blue","done":false}
{"model":"tinyllama","created_at":"2025-12-30T15:32:28.657004904Z","response":" color","done":false}
{"model":"tinyllama","created_at":"2025-12-30T15:32:28.694936917Z","response":" is","done":false}
{"model":"tinyllama","created_at":"2025-12-30T15:32:28.746829635Z","response":" a","done":false}
{"model":"tinyllama","created_at":"2025-12-30T15:32:28.795048461Z","response":" result","done":false}
{"model":"tinyllama","created_at":"2025-12-30T15:32:28.846561791Z","response":" of","done":false}
{"model":"tinyllama","created_at":"2025-12-30T15:32:28.886800731Z","response":" natural","done":false}
{"model":"tinyllama","created_at":"2025-12-30T15:32:28.937753551Z","response":" light","done":false}
{"model":"tinyllama","created_at":"2025-12-30T15:32:28.977296783Z","response":" absor","done":false}
{"model":"tinyllama","created_at":"2025-12-30T15:32:29.026242174Z","response":"ption","done":false}
{"model":"tinyllama","created_at":"2025-12-30T15:32:29.063471035Z","response":" by","done":false}
{"model":"tinyllama","created_at":"2025-12-30T15:32:29.100445776Z","response":" the","done":false}
{"model":"tinyllama","created_at":"2025-12-30T15:32:29.146222519Z","response":" earth","done":false}
{"model":"tinyllama","created_at":"2025-12-30T15:32:29.183537162Z","response":"'","done":false}
{"model":"tinyllama","created_at":"2025-12-30T15:32:29.229797711Z","response":"s","done":false}
{"model":"tinyllama","created_at":"2025-12-30T15:32:29.271010173Z","response":" atmosphere","done":false}
...
</pre>
</div>
<h3>Non-Streaming Request:</h3>
<div class="code-container">
<button class="copy-btn" onclick="copyToClipboard(this); myFunction();">Copy</button>
<pre>
curl -X POST https://mlvoca.com/api/generate -d '{
"model": "tinyllama",
"prompt": "Why is the sky blue?",
"stream": false
}'
</pre>
</div>
<h3>Non-Streaming Response of the free llm api:</h3>
<div class="code-container" style="overflow-x: auto !important; border: 0px;">
<pre>
{
"model": "tinyllama",
"created_at": "2025-05-09T19:34:00Z",
"response": "The sky is blue because of Rayleigh scattering.",
"done": true
...
}
</pre>
</div>
</section>
<section>
<h2>Accepts the following parameters:</h2>
<ul>
<li><code>model</code> <b>(required)</b> - The model name used for generation (can be <code>"tinyllama"</code> or <code>"deepseek-r1:1.5b"</code>).</li>
<li><code>prompt</code> <b>(required)</b> - The input prompt for text generation.</li>
<li><code>suffix</code> - Text appended after the model response.</li>
<li><code>format</code> - Specifies the response format (<code>"json"</code> or a JSON schema).</li>
<li><code>options</code> - <a href="https://github.com/ollama/ollama/blob/main/docs/modelfile.md#valid-parameters-and-values" target="_blank">Additional model parameters</a> (e.g., <code>"temperature"</code>).</li>
<li><code>system</code> - System message override.</li>
<li><code>template</code> - Custom prompt template.</li>
<li><code>stream</code> - If <code>false</code>, returns a single response instead of a stream.</li>
<li><code>raw</code> - If <code>true</code>, bypasses formatting and applies the full prompt.</li>
</ul>
</section>
<section>
<h2>Notes on Usage</h2>
<ul>
<li>The endpoint of the free llm api currently works without any kind of rate limit or API key. Therefore, it can be used for free without token/call limits.</li>
<li>The hardware resources are limited. Therefore, responses might be a little slower sometimes, especially during times of high usage.</li>
<li>We encourage scientific use of this API. Researchers, educators, and students from universities or educational institutions are encouraged to utilize this resource for scientific purposes. Please reach out to <a href="mailto:mlvoca@protonmail.com">mlvoca@protonmail.com</a> if you are planning to use the API in such a way.</li>
<li>Commercial use of this api is not allowed. If you are planning on using this API for your business, please contact <a href="mailto:mlvoca@protonmail.com">mlvoca@protonmail.com</a>.</li>
</ul>
</section>
<section>
<h2>Disclaimer</h2>
<p>The API and related services provided herein are made available "as is" and "as available" without any warranties or guarantees, express or implied. The provider of this API (hereinafter referred to as "the Host") does not assume any liability for the accuracy, reliability, completeness, or usefulness of the outputs generated by large language models (LLMs) accessed through this API.</p>
<p>Users acknowledge and agree that:</p>
<p>The Host shall not be responsible for any actions, decisions, or consequences arising from the use of this API or any outputs generated by LLMs.</p>
<p>The Host disclaims any liability for direct, indirect, incidental, consequential, or special damages, including but not limited to loss of data, business disruption, or reputational harm, even if advised of the possibility of such damages.</p>
<p>Users are solely responsible for evaluating the appropriateness, legality, and applicability of the API’s outputs in their respective contexts.</p>
<p>The use of this API does not establish any form of client-provider, advisor, or fiduciary relationship.</p>
<p>By accessing and using this API, users agree to the terms set forth in this disclaimer and waive any claims against the Host related to its usage.</p>
</section>
</main>
<div id="cookie-banner" style="position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #ccc;padding:15px;text-align:center;z-index:9999;">
<p style="margin:0;">
We use cookies to improve your experience. You can accept all, reject all, or choose which cookies to allow.<br>
More information: <a href="https://github.com/mlvoca/free-llm-api/blob/main/legal/PRIVACY_POLICY.md" target="_blank">Privacy Policy</a>
</p>
<button class="cookie-btn" style="position: relative" onclick="saveConsentAll()" style="margin:10px;">Accept all cookies</button>
<button class="cookie-btn" style="position: relative" onclick="saveConsentEssential()" style="margin:10px;">Only essential cookies</button>
<br></br>
<div style="margin-top:10px;">
<label><input type="checkbox" id="essential"> Essential (required)</label>
<label><input type="checkbox" id="analytics"> Analytics (currently not used)</label>
</div>
<button class="cookie-btn" style="position: relative; font-size: 13px" onclick="saveConsent()" style="margin:10px;">Save Preferences</button>
</div>
</div>
<footer role="contentinfo">
<p>Visit us on <a href="https://github.com/mlvoca/free-llm-api" target="_blank">GitHub</a> for more details.</p>
<p><a href="https://github.com/mlvoca/free-llm-api/blob/main/legal/IMPRINT.md" target="_blank">Imprint (Legal Disclosure)</a></p>
<p><a href="https://github.com/mlvoca/free-llm-api/blob/main/legal/PRIVACY_POLICY.md" target="_blank">Privacy Policy</a></p>
<p><a href="https://github.com/mlvoca/free-llm-api/blob/main/legal/TERMS_OF_USE.md" target="_blank">Terms of use</a></p>
<p>Contact: <a href="mailto:mlvoca@protonmail.com">mlvoca@protonmail.com</a></p>
<p>By Benedikt Augenstein</p>
</footer>
<script>
if (localStorage.getItem('cookieConsent') !== null) {
document.getElementById("cookie-banner").style.setProperty("display", "none", "important");
};
const date = new Date();
date.setMonth(date.getMonth() + 1); // 1-month expiry
function saveConsentAll() {
const consent = {
essential: true,
analytics: true//,
//marketing: marketing
};
document.getElementById("cookie-banner").style.display = "none";
localStorage.setItem('cookieConsent', consent);
document.cookie = "userConsent=all; expires=" + date.toUTCString() + "; path=/; SameSite=Lax";
};
function saveConsentEssential() {
const consent = {
essential: true,
analytics: false//,
//marketing: marketing
};
document.getElementById("cookie-banner").style.display = "none";
localStorage.setItem('cookieConsent', consent);
document.cookie = "userConsent=essential; expires=" + date.toUTCString() + "; path=/; SameSite=Lax";
};
function saveConsent() {
const essential = document.getElementById("essential").checked;
const analytics = document.getElementById("analytics").checked;
//const marketing = document.getElementById("marketing").checked;
const consent = {
essential: essential,
analytics: analytics//,
//marketing: marketing
};
document.cookie = "cookie_consent=" + JSON.stringify(consent) + "; path=/; max-age=" + 60*60*24*365;
if (essential == false) {
alert("Essential cookies have to be accepted. If you do not with this, you may leave the site.");
}
else {
document.getElementById("cookie-banner").style.display = "none";
document.cookie = "userConsent=custom; expires=" + date.toUTCString() + "; path=/; SameSite=Lax";
};
localStorage.setItem('cookieConsent', consent);
}
/* window.onload = function() {
if (document.cookie.indexOf("essential") === -1) {
document.getElementById("cookie-banner").style.display = "block";
}
}; */
function copyToClipboard(button) {
const preElement = button.nextElementSibling; // Selects the adjacent <pre> tag
const text = preElement.innerText; // Gets text inside the pre block
navigator.clipboard.writeText(text).then(() => {
showCopyMessage(button); // Trigger popup message near the button
});
}
function showCopyMessage(button) {
let message = document.createElement("span");
message.className = "copy-message";
message.innerText = "Copied!";
button.appendChild(message);
setTimeout(() => {
message.remove(); // Remove message after 2 seconds
}, 2000);
}
// When the user clicks on div, open the popup
function myFunction() {
var popup = document.getElementById("myPopup");
popup.classList.toggle("show");
}
</script>
</body>
</html>