OpenAPI 3.1.02026-08-226994571.1 MB

1e929292ddd5

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/images/edits

Query parameters

modelstring nullable

Response

Successful Response

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