生成图片接口(MX绘画-Cute)
curl --request POST \
--url https://api.maxapi.ai/api/v1/mx/images/cute/generate \
--header 'Content-Type: application/json' \
--data '
{
"args": {
"prompt": "string",
"upscaler": 1,
"ratio": 1,
"negative_prompt": "string",
"negative_type": 0,
"extra_model": [
{
"id": "100000",
"weight": 0
}
],
"audit": 0,
"model": "202",
"photo_format": "jpg",
"width": 256,
"height": 256
},
"type": "MX-CUTE"
}
'import requests
url = "https://api.maxapi.ai/api/v1/mx/images/cute/generate"
payload = {
"args": {
"prompt": "string",
"upscaler": 1,
"ratio": 1,
"negative_prompt": "string",
"negative_type": 0,
"extra_model": [
{
"id": "100000",
"weight": 0
}
],
"audit": 0,
"model": "202",
"photo_format": "jpg",
"width": 256,
"height": 256
},
"type": "MX-CUTE"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
args: {
prompt: 'string',
upscaler: 1,
ratio: 1,
negative_prompt: 'string',
negative_type: 0,
extra_model: [{id: '100000', weight: 0}],
audit: 0,
model: '202',
photo_format: 'jpg',
width: 256,
height: 256
},
type: 'MX-CUTE'
})
};
fetch('https://api.maxapi.ai/api/v1/mx/images/cute/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.maxapi.ai/api/v1/mx/images/cute/generate"
payload := strings.NewReader("{\n \"args\": {\n \"prompt\": \"string\",\n \"upscaler\": 1,\n \"ratio\": 1,\n \"negative_prompt\": \"string\",\n \"negative_type\": 0,\n \"extra_model\": [\n {\n \"id\": \"100000\",\n \"weight\": 0\n }\n ],\n \"audit\": 0,\n \"model\": \"202\",\n \"photo_format\": \"jpg\",\n \"width\": 256,\n \"height\": 256\n },\n \"type\": \"MX-CUTE\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.maxapi.ai/api/v1/mx/images/cute/generate")
.header("Content-Type", "application/json")
.body("{\n \"args\": {\n \"prompt\": \"string\",\n \"upscaler\": 1,\n \"ratio\": 1,\n \"negative_prompt\": \"string\",\n \"negative_type\": 0,\n \"extra_model\": [\n {\n \"id\": \"100000\",\n \"weight\": 0\n }\n ],\n \"audit\": 0,\n \"model\": \"202\",\n \"photo_format\": \"jpg\",\n \"width\": 256,\n \"height\": 256\n },\n \"type\": \"MX-CUTE\"\n}")
.asString();{
"code": 0,
"msg": "成功",
"data": {
"img_uuid": "3e6fd87b-2895-402a-adc7-303f7ae0fd71"
}
}POST
https://api.maxapi.ai
/
api
/
v1
/
mx
/
images
/
cute
/
generate
生成图片接口(MX绘画-Cute)
curl --request POST \
--url https://api.maxapi.ai/api/v1/mx/images/cute/generate \
--header 'Content-Type: application/json' \
--data '
{
"args": {
"prompt": "string",
"upscaler": 1,
"ratio": 1,
"negative_prompt": "string",
"negative_type": 0,
"extra_model": [
{
"id": "100000",
"weight": 0
}
],
"audit": 0,
"model": "202",
"photo_format": "jpg",
"width": 256,
"height": 256
},
"type": "MX-CUTE"
}
'import requests
url = "https://api.maxapi.ai/api/v1/mx/images/cute/generate"
payload = {
"args": {
"prompt": "string",
"upscaler": 1,
"ratio": 1,
"negative_prompt": "string",
"negative_type": 0,
"extra_model": [
{
"id": "100000",
"weight": 0
}
],
"audit": 0,
"model": "202",
"photo_format": "jpg",
"width": 256,
"height": 256
},
"type": "MX-CUTE"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
args: {
prompt: 'string',
upscaler: 1,
ratio: 1,
negative_prompt: 'string',
negative_type: 0,
extra_model: [{id: '100000', weight: 0}],
audit: 0,
model: '202',
photo_format: 'jpg',
width: 256,
height: 256
},
type: 'MX-CUTE'
})
};
fetch('https://api.maxapi.ai/api/v1/mx/images/cute/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.maxapi.ai/api/v1/mx/images/cute/generate"
payload := strings.NewReader("{\n \"args\": {\n \"prompt\": \"string\",\n \"upscaler\": 1,\n \"ratio\": 1,\n \"negative_prompt\": \"string\",\n \"negative_type\": 0,\n \"extra_model\": [\n {\n \"id\": \"100000\",\n \"weight\": 0\n }\n ],\n \"audit\": 0,\n \"model\": \"202\",\n \"photo_format\": \"jpg\",\n \"width\": 256,\n \"height\": 256\n },\n \"type\": \"MX-CUTE\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.maxapi.ai/api/v1/mx/images/cute/generate")
.header("Content-Type", "application/json")
.body("{\n \"args\": {\n \"prompt\": \"string\",\n \"upscaler\": 1,\n \"ratio\": 1,\n \"negative_prompt\": \"string\",\n \"negative_type\": 0,\n \"extra_model\": [\n {\n \"id\": \"100000\",\n \"weight\": 0\n }\n ],\n \"audit\": 0,\n \"model\": \"202\",\n \"photo_format\": \"jpg\",\n \"width\": 256,\n \"height\": 256\n },\n \"type\": \"MX-CUTE\"\n}")
.asString();{
"code": 0,
"msg": "成功",
"data": {
"img_uuid": "3e6fd87b-2895-402a-adc7-303f7ae0fd71"
}
}请求体
application/json
Hide child attributes
Hide child attributes
Required string length:
1 - 1000可用选项:
1, 2 可用选项:
1, 5, 6, 10, 11 Maximum string length:
1000可用选项:
0, 1, 2 可用选项:
200, 201, 202, 203 可用选项:
jpg, png 必填范围:
256 <= x <= 1024可用选项:
MX-CUTE