Images

Edit image

Edits an image using multipart image uploads, JSON image URLs, or the official JSON images array for supported GPT Image models.

post/v1/images/edits

Request

  • Base URL: https://api.tokenlab.sh
  • URL: https://api.tokenlab.sh/v1/images/edits
  • Auth: HTTP bearer

Headers

X-TokenLab-Delivery-Policy'auto' | 'verified' | 'official'

Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Verified first and may switch once to Official only before output, request acceptance, or persistent resource creation.

Request body

OR
OR

Response

Edited image response

createdinteger required

Unix timestamp

task_idstring

Task ID when the request runs as a task.

statusstring

Task status when the request runs as a task.

poll_urlstring

URL to poll for the task result.

Example response

{
  "media_retention": {
    "days": 30
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.