Profile Picture API & SDK
Perform localized edits on an image based on user prompt and hotspot
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"
}