feat: Add ModelsLab backend for cloud AI inference#8597
Open
adhikjoshi wants to merge 1 commit intomudler:masterfrom
Open
feat: Add ModelsLab backend for cloud AI inference#8597adhikjoshi wants to merge 1 commit intomudler:masterfrom
adhikjoshi wants to merge 1 commit intomudler:masterfrom
Conversation
✅ Deploy Preview for localai ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ModelsLab Backend for LocalAI
🚀 First Cloud Provider Backend for LocalAI - Comprehensive multi-modal AI generation via ModelsLab API
Overview
This backend integrates ModelsLab's cloud AI APIs with LocalAI, providing self-hosted users access to:
Key Features
Quick Start
1. Get ModelsLab API Key
2. Install Backend in LocalAI
3. Configure API Key
4. Use with LocalAI
Configuration
Environment Variables
MODELSLAB_API_KEYMODELSLAB_BASE_URLhttps://modelslab.com/api/v6MODELSLAB_TIMEOUT300MODELSLAB_RETRY_COUNT3LOCALAI_BACKEND_ADDRESSlocalhost:50051PYTHON_GRPC_MAX_WORKERS4Model Configuration
The backend automatically maps LocalAI model requests to ModelsLab models:
Override via LoadModel options:
{ "model": "custom-model-id", "options": ["modelslab_api_key:your_key", "modelslab_base_url:custom_url"] }Supported Models
🤖 Text Generation (LLM)
🖼️ Image Generation
🎬 Video Generation (New!)
🔊 Audio & Speech
📊 Text Embeddings
API Compatibility
This backend implements LocalAI's standard gRPC interface:
Development
Building from Source
Testing
Project Structure
Architecture
Request Flow
Key Components
Use Cases
Hybrid AI Workflows
Cost Optimization
Latest Model Access
Scalability
Pricing
ModelsLab uses pay-per-use pricing:
See ModelsLab Pricing for current rates.
Support
Contributing
git checkout -b feature-nameLicense
This project is licensed under the Apache License 2.0. See LICENSE for details.
Made with ❤️ by the ModelsLab Team
Bringing cloud AI to self-hosted LocalAI installations worldwide.