<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > SD - Stable Diffusion AI > SDO. Stable Diffusion Online > SDO. Stable Diffusion Online |
MiniRobotLanguage (MRL)
SDO.Set Text to Image Endpoint
Set or reset the endpoint for the text-to-image generation in Stable Diffusion Online (SDO).
Intention
The "SDO.Set Text to Image Endpoint" command allows users to specify a custom endpoint for the text-to-image generation process in Stable Diffusion Online (SDO). This enables flexibility in selecting different models or versions within the SDO framework. If the endpoint is not specified or set to an empty string, the command will use the currently selected SDO model as the endpoint.
A typical endpoint for SDO that could be specified as a parameter (the endpoint in SDO always contains the model) is:
https://api.stability.ai/v1/generation/stable-diffusion-v1-5/text-to-image
Syntax
SDO.Set Text to Image Endpoint[|P1]
Parameter Explanation
P1: (Optional) The full endpoint URL for the text-to-image generation in SDO. If omitted or set to an empty string, the command will use the current SDO. model to construct the endpoint.
Example
'***********************************
' SDO.-Sample
'***********************************
' Set a specific endpoint for text-to-image generation
SDO.Set Text to Image Endpoint|https://api.stability.ai/v1/generation/stable-diffusion-v1-5/text-to-image
' Reset to use the current SDO model as the endpoint
SDO.Set Text to Image Endpoint|
Remarks
-
Limitations:
-
See also:
•