Image Generation

Openai Images Edits

Changed on

Edit image using OpenAI Images Edits API

post/v1/images/edits

Request

  • Base URL: https://api.deepinfra.com
  • URL: https://api.deepinfra.com/v1/images/edits
  • Auth: HTTP bearer

Headers

xi-api-keystring nullable
x-api-keystring nullable

Request body multipart/form-data

imagestring binary required
promptstring required
modelstring required
response_format'b64_json' | 'url'

Example request

{
  "inp": {
    "prompt": "Add a hat to the cat"
  }
}

Response

Successful Response

createdinteger

Unix timestamp of when the images were created

Changes

    • info

      added the new optional request property

    • info

      added the new url enum value to the request property ///

    • info

      api tag Image Generation added

    • info

      added the new optional header request parameter x-api-key