Skip to content

[JS] 400 Unknown parameter: 'response_format'. when calling to openai/gpt-image-1 model #3346

@tzuhaohuang

Description

@tzuhaohuang

Describe the bug
When using openai/gpt-image-1 to create an image, I'm getting the following error
400 Unknown parameter: 'response_format'. Error: 400 Unknown parameter: 'response_format'. at Function.generate

Params
Model: openai/gpt-image-1
Model Version: Unspecified
Size: 1024x1024
Style: vivd
User: Default
Quality: hd
Response format: b64_json, I also tried url option and still got the same result

To Reproduce
Prompt file


model: openai/gpt-image-1
config:
temperature: 0.4
topK: 32
topP: 0.95
size: 1024x1024
style: vivid
quality: hd
response_format: b64_json
input:
schema:
text: string
output:
format: "media"

{{role "user"}}
Generate an image of {{text}}

Expected behavior
An image in the response

Screenshots
If applicable, add screenshots to help explain your problem.

Runtime (please complete the following information):

  • OS: [e.g. Linux, MacOS]: MacOS 15.5

** Node version
20.11.1

Additional context
@genkit-ai/compat-oai: 1.15.5
genkit: 1.15.5
genkit-cli: 1.15.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingjs

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions