Latest Azure image model with improved realism and editing. Supports inpainting, outpainting, and mask-guided edits.
Key strengths
- Photorealistic output
- Native image editing
- Better spatial control
- High-resolution output
Use cases
- Photo editing
- Image variations
- Creative retouching
- E-commerce catalog
Azure's azure/gpt-image-1 is a state-of-the-art text-to-image generation model. It produces highly detailed, photorealistic and stylized imagery from natural-language prompts, with strong instruction following and accurate text rendering inside generated images.
Compatible with the OpenAI `/images/generations` endpoint shape, supporting prompt, size, seed, negative prompt, and resolution controls. Excellent for creative workflows, marketing assets, product visualization, and concept art at scale.
azure/gpt-image-1 is fully OpenAI-compatible — drop in your existing OpenAI Python or Node SDK and switch `baseURL` to `https://api.tokenlx.ai`. TokenLX transparently routes your requests to the optimal provider endpoint while preserving streaming, function-calling, and structured-output semantics.
Performance
Compare different providers across TokenLX · All locations.
Effective Pricing
Actual cost per million tokens across providers over the past 7 days.
Recent activity
Total usage per day on TokenLX (last 30 days).
Sample code & API
TokenLX normalizes requests and responses across providers. Use any OpenAI SDK or our native SDK.
# ─── 文生图示例 ───
import requests
response = requests.post(
"https://api.tokenlx.ai/v1/aigc/image/generations",
headers={"Authorization": "Bearer sk-tokenlx-..."},
json={
"model": "gpt-image-1",
"prompt": "A photorealistic product shot of a luxury watch",
"size": "1024x1024",
"quality": "high",
},
)
data = response.json()
print(data["data"][0])
# ─── 图像编辑示例 ───
edit_response = requests.post(
"https://api.tokenlx.ai/v1/aigc/image/generations",
headers={"Authorization": "Bearer sk-tokenlx-..."},
json={
"model": "gpt-image-1",
"prompt": "把背景替换为星空",
"images": [
{"file_uri": "https://example.com/photo.jpg", "mime_type": "image/jpeg"},
],
"size": "1024x1024",
"quality": "high",
},
)
print(edit_response.json()["data"][0])Replace sk-aihubrouter-… with your key from the dashboard.
Parameter Reference
{
"data": ["url1", "url2"]
}| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model name |
| prompt | string | Yes | Generation prompt |
| size | string | No | Output size 1024x1024, 1024x1536, 1536x1024, auto(gpt-image-1)任意 WxH(16px 倍数,长边≤3840,像素 655K~8.3M)或 auto(gpt-image-2) |
| quality | string | No | Image quality lowmediumhighauto(默认) |
| n | int | No | Number of images to generate (1~10, default 1) |
| images | array | Editing | Input images for editing (required when editing). Each item has file_uri and optional mime_type |
| images[].file_uri | string | Editing | Image URL or base64 data URI |
| images[].mime_type | string | No | MIME type, defaults to image/png |
modelstringYespromptstringYessizestringNo1024x1024, 1024x1536, 1536x1024, auto(gpt-image-1)任意 WxH(16px 倍数,长边≤3840,像素 655K~8.3M)或 auto(gpt-image-2)qualitystringNolowmediumhighauto(默认)nintNoimagesarrayEditingimages[].file_uristringEditingimages[].mime_typestringNo