gpt-image-1.5-official API
Generate images, edit references, and inpaint selected areas with OpenAI’s GPT Image model on APISea.
gpt-image-1.5-officialتسعير API لنموذج gpt-image-1.5-official
جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.
| نوع الـ token | APISea | رسمي | وفّر |
|---|---|---|---|
| إدخال نصي لكل 1M رمز | $4.40 | $5.00 | −12% |
| إدخال نصي مخزّن مؤقتًا لكل 1M رمز | $1.10 | $1.25 | −12% |
| إدخال صورة لكل 1M رمز | $7.04 | $8.00 | −12% |
| إدخال صورة مخزّنة مؤقتًا لكل 1M رمز | $1.76 | $2.00 | −12% |
| إخراج نصي لكل 1M رمز | $8.80 | $10.00 | −12% |
| إخراج صورة لكل 1M رمز | $28.16 | $32.00 | −12% |
التكلفة التقريبية لكل مخرج
| الخيار | APISea | رسمي |
|---|---|---|
| 1024x1024 · auto | ≈ $0.09363 | $0.1064 |
| 1024x1024 · high | ≈ $0.09363 | $0.1064 |
| 1024x1024 · low | ≈ $0.006336 | $0.0072 |
| 1024x1024 · medium | ≈ $0.02394 | $0.0272 |
| 1024x1536 · auto | ≈ $0.1408 | $0.16 |
| 1024x1536 · high | ≈ $0.1408 | $0.16 |
| 1024x1536 · low | ≈ $0.009152 | $0.0104 |
| 1024x1536 · medium | ≈ $0.0352 | $0.04 |
| 1536x1024 · auto | ≈ $0.1408 | $0.16 |
| 1536x1024 · high | ≈ $0.1408 | $0.16 |
| 1536x1024 · low | ≈ $0.009152 | $0.0104 |
| 1536x1024 · medium | ≈ $0.0352 | $0.04 |
ما هو gpt-image-1.5-official؟
OpenAI’s gpt-image-1.5-official is suited to image generation and complex editing workflows on APISea. It supports text-to-image, image-to-image, and inpainting, with prompts in English or Chinese. Supply reference image URLs for editing or combine multiple references in one request. Controls include square, landscape, and portrait aspect ratios; auto, low, medium, and high quality; opaque or transparent backgrounds; and PNG or JPEG output. You can request up to four images and provide up to 15 reference images.
APISea provides access through one API key and the OpenAI-compatible base URL https://api.apisea.ai/v1. Generation runs asynchronously: submit a request, receive a task ID, and poll for results. Billing is pay-as-you-go and token-based, with charges only for successful requests. A 1024x1024 · low image is estimated at about $0.006336 per image; actual charges depend on token usage. The default configuration is about 12% below the provider list price.
أبرز مزايا gpt-image-1.5-official
Three Generation Modes
Create images from text, edit supplied reference images, or use a mask for inpainting. The model is documented as suitable for higher quality and complex editing.
Multiple Reference Editing
Use one reference for single-image editing or 2–15 references for multi-reference fusion editing. Generate up to four images per request.
Quality And Aspect Controls
Choose auto, low, medium, or high quality. Supported aspect ratios map to 1024x1024, 1024x1536, and 1536x1024 outputs.
Transparent Image Output
Choose auto, opaque, or transparent backgrounds, with PNG or JPEG output. Transparent backgrounds require PNG rather than JPEG.
كيفية استدعاء API الخاص بـ gpt-image-1.5-official في 4 خطوات
- 01
احصل على API key
سجّل الدخول إلى APISea، واشحن رصيدك بدءًا من $50، وأنشئ مفتاح sk-sea من وحدة التحكم.
- 02
اضبط عنوان URL الأساسي
استخدم https://api.apisea.ai/v1 عنوانًا أساسيًا في SDK أو عميل HTTP.
- 03
أرسل الطلب
استدعِ POST /v1/images/generations مع "model": "gpt-image-1.5-official" والمعلمات أدناه.
- 04
تعامل مع الاستجابة
تتضمن الاستجابة task_id. أرسل طلبات GET /v1/tasks/{task_id} دوريًا حتى تصبح الحالة completed، ثم نزّل روابط النتائج.
أمثلة على الطلبات
الوثائق: GPT-Image-1.5 Image Generationcurl --request POST \
--url https://api.apisea.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-image-1.5-official",
"prompt": "An ancient castle under a starry sky",
"size": "1:1",
"quality": "auto",
"n": 1
}'المعلمات
| المعلمة | النوع | مطلوب | افتراضي | الوصف |
|---|---|---|---|---|
model | string | مطلوب | — | Model name |
nsfw_check | boolean | اختياري | false | Whether to run content moderation before submitting the image task. |
prompt | string | مطلوب | — | Text description for image generation, supports both Chinese and English |
size | string | اختياري | 1:1 | Aspect ratio |
n | integer | اختياري | 1 | Number of images to generate |
quality | string | اختياري | auto | Image quality |
background | string | اختياري | auto | Background mode |
moderation | string | اختياري | auto | Moderation level |
output_format | string | اختياري | png | Output format |
output_compression | integer | اختياري | — | Output compression level, range 0-100 |
image_urls | array | اختياري | — | Array of reference image URLs, enables image-to-image mode when provided |
mask_url | string | اختياري | — | Mask image URL for inpainting |
ما الذي يمكنك إنشاؤه باستخدام gpt-image-1.5-official
Creative Asset Generation
Build a prompt-driven workflow for square, portrait, and landscape images, with quality settings chosen for each production stage.
Reference-Based Editing
Let users submit existing images and describe changes, or combine multiple references in a single editing request.
Masked Image Updates
Build an editor that submits a reference image and a matching mask to modify selected areas through inpainting.
Transparent Asset Workflows
Generate transparent PNG assets for use in design layouts and other image-compositing workflows.
نصائح للحصول على نتائج أفضل
- 01
Start With Low Quality
Use quality set to low for faster, more economical iterations, then choose medium or high when needed. The estimated 1024x1024 · low cost is about $0.006336 per image, billed by tokens.
- 02
Poll For Results
Store the returned task ID after submission and poll /v1/tasks/{task_id}. The generation response reports submission rather than returning completed images immediately.
- 03
Validate References And Masks
Use publicly accessible, stable reference image URLs. For inpainting, provide a mask with an alpha channel and dimensions matching the first reference image.
- 04
Match Format To Background
Select PNG when requesting a transparent background. For JPEG output, output_compression accepts an integer from 0–100; compression is not recommended for PNG.
القيود ومعلومات مهمة
Requests run asynchronously and require polling for results.
Each request supports up to four output images and 15 reference images.
Transparent backgrounds cannot be combined with JPEG output.
الأسئلة الشائعة حول API الخاص بـ gpt-image-1.5-official
How much does gpt-image-1.5-official cost on APISea?
Estimated pricing for 1024x1024 · low is about $0.006336 per image, while 1024x1024 · high is about $0.09363 per image. Both are token-billed estimates; the default configuration is about 12% below the provider list price.
How do I call gpt-image-1.5-official through the API?
Send a POST request to https://api.apisea.ai/v1/images/generations with Bearer Token authentication, model set to gpt-image-1.5-official, and a required prompt. Save the returned task ID and poll /v1/tasks/{task_id} for results.
Which sizes and quality settings are supported?
The size parameter accepts 1:1, 3:2, and 2:3, mapping to 1024x1024, 1536x1024, and 1024x1536 respectively. Quality options are auto, low, medium, and high.
Does it support image editing and inpainting?
Yes. Provide image_urls to enable image-to-image editing, and add mask_url for inpainting. The mask must have an alpha channel and match the first reference image’s dimensions.
How many images can I generate or use as references?
You can generate 1–4 images per request and supply up to 15 reference images. Pass n as a plain integer, not a quoted string; more than 15 references will be rejected.
Can I use generated images commercially?
Commercial use is subject to the provider's terms. Review OpenAI’s applicable terms and any rights associated with your prompts and reference images before using outputs commercially.
نماذج ذات صلة
gpt-image-1
gpt-image-1-official
gpt-image-1.5
gpt-image-2
gpt-image-2-official
gpt-image-2.5-ext
gpt-image-2.5-flare
gpt-image-2.5-sunburst
ابدأ التطوير باستخدام gpt-image-1.5-official
مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.