Slazzer logo
Slazzer App

All-in-one AI photo editor

Get App

Food Catalogue API

  • High Quality Images
  • Visual Commerce
  • Food Tech
Instantly Process Restaurant Images with AI-Powered Food API

Enhance food delivery and restaurant app visuals with crisp, authentic images on distraction-free backgrounds, ensuring consistent, high-quality food presentations.

API Reference

Head
  • Server URL:
    https://api.slazzer.com/v2.0
  • Request Body:
    multipart/form-data
  • Method:
    POST
  • API:
    /food

Authorization

  • API-KEY :
    string
  • Your API key :
    xxxx xxxx xxxx xxxx
  • Get API Key
Parameters Request body
  • source_image_file

    Type :string ($binary)

    Required :Yes (Only one of the source_image_ parameters can be used in a single request.)

    Description :

    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

    Important :
    • 0.20 credit will be charged for each processing.
  • text_prompt

    Type :string

    Required :Yes

    Description :

    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.

    Examples :
    • text_prompt = Place on a wooden table with chopsticks beside it.
    Important :
    • Be specific about the surrounding environment for better results.
    • 0.20 credit will be charged for each processing.
Response

Success

Background successfully removed!
Your image has been processed, and the background is now removed. You can now download or use it as you wish.

Binary image data

Error

Background removed failed!
The request could not be processed due to invalid parameters or an unsupported image format. Ensure the input image meets the required format and size specifications, then try again. (No credits were deducted for this request.)

Example :
{
    "error": "Source image file not found"
}

Error

Background removed failed!
API-KEY missing or invalid API-KEY (No credit deducted)

Example :
{
    "error": "invalid api key"
}

Error

Background removed failed!
No credits remaining (No credit deducted)

Example :
{
    "error": "No credits remaining"
}

Error

Background removed failed!
Api rate limit crossed (No credit deducted)

Example :
{
    "error": "Api rate limit crossed"
}