Skip to content
הדף עדיין אינו זמין בשפה שלכם, ולכן הוא מוצג באנגלית.
OpenAI · GPT Image

gpt-image-2.5-flare API

Generate and edit images with OpenAI’s faster GPT Image 2.5 option on APISea.

יצירת תמונותתמונותמשימה אסינכרוניתשמירת הנחיות במטמון
מזהה מודל
gpt-image-2.5-flare

תמחור API של gpt-image-2.5-flare

כל המחירים נקובים ב-USD. תעריפי APISea בהשוואה למחירון הרשמי עבור אותה יחידה.

סוג tokenAPISeaרשמיחיסכון
קלט טקסט לכל 1M tokens$4.40$5.00−12%
קלט טקסט מהמטמון לכל 1M tokens$1.10$1.25−12%
קלט תמונה לכל 1M tokens$7.04$8.00−12%
קלט תמונה מהמטמון לכל 1M tokens$1.76$2.00−12%
פלט תמונה לכל 1M tokens$26.40$30.00−12%

מהו gpt-image-2.5-flare?

OpenAI’s gpt-image-2.5-flare is the faster, default option in the GPT Image 2.5 lineup for everyday high-quality images, batch generation, and rapid prototypes. Use it to generate images from text or edit existing images with up to 16 references. Controls include 15 aspect ratios, exact pixel dimensions, 1K / 2K / 4K resolution tiers, and quality levels from low through max. It supports local inpainting with transparent PNG masks and PNG, JPEG, or WebP output.

Call it through APISea’s image generation endpoint using your API key; asynchronous requests return a task_id for status queries. APISea bills successful requests on a pay-as-you-go basis: text input costs $4.40 per 1M tokens, image input $7.04 per 1M tokens, and image output $26.40 per 1M tokens. Cached input rates are also available, and the default configuration is about 12% below the provider list price.

המאפיינים הבולטים של gpt-image-2.5-flare

Generation and Editing

Generate images from text or activate editing mode with up to 16 reference images. Add a transparent PNG mask for local inpainting.

Flexible Output Dimensions

Choose from 15 aspect ratios, exact pixel dimensions, or automatic sizing. Aspect-ratio requests support 1K, 2K, and 4K resolution tiers.

Expanded Quality Controls

Select low, medium, high, xhigh, max, or auto quality. GPT Image 2.5 adds xhigh and max compared with gpt-image-2.

Formats and Backgrounds

Return PNG, JPEG, or WebP images with transparent, opaque, or automatic backgrounds. JPEG and WebP support compression settings from 0 to 100.

איך לקרוא ל-API של gpt-image-2.5-flare ב-4 שלבים

  1. 01

    יצירת מפתח API

    יש להתחבר ל-APISea, להוסיף יתרה החל מ-$50 וליצור מפתח sk-sea במסוף.

  2. 02

    הגדרת כתובת הבסיס

    יש להשתמש ב-https://api.apisea.ai/v1 ככתובת הבסיס ב-SDK או בלקוח HTTP.

  3. 03

    שליחת הבקשה

    יש לקרוא ל-POST /v1/images/generations עם "model": "gpt-image-2.5-flare" והפרמטרים שלהלן.

  4. 04

    טיפול בתגובה

    התגובה מכילה task_id. יש לשלוח בקשות GET אל /v1/tasks/{task_id} עד שהסטטוס יהיה completed, ואז להוריד את כתובות ה-URL של התוצאות.

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.5-flare",
    "prompt": "a cozy reading nook by a rainy window, warm lamp light, cinematic lighting",
    "size": "1:1",
    "resolution": "1k",
    "quality": "medium",
    "n": 1
  }'

פרמטרים

פרמטרסוגנדרשברירת מחדלתיאור
modelstringנדרש—Image model name: `gpt-image-2.5-flare` or `gpt-image-2.5-sunburst`.
nsfw_checkbooleanאופציונליfalseWhether to run content moderation before submitting the image task.
promptstringנדרש—Text description of the image to generate or edit. Describe the subject, scene, composition, style, lighting, and anything that must be preserved or changed.
sizestringאופציונליautoOutput aspect ratio or exact pixel dimensions.
resolutionstringאופציונלי1kResolution tier used with an aspect-ratio `size`: `1k`, `2k`, or `4k`. This field is ignored for exact pixel dimensions.
qualitystringאופציונליautoImage quality: `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.
nintegerאופציונלי1Number of images to generate. Range: `1` to `4`. Pass a number, not a string.
output_formatstringאופציונליpngOutput file format: `png`, `jpeg`, or `webp`.
output_compressionintegerאופציונלי—Compression level from `0` to `100`. Only applies to `jpeg` and `webp`.
backgroundstringאופציונלי—Background mode: `transparent`, `opaque`, or `auto`.
moderationstringאופציונליlowContent moderation level: `auto` or `low`. APISea explicitly sends `low` when omitted; an explicit `auto` value is passed through.
image_urlsstring[]אופציונלי—Reference image URLs for image-to-image generation or editing. Up to `16` images are accepted, and including this field activates editing mode.
mask_urlstringאופציונלי—Mask image for local inpainting. It only takes effect when `image_urls` is also provided. Both `gpt-image-2.5-flare` and `gpt-image-2.5-sunburst` support this parameter.

מה אפשר לבנות עם gpt-image-2.5-flare

Social Content Production

Build a workflow that generates social visuals in square, portrait, or widescreen aspect ratios, with up to four images per request.

Product Image Variations

Use reference product images and prompts to create or edit everyday product visuals, specifying what should be preserved or changed.

Rapid Visual Prototypes

Generate concepts for team review by describing the subject, composition, style, and lighting, then revise them through image editing.

Localized Image Repairs

Build an inpainting tool that pairs reference images with transparent PNG masks to target local edits.

טיפים לקבלת תוצאות טובות יותר

  • 01

    Describe Preservation Requirements

    For editing prompts, state both what must change and what must remain. Include the subject, scene, composition, style, and lighting.

  • 02

    Match Sizing to Inputs

    For image-to-image requests, omit the size parameter to let the service calculate dimensions from the input aspect ratio and resolution. Exact pixel dimensions override the resolution tier.

  • 03

    Plan Asynchronous Handling

    Store the returned task_id and query task status rather than expecting an immediate image result. Pass n as an integer from 1 to 4.

  • 04

    Account for Cached Inputs

    Prompt-cache reads are supported, with cached text input at $1.10 per 1M tokens and cached image input at $1.76 per 1M tokens. Use these rates when estimating requests that receive cached-input billing.

מגבלות ודברים שכדאי לדעת

  • Reference inputs are limited to 16 images and must use publicly accessible HTTP(S) URLs.

  • A mask only takes effect when reference images are also provided.

  • Transparent backgrounds require PNG or WebP output; JPEG has no alpha channel.

שאלות נפוצות על API של gpt-image-2.5-flare

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

Text input costs $4.40 per 1M tokens, image input $7.04 per 1M tokens, and image output $26.40 per 1M tokens. Cached text input costs $1.10 per 1M tokens, and cached image input costs $1.76 per 1M tokens. APISea bills only successful requests, and the default configuration is about 12% below the provider list price.

How do I call gpt-image-2.5-flare through the API?

Send a POST request to https://api.apisea.ai/v1/images/generations with Bearer Token authentication, model set to gpt-image-2.5-flare, and a required prompt. The asynchronous response returns a task_id for status queries.

Which resolution and quality parameters are supported?

Choose auto sizing, one of 15 aspect ratios, or exact pixel dimensions. Aspect-ratio sizing supports 1k, 2k, and 4k resolution tiers; quality options are low, medium, high, xhigh, max, and auto.

What are the image editing and request limits?

Editing accepts up to 16 reference images, and each request can generate 1 to 4 images. The listed maximum input and output limits are each 1,000,000 tokens. Local inpainting requires a mask together with reference images.

Can I use generated images commercially?

Commercial use is subject to the provider's terms. Review the applicable OpenAI terms and usage policies for your intended application.

How does flare compare with sunburst?

gpt-image-2.5-flare is the faster default option for everyday images, batch generation, and rapid prototypes. gpt-image-2.5-sunburst prioritizes editing precision for production assets, advertising creatives, and detailed multi-turn editing. Both have identical token usage and pricing for the same parameters.

מודלים קשורים

עומק: יותר מ-250 מודלים · טעינת יתרה מינימלית $50

מתחילים לבנות עם gpt-image-2.5-flare

מפתח אחד, תשלום לפי שימוש החל מ-$50, וחיוב רק על בקשות שהצליחו.