Documentation
Blend

Blend

POST
https://api.mymidjourney.ai/api/v1/midjourney/blend

You can use Midjourney to blend up to 5 images. Blend is useful when you want to mix multiple styles or content into one image.

POST /api/v1/midjourney/blend

Sample Request

{
  "urls": [
    "https://cdn.midjourney.com/ab739450-7a9a-4c91-857e-60892adf60e7/0_1.webp",
    "https://cdn.midjourney.com/1ac7559b-335c-4c29-b617-2cf546ea0a15/0_2.png"
  ]
}

Request Body

NameTypeRequiredRestrictionsDescription
urlsarraytruenoneimages URLs to blend together
refstringfalsenonenone
webhookOverridestringfalsenonenone

urls

An array of up to 5 URLs of where the image is currently stored. These can be URLs to an image on the web, or URLs to images on your server. For example:

{
  "urls": [
    "https://cdn.midjourney.com/ab739450-7a9a-4c91-857e-60892adf60e7/0_1.webp",
    "https://cdn.midjourney.com/1ac7559b-335c-4c29-b617-2cf546ea0a15/0_2.png"
  ]
}

ref (optional)

You can optionally pass ref in your command - which can be used useful when using webhooks You might want to do this to pass some simple metadata through to your webhook.

webhookOverride (optional)

You can optionally pass webhookOverride that will route a response to a webhook of your choosing. Please note that using a webhook is completely optional. You are welcome to use the GET Message endpoint to retrieve responses.

Sample Response

{
  "success": true,
  "messageId": "your-message-id",
  "createdAt": "2023-08-01T14:03:01.817Z"
}

Response Body

NameTypeDescription
successbooleana boolean value for the generation job creation status
messageIdstringthe messageId for querying the progress later
createdAtstringtimestamp of the task creation
errorstringerror message if any

Examples

const axios = require("axios")
 
const config = {
  method: "post",
  url: "https://api.mymidjourney.ai/api/v1/midjourney/blend",
  headers: {
    "Content-Type": "application/json",
    Authorization: "Bearer <your-token>",
  },
  data: {
    urls: [
      "https://cdn.midjourney.com/ab739450-7a9a-4c91-857e-60892adf60e7/0_1.webp",
      "https://cdn.midjourney.com/1ac7559b-335c-4c29-b617-2cf546ea0a15/0_2.png",
    ],
  },
}
 
axios(config)
  .then(function (response) {
    console.log(JSON.stringify(response.data))
  })
  .catch(function (error) {
    console.log(error)
  })