Skip to content

Commit 0f12949

Browse files
techpro-aimlapigitbook-bot
authored andcommitted
GITBOOK-1012: docs: add qwen-image-2-0 and -pro
1 parent f3c1606 commit 0f12949

7 files changed

Lines changed: 33 additions & 25 deletions

File tree

1010 KB
Loading
827 KB
Loading
1.01 MB
Loading

docs/api-references/image-models/README.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

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

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This documentation is valid for the following list of our models:
1616

1717
## Model Overview
1818

19-
19+
An advanced text-to-image and image editing model. It supports high-quality generation and precise editing operations including text rendering and style transformations.
2020

2121
## Setup your API Key
2222

@@ -54,7 +54,7 @@ def main():
5454
"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png",
5555
"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/blue-mug.jpg"
5656
],
57-
"image_size": "landscape_16_9"
57+
"image_size": "landscape_4_3"
5858
}
5959
)
6060

@@ -84,7 +84,7 @@ const response = await fetch('https://api.aimlapi.com/v1/images/generations', {
8484
'https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png',
8585
'https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/blue-mug.jpg'
8686
],
87-
image_size: 'landscape_16_9'
87+
image_size: 'landscape_4_3'
8888
}),
8989
});
9090

@@ -102,10 +102,10 @@ console.log(JSON.stringify(data, null, 2));
102102
{% code overflow="wrap" %}
103103
```json5
104104
{
105-
"created": 1777471426178,
105+
"created": 1777512067915,
106106
"data": [
107107
{
108-
"url": "https://cdn.aimlapi.com/generations/alligator/1777471425510-b4479132-da44-467e-b07e-4d3afdf28a6b.png"
108+
"url": "https://cdn.aimlapi.com/generations/alligator/1777512066857-61afe36f-4c6e-418b-b621-fba9dd33ca2a.png"
109109
}
110110
],
111111
"meta": {
@@ -120,14 +120,4 @@ console.log(JSON.stringify(data, null, 2));
120120

121121
</details>
122122

123-
<table data-full-width="false"><thead><tr><th>Reference Image</th><th>Generated Image</th></tr></thead><tbody><tr><td></td><td></td></tr></tbody></table>
124-
125-
<details>
126-
127-
<summary>More generated images</summary>
128-
129-
| | |
130-
| - | - |
131-
| | |
132-
133-
</details>
123+
<table data-full-width="true"><thead><tr><th width="442.0667724609375" valign="top">Reference Images</th><th valign="top">Generated Image</th></tr></thead><tbody><tr><td valign="top"><img src="../../../.gitbook/assets/t rex.png" alt="Image #1" data-size="original"></td><td valign="top"><img src="../../../.gitbook/assets/qwen-image-2.0-pro_output (1).png" alt="&#x22;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.&#x22;" data-size="original"></td></tr><tr><td valign="top"><img src="../../../.gitbook/assets/blue mug.jpg" alt="Image #2" data-size="original"></td><td valign="top"></td></tr></tbody></table>

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

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ This documentation is valid for the following list of our models:
1616

1717
## Model Overview
1818

19-
19+
A text-to-image model designed for accurate text rendering and general image generation. \
20+
It provides good quality outputs with strong prompt adherence.
2021

2122
## Setup your API Key
2223

@@ -54,7 +55,7 @@ def main():
5455
"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png",
5556
"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/blue-mug.jpg"
5657
],
57-
"image_size": "landscape_16_9"
58+
"image_size": "landscape_4_3"
5859
}
5960
)
6061

@@ -84,7 +85,7 @@ const response = await fetch('https://api.aimlapi.com/v1/images/generations', {
8485
'https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png',
8586
'https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/blue-mug.jpg'
8687
],
87-
image_size: 'landscape_16_9'
88+
image_size: 'landscape_4_3'
8889
}),
8990
});
9091

@@ -97,10 +98,27 @@ console.log(JSON.stringify(data, null, 2));
9798

9899
<details>
99100

100-
<summary>More generated images</summary>
101+
<summary>Response</summary>
101102

102-
| | |
103-
| - | - |
104-
| | |
103+
{% code overflow="wrap" %}
104+
```json5
105+
{
106+
"created": 1777511878231,
107+
"data": [
108+
{
109+
"url": "https://cdn.aimlapi.com/generations/alligator/1777511876852-c1d0e5a6-6935-48ea-9326-53877e1fc6e4.png"
110+
}
111+
],
112+
"meta": {
113+
"usage": {
114+
"credits_used": 91000,
115+
"usd_spent": 0.0455
116+
}
117+
}
118+
}
119+
```
120+
{% endcode %}
105121

106122
</details>
123+
124+
<table data-full-width="true"><thead><tr><th width="442.0667724609375" valign="top">Reference Images</th><th valign="top">Generated Image</th></tr></thead><tbody><tr><td valign="top"><img src="../../../.gitbook/assets/t rex.png" alt="Image #1" data-size="original"></td><td valign="top"><img src="../../../.gitbook/assets/qwen-image-2.0_output.png" alt="&#x22;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.&#x22;" data-size="original"></td></tr><tr><td valign="top"><img src="../../../.gitbook/assets/blue mug.jpg" alt="Image #2" data-size="original"></td><td valign="top"></td></tr></tbody></table>

docs/api-references/model-database.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)