Skip to content

image generation does not work #3023

@illussioon

Description

@illussioon

PS C:\Users\user\Desktop\CLIProxyAPIPlus> curl.exe -v -X POST "http://localhost:8317/v1/images/generations" `

-H "Authorization: Bearer sk-izi-Z2xHQvSC0fdmHstP2UrfQhdlJ-EUoR84njViEJTXFunVhsSf3" -H "Content-Type: application/json"
--data-binary "@img.json"
Note: Unnecessary use of -X or --request, POST is already inferred.

  • Host localhost:8317 was resolved.
  • IPv6: ::1
  • IPv4: 127.0.0.1
  • Trying [::1]:8317...
  • Trying 127.0.0.1:8317...
  • Established connection to localhost (::1 port 8317) from ::1 port 59458
  • using HTTP/1.x

POST /v1/images/generations HTTP/1.1
Host: localhost:8317
User-Agent: curl/8.16.0
Accept: /
Authorization: Bearer sk-izi-Z2xHQvSC0fdmHstP2UrfQhdlJ-EUoR84njViEJTXFunVhsSf3
Content-Type: application/json
Content-Length: 159

  • upload completely sent off: 159 bytes
    < HTTP/1.1 400 Bad Request
    < Access-Control-Allow-Headers: *
    < Access-Control-Allow-Methods: GET, POST, PUT, PATCH, DELETE, OPTIONS
    < Access-Control-Allow-Origin: *
    < Content-Type: application/json
    < Date: Fri, 24 Apr 2026 16:00:00 GMT
    < Content-Length: 183
    <
    {
    "error": {
    "message": "Tool choice 'image_generation' not found in 'tools' parameter.",
    "type": "invalid_request_error",
    "param": "tool_choice",
    "code": null
    }
    }* Connection #0 to host localhost:8317 left intact
    PS C:\Users\user\Desktop\CLIProxyAPIPlus>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions