Profile Picture API & SDK
Queue a profile picture processing job and stream progress via SSE.
Response format: text/event-stream
SSE Event sequence:
registered— Job queued successfully, includesjobIdprogress— Step updates (fetching → normalizing → cropping → styling → matting → resizing → uploading)completed— Processing finished, includesextCustomerId
Error events can occur at any point and include a retryable flag.
TypeScript Definitions
Use the request body type in TypeScript.
generationId*string
Response Body
curl -X POST "https://api.grasco.dev/profile-picture/selection" \ -H "Content-Type: application/json" \ -d '{ "generationId": "string" }'{
"type": "registered",
"jobId": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}