Documentation Index
Fetch the complete documentation index at: https://wisdom-docs.juheapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
WisGate exposes the full OpenAI image API, giving you access to the latestgpt-image-2, gpt-image-1, and dall-e-3 models through an OpenAI-compatible interface. Simply replace the Base URL and API key:
- Base URL:
https://api.wisgate.ai - API Key: Replace
$OPENAI_API_KEYwith your$WISDOM_GATE_KEY
Model Comparison
| Model | Text→Image | Image→Image | Max images | Transparent BG | Max prompt |
|---|---|---|---|---|---|
gpt-image-2 | ✅ | ✅ | 16 | ✅ | 32,000 chars |
gpt-image-1 | ✅ | ✅ | 16 | ✅ | 32,000 chars |
dall-e-3 | ✅ | ❌ | 1 | ❌ | 4,000 chars |
dall-e-2 | ✅ | ✅ | 1 | ❌ | 1,000 chars |
gpt-image-2 is OpenAI’s newest image model with improved quality, better instruction following, and enhanced multi-image composition capabilities. We recommend it for new projects.
Text-to-Image (/v1/images/generations)
Generate images from a text prompt. Supports JSON request body.
Quick Start
Transparent Background (gpt-image-2 / gpt-image-1 only)
gpt-image-2 and gpt-image-1 can generate images with transparent backgrounds — ideal for logos, stickers, and product images.
Image-to-Image (/v1/images/edits)
Edit or transform existing images using a text prompt. Uses multipart/form-data encoding.
Basic Edit — Add elements to an image
Inpainting — Replace a masked region
Upload an image and a mask (transparent PNG) to replace specific areas:Multi-Image Composition
Compose up to 16 reference images into a single new image:Parameter Reference
Text-to-Image Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | No | gpt-image-2 (default), gpt-image-1, dall-e-3, dall-e-2 |
prompt | string | Yes | Text description. Max 32,000 chars (gpt-image-2/gpt-image-1), 4,000 (dall-e-3) |
n | integer | No | Number of images (1–10). dall-e-3 only supports n=1. Default: 1 |
size | string | No | Image dimensions. See model-specific options below |
quality | string | No | gpt-image-2/gpt-image-1: auto/low/medium/high. dall-e-3: standard/hd |
style | string | No | dall-e-3 only: vivid or natural |
response_format | string | No | url (default) or b64_json |
background | string | No | gpt-image-2/gpt-image-1 only: auto/transparent/opaque |
output_format | string | No | gpt-image-2/gpt-image-1 only: png/jpeg/webp |
| Model | Supported Sizes |
|---|---|
gpt-image-2 | 1024x1024, 1536x1024, 1024x1536, auto |
gpt-image-1 | 1024x1024, 1536x1024, 1024x1536, auto |
dall-e-3 | 1024x1024, 1792x1024, 1024x1792 |
dall-e-2 | 256x256, 512x512, 1024x1024 |
Image-to-Image Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | No | gpt-image-2 (default), gpt-image-1 |
image | file | Yes | PNG/JPEG/WebP source image. Use image[] for multiple |
prompt | string | Yes | Edit description. Max 32,000 chars |
mask | file | No | Transparent PNG mask (same size as image). Transparent areas are replaced |
size | string | No | 1024x1024 (default), 1536x1024, 1024x1536, auto |
quality | string | No | auto (default), low, medium, high |
n | integer | No | Number of images (1–10). Default: 1 |
FAQ
What’s the difference between gpt-image-2, gpt-image-1, and dall-e-3?
gpt-image-2 is OpenAI’s newest and most capable image model, featuring improved image quality, better prompt understanding, and enhanced multi-image composition. gpt-image-1 also supports image editing, transparent backgrounds, and multi-image composition. Both have a 32,000-character prompt limit. dall-e-3 is specialized for photorealistic styles and provides revised_prompt feedback, but only supports text-to-image with n=1.
Which response_format should I use?
url: Fast, returns a CDN link valid for 60 minutes. Use when you need to display images quickly.b64_json: Returns raw image data. Use when you need to store images immediately or process them in memory.
How do I generate multiple images at once?
Setn to a value between 2 and 10. Each image is billed separately:
How do I check my image generation costs?
Visit the WisGate Pricing page for per-image costs by model and quality tier. Costs are deducted per generated image.Can I use gpt-image-1 with the official OpenAI SDK?
Yes — just changebase_url and api_key:
Auto-Generated API ReferenceThe interactive request/response schema below is automatically generated from the OpenAPI specification. Scroll down to explore all parameters with live examples.