You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -13,14 +8,18 @@ This documentation is valid for the following list of our models:
13
8
14
9
## Model Overview
15
10
16
-
11
+
The image editing variant of our 20B Qwen-Image model. It expands the model’s distinctive text rendering abilities to editing tasks, making accurate text modifications within images possible.
17
12
18
13
## Setup your API Key
19
14
20
15
If you don’t have an API key for the AI/ML API yet, feel free to use our [Quickstart guide](https://docs.aimlapi.com/quickstart/setting-up).
Let's generate an image of the specified size using a simple prompt.
@@ -43,13 +42,12 @@ def main():
43
42
},
44
43
json={
45
44
"model": "alibaba/qwen-image-edit",
46
-
"prompt": "A T-Rex relaxing on a beach, lying on a sun lounger and wearing sunglasses."
45
+
"prompt": "Make the dinosaur sit on a lounge chair with its back to the camera, looking toward the water. The setting sun has almost disappeared below the horizon.",
// Insert your AIML API Key instead of <YOUR_AIMLAPI_KEY>:
68
+
'Authorization':'Bearer <YOUR_AIMLAPI_KEY>',
69
+
'Content-Type':'application/json',
70
+
},
71
+
body:JSON.stringify({
72
+
model:'alibaba/qwen-image-edit',
73
+
prompt:'Make the dinosaur sit on a lounge chair with its back to the camera, looking toward the water. The setting sun has almost disappeared below the horizon.',
"prompt":"A T-Rex relaxing on a beach, lying on a sun lounger and wearing sunglasses."
97
+
]
121
98
}
122
99
```
123
100
{% endcode %}
124
101
125
102
</details>
126
103
127
-
We obtained the following 1024x768 image by running this code example:
104
+
We obtained the following 1184x896 image by running this code example:
128
105
129
-
<figure><imgsrc="../../../.gitbook/assets/qwen-image.jpeg"alt=""><figcaption><p><code>'A T-Rex relaxing on a beach, lying on a sun lounger and wearing sunglasses.'</code></p></figcaption></figure>
106
+
<figure><imgsrc="../../../.gitbook/assets/ac748d89-d6b1-4d4e-bc65-eea543098bb9-1.png"alt=""><figcaption><p><code>'Make the dinosaur sit on a lounge chair with its back to the camera, looking toward the water.</code> <br><code>The setting sun has almost disappeared below the horizon.'</code></p></figcaption></figure>
0 commit comments