2 つのモデル、1 回の実装
Flare は日常向けの高速モデル、Sunburst は精度重視のモデルです。エンドポイント・リクエスト形式・料金表が共通なので、切り替えはモデル名を書き換えるだけです。
GPT Image 2.5 API / Flare と Sunburst をトークン課金の単一 API で
Flare と Sunburst で画像を生成・編集できます。PiAPI では両モデルに同じトークン料金が適用されます。
100万トークンあたりの米ドル料金です。Flare と Sunburst に同じ料金が適用されます。
| モデル | テキスト入力 | 画像入力 | 画像出力 |
|---|---|---|---|
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 のタスク API 経由で GPT Image 2.5 を呼び出すと、次の機能が使えます。
Flare は日常向けの高速モデル、Sunburst は精度重視のモデルです。エンドポイント・リクエスト形式・料金表が共通なので、切り替えはモデル名を書き換えるだけです。
quality パラメータは auto、low、medium、high を受け付けます。レンダリング時間とディテールのバランスを、実装時に固定せずリクエストごとに選べます。
テキストから画像を生成するにはプロンプトを送信し、既存画像を編集するには参照画像を添えます。どちらも同じ非同期タスク API を通ります。
テキスト入力・画像入力・画像出力それぞれをトークン単位で課金します。席数課金もサブスクリプションもなく、公開レートは上の表のとおりです。
タスクを送信して task id を受け取り、タスクエンドポイントをポーリングするか Webhook を待ちます。長時間の生成でもリクエストスレッドを塞ぎません。
Flare と Sunburst は PiAPI API で利用できます。エンドポイント、認証、リクエストパラメータは API ドキュメントをご確認ください。
Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.
Add credits on the billing page when you are ready to scale beyond the free tier.
POST your first task following the API docs, then poll the task until the result is ready.
Prototype prompts and settings in the the playground above before wiring them into your product.
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"
}'curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'image_urls / image_url / data
curl -X POST 'https://api.piapi.ai/api/v1/images/edits/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",
"image": [
"YOUR_IMAGE_URL"
]
}'curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'image_urls / image_url / data
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-sunburst",
"prompt": "YOUR_PROMPT",
"size": "1024x1024",
"quality": "low"
}'curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'image_urls / image_url / data
curl -X POST 'https://api.piapi.ai/api/v1/images/edits/async' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "gpt-image-2.5-sunburst",
"prompt": "YOUR_PROMPT",
"size": "1024x1024",
"quality": "low",
"image": [
"YOUR_IMAGE_URL"
]
}'curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'image_urls / image_url / data
API は画像生成・編集用の gpt-image-2.5-flare と gpt-image-2.5-sunburst に対応しています。
100万トークンあたりの米ドル料金です。Flare と Sunburst に同じ料金が適用されます。
quality パラメータは auto、low、medium、high を受け付けます。xhigh、max、standard を指定すると、API は HTTP 400 を返します。
More questions? See the API docs.
PiAPI ブログの GPT Image ファミリー向けガイドと比較記事。