Skip to content

Commit aece708

Browse files
Merge pull request #5023 from PatrickFarley/aoai-build
Aoai build
2 parents a4fee51 + 4fbd23f commit aece708

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

articles/ai-foundry/what-is-azure-ai-foundry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ The left pane is organized around your goals. Generally, as you develop with Azu
7070
* **Define and explore**. In this stage you define your project goals, and then explore and test models and services against your use case to find the ones that enable you to achieve your goals.
7171
* **Build and customize**. In this stage, you're actively building solutions and applications with the models, tools, and capabilities you selected. You can also customize models to perform better for your use case by fine-tuning, grounding in your data, and more. Building and customizing might be something you choose to do in the Azure AI Foundry portal, or through code and the Azure AI Foundry SDKs. Either way, a project provides you with everything you need.
7272
* Once you're actively developing in your project, the **Overview** page shows the things you want easy access to, like your endpoints and keys.
73-
* **Assess and improve**. In this stage, you're looking for where you can improve your application's performance. You might choose to use tools like tracing to debug your application or compare evaluations to hone in on how you want your application to behave. You can also integrate with safety & security systems so you can be confident when you take your application to production.
73+
* **Observe and improve**. In this stage, you're looking for where you can improve your application's performance. You might choose to use tools like tracing to debug your application or compare evaluations to hone in on how you want your application to behave. You can also integrate with safety & security systems so you can be confident when you take your application to production.
7474

7575
If you're an admin, or leading a development team, and need to manage the team's resources, project access, quota, and more, you can do that in the Management Center.
7676

articles/ai-services/openai/how-to/dall-e.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -259,22 +259,23 @@ Replace the following values:
259259
- `<api_version>` is the version of the API you want to use. For example, `2025-04-01-preview`.
260260

261261
**Required headers**:
262-
- `Content-Type`: `application/json`
262+
- `Content-Type`: `multipart/form-data`
263263
- `api-key`: `<your_API_key>`
264264

265265
**Body**:
266266

267267
The following is a sample request body. You specify a number of options, defined in later sections.
268268

269-
```json
270-
{
271-
"image": "<base64_encoded_image>",
272-
"prompt": "Add a beach ball in the center.",
273-
"model": "gpt-image-1",
274-
"size": "1024x1024",
275-
"n": 1,
276-
"quality": "high"
277-
}
269+
> [!IMPORTANT]
270+
> The Image Edit API takes multipart/form data, not JSON data. The example below shows sample form data that would be attached to a cURL request.
271+
272+
```
273+
-F "image[][email protected]" \
274+
-F 'prompt=Add a beach ball in the center' \
275+
-F "model=gpt-image-1" \
276+
-F "size=1024x1024" \
277+
-F "n=1" \
278+
-F "quality=high"
278279
```
279280

280281
### Output
@@ -304,7 +305,7 @@ The *image* value indicates the image file you want to edit. It can be either a
304305

305306
#### Mask
306307

307-
The *mask* parameter is the same type as the main *image* input parameter. It defines the area of the image that you want the model to change, using fully transparent pixels (alpha of zero) in those areas. The mask can be a URL or base 64-encoded image data. It must be a PNG file and have the same dimensions as the image.
308+
The *mask* parameter is the same type as the main *image* input parameter. It defines the area of the image that you want the model to edit, using fully transparent pixels (alpha of zero) in those areas. The mask must be a base 64-encoded image. It must be a PNG file and have the same dimensions as the input image.
308309

309310

310311
#### [DALL-E 3](#tab/dalle-3)

0 commit comments

Comments
 (0)