Skip to Content
APIPresign

Presign Upload URL

Create a presigned upload URL for a source file.

Request

curl -X POST "https://undressme.ai/api/presign" \ -H "Authorization: Bearer <API_KEY>"

200 Response

{ "key": "ugc/<uuid>", "uploadUrl": "https://..." }
  • The presigned URL expires in 15 minutes.
  • Use uploadUrl to upload the file bytes with a PUT request (see Upload File).
  • key is the file identifier. Use it as sourceKey when creating tasks.

Error Responses

  • 401 Authentication required
  • 429 Rate limit exceeded
  • 500 The system is busy, please try again later
Last updated on