ITMSMCPCustomCloudImageAI.BuildImageToImageRequest Method
Fills a request with the service call that transforms one supplied image according to a prompt.
API unit family: TMS.MCP.CloudImageAI
Declaring type: ITMSMCPCustomCloudImageAI
Syntax
procedure BuildImageToImageRequest(ARequest: TTMSMCPCloudBaseRequest; APrompt: string; AImage: TStream);
Remarks
An implementation whose service has no image-to-image endpoint raises an exception, which surfaces on the thread that started the operation; an implementation whose currently selected model cannot accept an image may instead leave the request untouched.
Parameters
| Name | Description |
|---|---|
ARequest |
Request to populate. It has already been cleared, and its method, address, headers and body are set here. |
APrompt |
Instruction describing the transformation to apply. |
AImage |
Stream holding the source image. Its position is reset before the call. |