Home / gemini-2.5-flash-preview-05-20
gemini-2.5-flash-preview-05-20

gemini-2.5-flash-preview-05-20

gemini-2.5-flash-preview-05-20
Price
Input$0.1425 per million tokens $0.15 per million tokens
Cached writes (5m)$0.0788 per million tokens $0.083 per million tokens
Cached writes (1 hour)$0.95 per million tokens $1 per million tokens
Cached reads$0.0285 per million tokens $0.03 per million tokens
Output$3.325 per million tokens $3.5 per million tokens

Use the following code example to integrate our API:

1from openai import OpenAI
2
3client = OpenAI(
4    api_key="<Your API Key>",
5    base_url="https://api.jiekou.ai/openai"
6)
7
8response = client.chat.completions.create(
9    model="gemini-2.5-flash-preview-05-20",
10    messages=[
11        {"role": "system", "content": "You are a helpful assistant."},
12        {"role": "user", "content": "Hello, how are you?"}
13    ],
14    max_tokens=200000,
15    temperature=0.7
16)
17
18print(response.choices[0].message.content)

Information

Provider
Quantification
-

Supported Features

Context length
1048576
Maximum output
200000
Function call
Support
Structured output
Support
Reasoning
Support
serverless
Support
Input Capabilities
text, image, video, audio
Output Capabilities
text
Contact Us