Skip to main content
POST
/
v1
/
images
/
generations
Midjourney V7 Outpaint
curl --request POST \
  --url https://api.evolink.ai/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "mj-v7-outpaint",
  "model_params": {
    "task_id": "task-unified-xxx",
    "image_number": 1,
    "scale": 1.5
  }
}
'
{
  "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"
  }
}
Midjourney has a built-in content moderation system. If some generated images are filtered by moderation, credits consumed for that request will not be refunded. Please ensure your prompts comply with content guidelines.

Authorizations

Authorization
string
header
required

All endpoints require Bearer Token authentication

Get API Key:

Visit API Key Management Page to get your API Key

Add to request header:

Authorization: Bearer YOUR_API_KEY

Body

application/json
model
enum<string>
default:mj-v7-outpaint
required

Model name

Available options:
mj-v7-outpaint
model_params
object
required

Model parameters

prompt
string

Guide content for the expanded area

callback_url
string<uri>

Callback URL for task completion

Response

Task created successfully

created
integer

Task creation timestamp

Example:

1757165031

id
string

Task ID

Example:

"task-unified-1757165031-mjv7"

model
string

Actual model name used

object
enum<string>

Task object type

Available options:
image.generation.task
progress
integer

Task progress percentage (0-100)

Required range: 0 <= x <= 100
Example:

0

status
enum<string>

Task status

Available options:
pending,
processing,
completed,
failed
Example:

"pending"

task_info
object
type
enum<string>
Available options:
text,
image,
audio,
video
Example:

"image"

usage
object