| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
FoundationModels.RespondToImage
Produces a response to a prompt with an image.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| FoundationModels | 16.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "FoundationModels.RespondToImage"; FoundationModel; Text; Image { ; Label; Orientation } ) More
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| FoundationModel | The identifier for the model. | $model | |
| Text | The text to send to the LLM. | "What is five plus three?" | |
| Image | Either a container value with an image or a file path to an image file. | MyTable::MyImage | |
| Label | The label for the image. | Optional | |
| Orientation | The image orientation. | 1 | Optional |
Result
Returns OK or error.
Description
Produces a response to a prompt with an image.We wait for the answer and return it.
If temperature >= 0 or maximumResponseTokens >= 0, we pass these as options.
Image orientations:
| Name | Value | Description |
|---|---|---|
| OrientationUp | 1 | 0th row at top, 0th column on left - default orientation |
| OrientationUpMirrored | 2 | 0th row at top, 0th column on right - horizontal flip |
| OrientationDown | 3 | 0th row at bottom, 0th column on right - 180 deg rotation |
| OrientationDownMirrored | 4 | 0th row at bottom, 0th column on left - vertical flip |
| OrientationLeftMirrored | 5 | 0th row on left, 0th column at top |
| OrientationRight | 6 | 0th row on right, 0th column at top - 90 deg CW |
| OrientationRightMirrored | 7 | 0th row on right, 0th column on bottom |
| OrientationLeft | 8 | 0th row on left, 0th column at bottom - 90 deg CCW |
Examples
Try it:
MBS( "FoundationModels.RespondToImage"; $$session; "What is in the image?"; MyTable::MyImage; "Photo" )
See also
Release notes
- Version 16.5
- Added FoundationModels.RespondToImage function.
Example Databases
Blog Entries
This function checks for a license.
Created 23th October 2026, last changed 23th October 2026
FoundationModels.Respond - FoundationModels.SetMaximumResponseTokens
MarkDown version: FoundationModelsRespondToImage.md