import os
import requests
payload = {
"qr_code_data": "https://fandom.com",
"text_prompt": "The Hulk, highly detailed, digital painting, artstation, facing camera, concept art, smooth, sharp focus, illustration, art by artgerm and greg rutkowski, high definition digital art, dramatic lighting, in the style of ilya kuvshinov and Ross tran",
"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=j0sj8kku",
headers={
"Authorization": "bearer " + os.environ["GOOEY_API_KEY"],
},
json=payload,
)
assert response.ok, response.content
result = response.json()
print(response.status_code, result)