Generate Images
Generate Serverless Images.
Last updated
Generate Serverless Images.
Last updated
Return the generated image based on the given inputs.
POST
{API_URL}/images/generation
where API_URL = https://api.nebulablock.com/api/v1
. For more details on the parameters, see the section.
string
The specific AI model used to generate the response.
string
The type of the data.
list
A list of dictionaries containing the generated image data. Each dictionary contains the following fields:
timings dict
: Contains the time taken for inference.
inference float
: The time taken for inference in seconds.
index integer
: The index of the generated image (if more than 1 image is generated).
b64_json string
: The base64-encoded JSON data of the generated image.
string
A message indicating the status of the request.
string
The status of the request.
Here's an example of a successful response. Note that you need to decode the b64 json data with a decoder of your choice to see the image.
For more examples, see the section.