Skip to content

Commit b7dee2d

Browse files
Dmitry Tumanovgitbook-bot
authored andcommitted
GITBOOK-677: Add model documentation: Gemini 3 Flash Preview
1 parent d4b95c8 commit b7dee2d

2 files changed

Lines changed: 148 additions & 0 deletions

File tree

docs/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
* [gemini-3-pro-preview](api-references/text-models-llm/google/gemini-3-pro-preview.md)
6565
* [gemma-3](api-references/text-models-llm/google/gemma-3.md)
6666
* [gemma-3n-4b](api-references/text-models-llm/google/gemma-3n-4b.md)
67+
* [gemini-3-flash-preview](api-references/text-models-llm/google/gemini-3-flash-preview.md)
6768
* [Gryphe](api-references/text-models-llm/gryphe/README.md)
6869
* [MythoMax L2 (13B)](api-references/text-models-llm/gryphe/mythomax-l2-13b.md)
6970
* [Meta](api-references/text-models-llm/Meta/README.md)
Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
# gemini-3-flash-preview
2+
3+
{% columns %}
4+
{% column width="66.66666666666666%" %}
5+
{% hint style="info" %}
6+
This documentation is valid for the following list of our models:
7+
8+
* `google/gemini-3-flash-preview`
9+
{% endhint %}
10+
{% endcolumn %}
11+
12+
{% column width="33.33333333333334%" %}
13+
<a href="https://aimlapi.com/app/?model=google/gemini-3-flash-preview" class="button primary">Try in Playground</a>
14+
{% endcolumn %}
15+
{% endcolumns %}
16+
17+
## Model Overview
18+
19+
A fast multimodal LLM for low-latency chat and content generation, with strong reasoning and tool-use capabilities. Supports text input and optional image understanding for vision-based prompts.
20+
21+
## How to Make a Call
22+
23+
<details>
24+
25+
<summary>Step-by-Step Instructions</summary>
26+
27+
:digit\_one: **Setup You Can’t Skip**
28+
29+
:black\_small\_square: [**Create an Account**](https://aimlapi.com/app/sign-up): Visit the AI/ML API website and create an account (if you don’t have one yet). :black\_small\_square: [**Generate an API Key**](https://aimlapi.com/app/keys): After logging in, navigate to your account dashboard and generate your API key. Ensure the key is enabled on the UI.
30+
31+
:digit\_two: **Copy the code example**
32+
33+
At the bottom of this page, you'll find a code example that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
34+
35+
:digit\_three: **Modify the code example**
36+
37+
:black\_small\_square: Replace `<YOUR_AIMLAPI_KEY>` with your actual AI/ML API key. :black\_small\_square: Adjust the input field used by this model (for example, prompt, input text, instructions, media source, or other model-specific input) to match your request.
38+
39+
:digit\_four: <sup><sub><mark style="background-color:yellow;">**(Optional)**<mark style="background-color:yellow;"><sub></sup> **Adjust other optional parameters if needed**
40+
41+
Only the required parameters shown in the example are needed to run the request, but you can include optional parameters to fine-tune behavior. Below, you can find the corresponding **API schema**, which lists all available parameters and usage notes.
42+
43+
:digit\_five: **Run your modified code**
44+
45+
Run your modified code inside your development environment. Response time depends on many factors, but for simple requests it rarely exceeds a few seconds.
46+
47+
{% hint style="success" %}
48+
If you need a more detailed walkthrough for setting up your development environment and making a request step-by-step, feel free to use our [**Quickstart guide.**](https://docs.aimlapi.com/quickstart/setting-up)
49+
{% endhint %}
50+
51+
</details>
52+
53+
## API Schema
54+
55+
{% openapi-operation spec="gemini-3-flash-preview" path="/chat/completions" method="post" %}
56+
[OpenAPI gemini-3-flash-preview](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/Google/gemini-3-flash-preview.json)
57+
{% endopenapi-operation %}
58+
59+
## Code Example
60+
61+
{% tabs %}
62+
{% tab title="Python" %}
63+
{% code overflow="wrap" %}
64+
```python
65+
import requests
66+
67+
response = requests.post(
68+
"https://api.aimlapi.com/v1/chat/completions",
69+
headers={
70+
"Content-Type":"application/json",
71+
"Authorization":"Bearer <YOUR_AIMLAPI_KEY>",
72+
},
73+
json={
74+
"model":"google/gemini-3-flash-preview",
75+
"messages":[
76+
{\
77+
"role":"user",
78+
"content":"Hello"
79+
}
80+
]
81+
}
82+
)
83+
84+
data = response.json()
85+
print(data)
86+
```
87+
{% endcode %}
88+
{% endtab %}
89+
90+
{% tab title="JavaScript" %}
91+
{% code overflow="wrap" %}
92+
```javascript
93+
async function main() {
94+
const response = await fetch('https://api.aimlapi.com/v1/chat/completions', {
95+
method: 'POST',
96+
headers: {
97+
'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',
98+
'Content-Type': 'application/json',
99+
},
100+
body: JSON.stringify({
101+
model: 'google/gemini-3-flash-preview',
102+
messages:[
103+
{
104+
role:'user',
105+
content: 'Hello'
106+
}
107+
]
108+
}),
109+
});
110+
111+
const data = await response.json();
112+
console.log(JSON.stringify(data, null, 2));
113+
}
114+
115+
main();
116+
```
117+
{% endcode %}
118+
{% endtab %}
119+
{% endtabs %}
120+
121+
<details>
122+
123+
<summary>Response</summary>
124+
125+
{% code overflow="wrap" %}
126+
```json5
127+
{
128+
'id': 'gen-1733832000-example',
129+
'object': 'image',
130+
'created': 1733832000,
131+
'model': 'google/gemini-3-flash-preview',
132+
'data': [
133+
{
134+
'url': 'https://cdn.aimlapi.com/generated-images/google/gemini-3-flash-preview/example-output.png',
135+
'revised_prompt': 'Example output for documentation.'
136+
}
137+
],
138+
'usage': {
139+
'prompt_tokens': 0,
140+
'completion_tokens': 0,
141+
'total_tokens': 0
142+
}
143+
}
144+
```
145+
{% endcode %}
146+
147+
</details>

0 commit comments

Comments
 (0)