Skip to content

Commit cd498fe

Browse files
docs: 4th edition of gemini-2.5-flash-image-edit.json
1 parent f31ab27 commit cd498fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/api-references/image-models/Google/gemini-2.5-flash-image-edit.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"x-codeSamples": [
66
{
77
"lang": "JavaScript",
8-
"source": "async function main() {\n try {\n const response = await fetch('https://api.aimlapi.com/v1/images/generations', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n model: 'google/gemini-2.5-flash-image-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 });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n\n } catch (error) {\n console.error('Error', error);\n }\n}\n\nmain();"
8+
"source": "async function main() {\n try {\n const response = await fetch('https://api.aimlapi.com/v1/images/generations', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n model: 'google/gemini-2.5-flash-image-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 });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n\n } catch (error) {\n console.error('Error', error);\n }\n}\n\nmain();"
99
},
1010
{
1111
"lang": "Python",

0 commit comments

Comments
 (0)