Spaces:
Running
Running
Upload 2 files
Browse files- index.html +191 -0
- main.py +8 -1
index.html
ADDED
@@ -0,0 +1,191 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
<meta name="description" content="AkenoAI API menyediakan solusi AI terbaik. Dapatkan akses gratis dan tak terbatas. Semua tersedia secara gratis untuk kebutuhan Anda.">
|
7 |
+
<meta name="keywords" content="AkenoAI API, AkenoAI, BlackBox.ai API, Chat GPT, Chat Bot Free, Chat Bot Gratis, Chat Bot Unlimited, Rest API AI Gratis">
|
8 |
+
<meta name="author" content="Nama Anda">
|
9 |
+
<title>AkenoAI API - Rest Api Free</title>
|
10 |
+
<style>
|
11 |
+
body {
|
12 |
+
font-family: 'Roboto', sans-serif;
|
13 |
+
background-color: #f4faff;
|
14 |
+
color: #333;
|
15 |
+
margin: 0;
|
16 |
+
padding: 0;
|
17 |
+
line-height: 1.6;
|
18 |
+
}
|
19 |
+
.container {
|
20 |
+
max-width: 1000px;
|
21 |
+
margin: 40px auto;
|
22 |
+
padding: 0 20px;
|
23 |
+
}
|
24 |
+
header {
|
25 |
+
background: #1e90ff;
|
26 |
+
color: #fff;
|
27 |
+
padding: 30px 0;
|
28 |
+
text-align: center;
|
29 |
+
border-bottom: 3px solid #005f9e;
|
30 |
+
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
31 |
+
}
|
32 |
+
header h1 {
|
33 |
+
margin: 0;
|
34 |
+
font-size: 2.5em;
|
35 |
+
font-weight: 400;
|
36 |
+
}
|
37 |
+
.main {
|
38 |
+
margin-top: 20px;
|
39 |
+
}
|
40 |
+
h2, h3 {
|
41 |
+
color: #1e90ff;
|
42 |
+
font-weight: 400;
|
43 |
+
}
|
44 |
+
.code-block {
|
45 |
+
background: #e0f7ff;
|
46 |
+
padding: 15px;
|
47 |
+
border-left: 5px solid #1e90ff;
|
48 |
+
margin: 20px 0;
|
49 |
+
position: relative;
|
50 |
+
border-radius: 5px;
|
51 |
+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
52 |
+
}
|
53 |
+
.code-block pre {
|
54 |
+
margin: 0;
|
55 |
+
overflow-x: auto;
|
56 |
+
font-size: 0.9em;
|
57 |
+
}
|
58 |
+
.copy-btn {
|
59 |
+
position: absolute;
|
60 |
+
top: 10px;
|
61 |
+
right: 10px;
|
62 |
+
background: none;
|
63 |
+
border: none;
|
64 |
+
cursor: pointer;
|
65 |
+
outline: none;
|
66 |
+
}
|
67 |
+
.copy-btn img {
|
68 |
+
width: 24px;
|
69 |
+
height: 24px;
|
70 |
+
}
|
71 |
+
.stats-container {
|
72 |
+
display: grid;
|
73 |
+
grid-template-columns: 1fr 1fr;
|
74 |
+
gap: 20px;
|
75 |
+
margin-top: 40px;
|
76 |
+
}
|
77 |
+
.stat-box {
|
78 |
+
background: #fff;
|
79 |
+
padding: 20px;
|
80 |
+
border-radius: 10px;
|
81 |
+
text-align: center;
|
82 |
+
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
83 |
+
transition: transform 0.3s, box-shadow 0.3s;
|
84 |
+
}
|
85 |
+
.stat-box:hover {
|
86 |
+
transform: translateY(-10px);
|
87 |
+
box-shadow: 0 12px 24px rgba(0,0,0,0.1);
|
88 |
+
}
|
89 |
+
.stat-box h3 {
|
90 |
+
margin: 0;
|
91 |
+
font-size: 1.2em;
|
92 |
+
color: #1e90ff;
|
93 |
+
font-weight: 400;
|
94 |
+
}
|
95 |
+
.stat-box p {
|
96 |
+
margin: 10px 0 0;
|
97 |
+
font-size: 2.5em;
|
98 |
+
font-weight: bold;
|
99 |
+
color: #333;
|
100 |
+
}
|
101 |
+
.stat-box.full-width {
|
102 |
+
grid-column: span 2;
|
103 |
+
}
|
104 |
+
footer {
|
105 |
+
background: #1e90ff;
|
106 |
+
color: #fff;
|
107 |
+
text-align: center;
|
108 |
+
padding: 20px 0;
|
109 |
+
position: relative;
|
110 |
+
bottom: 0;
|
111 |
+
width: 100%;
|
112 |
+
margin-top: 40px;
|
113 |
+
box-shadow: 0 -4px 8px rgba(0,0,0,0.1);
|
114 |
+
}
|
115 |
+
footer p {
|
116 |
+
margin: 0;
|
117 |
+
font-size: 0.9em;
|
118 |
+
}
|
119 |
+
</style>
|
120 |
+
</head>
|
121 |
+
<body>
|
122 |
+
|
123 |
+
<header>
|
124 |
+
<h1>Akeno AI</h1>
|
125 |
+
</header>
|
126 |
+
|
127 |
+
<div class="container">
|
128 |
+
<div class="main">
|
129 |
+
<h2>Introduction</h2>
|
130 |
+
<p>Dokumen ini menyediakan cara mudah untuk menggunakan klien Python untuk berinteraksi dengan API Akeno Dengan klien ini, kamu bisa mengirim permintaan dengan berbagai parameter dan menerima hasil dari API. Perlu diketahui, AkenoAi itu gratis, tanpa batasan, mendukung teks, gambar, data real-time, dan disupport oleh tim blackbox.ai. Jadi, kamu bisa menggunakannya dengan bebas dan fleksibel!</p>
|
131 |
+
|
132 |
+
<h2>Installation</h2>
|
133 |
+
<p>Pertama, pastikan Anda sudah menginstal Python Kemudian, instal dependensi yang diperlukan:</p>
|
134 |
+
<div class="code-block">
|
135 |
+
<pre><code>pip3 install requests</code></pre>
|
136 |
+
</div>
|
137 |
+
|
138 |
+
<h3>Basic Usage</h3>
|
139 |
+
<p>Mengirim permintaan ke API AkenoAi sangat sederhana. Pada dasarnya, yang Anda butuhkan hanyalah menyertakan content dalam setiap permintaan. ini kodenya:</p>
|
140 |
+
<div class="code-block">
|
141 |
+
<pre><code>import requests
|
142 |
+
|
143 |
+
url = "something"
|
144 |
+
payload = {}
|
145 |
+
response = requests.post(url, json=payload)
|
146 |
+
print(response.json())</code></pre>
|
147 |
+
</div>
|
148 |
+
|
149 |
+
<h3>TOANIME</h3>
|
150 |
+
<p>Mengirim permintaan ke API AkenoAi sangat sederhana. Pada dasarnya, yang Anda butuhkan hanyalah menyertakan content dalam setiap permintaan. ini kodenya:</p>
|
151 |
+
<div class="code-block">
|
152 |
+
<pre><code>import requests
|
153 |
+
|
154 |
+
url = "https://randydev-ryuzaki-api.hf.space/akeno/toanime"
|
155 |
+
|
156 |
+
with open(file_path, "rb") as file:
|
157 |
+
files = {"file": file}
|
158 |
+
response = requests.post(url, files=files)
|
159 |
+
|
160 |
+
response_json = response.json()
|
161 |
+
print(response_json)</code></pre>
|
162 |
+
</div>
|
163 |
+
|
164 |
+
<h3>REMINI ENHANCER</h3>
|
165 |
+
<p>Mengirim permintaan ke API AkenoAi sangat sederhana. Pada dasarnya, yang Anda butuhkan hanyalah menyertakan content dalam setiap permintaan. ini kodenya:</p>
|
166 |
+
<div class="code-block">
|
167 |
+
<pre><code>import requests
|
168 |
+
|
169 |
+
url = f"https://randydev-ryuzaki-api.hf.space/akeno/remini?remini_api_key={your_api_here}"
|
170 |
+
|
171 |
+
with open(file_path, "rb") as file:
|
172 |
+
files = {"file": file}
|
173 |
+
response = requests.post(url, files=files)
|
174 |
+
|
175 |
+
response_json = response.json()
|
176 |
+
print(response_json)</code></pre>
|
177 |
+
</div>
|
178 |
+
|
179 |
+
<h2>Closing</h2>
|
180 |
+
<p>Terima kasih kepada semua yang telah menggunakan AkenoAI. Kami berharap API ini terus memberikan manfaat positif bagi penggunanya. Jika Anda memiliki pertanyaan lebih lanjut, jangan ragu untuk menghubungi kami di Telegram: t.me/xtdevs.</p>
|
181 |
+
|
182 |
+
<h2>Special Thanks</h2>
|
183 |
+
<p>API ini didukung oleh platform Blackbox.ai, dan kami sangat berterima kasih kepada tim Blackbox.ai atas kontribusi luar biasa mereka. Terima kasih juga kepada kak habibie yang telah membantu membiayai hosting web API ini.</p>
|
184 |
+
</div>
|
185 |
+
</div>
|
186 |
+
|
187 |
+
<footer>
|
188 |
+
<p>AkenoAI API Client © 2024</p>
|
189 |
+
</footer>
|
190 |
+
</body>
|
191 |
+
</html>
|
main.py
CHANGED
@@ -67,6 +67,9 @@ from fastapi import Body, Query
|
|
67 |
from fastapi.staticfiles import StaticFiles
|
68 |
from fastapi.templating import Jinja2Templates
|
69 |
|
|
|
|
|
|
|
70 |
import g4f
|
71 |
from g4f.client import Client
|
72 |
from g4f.client import Client as BingClient
|
@@ -139,11 +142,15 @@ collection = db["users"]
|
|
139 |
|
140 |
trans = SyncTranslator()
|
141 |
|
142 |
-
app = FastAPI(docs_url=None, redoc_url=
|
143 |
app.include_router(fluxai_router, prefix="/api/v1")
|
144 |
app.include_router(whisper_router, prefix="/api/v1")
|
145 |
app.include_router(instagram_router, prefix="/api/v1")
|
146 |
|
|
|
|
|
|
|
|
|
147 |
timeout = 100
|
148 |
|
149 |
contact_support = """
|
|
|
67 |
from fastapi.staticfiles import StaticFiles
|
68 |
from fastapi.templating import Jinja2Templates
|
69 |
|
70 |
+
from starlette.responses import RedirectResponse
|
71 |
+
from starlette.staticfiles import StaticFiles
|
72 |
+
|
73 |
import g4f
|
74 |
from g4f.client import Client
|
75 |
from g4f.client import Client as BingClient
|
|
|
142 |
|
143 |
trans = SyncTranslator()
|
144 |
|
145 |
+
app = FastAPI(docs_url=None, redoc_url=None)
|
146 |
app.include_router(fluxai_router, prefix="/api/v1")
|
147 |
app.include_router(whisper_router, prefix="/api/v1")
|
148 |
app.include_router(instagram_router, prefix="/api/v1")
|
149 |
|
150 |
+
@app.get("/")
|
151 |
+
async def read_index():
|
152 |
+
return RedirectResponse(url="index.html")
|
153 |
+
|
154 |
timeout = 100
|
155 |
|
156 |
contact_support = """
|