1 USD ≈ 27,000 credits · display only
Reference rate may change over time.
1 USD ≈ 27,000 credits · display only
Reference rate may change over time.
Same form-urlencoded shape as image — change type and poll ?media=.
$domain = $env:GOMMO_API_DOMAIN; if (-not $domain) { throw 'Set GOMMO_API_DOMAIN to the user registration domain (dealer)' }
$h = @{ Authorization = "Bearer $env:TOKEN" }
# Video
Invoke-RestMethod -Method POST `
-Uri "https://v2.api.gommo.net/ai/models?type=video" `
-Headers $h -ContentType "application/x-www-form-urlencoded" `
-Body "type=video&domain=$domain"
# Music
Invoke-RestMethod -Method POST `
-Uri "https://v2.api.gommo.net/ai/models?type=music" `
-Headers $h -ContentType "application/x-www-form-urlencoded" `
-Body "type=music&domain=$domain"Parse model slug and catalog fields (ratio, mode, duration, …) from the response — never guess.
$body = "domain=$domain&project_id=default&prompt=Upbeat electronic loop&ratio=$ratio"
$created = Invoke-RestMethod -Method POST `
-Uri "https://v2.api.gommo.net/ai/jobs/music/$slug" `
-Headers @{ Authorization = "Bearer $env:TOKEN"; 'Content-Type' = 'application/x-www-form-urlencoded' } `
-Body $body
$jobId = $created.musicInfo.id_base ?? $created.data.id_baseVideo: POST https://v2.api.gommo.net/ai/jobs/video/{slug} with type=video models.
| Job type | ?media= |
|---|---|
video, avatar-lipsync, video-* tools | video |
music | music |
image, image-upscale, remove-bg | image |
$pollBody = "access_token=$env:TOKEN&domain=$domain"
Invoke-RestMethod -Method POST `
-Uri "https://v2.api.gommo.net/ai/jobs/$jobId?media=music" `
-Headers @{ Authorization = "Bearer $env:TOKEN"; 'Content-Type' = 'application/x-www-form-urlencoded' } `
-Body $pollBodyPoll every 3.5s, max 80 attempts.
Sidebar Music job or Video job → fetch models for same type first.