curl --request POST \
--url https://api.evolink.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "mj-v7-variation",
"model_params": {
"task_id": "task-unified-xxx",
"image_number": 2,
"type": "strong"
}
}
'{
"created": 1757165031,
"id": "task-unified-1757165031-mjv7",
"model": "mj-v7-variation",
"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"
},
"effective_speed": "fast"
}{
"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-v7-variation",
"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"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}Midjourney V7 バリエーション
- 完了したmj-v7シリーズの画像生成タスクに基づき、指定した画像のスタイルが似ているが異なるバリエーションを生成します
- オプションのプロンプトをサポート、入力すると変化と同時にコンテンツを変更します
- 非同期処理モード、返されたタスクIDで照会を実行
curl --request POST \
--url https://api.evolink.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "mj-v7-variation",
"model_params": {
"task_id": "task-unified-xxx",
"image_number": 2,
"type": "strong"
}
}
'{
"created": 1757165031,
"id": "task-unified-1757165031-mjv7",
"model": "mj-v7-variation",
"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"
},
"effective_speed": "fast"
}{
"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-v7-variation",
"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"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}承認
##全てのインターフェースはBearer Token認証が必要です##
API Keyの取得:
API Key管理ページにアクセスしてAPI Keyを取得してください
リクエストヘッダーに追加:
Authorization: Bearer YOUR_API_KEY
ボディ
モデル名
mj-v7-variation モデルパラメータ
Show child attributes
Show child attributes
オプションのプロンプト、入力するとリミックスプロンプトとして機能し、バリエーションと同時にコンテンツを変更
prompt は任意です。省略、空文字、空白のみ、または制御対象の速度・バージョン指定を除去すると空になる場合は、speed=turbo でも Fast で実行し Fast 料金を適用します。有効な本文がある場合、速度の省略または fast は Fast、turbo は Turbo で実行し Fast の2倍の料金です。Playground は Fast のみです。ソースは現在のユーザーが所有する完了済みタスクが必要です。prompt なしでは画像生成、および対応する variation・pan・outpaint の結果を使用できます。
"夕焼けのシーンに変更"
タスク完了後の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-mjv7"
実際に使用されたモデル名
"mj-v7-variation"
タスクタイプ
image.generation.task タスク進捗率 (0-100)
0 <= x <= 1000
タスクステータス
pending, processing, completed, failed "pending"
非同期タスク情報
Show child attributes
Show child attributes
タスク出力タイプ
text, image, audio, video "image"
使用量と課金情報
Show child attributes
Show child attributes
prompt は任意です。省略、空文字、空白のみ、または制御対象の速度・バージョン指定を除去すると空になる場合は、speed=turbo でも Fast で実行し Fast 料金を適用します。有効な本文がある場合、速度の省略または fast は Fast、turbo は Turbo で実行し Fast の2倍の料金です。Playground は Fast のみです。ソースは現在のユーザーが所有する完了済みタスクが必要です。prompt なしでは画像生成、および対応する variation・pan・outpaint の結果を使用できます。
fast, turbo