Code Monkey home page Code Monkey logo

luma-api's Introduction

Luma API

中文

Disclaimer

  • This project is released on GitHub under the MIT license, free and open-source for educational purposes.

Supported Features

  • Luma API supports video generation and includes reference image support.
  • Simplified deployment process, supports docker-compose and docker.
  • [] Provides standardized services compatible with OpenAI's interface format, supports streaming and non-streaming output.
  • [] Automatic keep-alive.
  • [] Supports customization of the OpenAI Chat return content format based on Go Template syntax.
  • [] Compatible with front-end projects like chat-next-web.
  • [] Adapts to intermediary projects like New API.

API Docs

http://localhost:8000/swagger/index.html

Deployment

Configuration

First, obtain a cookie from your browser.

cookie

Env Environment Variables

环境变量 说明 默认值
COOKIE Cookie obtained from the image above for the Luma account None
BASE_URL Request API URL for Luma https://internal-api.virginia.labs.lumalabs.ai
PROXY HTTP proxy None
PORT Port 8000
ROTATE_LOGS Whether to rotate logs daily Yes
LOG_DIR Log output path ./logs
DEBUG Whether to enable Debug logging No
PPROF Whether to enable Pprof performance analysis, uses port 8005 if enabled No

Docker Deployment

Step-by-step guide on how to run a Docker container with specific environment variables and port mappings. Sensitive details like SQL names, passwords, and IP addresses are replaced with placeholders for this guide.

docker run --name luma-api -d -p 8000:8000 \
-e COOKIE=xxxx  \
 lumaapi/luma-api

docker-compose deployment

docker-compose pull && docker-compose up -d

docker-compose.yml

version: '3.2'

services:
  sunoapi:
    image: lumaapi/luma-api:latest
    container_name: luma-api
    restart: always
    ports:
      - "8000:8000"
    volumes:
      - ./logs:/logs
    environment:
      - COOKIE=

License

MIT © Luma API

Buy Me a Coke

zanshangcode.jpg

This project is open-source on GitHub under the MIT license and is free of charge. If you find this project helpful, please give it a star and share it. Thank you for your support!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.