gpt-image-1.5 API
Generate and edit images with OpenAI’s gpt-image-1.5 on APISea, with pay-as-you-go token pricing.
gpt-image-1.5Bảng giá API gpt-image-1.5
Tất cả giá đều tính bằng USD. So sánh mức giá của APISea với giá niêm yết chính thức cho cùng đơn vị.
| Loại token | APISea | Chính thức | Tiết kiệm |
|---|---|---|---|
| Văn bản đầu vào mỗi 1M token | $4.40 | $5.00 | −12% |
| Văn bản đầu vào từ bộ nhớ đệm mỗi 1M token | $1.10 | $1.25 | −12% |
| Ảnh đầu vào mỗi 1M token | $7.04 | $8.00 | −12% |
| Ảnh đầu vào từ bộ nhớ đệm mỗi 1M token | $1.76 | $2.00 | −12% |
| Văn bản đầu ra mỗi 1M token | $8.80 | $10.00 | −12% |
| Ảnh đầu ra mỗi 1M token | $28.16 | $32.00 | −12% |
gpt-image-1.5 là gì?
gpt-image-1.5 is an OpenAI model in the GPT Image family for image generation and editing. The supplied generation documentation describes text-to-image, reference-based image-to-image, and masked inpainting workflows. Controls include aspect ratio, image count, quality, background, output format, and compression. These workflows suit teams building image creation tools, reference-driven editing interfaces, or asset pipelines. The documentation names gpt-image-1.5-official, so confirm route-specific parameters before integrating gpt-image-1.5.
APISea provides one API key and an OpenAI-compatible base URL at https://api.apisea.ai/v1. This model uses pay-as-you-go token pricing: text input costs $4.40 per 1M tokens, image input $7.04 per 1M tokens, text output $8.80 per 1M tokens, and image output $28.16 per 1M tokens. Prompt-cache reads have separate discounted rates. The default configuration is about 12% below provider list price, and APISea bills only successful requests.
Điểm nổi bật của gpt-image-1.5
Generation and Editing
The supplied GPT Image documentation covers text-to-image, image-to-image, and inpainting. Reference images and masks support editing workflows alongside prompt-based generation.
Quality and Layout Controls
Documented quality settings include auto, low, medium, and high. Choose square, landscape, or portrait aspect ratios to fit the intended layout.
Transparent Image Output
The documented background controls include auto, opaque, and transparent. PNG supports transparent backgrounds; JPEG cannot be combined with transparency.
Cached Input Pricing
gpt-image-1.5 supports prompt-cache reads. Cached text input costs $1.10 per 1M tokens, and cached image input costs $1.76 per 1M tokens.
Cách gọi API gpt-image-1.5 trong 4 bước
- 01
Tạo API key
Đăng nhập APISea, nạp tối thiểu $50 rồi tạo key sk-sea trong bảng điều khiển.
- 02
Đặt base URL
Dùng https://api.apisea.ai/v1 làm base URL trong SDK hoặc HTTP client.
- 03
Gửi request
Gọi POST /v1/images/generations với "model": "gpt-image-1.5" và các tham số bên dưới.
- 04
Xử lý phản hồi
Phản hồi có chứa task_id. Gửi GET /v1/tasks/{task_id} định kỳ cho đến khi trạng thái là completed, sau đó tải xuống từ các URL kết quả.
Ví dụ request
Tài liệu: 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",
"prompt": "An ancient castle under a starry sky",
"size": "1:1",
"quality": "auto",
"n": 1
}'Tham số
| Tham số | Loại | Bắt buộc | Mặc định | Mô tả |
|---|---|---|---|---|
model | string | Bắt buộc | — | Model name |
nsfw_check | boolean | Tùy chọn | false | Whether to run content moderation before submitting the image task. |
prompt | string | Bắt buộc | — | Text description for image generation, supports both Chinese and English |
size | string | Tùy chọn | 1:1 | Aspect ratio |
n | integer | Tùy chọn | 1 | Number of images to generate |
quality | string | Tùy chọn | auto | Image quality |
background | string | Tùy chọn | auto | Background mode |
moderation | string | Tùy chọn | auto | Moderation level |
output_format | string | Tùy chọn | png | Output format |
output_compression | integer | Tùy chọn | — | Output compression level, range 0-100 |
image_urls | array | Tùy chọn | — | Array of reference image URLs, enables image-to-image mode when provided |
mask_url | string | Tùy chọn | — | Mask image URL for inpainting |
Bạn có thể xây dựng gì với gpt-image-1.5
Creative Asset Tools
Build a prompt-based interface for generating square, landscape, or portrait images for content workflows.
Reference-Based Editing
Let users provide reference images and describe changes through an image-to-image workflow.
Targeted Image Repairs
Build an inpainting interface that pairs a reference image with a mask to define the area to edit.
Transparent Asset Pipelines
Generate transparent PNG assets for placement in layouts that require a background-free image.
Mẹo để có kết quả tốt hơn
- 01
Plan for Polling
The documented generation endpoint returns a task ID rather than a completed image. Poll /v1/tasks/{task_id} to retrieve results.
- 02
Choose Quality Deliberately
The documentation describes low quality as faster and more economical, and high quality as higher cost. Start with low for iteration, then test higher settings where needed.
- 03
Pair Transparency With PNG
For transparent output, set background to transparent and output_format to png. Use output_compression only for JPEG as recommended in the documentation.
- 04
Prepare Reference Inputs
Provide publicly accessible, stable image URLs. For inpainting, the mask must have an alpha channel and match the first reference image’s dimensions.
Giới hạn và những điều cần biết
The supplied endpoint documentation names gpt-image-1.5-official, not gpt-image-1.5; confirm route-specific support before implementation.
The documented generation workflow is asynchronous and allows up to 4 output images and 15 reference images per request.
The model’s listed limits are 1,000,000 input tokens and 128,000 output tokens.
Câu hỏi thường gặp về API gpt-image-1.5
How much does gpt-image-1.5 cost on APISea?
Text input costs $4.40 per 1M tokens, image input $7.04 per 1M tokens, text output $8.80 per 1M tokens, and image output $28.16 per 1M tokens. Cached text input costs $1.10 per 1M tokens, and cached image input costs $1.76 per 1M tokens. The default configuration is about 12% below provider list price.
How do I call gpt-image-1.5 through APISea?
Use your APISea API key with Bearer Token authentication and the base URL https://api.apisea.ai/v1. The supplied image documentation describes POST /v1/images/generations, but names gpt-image-1.5-official; confirm endpoint support for gpt-image-1.5 before sending requests.
Which image generation parameters are documented?
The documentation includes prompt, size, n, quality, background, moderation, output_format, output_compression, image_urls, and mask_url. It lists aspect ratios 1:1, 3:2, and 2:3, with PNG and JPEG output options.
Can I edit existing images with references or masks?
The supplied documentation supports image-to-image using up to 15 reference image URLs and inpainting using mask_url together with image_urls. Reference URLs must be publicly accessible and stable; the mask must have an alpha channel and match the first reference image’s dimensions.
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 publishing outputs.
Is gpt-image-1.5 the same as gpt-image-1.5-official?
The facts list gpt-image-1.5 with no alternative callable names, while the supplied endpoint documentation names gpt-image-1.5-official. Do not assume they are interchangeable; confirm the supported route and parameters for the exact model ID you intend to use.
Model liên quan
gpt-image-1
gpt-image-1-official
gpt-image-1.5-official
gpt-image-2
gpt-image-2-official
gpt-image-2.5-ext
gpt-image-2.5-flare
gpt-image-2.5-sunburst
Bắt đầu xây dựng với gpt-image-1.5
Chỉ cần một key, thanh toán theo mức sử dụng từ $50; chỉ tính phí cho các request thành công.