import os
import requests
payload = {
"qr_code_data": "https://befantastic.in/8655-2/",
"text_prompt": "A bright big gigantic thick tree trunk from the tree of life, adorned with small tiny leaves allover, in a rain forest with lush tall green trees, photograph, beautiful, epic, cinematic, postprocessing, highly detailed, hyper realistic, landscape, rich soil, birds in the sky, 4k",
"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=xjr2ehpw",
headers={
"Authorization": "bearer " + os.environ["GOOEY_API_KEY"],
},
json=payload,
)
assert response.ok, response.content
result = response.json()
print(response.status_code, result)