curl --request POST \
--url https://api.evolink.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "mj-v7-inpaint",
"prompt": "桜の木を追加する",
"model_params": {
"task_id": "task-unified-xxx",
"image_number": 0,
"mask": {
"areas": [
{
"width": 200,
"height": 200,
"points": [
50,
50,
50,
250,
250,
250,
250,
50
]
}
]
}
}
}
'{
"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,
"user_group": "default"
}
}{
"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 インペイント
- 画像内の特定の領域を再生成し、他の部分はそのまま保持します
- 2つのマスク方式をサポート:ポリゴン座標またはモノクロマスク画像
- 非同期処理モード、返されたタスク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-inpaint",
"prompt": "桜の木を追加する",
"model_params": {
"task_id": "task-unified-xxx",
"image_number": 0,
"mask": {
"areas": [
{
"width": 200,
"height": 200,
"points": [
50,
50,
50,
250,
250,
250,
250,
50
]
}
]
}
}
}
'{
"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,
"user_group": "default"
}
}{
"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
レスポンス
タスク作成成功
タスク作成タイムスタンプ
例:
1757165031
タスクID
例:
"task-unified-1757165031-mjv7"
実際に使用されたモデル名
タスクタイプ
利用可能なオプション:
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