Media endpoints
Edit an image
POST /v1/images/edits
POST
/v1/images/editsAuthorization
BeefAPIKeyBearer AuthorizationBearer <token>
Use Authorization: Bearer sk-...
In: header
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/images/edits" \ -H "Authorization: Bearer YOUR_BEEFAPI_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-image-2", "prompt": "string", "image": "string" }'{ "created": 0, "data": [ { "url": "string", "b64_json": "string" } ]}