Wide LabsCompute

GPT Image 1.5 I2I

openai/gpt-image-1.5-I2I OpenAIImage → imageREST
Price$0.04 /image
EndpointPOST /v2/image/gpt-image/editREST
Input
Input
Output
Example output of GPT Image 1.5 I2I: Turn this photo into a bold flat vector illustration with a limited warm palette of terracotta, cream and deep blue
Example output

Made with GPT Image 1.5 I2I

“Turn this photo into a bold flat vector illustration with a limited warm palette of terracotta, cream and deep blue”

size: 1024x1024quality: medium

One request to this model through the API, at list price; resized for the web.

Try this prompt

Quick start

Send a JSON request to the endpoint below; the response carries the result.
curl -X POST https://api.widelabs.tr/v2/image/gpt-image/edit \
  -H "Authorization: Bearer $WIDELABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "Add a rainbow to the sky",
  "image": "iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAAa0lEQVR42u3XMQ0AIAxFwcpBBEpQgmJ0YKBMXSBcwtiBm15+tD7Tt0ZP3233AQAAAABQArzy0dM9AAAAAEANoMQAAAAA9oASAwAAANgDSgwAAABgDygxAAAAgD2gxAAAAAD2gBIDAAAAfAPYgxvBD1oqLpUAAAAASUVORK5CYII="
}'
import os
import requests

resp = requests.post(
    "https://api.widelabs.tr/v2/image/gpt-image/edit",
    headers={"Authorization": "Bearer " + os.environ["WIDELABS_API_KEY"]},
    json={
        "prompt": "Add a rainbow to the sky",
        "image": "iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAAa0lEQVR42u3XMQ0AIAxFwcpBBEpQgmJ0YKBMXSBcwtiBm15+tD7Tt0ZP3233AQAAAABQArzy0dM9AAAAAEANoMQAAAAA9oASAwAAANgDSgwAAABgDygxAAAAgD2gxAAAAAD2gBIDAAAAfAPYgxvBD1oqLpUAAAAASUVORK5CYII="
    },
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.widelabs.tr/v2/image/gpt-image/edit", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.WIDELABS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    prompt: "Add a rainbow to the sky",
    image: "iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAAa0lEQVR42u3XMQ0AIAxFwcpBBEpQgmJ0YKBMXSBcwtiBm15+tD7Tt0ZP3233AQAAAABQArzy0dM9AAAAAEANoMQAAAAA9oASAwAAANgDSgwAAABgDygxAAAAgD2gxAAAAAD2gBIDAAAAfAPYgxvBD1oqLpUAAAAASUVORK5CYII="
  }),
});
console.log(await resp.json());

Parameters

NameTypeDescription
store_output"provider" | "wl1d" | "wl7d" | "wl30d"
default "provider"
Where this request's output media is hosted, and for how long. `provider` (default) returns a Wide Labs CDN link that live-proxies the provider for 1 hour — the same hour the task record itself lives. `wl1d` / `wl7d` / `wl30d` copy the output into Wide Labs own storage and keep BOTH the link and the task record for 1, 7 or 30 days,…
prompt requiredstringText description for image editing
image requiredstringSource image: base64, a data URI, or a Wide Labs file link from `POST /v2/files` (`https://cdn.widelabs.tr/content/...`, up to 20 MB; the file must still be live when the task runs).
maskstringMask image (optional): base64, a data URI, or a Wide Labs file link from `POST /v2/files` (`https://cdn.widelabs.tr/content/...`, up to 20 MB; the file must still be live when the task runs).
n1 | 2 | 3 | 4
default 1
Number of images to generate (1-4)
size"1024x1024" | "1024x1536" | "1536x1024"
default "1024x1024"
Image size
quality"low" | "medium" | "high"
default "medium"
Image quality
output_format"png" | "jpeg" | "webp"
default "png"
Output format
output_compressioninteger
default 100
Compression level (0-100)
webhook_urlstringHTTPS URL to receive a signed completion webhook when the async task reaches a terminal state (requires an API key, "async": true and direct mode; otherwise 422). See the Webhooks section for the delivery payload and events, and GET /v2/customer/webhook-secret for the signing secret + verification.

Start building on Wide Labs Compute

Create an account, add credit and send your first request with the SDK you already use.