Import menu photos
import_menuUse this when the user wants a restaurant menu saved to their ChefBear account from photos they provide: to keep it, get it as a structured menu in their language, share it, or open it in the ChefBear app. Creates a private ChefBear menu from 1 to 5 menu photos, given as uploaded files where the app supports file inputs (files) or as public https:// image links (photoUrls). Uses one recognition from the user's ChefBear allowance, so don't call it just to answer a question about a photo already in the conversation unless the user wants it saved. Returns a jobId; recognition usually takes 20 to 60 seconds, then get_import_status returns the menuId. Does not create images or public links.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| language | No | Language for dish names and descriptions: en, zh-Hans, zh-Hant, es, vi, ko or ja (zh, zh-TW and similar forms also work). When omitted, ChefBear uses the conversation's language if the app reports one of these, else en. | |
| photoUrls | No | Public https:// links to the menu photos the user provided (JPEG, PNG, WebP, HEIC or AVIF, up to 15 MB each). | |
| requestId | Yes | A new unique ID for this import, such as a UUID. Repeating the same requestId with the same photos returns the same job instead of importing twice. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes |