获取 Midjourney Image Seed
curl --request GET \
--url https://kaienapi.com/mj/task/{id}/image-seed \
--header 'Authorization: Bearer <token>'import requests
url = "https://kaienapi.com/mj/task/{id}/image-seed"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://kaienapi.com/mj/task/{id}/image-seed', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://kaienapi.com/mj/task/{id}/image-seed"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}获取 Midjourney Image Seed
获取 Midjourney 图片 seed。
请求格式
传入已完成的任务 ID。部分任务可能没有 seed,是否返回取决于任务结果。
使用条件
复现相近构图、记录生成参数,或围绕同一画面方向继续调整 prompt 时,查询图片 seed。
读取结果
返回 JSON 对象。将 seed 与 prompt、任务 ID、最终图片一起保存,后续复盘和复用时更容易对齐。
GET
/
mj
/
task
/
{id}
/
image-seed
获取 Midjourney Image Seed
curl --request GET \
--url https://kaienapi.com/mj/task/{id}/image-seed \
--header 'Authorization: Bearer <token>'import requests
url = "https://kaienapi.com/mj/task/{id}/image-seed"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://kaienapi.com/mj/task/{id}/image-seed', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://kaienapi.com/mj/task/{id}/image-seed"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}