gpt-image-1-official API
Generate images with OpenAI’s GPT Image model through APISea, with token-based, pay-as-you-go billing.
gpt-image-1-officialBảng giá API gpt-image-1-official
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 | $8.80 | $10.00 | −12% |
| Ảnh đầu vào từ bộ nhớ đệm mỗi 1M token | $2.20 | $2.50 | −12% |
| Ảnh đầu ra mỗi 1M token | $35.20 | $40.00 | −12% |
Chi phí ước tính cho mỗi đầu ra
| Tùy chọn | APISea | Chính thức |
|---|---|---|
| 1024x1024 · auto | ≈ $0.1176 | $0.1336 |
| 1024x1024 · high | ≈ $0.1176 | $0.1336 |
| 1024x1024 · low | ≈ $0.007744 | $0.0088 |
| 1024x1024 · medium | ≈ $0.02957 | $0.0336 |
| 1024x1536 · auto | ≈ $0.176 | $0.20 |
| 1024x1536 · high | ≈ $0.176 | $0.20 |
| 1024x1536 · low | ≈ $0.01126 | $0.0128 |
| 1024x1536 · medium | ≈ $0.04435 | $0.0504 |
| 1536x1024 · auto | ≈ $0.176 | $0.20 |
| 1536x1024 · high | ≈ $0.176 | $0.20 |
| 1536x1024 · low | ≈ $0.01126 | $0.0128 |
| 1536x1024 · medium | ≈ $0.04435 | $0.0504 |
gpt-image-1-official là gì?
gpt-image-1-official is an OpenAI GPT Image model for image-generation workflows on APISea. It is suited to applications that create visual assets from user descriptions, such as creative tools and content-production interfaces. Its pricing lists text input, image input, and image output, along with cached-input rates. Image estimates are available for 1024x1024 and 1024x1536 outputs across auto, low, medium, and high quality tiers. The supplied parameter documentation covers GPT-Image-1.5, so confirm this model’s supported controls before implementation.
APISea provides one API key and an OpenAI-compatible base URL at https://api.apisea.ai/v1. Billing is pay-as-you-go and applies only to successful requests. This model is token-billed rather than charged a fixed image fee: a 1024x1024 low-quality image is estimated at about $0.007744 per image. The default configuration is about 12% below the provider list price.
Điểm nổi bật của gpt-image-1-official
Image Generation Access
Access OpenAI’s GPT Image family through APISea using gpt-image-1-official.
Quality-Tier Price Estimates
Published estimates cover auto, low, medium, and high quality at 1024x1024 and 1024x1536. These are token-billed estimates, not fixed per-image charges.
Prompt-Cache Reads
Supports prompt-cache reads. Cached text input costs $1.10 per 1M tokens, and cached image input costs $2.20 per 1M tokens.
Below-List Default Pricing
The default configuration is about 12% below the provider list price. APISea bills only successful requests.
Cách gọi API gpt-image-1-official 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-official" 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-official",
"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-official
Creative Asset Tools
Build an interface for users to describe images they want to create, with estimated generation costs shown before submission.
Content Production Workflows
Add image generation to a team’s content workflow for producing visual assets for review.
Visual Concept Exploration
Let designers explore different image descriptions during early concept development, budgeting with the published quality-tier estimates.
Usage-Based Image Products
Build an image-generation feature with token-based cost tracking and pay-as-you-go APISea billing.
Mẹo để có kết quả tốt hơn
- 01
Budget With Estimates
Use about $0.007744 per image for 1024x1024 · low as a planning estimate, not a guaranteed charge. Actual billing is token-based.
- 02
Compare Size And Quality
Compare the listed size and quality combinations before setting your budget. For example, 1024x1536 · medium is estimated at about $0.04435 per image.
- 03
Account For Cache Reads
Track cached input separately when estimating costs. Text input is $4.40 per 1M tokens versus $1.10 per 1M cached text input tokens.
- 04
Verify Model-Specific Parameters
The supplied generation endpoint and parameter examples name
gpt-image-1.5-official. Confirm their applicability togpt-image-1-officialbefore relying on editing, background, or asynchronous-task controls.
Giới hạn và những điều cần biết
Maximum input is 1,000,000 tokens, and maximum output is 128,000 tokens.
Per-image prices are estimates; requests are token-billed.
The supplied detailed documentation covers GPT-Image-1.5, not this exact model.
Câu hỏi thường gặp về API gpt-image-1-official
How much does gpt-image-1-official cost on APISea?
A 1024x1024 · low image is estimated at about $0.007744 per image; 1024x1024 · high is estimated at about $0.1176 per image. Both are token-billed estimates, and the default configuration is about 12% below the provider list price.
How do I call gpt-image-1-official through APISea?
Use your APISea API key and the model ID gpt-image-1-official with the OpenAI-compatible base URL https://api.apisea.ai/v1. The supplied excerpt documents POST /v1/images/generations for GPT-Image-1.5, so verify the endpoint and request schema for this exact model before integrating.
Which sizes and quality tiers have published prices?
The facts list estimates for 1024x1024 and 1024x1536 at auto, low, medium, and high quality. Confirm the corresponding request parameters in this model’s documentation.
What are the token limits and caching options?
The maximum input is 1,000,000 tokens, and the maximum output is 128,000 tokens. Prompt-cache reads are supported, with cached text input at $1.10 per 1M tokens and cached image input at $2.20 per 1M tokens.
Can I use generated images commercially?
Commercial use is subject to the provider’s terms. Review OpenAI’s applicable terms and any rights requirements for your inputs and intended use.
What does the official suffix mean?
The -official naming convention indicates routing to the provider’s official endpoint. It does not by itself establish additional image capabilities or performance differences.
Model liên quan
gpt-image-1
gpt-image-1.5
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-official
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.