Skip to main content

Uploads a source image to be used for avatar generation and triggers an image-to-text enhancement job.

POST 

/avatar/upload

Accepts a multipart/form-data request. If a previous temporary upload exists for the user, it is deleted. Stores the new upload in a temporary public path, persists a corresponding AvatarSQS record, and enqueues an Image2Text job. The method waits briefly for an enhanced prompt to appear in cache, returning it when available.

Errors: Returns a JSON object with an Error property if the user is not logged in, the content type is invalid, the enhancement times out, or processing fails.

Responses

OK