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'
Query parameters
Response
Successful Response
Changes
Changed in 1 of the 42 revisions of this API.46
- ▲
the
//request property contentMediaType changed fromtoapplication/octet-streamrequest-property-content-media-type-changed
- ▲
the
//request property contentMediaType changed fromtoapplication/octet-streamrequest-property-content-media-type-changed
- ▲
the
//request property contentMediaType changed fromtoapplication/octet-streamrequest-property-content-media-type-changed
- ▲
the
//request property contentMediaType changed fromtoapplication/octet-streamrequest-property-content-media-type-changed
- ○
the
//request property format was generalized frombinaryto no formatrequest-property-type-generalized
- ○
the
//request property format was generalized frombinaryto no formatrequest-property-type-generalized
- ○
the
//request property format was generalized frombinaryto no formatrequest-property-type-generalized
- ○
the
//request property format was generalized frombinaryto no formatrequest-property-type-generalized
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲