Skip to content

Upload ​

OperationGommo public API
Upload imagePOST https://v2.api.gommo.net/ai/upload/image
Upload videoPOST https://v2.api.gommo.net/ai/upload/video

Auth: Authorization: Bearer {token} and/or form access_token. Include domain and project_id in multipart.

Multipart fields:

TypeField
Imagefile (+ optional fileName)
Videovideo_file or file

Upload image ​

bash
curl.exe -X POST "https://v2.api.gommo.net/ai/upload/image" ^
  -H "Authorization: Bearer %TOKEN%" ^
  -F "access_token=%TOKEN%" -F "domain=%REGISTRATION_DOMAIN%" ^
  -F "project_id=default" -F "file=@C:\path\to\photo.png"
powershell
$d = $env:GOMMO_API_DOMAIN; if (-not $d) { throw 'Set GOMMO_API_DOMAIN to the user registration domain (dealer)' }
curl.exe -X POST "https://v2.api.gommo.net/ai/upload/image" `
  -H "Authorization: Bearer $env:TOKEN" `
  -F "access_token=$env:TOKEN" -F "domain=$d" `
  -F "project_id=default" -F "file=@C:\path\to\photo.png"
bash
curl.exe -X POST "https://v2.api.gommo.net/ai/upload/image" ^
  -H "Authorization: Bearer %TOKEN%" ^
  -F "domain=%REGISTRATION_DOMAIN%" -F "project_id=default" -F "[email protected]"

Upload video ​

bash
curl.exe -X POST "https://v2.api.gommo.net/ai/upload/video" ^
  -H "Authorization: Bearer %TOKEN%" ^
  -F "access_token=%TOKEN%" -F "domain=%REGISTRATION_DOMAIN%" ^
  -F "project_id=default" -F "video_file=@C:\path\to\clip.mp4"
powershell
$d = $env:GOMMO_API_DOMAIN; if (-not $d) { throw 'Set GOMMO_API_DOMAIN to the user registration domain (dealer)' }
curl.exe -X POST "https://v2.api.gommo.net/ai/upload/video" `
  -H "Authorization: Bearer $env:TOKEN" `
  -F "access_token=$env:TOKEN" -F "domain=$d" `
  -F "project_id=default" -F "video_file=@C:\path\to\clip.mp4"

Self-host (operators only) ​

Optional REST/proxy when you deploy this repo — Deploy → Self-host (advanced).

→ Gommo public API · Upload recipe