Skip to content

Commit 3bc7a9d

Browse files
techpro-aimlapigitbook-bot
authored andcommitted
GITBOOK-575: docs: add new parameters to nano banana pro / edit
1 parent 9553e59 commit 3bc7a9d

16 files changed

Lines changed: 39 additions & 43 deletions
5.77 MB
Loading
7.34 MB
Loading

docs/api-references/image-models/RecraftAI/recraft-v3.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ def main():
4848
"Content-Type": "application/json",
4949
},
5050
json={
51-
"prompt": "A T-Rex relaxing on a beach, lying on a sun lounger and wearing sunglasses.",
52-
"model": "recraft-v3"
51+
"model": "recraft-v3",
52+
"prompt": "A T-Rex relaxing on a beach, lying on a sun lounger and wearing sunglasses."
5353
}
5454
)
5555

docs/api-references/image-models/alibaba-cloud/qwen-image-edit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If you don’t have an API key for the AI/ML API yet, feel free to use our [Quic
3030

3131
## Quick Example
3232

33-
Let's generate an image of the specified size using a simple prompt.
33+
Let's generate an image using an input image and a prompt that defines how it should be edited.
3434

3535
{% tabs %}
3636
{% tab title="Python" %}

docs/api-references/image-models/bytedance/seedream-v4-edit-image-to-image.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If you don’t have an API key for the AI/ML API yet, feel free to use our [Quic
3030

3131
## Quick Example
3232

33-
Let's generate an image of the specified size using a simple prompt.
33+
Let's generate an image using two input images and a prompt that defines how they should be edited.
3434

3535
{% tabs %}
3636
{% tab title="Python" %}

docs/api-references/image-models/flux/flux-2-edit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If you don’t have an API key for the AI/ML API yet, feel free to use our [Quic
3030

3131
## Quick Example
3232

33-
Let's generate a new image using the one from the [flux/dev Quick Example](flux-dev.md#quick-example) as a reference — and make a simple change to it with a prompt.
33+
Let's generate an image using two input images and a prompt that defines how they should be edited.
3434

3535
{% tabs %}
3636
{% tab title="Python" %}

docs/api-references/image-models/flux/flux-2-lora-edit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If you don’t have an API key for the AI/ML API yet, feel free to use our [Quic
3030

3131
## Quick Example
3232

33-
Let's generate a new image using the one from the [flux/dev Quick Example](flux-dev.md#quick-example) as a reference — and make a simple change to it with a prompt.
33+
Let's generate an image of the specified size using two input images and a prompt that defines how they should be edited.
3434

3535
{% tabs %}
3636
{% tab title="Python" %}

docs/api-references/image-models/flux/flux-2-pro-edit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If you don’t have an API key for the AI/ML API yet, feel free to use our [Quic
3030

3131
## Quick Example
3232

33-
Let's generate a new image using the one from the [flux/dev Quick Example](flux-dev.md#quick-example) as a reference — and make a simple change to it with a prompt.
33+
Let's generate an image of the specified size using two input images and a prompt that defines how they should be edited.
3434

3535
{% tabs %}
3636
{% tab title="Python" %}

docs/api-references/image-models/google/gemini-2.5-flash-image-edit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ If you don’t have an API key for the AI/ML API yet, feel free to use our [Quic
4949

5050
## Quick Example
5151

52-
Let's generate an image of the specified size using a simple prompt.
52+
Let's generate an image using two input images and a prompt that defines how they should be edited.
5353

5454
{% tabs %}
5555
{% tab title="Python" %}

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

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,32 +29,13 @@ If you don’t have an API key for the AI/ML API yet, feel free to use our [Quic
2929

3030
## API Schema
3131

32-
<details>
33-
34-
<summary>Aspect ratio/Resolution Table</summary>
35-
36-
| Aspect ratio | Resolution | Credits |
37-
| ------------ | ---------- | ------- |
38-
| 1:1 | 1024×1024 | 315 000 |
39-
| 2:3 | 832×1248 | 315 000 |
40-
| 3:2 | 1248×832 | 315 000 |
41-
| 3:4 | 864×1184 | 315 000 |
42-
| 4:3 | 1184×864 | 315 000 |
43-
| 4:5 | 896×1152 | 315 000 |
44-
| 5:4 | 1152×896 | 315 000 |
45-
| 9:16 | 768×1344 | 315 000 |
46-
| 16:9 | 1344×768 | 315 000 |
47-
| 21:9 | 1536×672 | 315 000 |
48-
49-
</details>
50-
5132
{% openapi-operation spec="gemini-3-pro-image-preview-edit" path="/v1/images/generations" method="post" %}
5233
[OpenAPI gemini-3-pro-image-preview-edit](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/image-models/Google/gemini-3-pro-image-preview-edit.json)
5334
{% endopenapi-operation %}
5435

5536
## Quick Example
5637

57-
Let's generate an image of the specified size using a simple prompt.
38+
Let's generate an image of the specified size using two input images and a prompt that defines how they should be edited.
5839

5940
{% tabs %}
6041
{% tab title="Python" %}
@@ -78,6 +59,8 @@ def main():
7859
"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/blue-mug.jpg"
7960
],
8061
"prompt": "Combine the images so the T-Rex is wearing a business suit, sitting in a cozy small café, drinking from the mug. Blur the background slightly to create a bokeh effect.",
62+
"aspect_ratio": "16:9",
63+
"resolution": "1K"
8164
}
8265
)
8366

@@ -108,6 +91,8 @@ async function main() {
10891
'https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/blue-mug.jpg'
10992
],
11093
prompt: 'Combine the images so the T-Rex is wearing a business suit, sitting in a cozy small café, drinking from the mug. Blur the background slightly to create a bokeh effect.',
94+
aspect_ratio: '1:1',
95+
resolution: '1K'
11196
}),
11297
});
11398
}
@@ -147,3 +132,7 @@ main();
147132
</details>
148133

149134
<table data-full-width="true"><thead><tr><th width="389.7999267578125" valign="top">Reference Images</th><th valign="top">Generated Image</th></tr></thead><tbody><tr><td valign="top"><div><figure><img src="../../../.gitbook/assets/t-rex (1) (1).png" alt=""><figcaption><p>Image #1</p></figcaption></figure></div></td><td valign="top"><div><figure><img src="../../../.gitbook/assets/gemini-3-pro-image-preview-edit.png" alt=""><figcaption><p><kbd><code>"Combine the images so the T-Rex is wearing a business suit, sitting in a cozy small café, drinking from the mug. Blur the background slightly to create a bokeh effect."</code></kbd></p></figcaption></figure></div></td></tr><tr><td valign="top"><div><figure><img src="../../../.gitbook/assets/blue-mug (1).jpg" alt=""><figcaption><p>Image #2</p></figcaption></figure></div></td><td valign="top"></td></tr></tbody></table>
135+
136+
Here’s an example of the output using alternative `resolution` and `aspect_ratio` parameters:
137+
138+
<figure><img src="../../../.gitbook/assets/nano-banana-pro-edit_output2.png" alt=""><figcaption><p><code>"aspect_ratio": "16:9"</code>, <code>"resolution": "2K"</code></p></figcaption></figure>

0 commit comments

Comments
 (0)