Function Repository Resource:
GenerateImage FromText
Generate an image from a text prompt using artificial intelligence
ResourceFunction["GenerateImageFromText"][text] generates an image from a text prompt using artificial intelligence. |
Details and Options
Examples
Basic Examples (2) 
Set your user access token using SystemCredential to make it permanently available to your Wolfram Language sessions. Check the "Details and Options" section for more details:
In[1]:= |
Generate an image based on a text prompt:
In[2]:= |
Out[2]= |
Scope (5) 
Use a more detailed prompt to get more specific content:
In[3]:= |
Out[3]= |
Add a styling prompt to change the result:
In[4]:= |
Out[4]= |
Use styling based on a specific well-known painter:
In[5]:= |
Out[5]= |
Adding more prompts can generate more complex images:
In[6]:= |
Out[6]= |
Adding color and material prompts also change appearance:
In[7]:= |
Out[7]= |
Possible Issues (2) 
When the service is not available, or not yet available, a message is returned:
In[8]:= |
Out[8]= |
When an invalid token is provided, a message is returned:
In[9]:= |
Out[9]= |
Neat Examples (1) 
Generate variations by appending an otherwise inconsequential integer to the string:
In[10]:= |
Out[10]= |