Model API

Gemini 2.5 Flash API

Gemini 2.5 Flash API on Aiduct. Gemini 2.5 Flash routed by the Aiduct API gateway. 1,048,576 token context. View model parameters, pricing and integration examples.

Model ID

gemini-2.5-flash

服務提供商

google

功能

chat

狀態

可用

Pricing and limits

Pricing is not published for this model yet. Check the catalog for current availability.

Context length
1,048,576
最大輸出
65,535

Use this model

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.AIDUCT_API_KEY,
  baseURL: "https://api.aiduct.ai/v1",
});

const response = await client.chat.completions.create({
  model: "gemini-2.5-flash",
  messages: [{ role: "user", content: "Say hello in one sentence." }],
});