Latimal
Checking APIAPI reference

Cart Upsell

Suggest complementary items for any cart. The model reads the cart cuisine, dietary status, and categories, then ranks the dishes that round out the order.

751 msAPI
Try a cart
2 items / 12 max
  • Tonkotsu Ramen
  • Chicken Gyoza

The menu to draw suggestions from. Paste your own menu to upsell against it, one item per line.

18 items / 50 max

The playground caps the menu at 50 items and the cart at 12. The API itself handles far larger menus per call.

Verification is not set up here, so live runs are paused. You can still browse the examples.

5 suggestionscurated example
751 msAPI

What the model read from the cart

CuisineJapaneseDietaryNon-vegetarianHasmain
What just happened
The cart reads as Japanese with no beverage or dessert. The model filled those gaps, ranking beverage, dessert, main that round out the order.
  1. Green Teabeveragecuisine

    No beverage in cart

    score
    1.000
  2. Ramune Sodabeveragecuisine

    No beverage in cart

    score
    1.000
  3. Matcha Ice Creamdessertcuisine

    Complete with dessert

    score
    0.500
  4. Mochidessertcuisine

    Complete with dessert

    score
    0.500
  5. Edamamemaincuisine

    Try another main

    score
    0.100

The bar is the relevance score for adding the item to this cart. The cuisine tag marks whether it matches the cart cuisine.

Use this in your app

Pre-filled with your cart and menu. Drop in a key and run it.

curl -X POST https://dish-embed.latimal.com/suggest \
  -H "X-API-Key: $LATIMAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "cart": [
    "Tonkotsu Ramen",
    "Chicken Gyoza"
  ],
  "menu": [
    "Edamame",
    "Miso Soup",
    "Chicken Karaage",
    "Takoyaki",
    "Agedashi Tofu",
    "Seaweed Salad",
    "Salmon Nigiri",
    "Spicy Tuna Roll",
    "Chicken Katsu Curry",
    "Beef Teriyaki",
    "Yakitori Skewers",
    "Tempura Prawns",
    "Matcha Ice Cream",
    "Mochi",
    "Green Tea",
    "Ramune Soda",
    "Iced Matcha Latte",
    "Chashu Don"
  ],
  "top_k": 5
}'

Upsell on your real menu

This cart is curated. The honest test is your catalog. Get a free key with 5,000 credits, or send your menu to the founder.