import openai openai.api_key = "TU_API_KEY_AQUI" response = openai.Image.create( prompt=( "portrait of a man with a serene and kind expression, natural background with forest and soft light, " "subtle spiritual aura, symbols of faith like a cross necklace, warm blue and green tones, peaceful and loving atmosphere, " "gentle eyes, medium length hair, realistic style" ), n=1, size="512x512" ) image_url = response['data'][0]['url'] print("Imagen generada:", image_url) See more