ImageGenius API is a versatile and powerful image generation tool that enables developers to create stunning visuals effortlessly. With the ability to generate images from text prompts, modify images using inpainting and outpainting techniques, and create variations of existing images, this API is an ideal solution for various use cases.
Whether you’re a marketer looking to create captivating visuals for your campaigns, a blogger aiming to enhance your content with eye-catching images, an advertiser seeking to design engaging ads, or an e-commerce business looking to showcase your products with high-quality visuals, ImageGenius API has got you covered.
HTTP Method | URL | Description |
---|---|---|
POST | https://imagegenius-ai.p.rapidapi.com/generate-image |
Image Generation |
POST | https://imagegenius-ai.p.rapidapi.com/inpainting |
Inpainting |
POST | https://imagegenius-ai.p.rapidapi.com/outpainting |
Outpainting |
POST | https://imagegenius-ai.p.rapidapi.com/image-variation |
Image Variation |
prompt: gorilla eating pizza
, size: 1024x1024
:
Proprity | Description |
---|---|
URL | https://imagegenius-ai.p.rapidapi.com/generate-image |
Methode | POST |
POST Parameters | prompt: STRING | negative_text: STRING | size: STRING | cfg_scale: FLOAT | seed: INTEGER |
Supported content-type | application/x-www-form-urlencoded | multipart/form-data |
Parameters Descriptions
Parameter | Type | Required | Description |
---|---|---|---|
prompt | string |
YES |
A text prompt to generate the image. |
negative_text | string |
NO |
A text prompt to define what not to include in the image. |
size | string |
NO |
Define the size that you want the output image to be, accepted values: [1024x1024, 768x768, 512x512, 768x1152, 384x576, 1152x768, 576x384, 768x1280, 384x640, 1280x768, 640x384, 896x1152, 448x576, 1152x896, 576x448, 768x1408, 384x704, 1408x768, 704x384, 640x1408, 320x704, 1408x640, 704x320, 1152x640, 1173x640] , default value is 512x512 . |
cfg_scale | float |
NO |
Specifies how strongly the generated image should adhere to the prompt. Use a lower value to introduce more randomness in the generation, The value of cfg_scale must be between 1.1 and 10.0 , default value is 8.0 |
seed | int |
NO |
Use to control and reproduce results. Determines the initial noise setting. Use the same seed and the same settings as a previous run to allow inference to create a similar image, The value of seed must be between 0 and 2,147,483,646 , default value is 0 |
Response Schema
"responses": {
"statusCode": ...,
"body": {
"imageUrl": ...
}
}
Response Field Descriptions
Field | Type | Description |
---|---|---|
statusCode | int |
Status code of image processing. |
imageUrl | string |
URL of the resulting image, This URL is available for access for a limited duration, typically one hour, after which it becomes unavailable. |
prompt: add yellow flower in the hair
:
Proprity | Description |
---|---|
URL | https://imagegenius-ai.p.rapidapi.com/inpainting |
Methode | POST |
POST Parameters | prompt: STRING | negative_text: STRING | cfg_scale: FLOAT | image: BINARY OR image_url: STRING | mask_image: BINARY OR mask_image_url: STRING |
Supported content-type | application/x-www-form-urlencoded | multipart/form-data |
Parameters Descriptions
Field | Type | Required | Description |
---|---|---|---|
prompt | string |
NO |
A text prompt to define what to change inside the mask. If you don’t include this field, the model tries to replace the entire mask area with the background. |
negative_text | string |
NO |
A text prompt to define what not to include in the image. |
cfg_scale | float |
NO |
Specifies how strongly the generated image should adhere to the prompt. Use a lower value to introduce more randomness in the generation, The value of cfg_scale must be between 1.1 and 10.0 , default value is 8.0 . |
image OR image_url | BINARY OR STRING |
YES |
The image to modify. |
mask_image OR mask_image_url | BINARY OR STRING |
YES |
The image mask that defines the part of the image that you want to modify, Each pixel is turned into an RGB value of (0 0 0) (a pixel inside the mask) or (255 255 255) (a pixel outside the mask). |
Response Schema
"responses": {
"statusCode": ...,
"body": {
"imageUrl": ...
}
}
Response Field Descriptions
Field | Type | Description |
---|---|---|
statusCode | int |
Status code of image processing. |
imageUrl | string |
URL of the resulting image, This URL is available for access for a limited duration, typically one hour, after which it becomes unavailable. |
prompt: forest scene with lush green foliage covering the forest floor
:
Proprity | Description |
---|---|
URL | https://imagegenius-ai.p.rapidapi.com/outpainting |
Methode | POST |
POST Parameters | prompt: STRING | negative_text: STRING | cfg_scale: FLOAT | outpainting_mode: STRING | image: BINARY OR image_url: STRING | mask_image: BINARY OR mask_image_url: STRING |
Supported content-type | application/x-www-form-urlencoded | multipart/form-data |
Parameters Descriptions
Field | Type | Required | Description |
---|---|---|---|
prompt | string |
YES |
A text prompt to define what to change outside the mask. |
negative_text | string |
NO |
A text prompt to define what not to include in the image. |
cfg_scale | float |
NO |
Specifies how strongly the generated image should adhere to the prompt. Use a lower value to introduce more randomness in the generation, The value of cfg_scale must be between 1.1 and 10.0 , default value is 8.0 . |
outpainting_mode | string |
NO |
Specifies whether to allow modification of the pixels inside the mask or not. The following values are possible: DEFAULT – Use this option to allow modification of the image inside the mask in order to keep it consistent with the reconstructed background, PRECISE – Use this option to prevent modification of the image inside the mask. |
image OR image_url | BINARY OR STRING |
YES |
The image to modify |
mask_image OR mask_image_url | BINARY OR STRING |
YES |
The image mask that defines the region in the image whose that you don’t want to modify. The generation seamlessly extends the region you define, Each pixel is turned into an RGB value of (0 0 0) (a pixel inside the mask) or (255 255 255) (a pixel outside the mask) |
Response Schema
"responses": {
"statusCode": ...,
"body": {
"imageUrl": ...
}
}
Response Field Descriptions
Field | Type | Description |
---|---|---|
statusCode | int |
Status code of image processing. |
imageUrl | string |
URL of the resulting image, This URL is available for access for a limited duration, typically one hour, after which it becomes unavailable. |
prompt: photorealistic, 8k, hdr
, size: 512x512
:
Proprity | Description |
---|---|
URL | https://imagegenius-ai.p.rapidapi.com/image-variation |
Methode | POST |
POST Parameters | prompt: STRING | negative_text: STRING | cfg_scale: FLOAT | image: BINARY OR image_url: STRING | size: STRING |
Supported content-type | application/x-www-form-urlencoded | multipart/form-data |
Parameters Descriptions
Field | Type | Required | Description |
---|---|---|---|
prompt | string |
NO |
A text prompt that can define what to preserve and what to change in the image. |
negative_text | string |
NO |
A text prompt to define what not to include in the image. |
cfg_scale | float |
NO |
Specifies how strongly the generated image should adhere to the prompt. Use a lower value to introduce more randomness in the generation, The value of cfg_scale must be between 1.1 and 10.0 , default value is 8.0 . |
image OR image_url | BINARY OR STRING |
YES |
The image for which to generate variation |
size | string |
NO |
Define the size that you want the output image to be, accepted values: [1024x1024, 768x768, 512x512, 768x1152, 384x576, 1152x768, 576x384, 768x1280, 384x640, 1280x768, 640x384, 896x1152, 448x576, 1152x896, 576x448, 768x1408, 384x704, 1408x768, 704x384, 640x1408, 320x704, 1408x640, 704x320, 1152x640, 1173x640] , default value is 512x512 . |
Response Schema
"responses": {
"statusCode": ...,
"body": {
"imageUrl": ...
}
}
Response Field Descriptions
Field | Type | Description |
---|---|---|
statusCode | int |
Status code of image processing. |
imageUrl | string |
URL of the resulting image, This URL is available for access for a limited duration, typically one hour, after which it becomes unavailable. |