images

Image Edit Api

Follows the OpenAI Images API spec: https://platform.openai.com/docs/api-reference/images/create

curl -s -D >(grep -i x-request-id >&2)     -o >(jq -r '.data[0].b64_json' | base64 --decode > gift-basket.png)     -X POST "http://localhost:4000/v1/images/edits"     -H "Authorization: Bearer sk-1234"         -F "model=gpt-image-1"         -F "image[]=@soap.png"         -F 'prompt=Create a studio ghibli image of this'
post/v1/images/edits

Query parameters

modelstring nullable

Response

Successful Response

{"stackTrail":"paths:/v1/images/edits:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

Changed in 1 of the 42 revisions of this API.46

  • 082b5fabd90946See the full diff
    • ▲

      the // request property contentMediaType changed from to application/octet-stream

      request-property-content-media-type-changed

    • ▲

      the // request property contentMediaType changed from to application/octet-stream

      request-property-content-media-type-changed

    • ▲

      the // request property contentMediaType changed from to application/octet-stream

      request-property-content-media-type-changed

    • ▲

      the // request property contentMediaType changed from to application/octet-stream

      request-property-content-media-type-changed

    • ○

      the // request property format was generalized from binary to no format

      request-property-type-generalized

    • ○

      the // request property format was generalized from binary to no format

      request-property-type-generalized

    • ○

      the // request property format was generalized from binary to no format

      request-property-type-generalized

    • ○

      the // request property format was generalized from binary to no format

      request-property-type-generalized

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog