Docs playground /pg/images/edits
API reference

image editing

multipart image editing.

POST/pg/images/edits

Body Parameters

image* string · binary

Image URL or Base64

model string

Model name / model ID

prompt* string

Text prompt

Responses

200 success application/json
response-200 object
400 Bad request or validation failed application/json
response-400 object
properties
error* object
401 Missing or invalid API Key application/json
response-401 object
Request Body Example
1{
2"image": "<binary>",
3"prompt": "string"
4}
Code Sample cURL
1curl -X POST "https://api.digislash.com/pg/images/edits" \
2-H "Authorization: Bearer <API Key>" \
3-F "image=@<binary>" \
4-F "model=" \
5-F "prompt=string"
Response
1▼{
2"data": {},
3"success": true
4}