flexstack.ai
  • Welcome to Flexstack AI
  • How Flexstack AI works
    • Three roles in Flexstack AI
    • AI Stack architecture
    • Models Directory
    • Open Source AI Demo
      • Image generation
      • LLM (Text completion)
      • Video generation
  • Flexstack AI API: Start making things with Flexstack AI
    • Environment setup
    • Restful APIs
      • User Endpoints
        • Login
        • Refresh Token
        • User Profile
        • Task History
      • LLMs
        • Models
        • Text Completion
      • Image Generation
        • Models
        • LoRA
          • List Types
          • List Categories
          • List Models
        • Create Image
        • Get Result
      • Video Generation
        • Models
        • Create video
        • Get Result
      • Audio Generation
        • Models
        • Music / Sound Effects Generation
          • Create audio
          • Get Result
        • Speech Generation
          • Create audio
          • Get Result
      • Text Embeddings
        • Models
        • Create embedding
        • Get Result
      • Feedback & Retrain model
        • Train LORA
        • Feedback
        • Feedback Request
      • Error Handling
        • Error Response
  • Flexstack AI Host: Start contributing
    • Prerequisites
    • Deployment Guideline
      • RunPod
      • VALDI
  • Flexstack AI Validator
    • LLM Validation
      • Methodology
      • Restful APIs
  • Additional Information
    • Technical support
Powered by GitBook
On this page

Was this helpful?

  1. Flexstack AI API: Start making things with Flexstack AI
  2. Restful APIs
  3. Image Generation
  4. LoRA

List Models

HTTP request

POST /lora/?type={type}&cate={cate}

Authorization

Include your ACCESS TOKEN in HTTP Authorization header

Authorization: Bearer Token

Request Parameters

KEY
TYPE
VALUE

type

String

Type of LoRA model. Enum: “sd”,”sdxl”. The default is take all.

cate

String

Catalog of LoRA models. This parameter is diverse. The default value is take all.

Parrot API

lora_models = parrot.get_lora_models(type, cate)

Response

Returns the list of types.

{
  "data": [
    {
      "model": "add_detail",
      "metadata": {
        "source": "https://huggingface.co/OedoSoldier/detail-tweaker-lora"
      }
    },
    {
      "model": "add_detail_xl",
      "metadata": {
        "source": "https://civitai.com/models/122359/detail-tweaker-xl"
      }
    },
    {
      "model": "anime_nouveau_xl",
      "metadata": {
        "source": "https://huggingface.co/Linaqruf/anime-nouveau-xl-lora"
      }
    },
    {
      "model": "storybook-kids",
      "metadata": {
        "source": "https://huggingface.co/artificialguybr/storybookredmond-1-5-version-storybook-kids-lora-style-for-sd-1-5"
      }
    }
  ]
}
PreviousList CategoriesNextCreate Image

Last updated 1 year ago

Was this helpful?