from openai import OpenAI client = OpenAI(api_key="YOUR_API_KEY") prompt = """ An ultra-detailed cinematic noir illustration of an orange tabby cat as a mafia boss. The cat wears a black pinstripe suit and red tie, sitting behind a dark wooden desk. One paw rests on the desk, the other holds a cigar with smoke curling upward. Dramatic low-key lighting, Venetian blind shadows, dark office background, realistic fluffy fur texture, piercing amber eyes, high contrast, 4K digital art, movie-poster quality. """ result = client.images.generate( model="gpt-image-1", prompt=prompt, size="1024x1024" ) image_base64 = result.data[0].b64_json with open("orange_mafia_cat.png", "wb") as f: f.write(base64.b64decode(image_base64)) print("Saved orange_mafia_cat.png") See more