Skip to content

Commit a642f46

Browse files
techpro-aimlapigitbook-bot
authored andcommitted
GITBOOK-545: docs: add additional ids (google/nano-banana-pro and google/nano-banana-pro-edit)
1 parent f5f330f commit a642f46

3 files changed

Lines changed: 15 additions & 5 deletions

File tree

1.92 MB
Loading

docs/api-references/image-models/google/gemini-3-pro-image-preview-edit.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@
55
{% hint style="info" %}
66
This documentation is valid for the following list of our models:
77

8+
* `google/nano-banana-pro-edit`
89
* `google/gemini-3-pro-image-preview-edit`
910
{% endhint %}
11+
12+
{% hint style="success" %}
13+
Both IDs listed above refer to the same model; we support them for backward compatibility.
14+
{% endhint %}
1015
{% endcolumn %}
1116

1217
{% column width="33.33333333333334%" %}
@@ -67,7 +72,7 @@ def main():
6772
"Content-Type": "application/json",
6873
},
6974
json={
70-
"model": "google/gemini-3-pro-image-preview-edit",
75+
"model": "google/nano-banana-pro-edit",
7176
"image_urls": [
7277
"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png",
7378
"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/blue-mug.jpg"
@@ -97,7 +102,7 @@ async function main() {
97102
'Content-Type': 'application/json',
98103
},
99104
body: JSON.stringify({
100-
model: 'google/gemini-3-pro-image-preview-edit',
105+
model: 'google/nano-banana-pro-edit',
101106
image_urls: [
102107
'https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png',
103108
'https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/blue-mug.jpg'

docs/api-references/image-models/google/gemini-3-pro-image-preview.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@
55
{% hint style="info" %}
66
This documentation is valid for the following list of our models:
77

8+
* `google/nano-banana-pro`
89
* `google/gemini-3-pro-image-preview`
910
{% endhint %}
11+
12+
{% hint style="success" %}
13+
Both IDs listed above refer to the same model; we support them for backward compatibility.
14+
{% endhint %}
1015
{% endcolumn %}
1116

1217
{% column width="33.33333333333334%" %}
@@ -48,7 +53,7 @@ def main():
4853
"Content-Type": "application/json",
4954
},
5055
json={
51-
"model": "google/gemini-3-pro-image-preview",
56+
"model": "google/nano-banana-pro",
5257
"prompt": "Racoon eating ice-cream"
5358
}
5459
)
@@ -74,7 +79,7 @@ async function main() {
7479
'Content-Type': 'application/json',
7580
},
7681
body: JSON.stringify({
77-
model: 'google/gemini-3-pro-image-preview',
82+
model: 'google/nano-banana-pro',
7883
prompt: 'Racoon eating ice-cream',
7984
aspect_ratio: '16:9'
8085
}),
@@ -120,4 +125,4 @@ main();
120125

121126
So we obtained the following 1024x1024 image by running this code example:
122127

123-
<figure><img src="../../../.gitbook/assets/nano_banana_pro.png" alt=""><figcaption><p>In reality, raccoons shouldn’t be given ice cream or chocolate—it’s harmful to their metabolism.<br>But in the AI world, raccoons party like there’s no tomorrow.</p></figcaption></figure>
128+
<figure><img src="../../../.gitbook/assets/oeX2RJ3jPIKcBueLZSAGL.png" alt=""><figcaption><p>In reality, raccoons shouldn’t be given ice cream or chocolate—it’s harmful to their metabolism.<br>But in the AI world, raccoons party like there’s no tomorrow.</p></figcaption></figure>

0 commit comments

Comments
 (0)