Skip to content

CreateEditImage support multi Image #1075

@secret4233

Description

@secret4233

The current CreateEditImage API does not support passing multiple input images for image edits. And openai was supported.

I found a #1008 try to solve this, but it's a breaking change, because this, so we don't merge to master?

Is there a plan to provide corresponding support for this? If not, I can submit a related PR to support it. And the request will be like this

type ImageEditRequest struct {
	Image          io.Reader   `json:"image,omitempty"`
	Images         []io.Reader `json:"image,omitempty"`
	Mask           io.Reader   `json:"mask,omitempty"`
	Prompt         string      `json:"prompt,omitempty"`
	Model          string      `json:"model,omitempty"`
	N              int         `json:"n,omitempty"`
	Size           string      `json:"size,omitempty"`
	ResponseFormat string      `json:"response_format,omitempty"`
	Quality        string      `json:"quality,omitempty"`
	User           string      `json:"user,omitempty"`
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions