Skip to content

question: /v1/images/edits returns 502 no results error #417

@PonDevelopers

Description

@PonDevelopers

问题内容

Bug: /v1/images/edits fails with "Image edit returned no results"

Problem:
While /v1/chat/completions and /v1/images/generations work perfectly, the /v1/images/edits endpoint consistently returns a 502 Upstream Error.

Error Log:

  • upload.py:267 - Upload success: file.png -> 8d7af92d-691a-45b2-a7f2-2c907085e9a4
  • exceptions.py:123 - AppException: server_error - Image edit returned no results
  • response_middleware.py:75 - Response: POST /v1/images/edits - 502 (10881.28ms)

Details:

  1. The image is uploaded successfully to Grok (as seen in logs).
  2. FlareSolverr is active and cf_clearance is valid.
  3. NSFW Mode and Thinking are both enabled.
  4. I have tried multiple different images and prompts (e.g., "Transform to anime style"), but it always fails to return the edited image.

Request:
Please check if the model=grok-imagine-1.0-edit logic or the response parsing for image editing needs an update.

部署方式

本地 uv run

相关配置(请脱敏)

相关日志

Follow the description above

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions