Skip to content

using view_image tool on .avif causes repeated stream errors #5177

Closed as duplicate

Description

@SpyrosBou

What version of Codex is running?

0.46.0

Which model were you using?

gpt-5-codex-high

What platform is your computer?

Darwin 25.0.0 arm64 arm

What steps can reproduce the bug?

Ask codex to use view_image on a .avif format file.

What is the expected behavior?

Successfully views image - or specifies .avif format is not supported yet for view_image tool.

What do you see instead?

• Viewed Image
└ detail-shot-of-cladding.avif

⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "The image data you provided does not represent
a valid image. Please check your input and try again with one
of the supported image formats: ['image/jpeg', 'image/png',
'image/gif', 'image/webp'].",
"type": "invalid_request_error",
"param": "input",
"code": "invalid_value"
}
}; retrying 1/5 in 184ms…

⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "The image data you provided does not represent
a valid image. Please check your input and try again with one
of the supported image formats: ['image/jpeg', 'image/png',
'image/gif', 'image/webp'].",
"type": "invalid_request_error",
"param": "input",
"code": "invalid_value"
}
}; retrying 2/5 in 391ms…

⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "The image data you provided does not represent
a valid image. Please check your input and try again with one
of the supported image formats: ['image/jpeg', 'image/png',
'image/gif', 'image/webp'].",
"type": "invalid_request_error",
"param": "input",
"code": "invalid_value"
}
}; retrying 3/5 in 842ms…

⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "The image data you provided does not represent
a valid image. Please check your input and try again with one
of the supported image formats: ['image/jpeg', 'image/png',
'image/gif', 'image/webp'].",
"type": "invalid_request_error",
"param": "input",
"code": "invalid_value"
}
}; retrying 4/5 in 1.614s…

⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "The image data you provided does not represent
a valid image. Please check your input and try again with one
of the supported image formats: ['image/jpeg', 'image/png',
'image/gif', 'image/webp'].",
"type": "invalid_request_error",
of the supported image formats: ['image/jpeg', 'image/png',
'image/gif', 'image/webp'].",
"type": "invalid_request_error",
"param": "input",
"code": "invalid_value"
}
}

Additional information

Pretty sure .avif format is just not supported yet, but Codex should not crash out upon using the tool on one, or should know to avoid using the tool on .avifs altogether

Activity

  1. added
    bug
    on Oct 14, 2025
  2. changed the title [-].avif not supported for view_image tool[/-] [+]using view_image tool on .avif causes repeated stream errors[/+] on Oct 14, 2025
  3. github-actions commented on Oct 14, 2025

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. etraut-openai commented on Nov 15, 2025

    @etraut-openai
    Contributor

    Closing in favor of #3835

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions