api.kolersky.com/api/midjourney/{task-type}
x-token: 0000::****-****-****-****
{
"err": "bad request, missing prompt in request",
"code": 400
}
{
"task_id": "d497783b-****-****-****-0367bce42db6",
"status": "pending",
"output": {
"image_url": "",
"image_urls": null,
"temporary_image_urls": null,
"discord_image_url": "",
"actions": [], // avalibe actions to do
"progress": 100,
"intermediate_image_urls": null
},
"code":200
}
POST api.kolersky.com/api/midjourney/imagine
{
"prompt": "new zealand wanaka",
"aspect_ratio": "16:9"
}
curl -X POST -H "x-token: 0000::****-****-****-****" --data-raw '{"prompt": "new zealand wanaka", "aspect_ratio": "16:9"}' api.kolersky.com/api/midjourney/imagine
POST api.kolersky.com/api/midjourney/upscale
{
"origin_task_id": "d497783b-****-****-****-0367bce42db6",
"index": "1"
}
curl -X POST -H "x-token: 0000::****-****-****-****" --data-raw '{"origin_task_id": "d497783b-****-****-****-0367bce42db6", "index": "1"}' api.kolersky.com/api/midjourney/upscale
POST api.kolersky.com/api/midjourney/variation
{
"origin_task_id": "d497783b-****-****-****-0367bce42db6",
"prompt": "winter new york",
"index": "3",
"aspect_ratio": "9:16"
}
curl -X POST -H "x-token: 0000::****-****-****-****" --data-raw '{"origin_task_id": "d497783b-****-****-****-0367bce42db6", "prompt": "winter new york", "index": "3", "aspect_ratio": "9:16"}' api.kolersky.com/api/midjourney/variation
POST api.kolersky.com/api/midjourney/reroll
JSON вид запроса:
{
"origin_task_id": "d497783b-****-****-****-0367bce42db6",
"prompt": "winter new york",
"aspect_ratio": "9:16"
}
curl -X POST -H "x-token: 0000::****-****-****-****" --data-raw '{"origin_task_id": "d497783b-****-****-****-0367bce42db6", "prompt": "winter new york", "aspect_ratio": "9:16"}' api.kolersky.com/api/midjourney/reroll
POST api.kolersky.com/api/midjourney/describe
{
"image_url": "http://midjourney-guigu.oss-us-west-1.aliyuncs.com/images/75ed4202402292139294887.jpg",
"process_mode": "fast",
}
curl -X POST -H "x-token: 0000::****-****-****-****" --data-raw '{"image_url": "http://midjourney-guigu.oss-us-west-1.aliyuncs.com/images/75ed4202402292139294887.jpg", "process_mode": "fast"}' api.kolersky.com/api/midjourney/describe
POST api.kolersky.com/api/midjourney/seed
{
"origin_task_id": "d497783b-****-****-****-0367bce42db6",
}
curl -X POST -H "x-token: 0000::****-****-****-****" --data-raw '{"origin_task_id": "d497783b-****-****-****-0367bce42db6"}' api.kolersky.com/api/midjourney/seed
POST api.kolersky.com/api/midjourney/blend
{
"image_urls": [
"https://aoyouer.com/posts/moyu-devlog-0/2022-11-24-00-59_hu3f1e0a40cb06392f97875a081976a63b_1192560_1600x0_resize_box_3.png",
"https://aoyouer.com/posts/hugo-with-codespace/2022-11-23%2013.34.47_hu1cc8e82c0c96924b0c8ea2f0980e2e30_140972_1600x0_resize_box_3.png"
],
"process_mode": "fast",
}
curl -X POST -H "x-token: 0000::****-****-****-****" --data-raw '{"image_urls": ["https://aoyouer.com/posts/moyu-devlog-0/2022-11-24-00-59_hu3f1e0a40cb06392f97875a081976a63b_1192560_1600x0_resize_box_3.png","https://aoyouer.com/posts/hugo-with-codespace/2022-11-23%2013.34.47_hu1cc8e82c0c96924b0c8ea2f0980e2e30_140972_1600x0_resize_box_3.png"], "process_mode": "fast"}' api.kolersky.com/api/midjourney/blend
POST api.kolersky.com/api/midjourney/inpaint
{
"origin_task_id": "d497783b-****-****-****-0367bce42db6",
"mask": "... base64 string",
}
curl -X POST -H "x-token: 0000::****-****-****-****" --data-raw '{"origin_task_id": "d497783b-****-****-****-0367bce42db6", "mask": "... base64 string",}' api.kolersky.com/api/midjourney/inpaint
POST api.kolersky.com/api/midjourney/outpaint
{
"origin_task_id": "d497783b-****-****-****-0367bce42db6",
"zoom_ratio": "2",
"prompt": "flying night city",
"aspect_ratio": "16:9",
}
curl -X POST -H "x-token: 0000::****-****-****-****" --data-raw '{"origin_task_id": "d497783b-****-****-****-0367bce42db6","zoom_ratio": "2", "prompt": "flying night city", "aspect_ratio": "16:9"}' api.kolersky.com/api/midjourney/outpaint
POST api.kolersky.com/api/midjourney/pan
{
"origin_task_id": "d497783b-****-****-****-0367bce42db6",
"direction": "down",
"prompt": "flying city, night"
}
curl -X POST -H "x-token: 0000::****-****-****-****" --data-raw '{"origin_task_id": "d497783b-****-****-****-0367bce42db6", "direction": "down", "prompt": "flying city, night"}' api.kolersky.com/api/midjourney/pan
DELETE api.kolerksy.com/api/midjourney/cancel
{
"origin_task_id": "d497783b-****-****-****-0367bce42db6"
}
curl -X DELETE -H "x-token: 0000::****-****-****-****" --data-raw '{"task_id": "d497783b-****-****-****-0367bce42db6"}' api.kolersky.com/api/midjourney/cancel
GET api.kolerksy.com/api/midjourney/cancel
curl -X GET -H "x-token: 0000::****-****-****-****" api.kolersky.com/api/midjourney/get_task?task_id=d497783b-****-****-****-0367bce42db6