Skip to content

Commit 021633d

Browse files
feat: re-gen nano bananas pro
1 parent 2e386e7 commit 021633d

3 files changed

Lines changed: 83 additions & 18 deletions

File tree

‎docs/api-references/image-models/Google/gemini-3-pro-image-preview-edit.json‎

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,33 @@
3939
},
4040
"description": "List of URLs or local Base64 encoded images to edit."
4141
},
42+
"aspect_ratio": {
43+
"type": "string",
44+
"enum": [
45+
"21:9",
46+
"1:1",
47+
"4:3",
48+
"3:2",
49+
"2:3",
50+
"5:4",
51+
"4:5",
52+
"3:4",
53+
"16:9",
54+
"9:16"
55+
],
56+
"default": "1:1",
57+
"description": "The aspect ratio of the generated image."
58+
},
59+
"resolution": {
60+
"type": "string",
61+
"enum": [
62+
"1K",
63+
"2K",
64+
"4K"
65+
],
66+
"default": "1K",
67+
"description": "The size of the generated image."
68+
},
4269
"num_images": {
4370
"type": "number",
4471
"minimum": 1,
@@ -94,14 +121,14 @@
94121
"type": "object",
95122
"nullable": true,
96123
"properties": {
97-
"tokens_used": {
124+
"credits_used": {
98125
"type": "number",
99126
"description": "The number of tokens consumed during generation.",
100127
"example": 120000
101128
}
102129
},
103130
"required": [
104-
"tokens_used"
131+
"credits_used"
105132
]
106133
}
107134
},
@@ -121,15 +148,15 @@
121148
},
122149
{
123150
"lang": "Python",
124-
"source": "import requests\n\nresponse = requests.post(\n \"https://api.aimlapi.com/v1/images/generations\",\n headers={\n \"Content-Type\":\"application/json\", \n \"Authorization\":\"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n \"model\": \"google/nano-banana-pro-edit\",\n \"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.\",\n \"image_urls\": [\n \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png\",\n \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/blue-mug.jpg\"\n ]\n }\n)\n\ndata = response.json()\nprint(data)"
151+
"source": "import requests\n\nresponse = requests.post(\n \"https://api.aimlapi.com/v1/images/generations\",\n headers={\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n \"model\": \"google/nano-banana-pro-edit\",\n \"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.\",\n \"image_urls\": [\n \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png\",\n \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/blue-mug.jpg\"\n ]\n }\n)\n\ndata = response.json()\nprint(data)"
125152
},
126153
{
127154
"lang": "cURL",
128155
"source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v1/images/generations' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"model\": \"google/nano-banana-pro-edit\",\n \"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.\",\n \"image_urls\": [\n \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png\",\n \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/blue-mug.jpg\"\n ]\n }'"
129156
},
130157
{
131158
"lang": "HTTP",
132-
"source": "POST /v1/images/generations HTTP/1.1\nHost: api.aimlapi.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nContent-Type: application/json\nAccept: */*\n\n{\n \"model\": \"google/nano-banana-pro-edit\",\n \"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.\",\n \"image_urls\": [\n \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png\",\n \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/blue-mug.jpg\"\n ]\n}"
159+
"source": "POST / HTTP/1.1\nHost: test.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nContent-Type: application/json\nAccept: */*\n\n{\n \"model\": \"google/nano-banana-pro-edit\",\n \"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.\",\n \"image_urls\": [\n \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png\",\n \"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/blue-mug.jpg\"\n ]\n}"
133160
}
134161
]
135162
}

‎docs/api-references/image-models/Google/gemini-3-pro-image-preview.json‎

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,33 @@
3131
"type": "string",
3232
"description": "The text prompt describing the content, style, or composition of the image to be generated."
3333
},
34+
"aspect_ratio": {
35+
"type": "string",
36+
"enum": [
37+
"21:9",
38+
"1:1",
39+
"4:3",
40+
"3:2",
41+
"2:3",
42+
"5:4",
43+
"4:5",
44+
"3:4",
45+
"16:9",
46+
"9:16"
47+
],
48+
"default": "1:1",
49+
"description": "The aspect ratio of the generated image."
50+
},
51+
"resolution": {
52+
"type": "string",
53+
"enum": [
54+
"1K",
55+
"2K",
56+
"4K"
57+
],
58+
"default": "1K",
59+
"description": "The size of the generated image."
60+
},
3461
"num_images": {
3562
"type": "number",
3663
"minimum": 1,
@@ -85,14 +112,14 @@
85112
"type": "object",
86113
"nullable": true,
87114
"properties": {
88-
"tokens_used": {
115+
"credits_used": {
89116
"type": "number",
90117
"description": "The number of tokens consumed during generation.",
91118
"example": 120000
92119
}
93120
},
94121
"required": [
95-
"tokens_used"
122+
"credits_used"
96123
]
97124
}
98125
},
Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
11
[
22
{
3-
"name": "openai/gpt-5-1-codex",
4-
"url": "https://ai.aimlapi.com/docs-json?endpoint=openai/responses&model=openai/gpt-5-1-codex",
5-
"alias": "gpt-5-1-codex-RESPONSES",
6-
"category": "text-models-llm",
7-
"vendor": "OpenAI",
8-
"codeSamples": "responses"
3+
"name": "google/gemini-3-pro-image-preview",
4+
"url": "https://ai.aimlapi.com/docs-json?endpoint=openai/image-generations&model=google/gemini-3-pro-image-preview",
5+
"alias": "gemini-3-pro-image-preview",
6+
"models": ["google/nano-banana-pro", "google/gemini-3-pro-image-preview"],
7+
"category": "image-models",
8+
"vendor": "Google",
9+
"codeSamples": "text-to-image"
910
},
1011
{
11-
"name": "openai/gpt-5-1-codex-mini",
12-
"url": "https://ai.aimlapi.com/docs-json?endpoint=openai/responses&model=openai/gpt-5-1-codex-mini",
13-
"alias": "gpt-5-1-codex-mini-RESPONSES",
14-
"category": "text-models-llm",
15-
"vendor": "OpenAI",
16-
"codeSamples": "responses"
12+
"name": "google/gemini-3-pro-image-preview-edit",
13+
"url": "https://ai.aimlapi.com/docs-json?endpoint=openai/image-generations&model=google/gemini-3-pro-image-preview-edit",
14+
"alias": "gemini-3-pro-image-preview-edit",
15+
"models": ["google/nano-banana-pro-edit", "google/gemini-3-pro-image-preview-edit"],
16+
"category": "image-models",
17+
"vendor": "Google",
18+
"codeSamples": "custom",
19+
"customUrlApi": "https://api.aimlapi.com/v1/images/generations",
20+
"customParams":{
21+
"model": "google/nano-banana-pro-edit",
22+
"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.",
23+
"image_urls": [
24+
"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png",
25+
"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/blue-mug.jpg"
26+
]
27+
}
1728
}
1829
]

0 commit comments

Comments
 (0)