import requests
import json
url = "https://api.302.ai/302/gpt-image-creative/generate/generate_toy_box_city?run_async=1"
payload = json.dumps({
   "name": "Guangzhou",
   "image_model": "gpt-image-1"
})
headers = {
   'Authorization': 'Bearer your_api_key',
   'User-Agent': 'Apifox/1.0.0 (https://apifox.com)',
   'Content-Type': 'application/json',
   'Accept': '*/*',
   'Host': 'api.302.ai',
   'Connection': 'keep-alive'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)