Info

Get your account information by sending a POST request to the /info endpoint


POST/v1/info

Use Info

Request

POST
/v1/info
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "Bearer {token}");

var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  redirect: 'follow'
};

fetch("https://api.justimagineapi.org/v1/info", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

Response

{
  "messageId": "message-id",
}

GET/v1/message/:messageId

Get The Completion Response

The completion response will automatically be sent to your webhook when the image is ready. You can see more about getting messages here.

Response

{
  ...,
  "content":{
    "Fast Time Remaining": "xxx",
    "Job Mode": "Relaxed",
  }
}