#can we access dalle 3 api
1 messages · Page 1 of 1 (latest)
Hey! Here's the relevant documentation for getting started with DALL·E 3 via the API: https://platform.openai.com/docs/guides/images/
No I want to access dalle 3 api to integrate
Yeh thanks
Great
Thanks solbus one quick question it will work with the api provided by open ai
That link is the OpenAI API documentation for DALL·E, yes!
Thanks dude great support!
Sure thing!
@muted sapphireHII can u help me?
Hi, I'm not sure! What do you need help with?
So I want it to make the image display on site if run other apis they works but this one doesn't
What kind of error message are you getting?
So i am using two file one html file and other python file the image is generated and shown in console but on website image isn't loading
@app.route('/generate_image', methods=['POST'])
def generate_image():
print("Request method:", request.method) # Debug statement
prompt = request.form.get('prompt')
print("Received prompt:", prompt) # Debug statement
if not prompt:
return jsonify({'error': 'Prompt not found in form data'})
response = openai.Image.create(prompt=prompt, n=1, size="1024x1024", model="dall-e-2")
print(response)
return jsonify(response)
Do you have some element in the HTML to display the image after received via the Python code?
yep
What's that code look like?
sure a second
It looks like there's a few placeholder comments in your code that say things like "Replace with your code for..." so I'm wondering if the implementation is perhaps just not yet complete.
its complete forget them
It seems like there might be something missing to actually display the image in the generatedImage div. I can't debug myself right now, you might try asking in the #dev-chat channel too