Slazzer App
All-in-one AI photo editor
Enhance food delivery and restaurant app visuals with crisp, authentic images on distraction-free backgrounds, ensuring consistent, high-quality food presentations.
Type :string ($binary)
Required :Yes (Only one of the source_image_ parameters can be used in a single request.)
The source_image_file parameter allows you to upload an image of food items, which will be processed by the API. The uploaded food image is then integrated into the product catalog, enabling visual representation of the food item in a digital catalog or menu. This allows users to view the food item in context, helping to enhance the browsing experience with accurate and appealing visuals.
Supported Format :PNG, JPG, JPEG.
Examples :source_image_file = @/path/to/image.png
Type : string
Required : Yes
The scaling_mode parameter determines how the food image is resized to fit the given dimensions. It controls whether the entire image fits within the specified dimensions or fills them completely.
Example : scaling_mode = fill
Type :string
Required :No
The bg_color_code parameter is used to specify a solid background color for the processed food image. The color must be provided as a HEX color code.
Supported Format :HEX color code (e.g., #72E4B3 or #B3D472)
Examples :bg_color_code = #72E4B3
Type : string ($binary)
Required : No
The bg_image parameter allows you to upload a background image for the food scene. When provided, the uploaded image will replace the default or existing background during processing, creating a customized scene.
Type : string
Required : No
The reference_type parameter determines how the food item is referenced. It controls whether the reference is based on the subject (general category) or the original (specific dish or product).
Example : reference_type = original
Type : int
Required : No
The padding parameter allows you to add extra space around the food subject before processing the image. The padding is applied in the sequence: top, right, bottom, left. If a single value is provided, it applies to all sides equally.
Type :string
Required :No
The text_prompt parameter provides a textual description of the desired food scene. The API processes this input to generate or analyze food images in specific contexts.
Type : int
Required : No
The seed parameter determines the randomization seed for generating food-related images. By using the same seed value, you can reproduce the exact same image generation result. If no seed is provided, the system will use a random value to produce varied outputs.
Type : boolean
Required : No
The relighting parameter enables or disables automatic relighting adjustments to enhance the illumination of food images. It can help improve visibility and consistency in images with varying light conditions.
Type : string
Required : No
The canvas_size parameter specifies the width and height of the canvas (in pixels) for generating or analyzing food images. It follows the format width x height (e.g., 800x600). This controls the output size of the image.
Success
Request processed successfully!
Your request has been processed and completed. The response contains the result data or file as requested.
Error
Bad Request!
The request contains invalid parameters or input format. Please check the input and try again.
(No credits were deducted.)
Error
Unauthorized!
Missing or invalid API key. Please provide a valid API key.
(No credits were deducted.)
Error
Credits Required!
No credits remaining. Please top up your account to continue.
(No credits were deducted.)
Error
Rate Limit Exceeded!
Api rate limit crossed (No credit deducted)