File size: 2,185 Bytes
b8ebccd
 
 
c8a1a85
 
b8ebccd
c8a1a85
 
 
 
 
 
 
 
 
b8ebccd
 
ffda3ec
e66980c
c04b9a0
 
e66980c
 
 
 
 
 
 
 
c04b9a0
 
 
 
 
f7c9e1d
c04b9a0
 
 
 
 
 
 
f7c9e1d
c04b9a0
 
 
 
 
 
 
4702279
f7c9e1d
c04b9a0
 
 
ffda3ec
c04b9a0
 
 
 
 
 
 
4702279
815b564
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0f558cd
e66980c
ffda3ec
c1083c5
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
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
---

<h1><center>Midjourney-mini</center></h1>

## 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

```py
from diffusers import DiffusionPipeline

pipeline = DiffusionPipeline.from_pretrained("midjourney-community/midjourney-mini")
```

## Deploy in Spaces

```py
import gradio as gr

gr.Interface.load("models/midjourney-community/midjourney-mini").launch()
```

## Deploy in Inference API


```py
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",
})
```

```js
async function query(data) {
	const response = await fetch(
		"https://api-inference.huggingface.co/models/midjourney-community/midjourney-mini",
		{
			headers: { Authorization: "Bearer hf_token" },
			method: "POST",
			body: JSON.stringify(data),
		}
	);
	const result = await response.blob();
	return result;
}
query({"inputs": "Astronaut riding a horse"}).then((response) => {
	// Use image
});
```


# Links
-[GitHub](https://github.com/minhthangdang/MidJoureny)
-[Official site](https://midjourney.com)
-[Download for Windows](https://mid-journey.com/downloaв)