Media endpoints
Generate an image
POST /v1/images/generations
POST
/v1/images/generationsAuthorization
BeefAPIKeyBearer AuthorizationBearer <token>
Use Authorization: Bearer sk-...
In: header
Request Body
application/json
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/generations" \ -H "Authorization: Bearer YOUR_BEEFAPI_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-image-2", "prompt": "string" }'{ "created": 0, "data": [ { "url": "string", "b64_json": "string" } ]}