Welcome to the AI Image Generation Service API. This powerful tool allows you to convert textual prompts into stunning AI-generated images with a simple POST request to our /api/generate
endpoint. Ideal for a wide range of applications, from digital art to content creation, our API blends advanced AI technology with ease of use to provide a seamless image generation experience.
/api/generate
): Easy-to-use with a straightforward POST request.Get started today to explore the capabilities of AI-driven creativity at your fingertips.
Parameter | Location | Description | Required | Type | Example Values |
---|---|---|---|---|---|
Authorization | Header | Bearer token for API access. | Yes | String | Bearer nYF5CAM9qpB0... |
Content-Type | Header | Specifies the format of the data being sent (should be application/json ). | Yes | String | application/json |
prompt | Body | Textual prompt based on which the image is generated. | Yes | String | "A cozy, trendy café corner, perfect for Instagram, with hanging plants, vintage furniture, and a latte art heart in a sunlit ambiance." |
negative_prompt | Body | Textual negative prompt to specify what the image should not include. | No | String | "War, racism, violence, mutated hands" |
quality | Body | Defines the quality of the generated image. | No (default: Standard) | String | Standard, High Quality |
Parameter | Description | Type | Example Values |
---|---|---|---|
status | Indicates the status of the API response. | String | "success" or "error" |
images | URLs to the generated images. | Array of Strings | [ "https://cdn.imaginix.ai/images/IMAGE_ID.webp", "https://cdn.imaginix.ai/images/IMAGE_ID.webp", "https://cdn.imaginix.ai/images/IMAGE_ID.webp", ] |
remaining_credits | Remaining credits for the user. | Number | 96 |
errors | List of error messages. | Array of Strings | ["Unauthorized request", "Insufficient credits."] |