Skip to main content

image models

GPT Image 2.5 API / Flare と Sunburst をトークン課金の単一 API で

Flare と Sunburst で画像を生成・編集できます。PiAPI では両モデルに同じトークン料金が適用されます。

今すぐ始める!

PiAPI の料金

100万トークンあたりの米ドル料金です。Flare と Sunburst に同じ料金が適用されます。

100万トークンあたりの料金

Flare または Sunburst を選び、PiAPI API で画像を生成・編集できます。
モデルテキスト入力画像入力画像出力
gpt-image-2.5-flare最速日常的な用途に適した高品質な画像生成。$3.75$6.00$22.50
gpt-image-2.5-sunburst最高性能精密な画像生成と編集。$3.75$6.00$22.50

GPT Image 2.5 で開発を始めますか?

PiAPI の GPT Image 2.5 モデル

PiAPI のタスク API 経由で GPT Image 2.5 を呼び出すと、次の機能が使えます。

2 つのモデル、1 回の実装

Flare は日常向けの高速モデル、Sunburst は精度重視のモデルです。エンドポイント・リクエスト形式・料金表が共通なので、切り替えはモデル名を書き換えるだけです。

4 段階の quality

quality パラメータは auto、low、medium、high を受け付けます。レンダリング時間とディテールのバランスを、実装時に固定せずリクエストごとに選べます。

生成と編集

テキストから画像を生成するにはプロンプトを送信し、既存画像を編集するには参照画像を添えます。どちらも同じ非同期タスク API を通ります。

トークン課金、最低利用額なし

テキスト入力・画像入力・画像出力それぞれをトークン単位で課金します。席数課金もサブスクリプションもなく、公開レートは上の表のとおりです。

非同期タスク

タスクを送信して task id を受け取り、タスクエンドポイントをポーリングするか Webhook を待ちます。長時間の生成でもリクエストスレッドを塞ぎません。

API の利用

Flare と Sunburst は PiAPI API で利用できます。エンドポイント、認証、リクエストパラメータは API ドキュメントをご確認ください。

Get started

Create your API key

Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.

Top up credits

Add credits on the billing page when you are ready to scale beyond the free tier.

Call the API

POST your first task following the API docs, then poll the task until the result is ready.

Iterate in the playground

Prototype prompts and settings in the the playground above before wiring them into your product.

Create a task

curl -X POST 'https://api.piapi.ai/api/v1/images/generations/async' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "gpt-image-2.5-flare",
  "prompt": "YOUR_PROMPT",
  "size": "1024x1024",
  "quality": "low"
}'

Retrieve the result

curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
  -H 'X-API-Key: YOUR_API_KEY'

image_urls / image_url / data

Pricing

  • gpt-image-2.5-flare:text_input: $0.00375 / 1k_tokens
  • gpt-image-2.5-flare:image_input: $0.006 / 1k_tokens
  • gpt-image-2.5-flare:output: $0.0225 / 1k_tokens

GPT Image 2.5 API のよくある質問

どの GPT Image 2.5 モデルを利用できますか?

API は画像生成・編集用の gpt-image-2.5-flare と gpt-image-2.5-sunburst に対応しています。

GPT Image 2.5 API の料金はいくらですか?

100万トークンあたりの米ドル料金です。Flare と Sunburst に同じ料金が適用されます。

API はどの quality 値を受け付けますか?

quality パラメータは auto、low、medium、high を受け付けます。xhigh、max、standard を指定すると、API は HTTP 400 を返します。

More questions? See the API docs.

あわせて読みたい

PiAPI ブログの GPT Image ファミリー向けガイドと比較記事。