Need Assistance with ChatGPT-Image Integration

Hello OpenAI community!

I’ve been working on integrating ChatGPT with image processing capabilities into my project, but I’ve run into some challenges. I’d really appreciate it if someone could help me troubleshoot.

Here’s the code snippet I’ve been working with:

Preformatted text

import openai

# Initialize the OpenAI API with my key
openai.api_key = 'YOUR_API_KEY_HERE'  # Masked for privacy

# Trying to send an image to the API and get a response
response = openai.Completion.create(
        {"role": "system", "content": "You are ChatGPT, a helpful assistant."},
        {"role": "user", "content": {"image_url": "YOUR_IMAGE_URL_HERE"}}


Hi and welcome to the Developer Forum!

Image ingestion is not yet released, there is also no documentation as to what syntax/format that ingestion will take, so while your proposal may indeed by the way it is done, there is no certainty of that, it could just as easily be a purely base64 encoded representation of the image included in the message itself… until it is publicly released there is no way to tell.

1 Like