Gemini 2.5 Pro
ベンダー定価。プラットフォーム手数料なし、従量課金。 これらは公式 list 価格です。ログイン中のお客様は /console/pricing でワークスペース割引を含む実効価格を確認できます。 キャッシュヒット率 70% 時の実効入力単価:$0.4625/M. 現行の Gemini モデルでは暗黙的キャッシュがデフォルトでオンになっており(キャッシュヒット時に自動で割引)、確実な節約のためのストレージベース課金の明示的な CachedContent API も提供されます。
30 秒で Gemini 2.5 Pro を使う
OpenAI 互換。base_url を差し替えるだけで、SDK はそのまま。POST /v1/chat/completions
from openai import OpenAI
client = OpenAI(
base_url="https://synthorai.io/v1",
api_key="sk-syn-...",
)
resp = client.chat.completions.create(
model="gemini-2.5-pro",
messages=[{"role": "user", "content": "Summarize this diff"}],
reasoning_effort="medium",
)
print(resp.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://synthorai.io/v1",
apiKey: "sk-syn-...",
});
const resp = await client.chat.completions.create({
model: "gemini-2.5-pro",
messages: [{ role: "user", content: "Summarize this diff" }],
reasoning_effort: "medium",
});
console.log(resp.choices[0].message.content);curl https://synthorai.io/v1/chat/completions \
-H "Authorization: Bearer sk-syn-..." \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-2.5-pro",
"messages": [{"role": "user", "content": "Hello"}],
"reasoning_effort": "medium"
}'package main
import (
"context"
"fmt"
"github.com/openai/openai-go/v3"
"github.com/openai/openai-go/v3/option"
)
func main() {
client := openai.NewClient(
option.WithBaseURL("https://synthorai.io/v1"),
option.WithAPIKey("sk-syn-..."),
)
resp, _ := client.Chat.Completions.New(context.TODO(), openai.ChatCompletionNewParams{
Model: "gemini-2.5-pro",
Messages: []openai.ChatCompletionMessageParamUnion{
openai.UserMessage("Summarize this diff"),
},
ReasoningEffort: openai.ReasoningEffortMedium,
})
fmt.Println(resp.Choices[0].Message.Content)
}import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.chat.completions.*;
import com.openai.models.ReasoningEffort;
OpenAIClient client = OpenAIOkHttpClient.builder()
.baseUrl("https://synthorai.io/v1")
.apiKey("sk-syn-...")
.build();
ChatCompletion resp = client.chat().completions().create(
ChatCompletionCreateParams.builder()
.model("gemini-2.5-pro")
.addUserMessage("Summarize this diff")
.reasoningEffort(ReasoningEffort.MEDIUM)
.build());
System.out.println(resp.choices().get(0).message().content().orElse(""));Gemini 2.5 Pro について
Gemini 2.5 Pro は 2.5 シリーズにおける Google の最先端の思考モデルで、コード・数学・STEM の複雑な問題を推論し、ロングコンテキストを用いて大規模なデータセット・コードベース・ドキュメントを分析するために構築されています。
- 1,048,576 トークンのコンテキストウィンドウと 65,536 トークンの出力上限は、音声・画像・動画・テキスト・PDF の入力と組み合わされます。
- 関数呼び出し、構造化出力、コード実行、検索グラウンディング、URL コンテキスト、キャッシュに対応し、知識カットオフは 2025 年 1 月です。
- Synthorai では標準の OpenAI 互換 chat completions ルート経由で応答します。
スペックと制限
| 最大出力(ベンダー仕様) | 65,536 |
| モダリティ | text + image + video + audio → text |
| 機能 | tools · structured_output · streaming · vision · batch · caching · reasoning |
| 特記事項 | Stable/GA release of the 2.5 flagship; 1,048,576-token input / 65,536 output; text+image+video+audio+PDF input; thinking supported. |
| プロンプトキャッシュ | 自動 + 明示 · 最小プレフィックス 1,024 トークン |
よくある質問
Gemini 2.5 Pro API は無料で試せますか?
はい。新規アカウントには 10 回のトライアル呼び出しと最大 $1 の無料クレジットが付与され、カード登録は不要です。入力 $1.25/M で計算すると、このクレジットだけで Gemini 2.5 Pro に対して約 99 回の ~8K トークンのリクエストを送れます。
Gemini 2.5 Pro は何が得意ですか?
コード・数学・STEM 向けの最先端の思考、さらにロングコンテキストで大規模コードベースを分析とPDF 入力を伴う 1,048,576 トークンコンテキスト。全体像はベンダー公式のリリースノートに基づく About セクションをご覧ください。
Gemini 2.5 Pro の料金はいくらですか?
Synthorai 上の Gemini 2.5 Pro は入力 100 万トークンあたり $1.25、出力 100 万トークンあたり $10 です。ベンダー定価のままで、プラットフォーム手数料はありません。キャッシュ済み入力トークンは $0.125/M で課金されます。
Gemini 2.5 Pro はプロンプトキャッシュに対応していますか?
はい。自動キャッシュがデフォルトで有効なうえ、確実な割引を得られる明示モードもあります。キャッシュ済み入力トークンは $0.125/M(未キャッシュは $1.25/M)で課金されます。なお、キャッシュには 1,024 トークン以上の安定したプレフィックスが必要です。 プロンプトキャッシュガイド →
Gemini 2.5 Pro を利用するには?
お使いの OpenAI SDK の base_url を "https://synthorai.io/v1" に向け、model="gemini-2.5-pro" を設定すれば完了です。API キー 1 本でゲートウェイ上のすべてのモデルを利用できます。
Gemini 2.5 Pro の知識カットオフはいつですか?
ベンダー公式ドキュメントによると、Gemini 2.5 Pro の知識カットオフは 2025-01 です(2026-07-09 時点)。