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:
NameValueDescription
OrientationUp10th row at top, 0th column on left - default orientation
OrientationUpMirrored20th row at top, 0th column on right - horizontal flip
OrientationDown30th row at bottom, 0th column on right - 180 deg rotation
OrientationDownMirrored40th row at bottom, 0th column on left - vertical flip
OrientationLeftMirrored50th row on left, 0th column at top
OrientationRight60th row on right, 0th column at top - 90 deg CW
OrientationRightMirrored70th row on right, 0th column on bottom
OrientationLeft80th 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

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