Import openai # Remplacez 'your-api-key-here' par votre clé API réelle openai
![import openai
# Remplacez 'your-api-key-here' par votre clé API réelle
openai.api_key = 'your-api-key-here'
# Description détaillée de l'image pour générer une image similaire
prompt = """
Create an ultra-realistic image of a young woman sitting on the edge of a wooden table in the classic streets of Paris. She has long, wavy brown hair that falls over her shoulders. Her face is heart-shaped with clear, smooth skin. She has large, expressive brown eyes with well-defined eyebrows. Her nose is small and straight, and she has full lips that form a slight smile. She is wearing a cozy winter sweater and white pants. Her pose is relaxed, with one hand resting on the table and the other on her thigh. She has the most beautiful hands in the world, with elegant, slender fingers and perfectly manicured nails painted with black nail polish. The street is picturesque, with classic Parisian architecture, cobblestone paths, and iconic elements like vintage lampposts and charming cafes. The atmosphere is romantic and timeless, typical of a Paris street scene. The lighting is natural, with sunlight casting warm tones on the scene. The woman's expression is calm and confident, with a slight smile.
"""
# Fonction pour générer l'image basée sur le prompt
def generer_image(prompt):
response = openai.Image.create(
prompt=prompt,
n=1, # Nombre d'images à générer
size="1024x1024" # Taille de l'image
)
return response['data'][0]['url']
# Générer l'image
image_url = generer_image(prompt)
print("Image URL:", image_url)](https://image.cdn2.seaart.me/2024-07-08/cq653pte878c739ml0gg/b7e92dd3b4b808c752c9377d0d4ebc0e77102028_high.webp)
Generation Data
السجل
كلمة التلميح
نسخ
import openai
# Remplacez 'your-api-key-here' par votre clé API réelle
openai
.
api_key = 'your-api-key-here'
# Description détaillée de l'image pour générer une image similaire
prompt = """
Create an ultra-realistic image of a young woman sitting on the edge of a wooden table in the classic streets of Paris
.
She has long
,
wavy brown hair that falls over her shoulders
.
Her face is heart-shaped with clear
,
smooth skin
.
She has large
,
expressive brown eyes with well-defined eyebrows
.
Her nose is small and straight
,
and she has full lips that form a slight smile
.
She is wearing a cozy winter sweater and white pants
.
Her pose is relaxed
,
with one hand resting on the table and the other on her thigh
.
She has the most beautiful hands in the world
,
with elegant
,
slender fingers and perfectly manicured nails painted with black nail polish
.
The street is picturesque
,
with classic Parisian architecture
,
cobblestone paths
,
and iconic elements like vintage lampposts and charming cafes
.
The atmosphere is romantic and timeless
,
typical of a Paris street scene
.
The lighting is natural
,
with sunlight casting warm tones on the scene
.
The woman's expression is calm and confident
,
with a slight smile
.
"""
# Fonction pour générer l'image basée sur le prompt
def generer_image(prompt):
response = openai
.
Image
.
create(
prompt=prompt
,
n=1
,
# Nombre d'images à générer
size="1024x1024" # Taille de l'image
)
return response['data'][0]['url']
# Générer l'image
image_url = generer_image(prompt)
print("Image URL:"
,
image_url)
معلومات
Checkpoint & LoRA

Checkpoint
epiCRealism
#واقعي
#التصوير الفوتوغرافي
#ملابس
0 تعليق
0
1
0