Skip to content
Trang này chưa có bản dịch sang ngôn ngữ của bạn, nên hiện đang được hiển thị bằng tiếng Anh.
OpenAI · GPT Image

gpt-image-2.6-flare API

Generate and edit images, animated GIFs, and SVGs with gpt-image-2.6-flare on APISea.

Tạo ảnhẢnhTác vụ bất đồng bộLưu prompt vào bộ nhớ đệm
ID model
gpt-image-2.6-flare

Bảng giá API gpt-image-2.6-flare

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 tokenAPISeaChính thứcTiế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%
Ảnh đầu ra mỗi 1M token$26.40$30.00−12%

gpt-image-2.6-flare là gì?

gpt-image-2.6-flare is OpenAI’s GPT Image model for faster generation and rapid iteration, and the documented recommended default. On APISea, developers can use it for text-to-image generation, reference-image editing, animated GIFs, and SVG output. Requests accept prompts up to 32,000 characters and up to 16 reference images, with controls for dimensions, resolution, quality, background, and planning complexity. Still-image editing also supports inpainting masks or markup-guided instructions.

All workflows use the same asynchronous image-generation endpoint: submit a request, read the task ID, then query the task for file URLs. APISea provides one API key and an OpenAI-compatible base URL, with pay-as-you-go billing only for successful requests. Rates are $4.40 per 1M tokens for text input, $7.04 per 1M tokens for image input, and $26.40 per 1M tokens for image output. Cached input rates are available, and the default configuration is about 12% below the provider list price.

Điểm nổi bật của gpt-image-2.6-flare

Rapid Image Iteration

Flare is the documented recommended default for faster generation and rapid iteration.

Multiple Output Formats

Generate PNG, JPEG, WebP, animated GIF, or SVG output from text prompts. GIF and SVG generation also accept reference images.

Reference-Guided Editing

Supply up to 16 reference images for editing. Still-image workflows support inpainting masks and markup-guided edits, subject to format restrictions.

Explicit Rendering Controls

Set quality, resolution, dimensions, background, and planning complexity. Still images and SVG support 15 aspect ratios or exact pixel dimensions.

Cách gọi API gpt-image-2.6-flare trong 4 bước

  1. 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.

  2. 02

    Đặt base URL

    Dùng https://api.apisea.ai/v1 làm base URL trong SDK hoặc HTTP client.

  3. 03

    Gửi request

    Gọi POST /v1/images/generations với "model": "gpt-image-2.6-flare" và các tham số bên dưới.

  4. 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ả.

curl --request POST \
  --url https://api.apisea.ai/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "gpt-image-2.6-flare",
  "prompt": "A cozy reading nook by a rainy window, warm lamp light",
  "size": "1:1",
  "resolution": "1k",
  "quality": "medium",
  "n": 1
}'

Tham số

Tham sốLoạiBắt buộcMặc địnhMô tả
modelstringBắt buộc—Model name: `gpt-image-2.6-flare` or `gpt-image-2.6-sunburst`.
nsfw_checkbooleanTùy chọnfalseWhether to run content moderation before submitting the image task.
promptstringBắt buộc—Generation or editing instructions, up to 32,000 characters. Describe the subject, composition, and what to change or preserve.
sizestringTùy chọnautoStill images and SVG support 15 aspect ratios, exact pixels such as `1600x1200`, or `auto`. Explicit `auto` lets the upstream model choose; omitting this field for still-image editing selects dimensions from the first input image’s aspect ratio and `resolution`. GIF sizes follow separate rules below.
resolutionstringTùy chọn1k
qualitystringTùy chọnauto
nintegerTùy chọn1Integer from `1` to `4`; for GIF, this is the number of animations. SVG requires `1`. Explicit `0`, negative values, or values above `4` return HTTP 400 instead of falling back to the default.
output_formatstringTùy chọnpng
output_compressionintegerTùy chọn—Integer from `0` to `100`, for `jpeg` / `webp` only. Out-of-range values or use with `png` / `gif` / `svg` return HTTP 400 at submission.
backgroundstringTùy chọn—
moderationstringTùy chọnlowContent moderation level: `auto` / `low`. Other values return HTTP 400 at submission.
image_urlsstring[]Tùy chọn—Up to 16 reference images as public HTTP(S) image URLs or image Data URLs, for still-image editing, GIF, or SVG generation. For local files, use the [image upload endpoint](/docs/uploads/images) first and pass the returned `url`.
mask_urlstringTùy chọn—Inpainting mask, requiring `image_urls`. Use a PNG with an alpha channel matching the first input image’s dimensions; fully transparent regions indicate areas to edit. Accepts an image URL or PNG Data URL. Cannot be combined with markup; unchanged pixels outside the mask are not guaranteed. GIF and SVG do not support masks or markup.
complexitystringTùy chọn—Planning level: `low` / `medium` / `high`, with an upstream default of `high`, independent of rendering `quality`. Use `low` for focused edits and `high` for dense text, complex layouts, or object relationships; higher planning may be slower or introduce extra changes. No separate fee; supported only by 2.6.
safety_identifierstringTùy chọn—Optional stable end-user identifier, up to 128 characters; a hash of a username or email is recommended. APISea does not forward it upstream by default, only when the channel permits it. Omitting it does not affect usage.

Bạn có thể xây dựng gì với gpt-image-2.6-flare

Creative Review Tools

Build a prompt-to-image interface that generates up to four outputs per request for teams to review and iterate on visual concepts.

Targeted Image Editors

Let users submit reference images and instructions describing what to change or preserve, with optional masks for focused still-image edits.

Animated Content Workflows

Create animated GIFs from text prompts or reference images through the same endpoint used for still images.

SVG Asset Generation

Build tools that turn text instructions or reference images into SVG output, with explicit background controls.

Mẹo để có kết quả tốt hơn

  • 01

    Handle Tasks Asynchronously

    Submit to POST /v1/images/generations, read data[0].task_id, and query the task for file URLs rather than expecting finished images in the submission response.

  • 02

    Fix Quality When Needed

    Choose an explicit quality level for a fixed setting. With auto or omitted quality, funds are reserved at max quality and the final charge reflects the level actually selected.

  • 03

    Separate Planning From Rendering

    Use complexity independently of quality: low is suited to focused edits, while high is recommended for dense text, complex layouts, or object relationships.

  • 04

    Choose Dimensions Deliberately

    Use an aspect ratio with resolution set to 1k, 2k, or 4k, or supply exact pixel dimensions. Exact dimensions override resolution; omitting size for still-image editing uses the first reference image’s aspect ratio.

Giới hạn và những điều cần biết

  • Prompts are limited to 32,000 characters, and requests accept up to 16 reference images.

  • GIF and SVG do not support masks or markup; SVG requires n to be 1.

  • Inpainting masks cannot be combined with markup, and unchanged pixels outside the mask are not guaranteed.

Câu hỏi thường gặp về API gpt-image-2.6-flare

How much does gpt-image-2.6-flare cost on APISea?

Text input costs $4.40 per 1M tokens, image input costs $7.04 per 1M tokens, and image output costs $26.40 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 the provider list price, with billing only for successful requests.

How do I call gpt-image-2.6-flare through APISea?

Use Bearer Token authentication with your APISea key and send a POST request to https://api.apisea.ai/v1/images/generations with model set to gpt-image-2.6-flare and a required prompt. Read data[0].task_id from the response, then query the task for file URLs.

Which output formats and quality settings are supported?

Output formats are png, jpeg, webp, gif, and svg. Quality accepts low, medium, high, xhigh, max, or auto; resolution accepts 1k, 2k, or 4k and is ignored when exact pixel dimensions are supplied.

What are the input and output limits?

The listed maximum input and output are each 1,000,000 tokens, while the image endpoint limits prompts to 32,000 characters and reference images to 16. The n parameter accepts 1–4 outputs or animations, but SVG requires 1.

Can I use generated images commercially?

Commercial use is subject to the provider’s terms. Review the applicable OpenAI terms for your intended use; the supplied documentation does not specify commercial licensing rights.

How does Flare compare with Sunburst?

Flare is recommended for faster generation and rapid iteration. Sunburst prioritizes detail and editing consistency, particularly for multi-turn edits at medium or high quality. Both have the same token rates and consumption at identical settings.

Model liên quan

Hệ sinh thái gồm 250+ mô hình · Nạp tối thiểu $50

Bắt đầu xây dựng với gpt-image-2.6-flare

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.