Light Mode
Text to PNG API
POST
/image/generations/transparentThe Text to PNG API generates images based on descriptive text prompts, but with a transparent background. It supports various optional customization settings, such as aspect ratio, style, and more, making it perfect for overlays and designs.
Request
Header Params
authorization
string
required
A bearer token that authenticates the user for making the request.
Example:
Bearer {{API Token}}
Body Params multipart/form-data
prompt
string
required
A string describing the image to generate. It defines the textual description or concept for the image you wish to generate.
Example:
Create an image of a sleek, futuristic car with a metallic finish, featuring sharp, aerodynamic lines and glowing LED lights along the front and rear.
aspect_ratio
enum<string>
optional
An enum specifing the aspect ratio for the generated image.
Allowed values:
1:13:24:33:416:99:16
Default:
1:1
Example:
16:9
seed
integer
optional
The seed parameter serves as the initial value for the random number generator. By setting a specific seed value, you can ensure that the AI generates the same image or outcome each time you use that exact seed.
>= 1
Example:
12
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : Binaryapplication/octet-stream
Example
The response for 200 code is bytes.
Last modified: 23 days ago