import os
import requests
payload = {
"qr_code_data": "https://www.earthspecies.org",
"text_prompt": "a shell nacreous at the bottom of the sea bivalve molluscs, they have two valves , heavenly point of light, Arabic calligraphy, organed, intricate, details, muscles, elegant, divine, 4k, gold details, filigree, epic and grandiose painting, beautifully symmetrical, oil texture, particles",
"image_prompt_controlnet_models": [
"sd_controlnet_canny",
"sd_controlnet_depth",
"sd_controlnet_tile",
],
"image_prompt_strength": 0.3,
"image_prompt_scale": 1.0,
"image_prompt_pos_x": 0.5,
"image_prompt_pos_y": 0.5,
}
response = requests.post(
"https://api.gooey.ai/v2/art-qr-code?example_id=o9gyed4h",
headers={
"Authorization": "bearer " + os.environ["GOOEY_API_KEY"],
},
json=payload,
)
assert response.ok, response.content
result = response.json()
print(response.status_code, result)