ClickCease

Blend

You can use (Redacted Name) to blend up to 5 images.

POST
https://api.thenextleg.io/v2/blend

Request Body

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.

ref (optional)

You can optionally pass ref in your command - which can be used useful when using webhooks

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.

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 var axios = require('axios'); var data = JSON.stringify({ "urls": ["your-url-1", "your-url-2"], "ref": "", "webhookOverride": "" }); var config = { method: 'post', url: 'https://api.thenextleg.io/v2/blend', headers: { 'Authorization': 'Bearer <your-token>', 'Content-Type': 'application/json' }, data : data }; axios(config) .then(function (response) { console.log(JSON.stringify(response.data)); }) .catch(function (error) { console.log(error); });

HTTP Response

200Success

Your response will return a messageId. Use the messageId at the GET Message endpoint to poll for results, or to you can wait for the result to arrive via webhook.

0 1 2 3 4 { "success": true, "messageId": "your-message-id", "createdAt": "2023-04-04T13:07:01.927Z" }

Get your progress and retrieve a Message using GET

After receiving your messageId you can use the GET /v2/message/<messageId> in order to retrieve your progress and image.

See the GET /v2/message/<messageId> docs for more information.

Completed Response

Your webhook URL will receive a response with the following:

  • originatingMessageId - The request ID from your original request
  • content - An array of strings containing a response from (Redacted Name)
  • type blend
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 { "createdAt": "2023-04-04T13:07:01.927Z", "buttons": [ "U1", "U2", "U3", "U4", "🔄", "V1", "V2", "V3", "V4" ], "type": "blend", "imageUrl": "your-image-url", "buttonMessageId": "OtfxNzfMIKBPVE1aP4u4", "originatingMessageId": "your-message-id", "content": "your-original-prompt", "ref": "", "responseAt": "2023-04-04T13:06:01.927Z" }
Future huge Mecha,knolling, knolling layout,deconstructed, highly detailed, depth, many parts, very detailed, realistic,
Future huge Mecha,knolling, knolling layout,deconstructed, highly detailed, depth, many parts, very detailed, realistic,