G

gemini-2.5-flash-image-preview

32k ContextTextPopular

Google が提供する gemini-2.5-flash-image-preview モデル。32K のコンテキストをサポートし、Chat タスクに最適です。

クイックスタート

example.tsTypeScript
import OpenAI from "openai";

const openai = new OpenAI({
  baseURL: "https://api.okrouter.com/v1",
  apiKey: "<YOUR_OKROUTER_KEY>",
});

async function main() {
  const completion = await openai.chat.completions.create({
    model: "gemini-2.5-flash-image-preview",
    messages: [
      { role: "user", content: "Hello! What can you do?" }
    ],
  });

  console.log(completion.choices[0].message);
}

main();

gemini-2.5-flash-image-preview の使い方は簡単です。OkRouterはOpenAI SDKと完全な互換性があるため、既存のライブラリを使ってすぐにアクセスできます。 gemini-2.5-flash-image-preview はOpenAI Chat Completions APIと完全に互換性があり、特徴として 標準コンテキスト処理 および Text のサポートがあります。

よくある質問

?gemini-2.5-flash-image-preview の料金はいくらですか?

入力は $0.0320、出力は per request です。為替レートの変動があるため、リアルタイムの料金表をご確認ください。

?gemini-2.5-flash-image-preview をどうやって呼び出しますか?

標準のOpenAI SDKを使用できます。baseURLを https://api.okrouter.com/v1 に設定し、APIキーを使用するだけです。

?gemini-2.5-flash-image-preview はどれくらいのコンテキストをサポートしていますか?

このモデルは 32K のコンテキストウィンドウをサポートしています。