Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use the API’s structured background parameter—not prompt wording alone—to control a generated image’s canvas. In OpenAI’s Images API, the field accepts transparent, opaque, or auto (the default). A reliable transparent-asset workflow also requires a model that currently supports transparency, PNG or WebP output, and a file-level alpha-channel check after decoding.

What the background parameter actually controls

A prompt such as “place the logo on a transparent background” describes an intention in natural language. The API field is the machine-readable output control. OpenAI documents three values:

Value Meaning Use when
transparent Requests a canvas with alpha transparency around the generated subject. You will composite the asset over changing backgrounds.
opaque Requests a normal, fully covered canvas. The image is a self-contained scene or illustration.
auto Lets the model choose; this is the documented default. You do not need a predetermined canvas treatment.

These are enum values, not arbitrary text. The official OpenAI API reference and Python SDK parameter type list the same three choices. Behavior is model-dependent; verify the live model reference on the date you deploy (this article was checked September 29, 2026), because some transparency support is marked preview.

How to request a genuinely transparent image

  1. Select a supported model. OpenAI’s reference limits transparent output to supported GPT Image models. Do not assume every image model or version accepts it; check the current model documentation and preview status.
  2. Set background="transparent" explicitly. Do not rely on a sentence in the prompt to switch the canvas mode.
  3. Request a format that stores alpha. OpenAI’s image-generation guidance says to use PNG or WebP for transparency. In the GPT Image 2 workflow described there, JPEG is unsupported with transparent backgrounds.
  4. Decode and inspect the returned bytes. A preview can show a checkerboard that is actually painted into the image. Read the file’s alpha channel instead.

Python example with alpha validation

Install the SDK and Pillow first:

pip install openai pillow

The model name below is an example placeholder for a model that your account’s current OpenAI reference identifies as supporting transparent output. Replace it after checking that reference.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Wacom Intuos Small, Wired Graphic Drawing Tablet with Pen + Software
  • Wacom Intuos Small Graphics Drawing Tablet: Enjoy industry leading tablet performance in superior control and precision with Wacom's EMR, battery free technology that feels like pen on paper
  • Works With All Software: Wacom Intuos tablet can be used in any software program to explore new facets of digital creativity; draw, paint, edit photos/videos, create designs, and mark up documents
  • What the Professionals Use: Wacom's industry leading pen technology and pen to paper feeling makes it the preferred drawing tablet of professional graphic designers
  • Software and Training Included: Only Wacom gives you software with every purchase. Register your Intuos tablet and gain access to some of the best creative software and Wacom's online training
  • Wacom is the Global Leader in Drawing Tablet and Displays: For over 40 years in pen display and tablet market, you can trust that Wacom to help you bring your vision, ideas and creativity to life
import base64
from io import BytesIO
from openai import OpenAI
from PIL import Image

client = OpenAI()  # reads OPENAI_API_KEY
result = client.images.generate(
    model="YOUR_SUPPORTED_GPT_IMAGE_MODEL",
    prompt="A red running shoe, isolated product cutout, no cast shadow",
    background="transparent",
    output_format="png",
    size="1024x1024",
)

raw = base64.b64decode(result.data[0].b64_json)
with open("shoe.png", "wb") as f:
    f.write(raw)

im = Image.open(BytesIO(raw)).convert("RGBA")
alpha = im.getchannel("A")
minimum, maximum = alpha.getextrema()
print(f"mode={im.mode}, alpha range={minimum}..{maximum}")
if minimum == 255:
    raise RuntimeError("The decoded file has no transparent pixels")
print("Transparency is present in the decoded file")

Some SDK or API revisions expose the generated data differently. Keep the important checks unchanged: explicitly set the background, choose PNG or WebP, decode the returned content, and inspect alpha.

cURL pattern

When using the HTTP endpoint directly, send the same controls in JSON. The response for GPT Image models is commonly base64 image data; decode it before opening the file.

curl https://api.openai.com/v1/images/generations 
  -H "Authorization: Bearer $OPENAI_API_KEY" 
  -H "Content-Type: application/json" 
  -d '{
    "model": "YOUR_SUPPORTED_GPT_IMAGE_MODEL",
    "prompt": "A red running shoe, isolated product cutout, no cast shadow",
    "background": "transparent",
    "output_format": "png",
    "size": "1024x1024"
  }'

Save the returned base64 field as binary rather than copying JSON text into an image file.

Node.js pattern

import OpenAI from "openai";
import { writeFile } from "node:fs/promises";

const client = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });
const image = await client.images.generate({
  model: "YOUR_SUPPORTED_GPT_IMAGE_MODEL",
  prompt: "A red running shoe, isolated product cutout, no cast shadow",
  background: "transparent",
  output_format: "png",
  size: "1024x1024"
});

await writeFile("shoe.png", Buffer.from(image.data[0].b64_json, "base64"));

Why format and model support are separate requirements

A model may understand a transparent-background request while the selected file format cannot carry alpha. PNG and WebP have an alpha channel; JPEG does not. Conversely, selecting PNG does not make an unsupported model produce transparency. Treat model capability and encoding capability as two independent gates.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

OpenAI’s image guide identifies PNG as the default Image API output and documents PNG, JPEG, and WebP choices. For transparent assets, it specifically directs users to PNG or WebP. If your pipeline converts WebP or PNG to JPEG later, transparency is lost at that conversion step.

Rank #2
Sale
XPPen Deco 01 V3 10x6 Drawing Tablet, 16K Battery-Free Stylus, 8 Keys
  • Word-first 16K Pressure Levels: The upgraded stylus features 16,384 levels of pressure sensitivity and supports up to 60 degrees of tilt, delivering smoother lines and shading for a natural drawing experience. With no battery or charging needed, it operates like a real pen, making it easy for beginners to create effortlessly. This functionality helps novice artists develop their skills and explore their creativity without the intimidation of complex tools
  • Designed for Beginners: This drawing pad desinged with 8 customizable shortcuts for both right and left-hand users, express keys create a highly ergonomic and convenient work platform
  • Perfectly Adapted for Android: The XPPen Deco 01 V3 art tablet supports connections with Android devices running version 10.0 and above. It is recommended to download the XPPen Tools Android application, which adapts to your smartphone's screen aspect ratio, ensuring accurate mapping. It also supports mapping on Android screens with different aspect ratios in portrait mode
  • Large Drawing Space, Bigger Bold Inspiration: This expansive drawing pad has10 x 6.25-inch helps you break through the limit between shortcut keys and drawing area
  • Easy Connectivity for Beginners: The Deco 01 V3 offers USB-C to USB-C connectivity, plus adapters for USB C. This ensures easy connection to various devices, allowing beginner artists to set up quickly and focus on their creativity without compatibility concerns. Whether using a laptop, tablet, or desktop, the Deco 01 V3 provides a seamless experience, making it an ideal choice for those just starting their digital art journey

How to verify alpha instead of trusting a preview

Open the decoded file with an image library and inspect channel data. An alpha range of 255..255 means every pixel is opaque. A minimum below 255 proves that at least some pixels are partially or fully transparent. For production checks, also inspect:

  • outer corners and the full canvas border;
  • soft antialiased edges around the subject;
  • hair, fur, glass and other translucent details;
  • shadows, glows and semi-transparent reflections.

A checkerboard pattern visible in an editor is only a display convention. If pixel sampling finds colored squares, the checkerboard was drawn into the image and is not transparency.

Choosing between transparent, opaque, and auto

Choose transparent for compositing

Use it for logos, stickers, product cutouts, game sprites and UI assets that will sit over multiple backgrounds. Plan for edge inspection because semi-transparent pixels can reveal halos when placed over dark or saturated colors.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose opaque for finished scenes

Use it when the background is part of the composition: a landscape, editorial illustration or advertising scene that will be delivered as one rectangular image.

Choose auto when delegation is acceptable

auto lets the model determine the background treatment. It does not promise white, black or any other specific color, so do not use it when downstream compositing requires alpha.

Rank #3
Sale
XPPen Artist 13.3 Pro V2 Drawing Tablet with Screen, 16K, Full-Laminated
  • PLEASE NOTE:XPPen Artist13.3 Pro drawing tablet Need to connect with computer,you need to use it with your computer or laptop, the 3 in 1 cable is included
  • Drawing Tablet with Screen: Tilt Function- XPPen Artist 13.3 Pro supports up to 60 degrees of tilt function, so now you don't need to adjust the brush direction in the software again and again. Simply tilt to add shading to your creation and enjoy smoother and more natural transitions between lines and strokes
  • Graphics Tablets: High Color Gamut- The 13.3 inch fully-laminated FHD Display pairs a superb color accuracy of 88% NTSC (Adobe RGB≧91%,sRGB≧123%) with a 178-degree viewing angle and delivers rich colors, vivid images, and dazzling details in a wider view. Your creative world is now as powerful as it is colorful
  • Drawing Pad: One is enough- The sleek Red Dial on the display is expertly designed with creators in mind, its strategic placement allows for natural drawing postures. With just one wheel, you can effortlessly zoom in and out, adjust brush sizes, and flip the canvas—all tailored to suit the habits of everyday artists. The 8 customizable shortcut keys allow you to personalize your setup, streamlining your workflow and enhancing creative efficiency
  • Universal Compatibility & Software Support:supports Windows 7 (or later), Mac OS X 10.10 (or later), Chrome OS 88 (or later), and Linux systems. Fully compatible with major creative software including Photoshop, Illustrator, SAI, and Blender 3D. Register your device to access additional programs like ArtRage 5 and openCanvas for expanded creative possibilities.

Other output controls that affect the result

Background is only one output decision. OpenAI’s image-generation tool documentation also exposes size, quality, format, compression and action controls. Select them from the asset’s requirements:

  • Size: match the intended display or print dimensions; larger images can increase processing and storage costs.
  • Quality: compare supported quality levels against the detail requirement and latency budget.
  • Format and compression: preserve alpha with PNG or WebP; use compression only after checking edge quality and file size.
  • Action/workflow: use the Image API or the documented Responses API path appropriate to your application.

When comparing background behavior, hold prompt, input images, size and quality constant, change only the background value, then inspect the decoded files. This isolates the setting without mistaking a quality or model change for a background effect.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Troubleshooting transparent-background failures

The response is rejected for an invalid background value

Use exactly transparent, opaque or auto. Do not send “clear,” “none” or a color name in this field.

The image has a solid background despite transparent

Confirm that the selected model currently supports transparency, including any preview qualification. Confirm that the request actually reached the intended model and that no later image-processing step flattened the alpha channel.

The file opens but has no alpha

Check the requested format. JPEG cannot carry transparency in the GPT Image 2 workflow documented by OpenAI. Request PNG or WebP, then decode and test the alpha channel.

Rank #4
Sale
HUION Inspiroy H640P 6x4 inch Drawing Tablet 8192 Pen Pressure
  • Customize Your Workflow: The 6 customizable press keys on Huion H640P drawing tablet for pc let you assign your most-used commands—like undo, zoom, brush switch, or save—so you can keep your hands on the tablet and your mind on the art. Whether you're a digital painter switching brushes, or a comic artist zooming in and out, these keys keep your workflow smooth and uninterrupted. Plus, the Huion driver lets you save different shortcut profiles for different apps, so you never have to reconfigure when switching software.
  • Professional Pen Performance: Huion H640P drawing pad for computer comes with the battery-free PW100 stylus that's always ready when inspiration strikes. With 8192 levels of pressure sensitivity, every light sketch, or bold stroke responds naturally to your hand—just like a real pen. The 5080 LPI resolution and 233 PPS report rate deliver lag-free, precise strokes, so you can draw confidently without second-guessing your cursor. The pen side buttons help you switch between pen and eraser instantly.
  • Compact and Portable: Huion H640P computer graphics tablet features a compact, ultra-portable design at just 0.3 inches thin and 0.61 lbs light, so it slides easily into your backpack—perfect for sketching in coffee shops, taking notes in class, or editing on the go between home and studio. The 6x4 inch active area offers enough room for natural pen movements while fitting comfortably on crowded desks, or lecture hall seats.
  • Stable Compatibility: Huion H640P graphic drawing tablet works seamlessly with Mac, Windows, Linux PCs, and Android smartphones/tablets (OS version 6.0 or later). Left-handed friendly, and you just need to flip the tablet and adjust the settings in the driver. Please note: H640P does NOT support iPhone/iPad.
  • Move Beyond the Mouse: Huion Inspiroy H640P is a pen tablet that replaces your mouse for more natural, precise control. Freehand draw, take notes, or even play OSU—everything you do with a mouse, you can do better with a pen. The precise tip makes it ideal for detailed photo editing, graphic design, or signing PDF. Meanwhile, the ergonomic pen grip helps you avoid the strain that comes from hours of using a mouse.

A checkerboard appears in the final asset

Inspect pixel values. If the checkerboard colors exist in the file, regenerate with explicit transparency; the model produced a visual imitation rather than transparent pixels.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Edges show a halo

Inspect at 100% and against both light and dark backgrounds. Semi-transparent edge pixels may contain colors from the generation context. Try a simpler prompt, remove unwanted shadow instructions, and validate the resulting alpha rather than judging only a thumbnail.

The SDK response shape differs

Pin and review your SDK version, then follow its current image-result type. Regardless of syntax, preserve the four-step contract: supported model, explicit parameter, alpha-capable format and decoded-file validation.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If your actual task is capturing a webpage rather than generating an image canvas, ScreenshotNeo provides a single API call. It accepts consent banners before capture and removes more than 60 known consent platforms, newsletter popups and chat widgets; bot checks, blank pages, timeouts, failed loads and cache hits are not billed, and response headers identify the page verdict and billing status. Its MCP server exposes take_screenshot, get_page_info and capture_pdf to Claude, Cursor and other MCP clients. The Free plan includes 1,000 screenshots per month without a card; paid plans start at $5 for 3,000.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo documentation for options such as full-page capture, CSS selectors, device presets, custom CSS and JavaScript, waits, blocking rules, signed links and asynchronous jobs. Create a free ScreenshotNeo account to get 1,000 shots each month with no card.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Frequently asked questions

Is background a prompt keyword?

No. Prompt text can describe appearance, but the structured API field controls the requested output mode.

Best Value
Sale
HUION Inspiroy H1060P Graphics Drawing Tablet, 10 x 6.25 in, 12+16 Hot Keys
  • Working Area Configuration - HUION art tablet equips with a 10 x 6.25 inches working area, providing the user with the most comfortable size to work; the 10mm slim structure and minimalist design of appearance make the drawing tablet more attractive.
  • Tilt Function Battery-free Stylus: This computer graphics tablet come with a battery-free stylus PW100, no need to charge, allowing for constant uninterrupted drawing. ±60° tilt support enables imitation of lines input with diverse drawing gestures, with accuracy ensured.
  • Press Keys:12 programmable press keys plus 16 programmable soft keys, you can set shortcut keys on drawing tablet's driver based on your preferences, such as erase, zoom in/out, scroll up and down, and so on.
  • Compatibility: HUION graphics tablet supports Windows 7 or later/ macOS 10.12 or later/ Android 6.0 or later/ Linux (Ubuntu). A USB adapter is required to connect to a Mac computer. H1060P supports various mainstream design and drawing software, including PS, SAI, AI, CDR, etc. (Please note: The H1060P is compatible with Ubuntu, but it requires the use of the Xorg display server. Wayland is not supported.)
  • NOTE: You can easily connect your phone to the art tablet via the OTG connector; while iPhone and iPad are NOT at the moment. The cursor will not show up in the SAMSUNG Galaxy S series at present. If you are not sure whether the product is compatible with your Phone or any help, please contact us.

Can I guarantee a particular color with auto?

No. auto delegates the decision to the model; request an opaque image and describe a color when a colored canvas is required, then inspect the result.

Does transparency survive every image conversion?

No. Converting to a format without alpha, such as JPEG, flattens transparent pixels. Validate after every conversion stage.

Frequently Asked Questions

Which OpenAI setting is the documented default?

The Images API reference documents auto as the default when background is omitted.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What proves that an image is transparent?

Decoded pixel data with alpha values below 255 proves transparency; a checkerboard preview alone does not.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.