curl --request POST \
--url https://api.evolink.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "mj-v7-pan",
"model_params": {
"task_id": "task-unified-xxx",
"image_number": 0,
"direction": "right",
"scale": 2
}
}
'{
"created": 1757165031,
"id": "task-unified-1757165031-mjv7",
"model": "<string>",
"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
},
"effective_speed": "fast"
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}Midjourney V7
Midjourney V7 パン
- 指定した方向に画像キャンバスを拡張し、元の画像とシームレスに繋がる新しいコンテンツを生成します
- 上下左右の4方向をサポート
- outpaintとの違い:panは一方向に拡張、outpaintは四方向に同時に拡張
- 非同期処理モード、返されたタスクIDで照会を実行
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-v7-pan",
"model_params": {
"task_id": "task-unified-xxx",
"image_number": 0,
"direction": "right",
"scale": 2
}
}
'{
"created": 1757165031,
"id": "task-unified-1757165031-mjv7",
"model": "<string>",
"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
},
"effective_speed": "fast"
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}Midjourneyにはコンテンツ審査機能が組み込まれています。生成された画像の一部が審査でフィルタリングされた場合、そのリクエストで消費されたクレジットは返金されません。プロンプトの内容がガイドラインに準拠しているかご確認ください。
承認
##全てのインターフェースはBearer Token認証が必要です##
API Keyの取得:
API Key管理ページにアクセスしてAPI Keyを取得してください
リクエストヘッダーに追加:
Authorization: Bearer YOUR_API_KEY
ボディ
application/json
拡張領域の内容をガイド
prompt は任意です。省略、空文字、空白のみ、または制御対象の速度・バージョン指定を除去すると空になる場合は、speed=turbo でも Fast で実行し Fast 料金を適用します。有効な本文がある場合、速度の省略または fast は Fast、turbo は Turbo で実行し Fast の2倍の料金です。Playground は Fast のみです。ソースは現在のユーザーが所有する完了済みタスクが必要です。prompt なしでは画像生成、および対応する variation・pan・outpaint の結果を使用できます。
例:
"星空に拡張する"
レスポンス
タスク作成成功
prompt は任意です。省略、空文字、空白のみ、または制御対象の速度・バージョン指定を除去すると空になる場合は、speed=turbo でも Fast で実行し Fast 料金を適用します。有効な本文がある場合、速度の省略または fast は Fast、turbo は Turbo で実行し Fast の2倍の料金です。Playground は Fast のみです。ソースは現在のユーザーが所有する完了済みタスクが必要です。prompt なしでは画像生成、および対応する variation・pan・outpaint の結果を使用できます。
利用可能なオプション:
fast, turbo