AIC. - Artificial Intelligence Command

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command >

AIC. - Artificial Intelligence Command

AIC.SetImageResponseFormat

Top


MiniRobotLanguage (MRL)

 

AIC.SetImageResponseFormat

Set image generation response format

 

Intention

 

The AIC.SetImageResponseFormat command specifies the format for image generation responses from DALL-E. You can choose between URL or base64-encoded JSON.

 

Syntax

 

AIC.SetImageResponseFormat|$$Format

 

P1 - $$Format - url or b64_json

 

Formats

 

url: Returns a URL to the generated image (expires after 1 hour)

b64_json: Returns base64-encoded image data in JSON

 

Example

 

' Get image URL (default)

AIC.SetImageResponseFormat|url

AIC.GenerateImage|A red apple|C:\Images\apple.png|$$Result

' $$Result contains URL

 

' Get base64 data

AIC.SetImageResponseFormat|b64_json

 

Related Commands

 

- AIC.GenerateImage - Generate images

- AIC.SetDalleModel - Set DALL-E version