Generate an Image

Learn how to generate image with AI/ML API.

POST/images/generations
Body
Image.v1.GenerateImageDTO (any of)
Response
Request
const response = await fetch('/images/generations', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "prompt": "text"
    }),
});
const data = await response.json();

Last updated