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.
POST https://api.gommo.net/api/v2/chat — upstream requires non-empty messages. Form body: application/x-www-form-urlencoded.
$domain = $env:GOMMO_API_DOMAIN; if (-not $domain) { throw 'Set GOMMO_API_DOMAIN to the user registration domain (dealer)' }
$messages = '[{"role":"user","text":"Say hello in one short sentence."}]'
$form = "action=chat&access_token=$env:TOKEN&domain=$domain&query=Say hello in one short sentence.&messages=$messages"
Invoke-RestMethod -Method POST `
-Uri "https://api.gommo.net/api/v2/chat" `
-ContentType "application/x-www-form-urlencoded" `
-Body $formOptional: pass sessionId from a prior response for multi-turn.
Use curl -N to read the stream on the terminal:
$domain = $env:GOMMO_API_DOMAIN; if (-not $domain) { throw 'Set GOMMO_API_DOMAIN to the user registration domain (dealer)' }
$messages = '[{"role":"user","text":"Tell a very short story."}]'
$form = "action=stream&access_token=$env:TOKEN&domain=$domain&query=Tell a very short story.&messages=$messages"
curl.exe -N -X POST "https://api.gommo.net/api/v2/chat" `
-H "Content-Type: application/x-www-form-urlencoded" `
-d $formPlayground — worker Platform → Chat (search chat) or ?embed=1&worker=chat → action stream → Run request. See Chat reference.
When you deploy Gommo Developer locally — Deploy → Self-host (advanced).