Skip to content

Latest commit

 

History

History
113 lines (81 loc) · 3.41 KB

File metadata and controls

113 lines (81 loc) · 3.41 KB

小野AI Content Creation Platform

XiaoYe API

XiaoYe API Gateway

A unified gateway for large model APIs with better pricing and stability. Supports 30+ mainstream providers including OpenAI, Claude, Gemini, DeepSeek, Qwen, Volcengine, and Moonshot AI.

Visit https://ai.xiaoye.io/

License: AGPL-3.0

Open-source multi-modal AI content creation platform. Generate images and videos with Google Gemini, Volcengine Seedream/Seedance, and more.

Live Demo: https://muse-ai.nlink.vip/

English | 中文

Screenshots

Inspiration Generate
Generate Inspiration

Features

  • Image Generation — Multi-model support (Gemini, Seedream), reference images, resolution up to 4K
  • Video Generation — Text-to-video & image-to-video (Seedance, Veo 3.1), async task polling
  • E-commerce Batch — Batch product image generation with templates
  • Prompt Optimization — AI-powered prompt rewriting via DeepSeek
  • Reverse Prompt — Extract prompts from existing images
  • Inspiration Feed — Community gallery with likes, remix, and moderation
  • Credit System — License key redemption, daily check-in, invite rewards, online payment
  • User System — Email registration/login, Linux.do OAuth, email binding
  • i18n — Chinese & English

Tech Stack

Layer Stack
Frontend Vue 3, Naive UI, Pinia, Vue Router, Vite
Backend Go (Gin), GORM, MySQL, JWT
AI Providers Google Gemini, Volcengine (Doubao)
Storage Alibaba Cloud OSS
Admin Vue 3 SPA (separate build)

Getting Started

Prerequisites

  • Go 1.21+
  • Node.js 18+
  • MySQL 8.0+
  • Alibaba Cloud OSS bucket (for media storage)
  • At least one AI provider API key (Google Gemini or Volcengine)

Backend

cd backend
cp .env.example .env    # Edit .env with your configuration
go run main.go          # Starts on :8092

Frontend

cd frontend
npm install
npm run dev             # Starts on http://localhost:5173

Admin Panel

cd frontend-admin
npm install
npm run dev             # Starts on http://localhost:5174

Configuration

All configuration is via environment variables. See README.md for the full configuration reference.

Deployment

Production Build

# Frontend
cd frontend && npm run build        # Output: frontend/dist/

# Admin
cd frontend-admin && npm run build  # Output: frontend-admin/dist/

# Backend
cd backend && go build -o server main.go

Set CORS_ORIGINS=https://your-domain.com in your production .env.

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the AGPL-3.0. If you deploy a modified version as a network service, you must make the source code available to users of that service.