Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions api-reference/inference-api/images/create-image-edit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
title: Create Image Edit
openapi: post /images/edits
---

<Note>
Image edit requests use `multipart/form-data` and the provider-prefixed model aliases inside multipart payloads is not supported, so pass the upstream provider's model or deployment name directly in the `model` form field instead of values like `@provider/model-name`.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not add here.

</Note>
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,14 @@ curl "https://api.portkey.ai/v1/images/generations" \
</Tab>
</Tabs>

<Note>
For Image Edit requests, provider-prefixed model aliases inside multipart payloads are not supported. The `model` value should match the model or deployment name expected by the upstream provider.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For image edit you can give add a section and example, then below just put note @provider/modelname in request body is not supported.

</Note>

### API Reference

[Create Image](/provider-endpoints/images/create-image)
- [Create Image](/provider-endpoints/images/create-image)
- [Create Image Edit](/provider-endpoints/images/create-image-edit)

### OpenAI gpt-image-1 Parameters

Expand Down