Images Generation API

The image generation API allows you to generate new images based on text using artificial intelligence.


Request Method

API calls can be done using the POST request method since GET request are limited by the maximum allowed length of an URL we prefer the POST request method.

API Request/Response Format

The API request and response are in JSON format.


Request Parameters

API Key (Required)
The API key that you have buy.

Prompt (Required)
A prompt or text from which new images are generated.

Number of Images (Required)
Total number of images that should be generated. Maximum 10 images allowed.

Request JSON

      "APIKey": "",
      "Prompt": "An astronaut riding a horse in photorealistic style.",
      "Images": 3

You will receive a Request Id in response to this API. Simply pass this Request Id in the upload image API if you wish to upload the images that were generated in response to this API.