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.
Create an image job on the public API, then poll every 3.5s, max 80 attempts (~5 min) (~5 min max).
$domain = $env:GOMMO_API_DOMAIN; if (-not $domain) { throw 'Set GOMMO_API_DOMAIN to the user registration domain (dealer)' }
$loginBody = "[email protected]&password=YOUR_PASSWORD&domain=$domain"
$login = Invoke-RestMethod -Method POST `
-Uri "https://api.gommo.net/api/apps/go-mmo/auth/login" `
-ContentType "application/x-www-form-urlencoded" `
-Body $loginBody
$env:TOKEN = $login.access_token
$h = @{ Authorization = "Bearer $env:TOKEN"; 'Content-Type' = 'application/x-www-form-urlencoded' }$models = Invoke-RestMethod -Method POST `
-Uri "https://v2.api.gommo.net/ai/models?type=image" `
-Headers @{ Authorization = "Bearer $env:TOKEN" } `
-ContentType "application/x-www-form-urlencoded" `
-Body "type=image&domain=$domain"
$m = $models.data[0]
$slug = $m.model ?? $m.slug
$ratio = $m.ratios[0]
if ($ratio -is [pscustomobject]) { $ratio = $ratio.value }
Write-Host "model=$slug ratio=$ratio"WARNING
Use only values from the catalog response.
$body = "domain=$domain&project_id=default&prompt=A cute cat, studio photo&ratio=$ratio"
$created = Invoke-RestMethod -Method POST `
-Uri "https://v2.api.gommo.net/ai/jobs/image/$slug" `
-Headers $h -Body $body
$jobId = $created.imageInfo.id_base ?? $created.data.id_base ?? $created.id_baseresultUrl $pollBody = "access_token=$env:TOKEN&domain=$domain"
for ($i = 1; $i -le 80; $i++) {
$poll = Invoke-RestMethod -Method POST `
-Uri "https://v2.api.gommo.net/ai/jobs/$jobId?media=image" `
-Headers $h -Body $pollBody
$url = $poll.imageInfo.result_url ?? $poll.data?.resultUrl
if ($url) { Write-Host "Done: $url"; break }
Start-Sleep -Seconds 3.5
}Connection → List models → Image job → Run with wait checked (Playground may proxy in dev).
Server-side wait: true exists only on self-host — Deploy → Self-host (advanced).