Profile Picture API & SDK
Upscale the image to a higher resolution
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://api.grasco.dev/image-edit/upscale" \ -H "Content-Type: application/json" \ -d '{ "imageDataUrl": "string", "resolution": "hd" }'{
"image": "string",
"generationId": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}Suggest Edits POST
Suggest creative edits for the image
Select Profile Picture (SSE) POST
Queue a profile picture processing job and stream progress via SSE. **Response format:** `text/event-stream` **SSE Event sequence:** 1. `registered` — Job queued successfully, includes `jobId` 2. `progress` — Step updates (fetching → normalizing → cropping → styling → matting → resizing → uploading) 3. `completed` — Processing finished, includes `extCustomerId` **Error events** can occur at any point and include a `retryable` flag.