Image Edit Api
Changed onFollows 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'
Request
- Base URLhttps://api.flock.io (the document declares no server; this is the origin it was published from)
- URLhttps://api.flock.io/openai/deployments/{model}/images/edits
- AuthAPI key in header x-litellm-api-key
Path parameters
Request body multipart/form-data
Response
Successful Response
Changes
- breaking
the
//request property contentMediaType changed fromtoapplication/octet-stream - breaking
the
//request property contentMediaType changed fromtoapplication/octet-stream - breaking
the
//request property contentMediaType changed fromtoapplication/octet-stream - breaking
the
//request property contentMediaType changed fromtoapplication/octet-stream - info
the
//request property format was generalized frombinaryto no format - info
the
//request property format was generalized frombinaryto no format - info
the
//request property format was generalized frombinaryto no format - info
the
//request property format was generalized frombinaryto no format - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- breaking