Images
Edit an image
Edits an image using a text prompt and optional mask. Request must be sent as multipart/form-data with at least model, prompt (unless type is background_removal), and image (or image[]).
post/v1/images/edits
Request
- Base URLhttp://localhost:8080
- Auth
- HTTP bearer
- or HTTP basic
- or API key in header x-bf-vk
- or API key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body multipart/form-data
Response
Successful response. Returns JSON for non-streaming requests, or Server-Sent Events (SSE) stream when stream=true. When streaming, events are sent with the following event types:
- image_edit.partial_image: Intermediate image chunks with base64-encoded image data
- image_edit.completed: Final event for each image with usage information
- error: Error events with error details
Changes
No recorded changes to this operation across all 1 revision of this API.