Skip to main content
POST
https://api.modelhunter.ai
/
api
/
v1
/
files
/
{file_id}
/
complete
Complete File Upload
curl --request POST \
  --url https://api.modelhunter.ai/api/v1/files/{file_id}/complete \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "id": "file_abc123",
    "url": "https://cdn.modelhunter.ai/files/file_abc123.jpg",
    "filename": "my-image.jpg",
    "content_type": "image/jpeg",
    "size_bytes": 2048576,
    "created_at": "2025-01-15T10:05:00Z"
  }
}

Path Parameters

file_id
string
required
File ID from the Get Upload URL response.

Response Fields

success
boolean
Whether the request was successful.
data
object
Uploaded file details.
{
  "success": true,
  "data": {
    "id": "file_abc123",
    "url": "https://cdn.modelhunter.ai/files/file_abc123.jpg",
    "filename": "my-image.jpg",
    "content_type": "image/jpeg",
    "size_bytes": 2048576,
    "created_at": "2025-01-15T10:05:00Z"
  }
}