Skip to content

Supply a reference image with a text prompt #1836

Description

@JamesDerrickHH

Confirm this is a feature request for the Node library and not the underlying OpenAI API.

  • This is a feature request for the Node library

Describe the feature or improvement you're requesting

I'm experimenting with gpt-image-1.5 via a Microsoft Foundry playground, within that I have the option to supply a single reference image along with a text prompt
e.g. a photo of a person
and a text prompt "show the person running through a field of wheat"
I assume the underlying API has the functionality as foundry is able to generate something, but I cannot find the functionality to achieve the same thing within this module
Apologies if this is already something that is possible

Additional context

This is an example of my generate call, image is not currently a supported parameter, and that is the kind of thing I'd like to include, supplying a base64 string

            const result = await openai.images.generate({
                model: "gpt-image-1.5" //I've also tried with gpt-image-2
                image: <base64 string>,
                prompt: <prompt text goes here>,
                n: 1,
                size: "1024x1024",
                quality: "low",
                output_format: 'png'
            })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions