Use model ID gemini-3.8-flash (Google) through the 4AICode relay. Prices below come from the repository snapshot of the public model-rates API; the console remains the source of truth if rates change.
Model ID
gemini-3.8-flash
Pricing
| Meter | 4AICode (USD / 1M tokens) | Official reference |
|---|---|---|
| Input | $0.23 | $0.75 |
| Output | $1.13 | $3.75 |
| Cache read | $0.02 | — |
| Cache write (5m) | — | — |
| Cache write (1h) | — | — |
Snapshot pricing only. Always confirm the live rate in the dashboard before budgeting.
Compatibility
- Vendor / channel: Google /
google - Billing mode: per token
- Suggested endpoints:
chat_completions - Capabilities: Streaming
Example request
POST /v1/chat/completions HTTP/1.1
Host: relay.4aicode.com
Authorization: Bearer sk-4ai-xxxxxxxxxxxxxxxx
content-type: application/json
{
"model": "gemini-3.8-flash",
"stream": true,
"messages": [
{ "role": "user", "content": "Write a hello world in Go." }
]
}
Next steps
- Create a token in Token management.
- Point your client
base_urltohttps://relay.4aicode.com(orhttps://relay.4aicode.netfor mainland routing). - Set
modeltogemini-3.8-flash.