Skip to main content
POST
/
v1
/
images
/
generations
mj-v7-remove-bg Interface
curl --request POST \
  --url https://api.evolink.ai/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "mj-v7-remove-bg",
  "image_urls": [
    "https://example.com/photo.jpg"
  ]
}
'
{
  "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-remove-bg
required

Model name

Available options:
mj-v7-remove-bg
Example:

"mj-v7-remove-bg"

image_urls
string<uri>[]
required

Input image URL (uses the first one)

Supported formats: .png, .gif, .webp, .jpg, .jpeg

Maximum array length: 1
Example:
["https://example.com/photo.jpg"]
callback_url
string<uri>

HTTPS callback URL for task completion

Callback timing:

  • Triggered when task is completed, failed, or cancelled
  • Sent after billing confirmation

Security restrictions:

  • HTTPS protocol only
  • Callbacks to private IP addresses are prohibited (127.0.0.1, 10.x.x.x, 172.16-31.x.x, 192.168.x.x, etc.)
  • URL length must not exceed 2048 characters

Callback mechanism:

  • Timeout: 10 seconds
  • Up to 3 retries after failure (retries at 1s/2s/4s after failure)
  • Callback response body format matches the task query endpoint
  • A 2xx status code is considered successful; other status codes trigger retries
Example:

"https://your-domain.com/webhooks/image-task-completed"

Response

Image generation 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