I wrote a python script to hit deepai's API and generated images for a tarot deck.
Thanks to Mike for recomending the API.
Without futher ado, the code:
import requests
import shutil
def get_ai_image(text):
r = requests.post(
"https://api.deepai.org/api/text2img",
data={
'text': text,
},
headers={'api-key': 'GET_YOUR_OWN'}
)
image = requests.get(r.json()['output_url'], stream = True)
with open(text,'wb') as outfile:
shutil.copyfileobj(image.raw, outfile)
print(f"Wrote {text}.png")
major_arcana = [
"The Fool",
"The Magician",
"The High Priestess",
"The Empress",
"The Emperor",
"The Hierophant",
"The Lovers",
"The Chariot",
"Justice",
"The Hermit",
"Wheel of Fortune",
"Strength",
"The Hanged Man",
"Death",
"Temperance",
"The Devil",
"The Tower",
"The Star",
"The Moon",
"The Sun",
"Judgement",
"The World"
]
suits = [
"Wands",
"Cups",
"Swords",
"Coins"
]
denominations = [
"Ace",
"Two",
"Three",
"Four",
"Five",
"Six",
"Seven",
"Eight",
"Nine",
"Ten",
"Page",
"Knight",
"Queen",
"King"
]
for card in major_arcana:
get_ai_image(card)
for s in suits:
for d in denominations:
get_ai_image(f"{d} of {s}")
And the Art:
Five of Cups

Five of Swords

Five of Wands

Four of Coins

Four of Cups

Four of Swords

Four of Wands

Judgement

Justice

King of Coins

King of Cups

King of Swords

King of Wands

Knight of Coins

Knight of Cups

Knight of Swords

Knight of Wands

Nine of Coins

Nine of Cups

Nine of Swords

Nine of Wands

Page of Coins

Page of Cups

Page of Swords

Page of Wands

Queen of Coins

Queen of Cups

Queen of Swords

Queen of Wands

Seven of Coins

Seven of Cups

Seven of Swords

Seven of Wands

Six of Coins

Six of Cups

Six of Swords

Six of Wands

Strength

Temperance

Ten of Coins

Ten of Cups

Ten of Swords

Ten of Wands

The Chariot

The Devil

The Emperor

The Empress

The Fool

The Hanged Man

The Hermit

The Hierophant

The High Priestess

The Lovers

The Magician

The Moon

The Star

The Sun

The Tower

The World

Three of Coins

Three of Cups

Three of Swords

Three of Wands

Two of Coins

Two of Cups

Two of Swords

Two of Wands

Wheel of Fortune
