curl --request POST \
--url https://api.evolink.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "mj-v8.1",
"prompt": "A cinematic shot of a Maine Coon cat on a neon-lit balcony --ar 16:9 --s 500",
"quality": "standard",
"model_params": {
"speed": "fast"
}
}
'
{
"created": 1757165031,
"id": "task-unified-1757165031-mjv81",
"model": "mj-v8.1",
"object": "image.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 45
},
"type": "image",
"usage": {
"billing_rule": "per_call",
"credits_reserved": 1.8,
"user_group": "default"
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: mj-v8.1",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}Midjourney V8.1
Midjourney V8.1 画像生成
- Midjourney V8.1 モデルは自然言語プロンプトによる高品質な画像生成をサポートします。Fast モードは 1 回の生成で 4 枚の画像を返します。Draft モードは 1 回の実行で 24 枚の軽量な 0.5K スケッチ画像を返します
- テキストから画像への生成と、画像から画像への生成(prompt 内で画像 URL を参照)をサポート
- V8.1 のハイライト:ネイティブ HD 出力(
quality=hd)、前世代の約 5 倍の生成速度、テキストレンダリングの改善(引用符で囲まれたテキストがより正確にレンダリングされます)、より強力なプロンプト追従性 - V7 アセットと互換:スタイル参照(
--sref)とオブジェクト参照(--oref)をサポート。プロンプトパラメータガイドを参照 - 非同期処理モード。返されたタスク ID を使用してステータスを照会
- 生成された画像リンクの有効期限は 30 日です。お早めに保存してください
- タイムアウト:約 20 分
- パラメータの注意:本インターフェースは V8.1 に固定されており、niji はサポートしていません。速度モードは
model_params.speedで設定し、出力品質はトップレベルのqualityパラメータで設定してください
POST
/
v1
/
images
/
generations
curl --request POST \
--url https://api.evolink.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "mj-v8.1",
"prompt": "A cinematic shot of a Maine Coon cat on a neon-lit balcony --ar 16:9 --s 500",
"quality": "standard",
"model_params": {
"speed": "fast"
}
}
'
{
"created": 1757165031,
"id": "task-unified-1757165031-mjv81",
"model": "mj-v8.1",
"object": "image.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 45
},
"type": "image",
"usage": {
"billing_rule": "per_call",
"credits_reserved": 1.8,
"user_group": "default"
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: mj-v8.1",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}Midjourneyにはコンテンツ審査機能が組み込まれています。生成された画像の一部が審査でフィルタリングされた場合、そのリクエストで消費されたクレジットは返金されません。プロンプトの内容がガイドラインに準拠しているかご確認ください。
承認
##全てのインターフェースはBearer Token認証が必要です##
API Keyの取得:
API Key管理ページにアクセスしてAPI Keyを取得してください
リクエストヘッダーに追加:
Authorization: Bearer YOUR_API_KEY
ボディ
application/json
モデル名
利用可能なオプション:
mj-v8.1 プロンプト。Midjourney V8.1 のすべてのネイティブパラメータ構文をサポートします(例:--ar 16:9 --s 500)。
画像から画像: prompt の先頭に画像 URL を配置します。対応フォーマット:.png, .gif, .webp, .jpg, .jpeg
画像から画像のルール:
- 画像 1 枚 + テキストなし = 無効(エラーになります)
- 画像 1 枚 + テキスト説明 = 有効
- 画像 2 枚以上 + テキストなし = 有効
- 画像 2 枚以上 + テキスト説明 = 有効
Maximum string length:
1024例:
"A cinematic shot of a Maine Coon cat on a neon-lit balcony --ar 16:9 --s 500"
出力品質
standard:標準解像度(デフォルト)、1 倍の倍率hd:ネイティブ HD 出力、1.5 倍の倍率。speed: draftとは互いに排他的です
料金の注意: 品質倍率は speed 倍率と掛け合わされます(乗算)。
利用可能なオプション:
standard, hd モデルパラメータ
Show child attributes
Show child attributes
タスク完了後のHTTPSコールバックアドレス
コールバックタイミング:
- タスクが完了(completed)、失敗(failed)、またはキャンセル(cancelled)されたときにトリガー
- 課金確認完了後に送信
セキュリティ制限:
- HTTPSプロトコルのみ対応
- プライベートIPアドレスへのコールバックは禁止(127.0.0.1、10.x.x.x、172.16-31.x.x、192.168.x.xなど)
- URLの長さは
2048文字以下
コールバックメカニズム:
- タイムアウト:
10秒 - 失敗後最大
3回リトライ(それぞれ失敗の1秒/2秒/4秒後にリトライ) - コールバックレスポンスのフォーマットはタスク照会インターフェースの戻り値と同一
- コールバックアドレスが2xxステータスコードを返した場合は成功、その他のステータスコードはリトライをトリガー
例:
"https://your-domain.com/webhooks/image-task-completed"
レスポンス
タスク作成成功
タスク作成タイムスタンプ
例:
1757165031
タスクID
例:
"task-unified-1757165031-mjv81"
実際に使用されたモデル名
例:
"mj-v8.1"
タスクタイプ
利用可能なオプション:
image.generation.task タスク進捗率 (0-100)
必須範囲:
0 <= x <= 100例:
0
タスクステータス
利用可能なオプション:
pending, processing, completed, failed 例:
"pending"
非同期タスク情報
Show child attributes
Show child attributes
タスク出力タイプ
利用可能なオプション:
text, image, audio, video 例:
"image"
使用量と課金情報
Show child attributes
Show child attributes