4AICode の中継でモデル ID gemini-4-neon(Google)を呼び出します。以下の料金は、リポジトリ内の公開レートスナップショット(/api/billing/model-rates と同一のソース)です。コンソールの料金が更新された場合は、コンソールを正としてください。
呼び出す前に APIキーを用意し、残高をチャージして、チームのクォータを確認してください。
モデル ID
gemini-4-neon
料金
| 課金項目 | 4AICode(USD / 1M tokens) | 公式参考価格 |
|---|---|---|
| 入力 | $1.5 | $3 |
| 出力 | $7.5 | $15 |
| キャッシュ読み取り | $0.075 | — |
| キャッシュ書き込み(5分) | — | — |
| キャッシュ書き込み(1時間) | — | — |
このページはビルド時点のスナップショットです。予算を決める前に、コンソールのリアルタイム料金を確認してください。
互換性
- ベンダー / チャネル:Google /
google - 課金方式:トークン単位
- 推奨エンドポイント:
chat_completions - 対応機能:ストリーミング
リクエスト例
POST /v1/chat/completions HTTP/1.1
Host: relay.4aicode.com
Authorization: Bearer sk-4ai-xxxxxxxxxxxxxxxx
content-type: application/json
{
"model": "gemini-4-neon",
"stream": true,
"messages": [
{ "role": "user", "content": "Write a hello world in Go." }
]
}
接続手順
- トークン管理で APIキーを作成します。
- クライアントの
base_urlをhttps://relay.4aicode.comに設定します(中国本土向け回線はhttps://relay.4aicode.net)。 - リクエストの
modelをgemini-4-neonに設定します。