API Documentation
Chat Completions
Embeddings
Completions
Other APIs
Images
Create Image Edit
POST
/
images
/
edits
Copy
curl https://gateway.obiguard.ai/v1/images/edits \
-H "x-obiguard-api-key: $OBIGUARD_API_KEY" \
-F image="@otter.png" \
-F mask="@mask.png" \
-F prompt="A cute baby sea otter wearing a beret" \
-F n=2 \
-F size="1024x1024"
Copy
{
"created": 123,
"data": [
{
"b64_json": "<string>",
"url": "<string>",
"revised_prompt": "<string>"
}
]
}
Authorizations
Body
multipart/form-data
Response
200 - application/json
OK
The response is of type object
.
Copy
curl https://gateway.obiguard.ai/v1/images/edits \
-H "x-obiguard-api-key: $OBIGUARD_API_KEY" \
-F image="@otter.png" \
-F mask="@mask.png" \
-F prompt="A cute baby sea otter wearing a beret" \
-F n=2 \
-F size="1024x1024"
Copy
{
"created": 123,
"data": [
{
"b64_json": "<string>",
"url": "<string>",
"revised_prompt": "<string>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.