File size: 35,163 Bytes
			
			| 5243061 f53960f 5243061 f53960f 1b86d8a f53960f 1b86d8a f53960f 1b86d8a f53960f 1b86d8a f53960f 1b86d8a f53960f f841fdd f53960f 1b86d8a f53960f 5243061 | 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 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 | <!DOCTYPE html>
<html lang="en" class="dark">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="MGZon Chatbot API Documentation β Detailed guide for integrating AI-powered features like code generation, web search, and e-commerce solutions by Mark Al-Asfar.">
    <meta name="keywords" content="MGZon API Docs, AI Chatbot Integration, Code Generation API, E-commerce AI, Mark Al-Asfar, FastAPI, Gradio">
    <meta name="author" content="Mark Al-Asfar">
    <meta name="robots" content="index, follow">
    <title>MGZon Chatbot API Documentation</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <link rel="manifest" href="/static/manifest.json">
    <link rel="apple-touch-icon" sizes="180x180" href="/static/images/mg-180.png">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-title" content="MGZon">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <meta name="theme-color" content="#00f0ff">
    <meta property="og:title" content="MGZon Chatbot API Documentation">
    <meta property="og:description" content="Comprehensive API docs for MGZon Chatbot: Integrate AI for code, search, and e-commerce by Mark Al-Asfar.">
    <meta property="og:image" content="/static/images/mg.svg">
    <meta property="og:url" content="https://mgzon-mgzon-app.hf.space/docs">
    <meta property="og:type" content="website">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="MGZon Chatbot API Documentation">
    <meta name="twitter:description" content="Comprehensive API docs for MGZon Chatbot: Integrate AI for code, search, and e-commerce by Mark Al-Asfar.">
    <meta name="twitter:image" content="/static/images/mg.svg">
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "WebSite",
      "name": "MGZon Chatbot API Docs",
      "url": "https://mgzon-mgzon-app.hf.space/docs",
      "description": "API Documentation for MGZon Chatbot by Mark Al-Asfar: Integrate AI for code generation, real-time web search, and e-commerce solutions.",
      "keywords": ["MGZon API", "AI Integration", "Code Generation API", "E-commerce API", "Mark Al-Asfar", "FastAPI Docs", "Hugging Face API", "2025 AI API", "chatgpt api", "grok api", "deepseek api", "text generation api"],
      "potentialAction": {
        "@type": "SearchAction",
        "target": "https://mgzon-mgzon-app.hf.space/?q={search_term_string}",
        "query-input": "required name=search_term_string"
      },
      "publisher": {
        "@type": "Organization",
        "name": "MGZon AI",
        "logo": {
          "@type": "ImageObject",
          "url": "/static/images/mg.svg"
        }
      }
    }
    </script>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/themes/prism.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/prism.min.js"></script>
    <link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/particles.js/2.0.0/particles.min.js"></script>
    <style>
        :root {
            --font-sans: 'Poppins', sans-serif;
            --font-mono: 'Orbitron', monospace;
            --radius: 1rem;
        }
        :root.dark {
            --background: 220 70% 10%;
            --foreground: 0 0% 95%;
            --card: 220 70% 15%;
            --card-foreground: 0 0% 90%;
            --primary: 180 100% 50%;
            --primary-foreground: 0 0% 0%;
            --secondary: 260 80% 30%;
            --secondary-foreground: 0 0% 95%;
            --muted: 220 50% 20%;
            --muted-foreground: 0 0% 70%;
            --accent: 320 100% 60%;
            --accent-foreground: 0 0% 95%;
            --border: 220 50% 25%;
        }
        :root.light {
            --background: 0 0% 100%;
            --foreground: 220 70% 10%;
            --card: 0 0% 95%;
            --card-foreground: 220 70% 15%;
            --primary: 180 100% 50%;
            --primary-foreground: 0 0% 100%;
            --secondary: 260 80% 40%;
            --secondary-foreground: 0 0% 10%;
            --muted: 0 0% 90%;
            --muted-foreground: 0 0% 40%;
            --accent: 320 100% 50%;
            --accent-foreground: 0 0% 10%;
            --border: 0 0% 80%;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: var(--font-sans);
            background: hsl(var(--background));
            color: hsl(var(--foreground));
            line-height: 1.6;
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
        }
        #particles-js {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }
        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 2rem;
        }
        .header {
            padding: 2rem 0;
            text-align: center;
            background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--card)));
        }
        .logo {
            width: 200px;
            height: auto;
            filter: drop-shadow(0 0 20px hsl(var(--primary) / 0.5));
            animation: logoSpin 10s linear infinite;
        }
        @keyframes logoSpin {
            0% { transform: rotateY(0deg) scale(1); }
            50% { transform: rotateY(180deg) scale(1.1); }
            100% { transform: rotateY(360deg) scale(1); }
        }
        .hero {
            padding: 3rem 0;
            text-align: center;
            position: relative;
            background: transparent;
        }
        .hero-tagline {
            font-family: 'Orbitron', sans-serif;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: fadeIn 1s ease-out;
        }
        .hero .subtitle {
            font-size: 1.2rem;
            color: hsl(var(--muted-foreground));
            margin-bottom: 2rem;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
            animation: fadeIn 1s ease-out 0.3s both;
        }
        .highlight {
            color: hsl(var(--primary));
            font-weight: 600;
        }
        .nav-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-bottom: 3rem;
            flex-wrap: wrap;
            animation: fadeIn 1s ease-out 0.6s both;
        }
        .nav-link {
            padding: 1rem 2.5rem;
            border-radius: var(--radius);
            text-decoration: none;
            font-family: 'Orbitron', sans-serif;
            font-weight: 500;
            transition: all 0.3s ease;
            background: linear-gradient(135deg, hsl(var(--card)), hsl(var(--muted)));
            color: hsl(var(--card-foreground));
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 15px hsl(var(--foreground) / 0.2);
        }
        .nav-link:hover {
            background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
            color: hsl(var(--primary-foreground));
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 10px 30px hsl(var(--primary) / 0.5);
        }
        .nav-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s;
        }
        .nav-link:hover::before {
            left: 100%;
        }
        .cta-button {
            background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
            color: hsl(var(--primary-foreground));
            border: none !important;
            font-size: 1.2rem;
            padding: 1.2rem 3rem !important;
            font-weight: 700;
        }
        .cta-button:hover {
            box-shadow: 0 15px 40px hsl(var(--primary) / 0.6);
            transform: translateY(-8px) scale(1.1);
        }
        .code-snippet {
            background: hsl(var(--muted));
            border: 1px solid hsl(var(--border));
            border-radius: var(--radius);
            padding: 1.5rem;
            font-family: var(--font-mono);
            font-size: 1rem;
            color: hsl(var(--primary));
            margin: 0 auto;
            overflow-x: auto;
            max-width: 700px;
            position: relative;
            animation: fadeIn 1s ease-out 0.8s both;
            box-shadow: 0 5px 20px hsl(var(--primary) / 0.3);
        }
        .code-snippet::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
        }
        .quick-features {
            padding: 4rem 0;
            background: transparent;
        }
        .quick-features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }
        .quick-feature {
            text-align: center;
            padding: 2rem;
            background: linear-gradient(135deg, hsl(var(--card)), hsl(var(--muted)));
            border-radius: var(--radius);
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px hsl(var(--foreground) / 0.2);
        }
        .quick-feature:hover {
            transform: translateY(-10px) scale(1.05);
            box-shadow: 0 15px 30px hsl(var(--primary) / 0.4);
        }
        .quick-feature-icon {
            font-size: 3rem;
            margin-bottom: 1.5rem;
            display: block;
            color: hsl(var(--primary));
            transition: transform 0.3s ease;
        }
        .quick-feature:hover .quick-feature-icon {
            transform: scale(1.2) rotate(5deg);
        }
        .quick-feature h3 {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: hsl(var(--foreground));
        }
        .quick-feature p {
            color: hsl(var(--muted-foreground));
            font-size: 1rem;
        }
        .wave-divider {
            height: 120px;
            background: transparent;
            position: relative;
            overflow: hidden;
        }
        .wave-divider::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 200%;
            height: 100%;
            background: linear-gradient(135deg, hsl(var(--card)), hsl(var(--background)));
            border-radius: 50%;
            animation: wave 10s ease-in-out infinite;
        }
        @keyframes wave {
            0%, 100% { transform: translateX(-50%) translateY(70%); }
            50% { transform: translateX(-50%) translateY(50%); }
        }
        .features {
            padding: 5rem 0;
            background: hsl(var(--card));
        }
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2.5rem;
            margin-top: 3rem;
        }
        .feature-card {
            padding: 2.5rem;
            background: hsl(var(--background));
            border: 1px solid hsl(var(--border));
            border-radius: var(--radius);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            box-shadow: 0 5px 20px hsl(var(--foreground) / 0.2);
        }
        .feature-card::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, hsl(var(--primary) / 0.2), transparent, hsl(var(--accent) / 0.2));
            border-radius: var(--radius);
            z-index: -1;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .feature-card:hover::before {
            opacity: 1;
        }
        .feature-card:hover {
            transform: translateY(-10px) scale(1.05);
            box-shadow: 0 20px 40px hsl(var(--primary) / 0.5);
        }
        .feature-icon {
            width: 3.5rem;
            height: 3.5rem;
            background: linear-gradient(135deg, hsl(var(--primary) / 0.2), hsl(var(--accent) / 0.2));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
            font-size: 1.8rem;
            color: hsl(var(--primary));
            transition: transform 0.3s ease;
        }
        .feature-card:hover .feature-icon {
            transform: rotate(360deg) scale(1.2);
        }
        .feature-card h3 {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: hsl(var(--card-foreground));
        }
        .feature-card p {
            color: hsl(var(--muted-foreground));
            font-size: 1rem;
        }
        .section-title {
            font-family: 'Orbitron', sans-serif;
            text-align: center;
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: fadeIn 1s ease-out;
        }
        .section-subtitle {
            text-align: center;
            color: hsl(var(--muted-foreground));
            font-size: 1.2rem;
            margin-bottom: 2rem;
        }
        .footer {
            padding: 4rem 0;
            border-top: 1px solid hsl(var(--border));
            text-align: center;
            background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--card)));
        }
        .disclaimer {
            background: hsl(var(--muted));
            color: hsl(var(--muted-foreground));
            padding: 2rem;
            border-radius: var(--radius);
            margin-bottom: 2rem;
            border-left: 5px solid hsl(var(--primary));
            box-shadow: 0 5px 20px hsl(var(--primary) / 0.3);
        }
        .disclaimer h4 {
            font-weight: 700;
            margin-bottom: 1rem;
            color: hsl(var(--foreground));
        }
        .theme-toggle {
            position: fixed;
            top: 2rem;
            right: 2rem;
            background: linear-gradient(135deg, hsl(var(--card)), hsl(var(--muted)));
            border: 1px solid hsl(var(--border));
            color: hsl(var(--card-foreground));
            padding: 1rem;
            border-radius: var(--radius);
            cursor: pointer;
            font-size: 1.5rem;
            transition: all 0.3s ease;
            z-index: 1000;
        }
        .theme-toggle:hover {
            background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
            transform: scale(1.2) rotate(360deg);
            box-shadow: 0 10px 20px hsl(var(--primary) / 0.5);
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(40px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @media (max-width: 768px) {
            .hero-tagline {
                font-size: 2rem;
            }
            .nav-links {
                flex-direction: column;
                align-items: center;
            }
            .nav-link {
                width: 250px;
                text-align: center;
            }
            .container {
                padding: 0 1.5rem;
            }
            .quick-features-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <div id="particles-js"></div>
    <button class="theme-toggle" onclick="toggleTheme()">π</button>
    <header class="header">
        <div class="container">
            <img src="/static/images/mg.svg" alt="MGZon Logo" class="logo">
        </div>
    </header>
    <section class="hero">
        <div class="container">
            <h1 class="hero-tagline">MGZon Chatbot API Documentation</h1>
            <p class="subtitle">
                Explore the <span class="highlight">MGZon Chatbot API</span> for seamless integration of AI-powered code generation, text generation, and e-commerce automation. Built by Mark Al-Asfar using FastAPI and Hugging Face AI. Rivals tools like ChatGPT, Grok, and DeepSeek.
            </p>
            
            <div class="nav-links">
                <a href="/" class="nav-link">Home</a>
                <a href="/docs" class="nav-link">API Documentation</a>
                <a href="/about" class="nav-link">About MGZon</a>
                <a href="https://hager-zon.vercel.app/community" class="nav-link">Community</a>
                <a href="https://mark-elasfar.web.app/" class="nav-link">Mark Al-Asfar</a>
                <a href="/chat" class="nav-link cta-button">Launch Chatbot</a>
            </div>
            <div class="code-snippet">
                curl -X POST "https://mgzon-mgzon-app.hf.space/api/chat" -H "Content-Type: application/json" -d '{"message": "Hello MGZon!"}'
            </div>
        </div>
    </section>
    <section class="quick-features">
        <div class="container">
            <div class="quick-features-grid">
                <div class="quick-feature">
                    <span class="quick-feature-icon">π</span>
                    <h3>Authentication</h3>
                    <p>Secure JWT-based auth for all endpoints. Register and login to get started.</p>
                </div>
                
                <div class="quick-feature">
                    <span class="quick-feature-icon">π‘</span>
                    <h3>Real-Time APIs</h3>
                    <p>Endpoints for chat, code generation, image analysis, and more.</p>
                </div>
                
                <div class="quick-feature">
                    <span class="quick-feature-icon">π</span>
                    <h3>Performance Stats</h3>
                    <p>Monitor API performance and model info in real-time.</p>
                </div>
                
                <div class="quick-feature">
                    <span class="quick-feature-icon">π‘οΈ</span>
                    <h3>Secure & Scalable</h3>
                    <p>Built with FastAPI for high performance and security.</p>
                </div>
            </div>
        </div>
    </section>
    <div class="wave-divider"></div>
    <section class="features">
        <div class="container">
            <h2 class="section-title">API Endpoints Dashboard</h2>
            <p class="section-subtitle">Browse and explore all available endpoints with examples and schemas.</p>
            
            <div class="features-grid">
                <div class="feature-card">
                    <div class="feature-icon">π</div>
                    <h3>GET /openapi.json</h3>
                    <p>Retrieve the full OpenAPI specification in JSON format.</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X GET "https://mgzon-mgzon-app.hf.space/openapi.json"
                    </div>
                </div>
                
                <div class="feature-card">
                    <div class="feature-icon">βοΈ</div>
                    <h3>GET /api/settings</h3>
                    <p>Get current API settings and configurations.</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X GET "https://mgzon-mgzon-app.hf.space/api/settings"
                    </div>
                </div>
                
                <div class="feature-card">
                    <div class="feature-icon">π€</div>
                    <h3>GET /api/model-info</h3>
                    <p>Fetch information about the AI models in use.</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X GET "https://mgzon-mgzon-app.hf.space/api/model-info"
                    </div>
                </div>
                
                <div class="feature-card">
                    <div class="feature-icon">π</div>
                    <h3>GET /api/performance</h3>
                    <p>View performance statistics for the API.</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X GET "https://mgzon-mgzon-app.hf.space/api/performance"
                    </div>
                </div>
                
                <div class="feature-card">
                    <div class="feature-icon">π¬</div>
                    <h3>POST /api/chat</h3>
                    <p>Interact with the chatbot for queries and code generation.</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X POST "https://mgzon-mgzon-app.hf.space/api/chat" -H "Content-Type: application/json" -d '{"message": "Generate code"}'
                    </div>
                </div>
                
                <div class="feature-card">
                    <div class="feature-icon">πΌοΈ</div>
                    <h3>POST /api/image-generation</h3>
                    <p>Generate images based on text prompts.</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X POST "https://mgzon-mgzon-app.hf.space/api/image-generation" -H "Content-Type: application/json" -d '{"prompt": "A futuristic city"}'
                    </div>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">π€</div>
                    <h3>POST /api/audio-transcription</h3>
                    <p>Transcribe audio files to text.</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X POST "https://mgzon-mgzon-app.hf.space/api/audio-transcription" -F "file=@audio.wav"
                    </div>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">π</div>
                    <h3>POST /api/text-to-speech</h3>
                    <p>Convert text to speech audio.</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X POST "https://mgzon-mgzon-app.hf.space/api/text-to-speech" -H "Content-Type: application/json" -d '{"text": "Hello world"}'
                    </div>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">π»</div>
                    <h3>POST /api/code</h3>
                    <p>Generate or analyze code snippets.</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X POST "https://mgzon-mgzon-app.hf.space/api/code" -H "Content-Type: application/json" -d '{"prompt": "Write a Python function"}'
                    </div>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">π</div>
                    <h3>POST /api/analysis</h3>
                    <p>Perform text or data analysis.</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X POST "https://mgzon-mgzon-app.hf.space/api/analysis" -H "Content-Type: application/json" -d '{"data": "Analyze this text"}'
                    </div>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">πΌοΈ</div>
                    <h3>POST /api/image-analysis</h3>
                    <p>Analyze images for content and features.</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X POST "https://mgzon-mgzon-app.hf.space/api/image-analysis" -F "file=@image.jpg"
                    </div>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">π§ͺ</div>
                    <h3>GET /api/test-model</h3>
                    <p>Test the AI model with a sample query.</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X GET "https://mgzon-mgzon-app.hf.space/api/test-model"
                    </div>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">π</div>
                    <h3>GET /api/conversations</h3>
                    <p>List all user conversations.</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X GET "https://mgzon-mgzon-app.hf.space/api/conversations"
                    </div>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">β</div>
                    <h3>POST /api/conversations</h3>
                    <p>Create a new conversation.</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X POST "https://mgzon-mgzon-app.hf.space/api/conversations" -H "Content-Type: application/json" -d '{}'
                    </div>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">π</div>
                    <h3>GET /api/conversations/{conversation_id}</h3>
                    <p>Get details of a specific conversation.</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X GET "https://mgzon-mgzon-app.hf.space/api/conversations/123"
                    </div>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">ποΈ</div>
                    <h3>DELETE /api/conversations/{conversation_id}</h3>
                    <p>Delete a conversation.</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X DELETE "https://mgzon-mgzon-app.hf.space/api/conversations/123"
                    </div>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">βοΈ</div>
                    <h3>PUT /api/conversations/{conversation_id}/title</h3>
                    <p>Update conversation title.</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X PUT "https://mgzon-mgzon-app.hf.space/api/conversations/123/title" -H "Content-Type: application/json" -d '{"title": "New Title"}'
                    </div>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">π€</div>
                    <h3>PUT /users/me</h3>
                    <p>Update current user settings.</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X PUT "https://mgzon-mgzon-app.hf.space/users/me" -H "Content-Type: application/json" -d '{"settings": {}}'
                    </div>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">π</div>
                    <h3>GET /api/verify-token</h3>
                    <p>Verify authentication token.</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X GET "https://mgzon-mgzon-app.hf.space/api/verify-token"
                    </div>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">πͺ</div>
                    <h3>POST /logout</h3>
                    <p>Logout the current user.</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X POST "https://mgzon-mgzon-app.hf.space/logout"
                    </div>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">π</div>
                    <h3>GET /debug/routes</h3>
                    <p>Debug API routes (dev only).</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X GET "https://mgzon-mgzon-app.hf.space/debug/routes"
                    </div>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">π </div>
                    <h3>GET /</h3>
                    <p>Root endpoint for the app.</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X GET "https://mgzon-mgzon-app.hf.space/"
                    </div>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">π</div>
                    <h3>GET /docs</h3>
                    <p>API Documentation page (you're here!).</p>
                    <div class="code-snippet mt-2 text-sm">
                        curl -X GET "https://mgzon-mgzon-app.hf.space/docs"
                    </div>
                </div>
                <!-- Add more endpoints as needed, following the same pattern -->
            </div>
        </div>
    </section>
    <footer class="footer">
        <div class="container">
            <div class="disclaimer">
                <h4>API Usage Guidelines</h4>
                <p>
                    All endpoints require authentication unless specified. Use your JWT token in the Authorization header. 
                    For full schemas and advanced usage, refer to /openapi.json.
                </p>
                <div style="text-align:center; margin-top: 1.5rem;">
                    <a href="/openapi.json" class="nav-link cta-button">Download OpenAPI JSON</a>
                </div>
            </div>
            <div class="flex justify-center gap-6 mb-4">
                <a href="https://github.com/Mark-Lasfar/MGZon" class="text-2xl text-white hover:text-[hsl(var(--primary))] transition"><i class="bx bxl-github"></i></a>
                <a href="https://x.com/MGZon" class="text-2xl text-white hover:text-[hsl(var(--primary))] transition"><i class="bx bxl-twitter"></i></a>
                <a href="https://www.facebook.com/people/Mark-Al-Asfar/pfbid02GMisUQ8AqWkNZjoKtWFHH1tbdHuVscN1cjcFnZWy9HkRaAsmanBfT6mhySAyqpg4l/" class="text-2xl text-white hover:text-[hsl(var(--primary))] transition"><i class="bx bxl-facebook"></i></a>
            </div>
            <p>Β© 2025 Mark Al-Asfar & MGZon AI. All rights reserved.</p>
        </div>
    </footer>
    <button id="installAppBtn" style="display: none;" class="fixed bottom-4 right-4 bg-gradient-to-r from-[hsl(var(--primary))] to-[hsl(var(--accent))] text-white px-6 py-3 rounded-full shadow-lg z-50">
        π² Install MG Chat
    </button>
    <script>
        // Particles.js initialization
        particlesJS('particles-js', {
            particles: {
                number: { value: 80, density: { enable: true, value_area: 800 } },
                color: { value: ['#00f0ff', '#ff007a', '#6b21a8'] },
                shape: { type: 'circle' },
                opacity: { value: 0.5, random: true },
                size: { value: 3, random: true },
                line_linked: { enable: true, distance: 150, color: '#00f0ff', opacity: 0.4, width: 1 },
                move: { enable: true, speed: 3, direction: 'none', random: true }
            },
            interactivity: {
                detect_on: 'canvas',
                events: { onhover: { enable: true, mode: 'repulse' }, onclick: { enable: true, mode: 'push' } },
                modes: { repulse: { distance: 100 }, push: { particles_nb: 4 } }
            },
            retina_detect: true
        });
        function toggleTheme() {
            const html = document.documentElement;
            const button = document.querySelector('.theme-toggle');
            if (html.classList.contains('dark')) {
                html.classList.remove('dark');
                html.classList.add('light');
                button.textContent = 'βοΈ';
                localStorage.setItem('theme', 'light');
            } else {
                html.classList.remove('light');
                html.classList.add('dark');
                button.textContent = 'π';
                localStorage.setItem('theme', 'dark');
            }
        }
        // Load saved theme preference or system preference
        const savedTheme = localStorage.getItem('theme');
        if (savedTheme) {
            document.documentElement.classList.remove('dark', 'light');
            document.documentElement.classList.add(savedTheme);
            document.querySelector('.theme-toggle').textContent = savedTheme === 'dark' ? 'π' : 'βοΈ';
        } else if (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) {
            document.documentElement.classList.remove('dark');
            document.documentElement.classList.add('light');
            document.querySelector('.theme-toggle').textContent = 'βοΈ';
            localStorage.setItem('theme', 'light');
        }
        if ('serviceWorker' in navigator) {
            navigator.serviceWorker.register('/static/js/sw.js')
                .then(reg => console.log('β
 Service Worker Registered', reg))
                .catch(err => console.error('β Service Worker registration failed', err));
        }
        let deferredPrompt;
        window.addEventListener('beforeinstallprompt', (e) => {
            e.preventDefault();
            deferredPrompt = e;
            const installBtn = document.getElementById('installAppBtn');
            if (installBtn) {
                installBtn.style.display = 'block';
                installBtn.addEventListener('click', () => {
                    deferredPrompt.prompt();
                    deferredPrompt.userChoice.then(choice => {
                        console.log(choice.outcome === 'accepted' ? 'β
 User accepted the install prompt' : 'β User dismissed the install prompt');
                        deferredPrompt = null;
                    });
                });
            }
        });
    </script>
</body>
</html>
 | 
