devdocs-build.html 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=1440">
  6. <title>Nexus API Documentation</title>
  7. <link rel="preconnect" href="https://fonts.googleapis.com">
  8. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  9. <link href="https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600&family=JetBrains+Mono:wght@300;400;500&display=swap" rel="stylesheet">
  10. <script src="https://unpkg.com/lucide@latest"></script>
  11. <style>
  12. * { margin: 0; padding: 0; box-sizing: border-box; }
  13. body {
  14. width: 1440px;
  15. height: 900px;
  16. overflow: hidden;
  17. margin: 0;
  18. font-family: 'Inter', sans-serif;
  19. background: #FAFAF8;
  20. color: #2C2C2C;
  21. }
  22. /* Navigation */
  23. nav {
  24. height: 64px;
  25. display: flex;
  26. align-items: center;
  27. justify-content: space-between;
  28. padding: 0 80px;
  29. position: relative;
  30. }
  31. .nav-logo {
  32. display: flex;
  33. align-items: center;
  34. gap: 12px;
  35. }
  36. .nav-logo-icon {
  37. width: 32px;
  38. height: 32px;
  39. border-radius: 2px;
  40. background: #E8E4DF;
  41. display: flex;
  42. align-items: center;
  43. justify-content: center;
  44. }
  45. .nav-logo-icon i { color: #D4A574; }
  46. .nav-logo span {
  47. font-size: 17px;
  48. font-weight: 500;
  49. letter-spacing: -0.3px;
  50. color: #1A1A1A;
  51. }
  52. .nav-center {
  53. position: absolute;
  54. left: 50%;
  55. transform: translateX(-50%);
  56. display: flex;
  57. gap: 32px;
  58. }
  59. .nav-center a {
  60. font-size: 13px;
  61. font-weight: 400;
  62. color: #999;
  63. text-decoration: none;
  64. letter-spacing: 0.3px;
  65. transition: color 0.2s;
  66. }
  67. .nav-center a:hover { color: #2C2C2C; }
  68. .nav-center a.active { color: #2C2C2C; font-weight: 500; }
  69. .nav-right {
  70. display: flex;
  71. align-items: center;
  72. gap: 24px;
  73. }
  74. .nav-right a {
  75. font-size: 13px;
  76. color: #BBB;
  77. text-decoration: none;
  78. transition: color 0.2s;
  79. }
  80. .nav-right a:hover { color: #2C2C2C; }
  81. .status-pill {
  82. display: flex;
  83. align-items: center;
  84. gap: 6px;
  85. padding: 5px 12px;
  86. border-radius: 2px;
  87. background: rgba(212, 165, 116, 0.08);
  88. font-size: 11px;
  89. color: #B0ACA4;
  90. font-weight: 400;
  91. }
  92. .status-pill .dot {
  93. width: 6px;
  94. height: 6px;
  95. background: #D4A574;
  96. border-radius: 50%;
  97. }
  98. /* Hero section */
  99. .hero {
  100. text-align: center;
  101. padding: 64px 80px 48px;
  102. }
  103. .hero-eyebrow {
  104. font-size: 12px;
  105. font-weight: 400;
  106. letter-spacing: 4px;
  107. text-transform: uppercase;
  108. color: #B0ACA4;
  109. margin-bottom: 24px;
  110. }
  111. .hero h1 {
  112. font-size: 56px;
  113. font-weight: 200;
  114. letter-spacing: -2.5px;
  115. line-height: 1.1;
  116. color: #1A1A1A;
  117. margin-bottom: 16px;
  118. }
  119. .hero h1 em {
  120. font-style: normal;
  121. font-weight: 500;
  122. }
  123. .hero p {
  124. font-size: 17px;
  125. font-weight: 300;
  126. color: #999;
  127. line-height: 1.6;
  128. max-width: 520px;
  129. margin: 0 auto 36px;
  130. letter-spacing: 0.1px;
  131. }
  132. .hero-actions {
  133. display: flex;
  134. justify-content: center;
  135. gap: 16px;
  136. margin-bottom: 0;
  137. }
  138. .hero-actions a {
  139. display: inline-flex;
  140. align-items: center;
  141. gap: 8px;
  142. padding: 12px 28px;
  143. font-size: 13px;
  144. font-weight: 400;
  145. text-decoration: none;
  146. border-radius: 2px;
  147. transition: all 0.2s;
  148. letter-spacing: 0.2px;
  149. }
  150. .btn-primary {
  151. background: #1A1A1A;
  152. color: #FAFAF8;
  153. }
  154. .btn-primary:hover { background: #333; }
  155. .btn-secondary {
  156. background: transparent;
  157. color: #999;
  158. border: 1px solid #E0DDD8;
  159. }
  160. .btn-secondary:hover { border-color: #CCC; color: #666; }
  161. /* Code card */
  162. .code-section {
  163. display: flex;
  164. justify-content: center;
  165. padding: 32px 80px 48px;
  166. }
  167. .code-card {
  168. background: #FFFFFF;
  169. border-radius: 2px;
  170. box-shadow: 0 8px 40px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
  171. max-width: 600px;
  172. width: 100%;
  173. overflow: hidden;
  174. }
  175. .code-card-header {
  176. display: flex;
  177. align-items: center;
  178. justify-content: space-between;
  179. padding: 14px 24px;
  180. border-bottom: 1px solid #F2F0EC;
  181. }
  182. .code-card-header .dots {
  183. display: flex;
  184. gap: 7px;
  185. }
  186. .code-card-header .dots span {
  187. width: 10px;
  188. height: 10px;
  189. border-radius: 50%;
  190. background: #E8E5E0;
  191. }
  192. .code-card-header .filename {
  193. font-family: 'JetBrains Mono', monospace;
  194. font-size: 11px;
  195. color: #BBB;
  196. font-weight: 400;
  197. }
  198. .code-card-header .copy-btn {
  199. display: flex;
  200. align-items: center;
  201. gap: 4px;
  202. background: none;
  203. border: none;
  204. cursor: pointer;
  205. color: #CCC;
  206. font-size: 11px;
  207. font-family: 'Inter', sans-serif;
  208. }
  209. .code-card-body {
  210. padding: 24px 28px;
  211. font-family: 'JetBrains Mono', monospace;
  212. font-size: 13px;
  213. line-height: 1.8;
  214. color: #444;
  215. font-weight: 400;
  216. }
  217. .code-card-body .kw { color: #8B7355; font-weight: 500; }
  218. .code-card-body .str { color: #D4A574; }
  219. .code-card-body .cmt { color: #CCCCCC; }
  220. .code-card-body .fn { color: #777; }
  221. .code-card-body .num { color: #B08D57; }
  222. /* Quick links */
  223. .quick-links {
  224. display: flex;
  225. justify-content: center;
  226. gap: 48px;
  227. padding: 16px 80px 48px;
  228. }
  229. .quick-link {
  230. display: flex;
  231. align-items: center;
  232. gap: 8px;
  233. text-decoration: none;
  234. color: #BBB;
  235. font-size: 13px;
  236. font-weight: 400;
  237. transition: color 0.2s;
  238. letter-spacing: 0.2px;
  239. }
  240. .quick-link:hover { color: #666; }
  241. .quick-link i { color: #D4A574; opacity: 0.6; }
  242. /* Features */
  243. .features {
  244. display: grid;
  245. grid-template-columns: repeat(3, 1fr);
  246. gap: 24px;
  247. padding: 0 80px;
  248. max-width: 1100px;
  249. margin: 0 auto;
  250. }
  251. .feature-card {
  252. background: #FFFFFF;
  253. border-radius: 2px;
  254. padding: 32px 28px;
  255. box-shadow: 0 2px 16px rgba(0,0,0,0.02);
  256. transition: box-shadow 0.2s;
  257. }
  258. .feature-card:hover {
  259. box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  260. }
  261. .feature-icon-wrap {
  262. width: 40px;
  263. height: 40px;
  264. border-radius: 2px;
  265. background: #F0EBE3;
  266. display: flex;
  267. align-items: center;
  268. justify-content: center;
  269. margin-bottom: 20px;
  270. }
  271. .feature-icon-wrap i { color: #D4A574; }
  272. .feature-card h3 {
  273. font-size: 16px;
  274. font-weight: 500;
  275. letter-spacing: -0.3px;
  276. margin-bottom: 8px;
  277. color: #1A1A1A;
  278. }
  279. .feature-card p {
  280. font-size: 13px;
  281. font-weight: 300;
  282. line-height: 1.65;
  283. color: #AAA;
  284. }
  285. </style>
  286. </head>
  287. <body>
  288. <!-- Navigation -->
  289. <nav>
  290. <div class="nav-logo">
  291. <div class="nav-logo-icon"><i data-lucide="zap" style="width:16px;height:16px;"></i></div>
  292. <span>Nexus</span>
  293. </div>
  294. <div class="nav-center">
  295. <a href="#" class="active">Docs</a>
  296. <a href="#">API</a>
  297. <a href="#">Changelog</a>
  298. <a href="#">Status</a>
  299. <a href="#">GitHub</a>
  300. </div>
  301. <div class="nav-right">
  302. <div class="status-pill"><span class="dot"></span> Operational</div>
  303. <a href="#"><i data-lucide="search" style="width:15px;height:15px;color:#CCC;"></i></a>
  304. </div>
  305. </nav>
  306. <!-- Hero -->
  307. <section class="hero">
  308. <div class="hero-eyebrow">Unified AI Gateway</div>
  309. <h1>One API, <em>every</em> AI model<span style="color:#D4A574;font-weight:300;">.</span></h1>
  310. <p>Access GPT, Claude, Gemini, and 20+ models through a single endpoint. Intelligent routing, unified billing, zero vendor lock-in.</p>
  311. <div class="hero-actions">
  312. <a href="#" class="btn-primary"><i data-lucide="arrow-right" style="width:14px;height:14px;"></i> Get started</a>
  313. <a href="#" class="btn-secondary">View API reference</a>
  314. </div>
  315. </section>
  316. <!-- Code Card -->
  317. <section class="code-section">
  318. <div class="code-card">
  319. <div class="code-card-header">
  320. <div class="dots"><span></span><span></span><span></span></div>
  321. <span class="filename">quickstart.py</span>
  322. <button class="copy-btn"><i data-lucide="copy" style="width:12px;height:12px;"></i> Copy</button>
  323. </div>
  324. <div class="code-card-body">
  325. <span class="kw">from</span> nexus <span class="kw">import</span> Client<br><br>
  326. client = Client(api_key=<span class="str">"your-key"</span>)<br>
  327. response = client.chat(<br>
  328. &nbsp;&nbsp;&nbsp;&nbsp;model=<span class="str">"auto"</span>,&nbsp;&nbsp;<span class="cmt"># intelligently routes</span><br>
  329. &nbsp;&nbsp;&nbsp;&nbsp;messages=[{<span class="str">"role"</span>: <span class="str">"user"</span>, <span class="str">"content"</span>: <span class="str">"Hello!"</span>}]<br>
  330. )
  331. </div>
  332. </div>
  333. </section>
  334. <!-- Quick Links -->
  335. <div class="quick-links">
  336. <a href="#" class="quick-link"><i data-lucide="rocket" style="width:14px;height:14px;"></i> Getting Started</a>
  337. <a href="#" class="quick-link"><i data-lucide="file-text" style="width:14px;height:14px;"></i> API Reference</a>
  338. <a href="#" class="quick-link"><i data-lucide="layers" style="width:14px;height:14px;"></i> Models</a>
  339. <a href="#" class="quick-link"><i data-lucide="credit-card" style="width:14px;height:14px;"></i> Pricing</a>
  340. </div>
  341. <!-- Features -->
  342. <section class="features">
  343. <div class="feature-card">
  344. <div class="feature-icon-wrap"><i data-lucide="git-branch" style="width:18px;height:18px;"></i></div>
  345. <h3>Model Routing</h3>
  346. <p>Automatically select the best model for each request based on task complexity, latency requirements, and cost constraints.</p>
  347. </div>
  348. <div class="feature-card">
  349. <div class="feature-icon-wrap"><i data-lucide="trending-down" style="width:18px;height:18px;"></i></div>
  350. <h3>Cost Optimization</h3>
  351. <p>Reduce AI spend by up to 60% with intelligent model selection and automatic fallback to cost-effective alternatives.</p>
  352. </div>
  353. <div class="feature-card">
  354. <div class="feature-icon-wrap"><i data-lucide="bar-chart-3" style="width:18px;height:18px;"></i></div>
  355. <h3>Usage Analytics</h3>
  356. <p>Real-time dashboards tracking token usage, response latency, model performance, and cost breakdowns per project.</p>
  357. </div>
  358. </section>
  359. <script>lucide.createIcons();</script>
  360. </body>
  361. </html>