Grasco
Profile Picture API & SDK
POST
/image-edit/edit

Perform localized edits on an image based on user prompt and hotspot

Request Body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://api.grasco.dev/image-edit/edit" \  -H "Content-Type: application/json" \  -d '{    "imageDataUrl": "string",    "userPrompt": "string",    "hotspot": {      "x": 0,      "y": 0    }  }'
{
  "image": "string",
  "generationId": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}