images

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/openai/deployments/{model}/images/edits

Request

  • Base URL
    https://api.flock.io (the document declares no server; this is the origin it was published from)
  • URL
    https://api.flock.io/openai/deployments/{model}/images/edits
  • Auth
    API key in header x-litellm-api-key

Path parameters

modelstring nullable required

Request body multipart/form-data

imagestring[] nullable
image[]string[] nullable
maskstring[] nullable
mask[]string[] nullable

Response

Successful Response

unknown required

Changes

    • breaking

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

    • breaking

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

    • breaking

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

    • breaking

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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