AIモデル値
Aether APIで使用可能なAIモデルと各モデルの特性を説明します。
AiModelType列挙型
画像生成リクエストに使用できるAIモデルリストです。
| モデル値 | 説明 |
|---|---|
GPT Image 1.5 | OpenAI GPT Image 1.5モデル |
Grok Imagine | xAI Grok Imagineモデル |
Grok Imagine Pro | xAI Grok Imagine Proモデル |
Nano Banana | Nano Bananaモデル |
Nano Banana 2 | Nano Banana 2モデル |
Nano Banana Pro | Nano Banana Proモデル |
参照画像制限
各モデルごとにref_imagesパラメータに許可される最大画像数が異なります。
| モデル | 最大参照画像数 |
|---|---|
GPT Image 1.5 | 10個 |
Grok Imagine | 5個 |
Grok Imagine Pro | 1個 |
Nano Banana | 10個 |
Nano Banana 2 | 10個 |
Nano Banana Pro | 10個 |
リクエスト例
基本生成
curl -X POST "https://api.aetherforgeai.com/public/v1/generate" \
-H "Authorization: Bearer your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A beautiful sunset over mountains",
"ai_model": "GPT Image 1.5"
}'
参照画像含む (Grok Imagine Pro)
curl -X POST "https://api.aetherforgeai.com/public/v1/generate" \
-H "Authorization: Bearer your_api_key_here" \
-F "prompt=A cat in the style of the reference image" \
-F "ai_model=Grok Imagine Pro" \
-F "[email protected]"
参照画像含む (GPT Image 1.5 - 最大10個)
curl -X POST "https://api.aetherforgeai.com/public/v1/generate" \
-H "Authorization: Bearer your_api_key_here" \
-F "prompt=A landscape combining these styles" \
-F "ai_model=GPT Image 1.5" \
-F "[email protected]" \
-F "[email protected]" \
-F "[email protected]"
エラーレスポンス
400 Bad Request - 参照画像超過
モデルの最大参照画像数を超過した場合に返されます。
Grok Imagine Pro例:
{
"detail": "The Grok Imagine Pro model supports up to 1 ref_images."
}
一般制限例:
{
"detail": "ref_images supports up to 10 images only"
}
モデル選択ガイド
| 使用ケース | 推奨モデル |
|---|---|
| 高品質一般画像生成 | GPT Image 1.5 |
| スタイル参照が必要な場合 | Grok Imagine (最大5個) |
| 単一参照画像で高品質結果 | Grok Imagine Pro |
| 複数参照画像が必要な場合 | Nano Banana系 (最大10個) |
関連ドキュメント
- POST /public/v1/generate/image - 画像生成エンドポイント
- 非同期ジョブライフサイクル - ジョブ処理フロー