POST /api/image
The /api/image
endpoint allows you to send requests for generating high quality images.
Endpoint Details
- Method:
POST
- Authorization:
Bearer <your_api_key>
- Content-Type:
application/json
Parameters
Field | Type | Required | Default | Description |
---|
prompt | string | True | N/A | Prompt to generate the image. |
seed | integer | False | 0 | Seed to be used in generation. Range: 0 (inclusive) - 10000000000 (inclusive) |
steps | integer | False | 4 | How many steps to generate. Higher the steps, higher the quality. Range: 1 (inclusive) - 6 (inclusive) |
width | integer | False | 512 | Width of the generated image. Range: 128 (inclusive) - 4096 (inclusive) |
height | integer | False | 512 | Height of the generated image. Range: 128 (inclusive) - 4096 (inclusive) |
Returns
Field | Type | Description |
---|
created_at | integer | Time the image was created. |
base64_image | string | The image created in the format of base64 image/png . |
Response Codes