GPT Image 1.5
gpt-image-1.5GPT Image 1.5 for prompt-based image generation through the Omixa resale gateway.
GPT Image 1.5 for prompt-based image generation through the Omixa resale gateway.
Prompt-to-image, image editing, image merging, upscaling, and background removal. Endpoint: https://www.omixa.cloud/api/v1/images/generations
GPT Image 1.5 for prompt-based image generation through the Omixa resale gateway.
Use Omixa's unified endpoint and your workspace API key. Provider routing, billing, failover, and usage records are handled by Omixa.
https://www.omixa.cloud/api/v1/images/generations
Only send options supported by this model. Required fields and accepted values are listed below.
| Field | 类型 | Required | Accepted values | 描述 |
|---|---|---|---|---|
model |
string | Yes | gpt-image-1.5 | Use `gpt-image-1.5`. Omixa resolves the active provider route and failover key automatically. |
prompt |
string | Yes | Any valid value | Natural language instruction for the generated or edited image. |
n |
integer | No | 1-10 | Number of images to request. Omixa caps the value by provider limits. |
output_format |
string | No | png, jpeg, webp | Preferred output file format. |
size |
string | No | auto, 1024x1024, 1024x1536, 1536x1024 | Output size. |
quality |
string | No | auto, low, medium, high | Image quality tier. Higher quality costs more and takes longer. |
background |
string | No | auto, transparent, opaque | Background handling for compatible GPT image models. |
moderation |
string | No | auto, low | Provider moderation mode where supported. |
input_images |
array | No | Any valid value | Reference/source images for edit and merge workflows. Use inline data URLs in OpenAI-compatible image part format. |
input_fidelity |
string | No | auto, low, high | How closely to preserve source images for GPT image edits when supported. |
mask |
image data | No | Any valid value | Optional edit mask for compatible image edit routes. |
Start with this model-safe payload and expect the normalized Omixa response shape shown beside it.
{
"model": "gpt-image-1.5",
"prompt": "A premium black and white product dashboard, clean glass UI, high contrast.",
"n": 1,
"output_format": "png",
"size": "1024x1024",
"quality": "auto",
"background": "auto",
"input_images": [
{
"type": "image_url",
"image_url": {
"url": "data:image/png;base64,<base64-reference>"
}
}
]
}
{
"created": 1780660800,
"data": [
{
"b64_json": "<base64-image>",
"url": null
}
],
"usage": {
"billed_amount": "0.039000"
}
}
Replace the example API key with a workspace key and keep model-specific fields unchanged unless the table above marks them optional.
curl -X POST https://www.omixa.cloud/api/v1/images/generations \
-H "Authorization: Bearer omx_live_xxx" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-1.5",
"prompt": "A premium black and white product dashboard, clean glass UI, high contrast.",
"n": 1,
"output_format": "png",
"size": "1024x1024",
"quality": "auto",
"background": "auto",
"input_images": [
{
"type": "image_url",
"image_url": {
"url": "data:image/png;base64,<base64-reference>"
}
}
]
}'
const response = await fetch('https://www.omixa.cloud/api/v1/images/generations', {
method: 'POST',
headers: {
'Authorization': 'Bearer omx_live_xxx',
'Content-Type': 'application/json'
},
body: "{\n \"model\": \"gpt-image-1.5\",\n \"prompt\": \"A premium black and white product dashboard, clean glass UI, high contrast.\",\n \"n\": 1,\n \"output_format\": \"png\",\n \"size\": \"1024x1024\",\n \"quality\": \"auto\",\n \"background\": \"auto\",\n \"input_images\": [\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"data:image/png;base64,<base64-reference>\"\n }\n }\n ]\n}"
});
const data = await response.json();
import requests
response = requests.post(
'https://www.omixa.cloud/api/v1/images/generations',
headers={'Authorization': 'Bearer omx_live_xxx', 'Content-Type': 'application/json'},
json={
"model": "gpt-image-1.5",
"prompt": "A premium black and white product dashboard, clean glass UI, high contrast.",
"n": 1,
"output_format": "png",
"size": "1024x1024",
"quality": "auto",
"background": "auto",
"input_images": [
{
"type": "image_url",
"image_url": {
"url": "data:image/png;base64,<base64-reference>"
}
}
]
}
)
print(response.json())
$ch = curl_init('https://www.omixa.cloud/api/v1/images/generations');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer omx_live_xxx', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{
"model": "gpt-image-1.5",
"prompt": "A premium black and white product dashboard, clean glass UI, high contrast.",
"n": 1,
"output_format": "png",
"size": "1024x1024",
"quality": "auto",
"background": "auto",
"input_images": [
{
"type": "image_url",
"image_url": {
"url": "data:image/png;base64,<base64-reference>"
}
}
]
}',
CURLOPT_RETURNTRANSFER => true,
]);
$response = curl_exec($ch);
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", "omx_live_xxx");
var json = @"{
""model"": ""gpt-image-1.5"",
""prompt"": ""A premium black and white product dashboard, clean glass UI, high contrast."",
""n"": 1,
""output_format"": ""png"",
""size"": ""1024x1024"",
""quality"": ""auto"",
""background"": ""auto"",
""input_images"": [
{
""type"": ""image_url"",
""image_url"": {
""url"": ""data:image/png;base64,<base64-reference>""
}
}
]
}";
var response = await client.PostAsync("https://www.omixa.cloud/api/v1/images/generations", new StringContent(json, System.Text.Encoding.UTF8, "application/json"));
var body = await response.Content.ReadAsStringAsync();
payload := []byte(`{
"model": "gpt-image-1.5",
"prompt": "A premium black and white product dashboard, clean glass UI, high contrast.",
"n": 1,
"output_format": "png",
"size": "1024x1024",
"quality": "auto",
"background": "auto",
"input_images": [
{
"type": "image_url",
"image_url": {
"url": "data:image/png;base64,<base64-reference>"
}
}
]
}`)
req, _ := http.NewRequest("POST", "https://www.omixa.cloud/api/v1/images/generations", bytes.NewReader(payload))
req.Header.Set("Authorization", "Bearer omx_live_xxx")
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)