metadata
license: creativeml-openrail-m
tags:
- midjourney
- midjourney-mini
pinned: true
datasets:
- succinctly/midjourney-prompts
language:
- en
- ru
- de
- fr
library_name: diffusers
pipeline_tag: text-to-image
Midjourney-mini
Description
Midjourney-mini is a free artificial intelligence model that can create realistic images based on textual descriptions. It has the following advantages:
- Free: Midjourney-mini is completely free to use for anyone.
- High-quality image generation: The model uses modern deep learning methods to create high-quality images.
- Ease of use: Working with Midjourney-mini does not require special programming or machine learning knowledge. The model has a convenient interface and works in your browser.
Although Midjoureymini is a trimmed-down version of the paid MIjdoureny modle, it still provides powerful functionality and can be used in various applications.
Use
In Diffusers
from diffusers import DiffusionPipeline
pipeline = DiffusionPipeline.from_pretrained("midjourney-community/midjourney-mini")
Deploy in Spaces
import gradio as gr
gr.Interface.load("models/midjourney-community/midjourney-mini").launch()
Deploy in Inference API
import requests
API_URL = "https://api-inference.huggingface.co/models/midjourney-community/midjourney-mini"
headers = {"Authorization": "Bearer hf_token"}
def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
return response.content
image_bytes = query({
"inputs": "Astronaut riding a horse",
})
# You can access the image with PIL.Image for example
import io
from PIL import Image
image = Image.open(io.BytesIO(image_bytes))