モデル:
料金: from 25 credits per request · ≈ $0.0125高い安定性と、APIAny プラットフォーム上の詳細な使用履歴を提供します。
プロンプト設定例:生成結果はありません
参照画像を使う
オフにするとテキストから画像を生成します。オンにすると最大 14 枚の参照画像をアップロードまたは貼り付けできます。
Output aspect ratio. Custom WxH pixel sizes remain accepted in JSON mode when supported upstream.
Output resolution tier.
USD 見積 ≈ $0.0125:チャージ枠 $999:1 USD = 2,000 クレジット。
履歴
このブラウザ内にローカル保存
0 件実行中 · 0 件完了
課金ルール
認証
すべてのリクエストで Authorization ヘッダーに Bearer トークンを含める必要があります。コンソールで API Key を作成してください。
Authorization: Bearer YOUR_API_KEYhttps://apiany.ai/v1/images/generationsリクエストパラメータ
| パラメータ | タイプ | 必須 | 説明 |
|---|---|---|---|
model | 文字列 | 必須 | 呼び出すモデル識別子。このモデルの ID を使用します。 |
prompt | 文字列 | 必須 | 生成したい内容を説明するテキストプロンプト。 |
size | 文字列 | 任意 | Output aspect ratio. Custom WxH pixel sizes remain accepted in JSON mode when supported upstream. · 選択肢: auto, 1:1, 1:4, 4:1, 1:8, 8:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 · デフォルト: auto |
quality | 文字列 | 任意 | Output resolution tier. · 選択肢: 1K, 2K, 4K · デフォルト: 1K |
callback_url | 文字列 | 任意 | 任意のコールバック URL。非同期タスク完了後に呼び出されます。 |
リクエスト例
curl "https://apiany.ai/v1/images/generations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana-2.1",
"prompt": "A studio product photograph of a ceramic cup with soft lighting",
"size": "auto",
"quality": "1K"
}'レスポンス例
{
"task_id": "task_abc123",
"status": "pending",
"poll_url": "/v1/tasks/task_abc123",
"request_id": "req_abc123",
"credits": {
"reserved": 1000
}
}このエンドポイントは非同期呼び出しです。リクエスト後すぐに task_id が返されます。status が succeeded になるまでタスク状態照会エンドポイントをポーリングし、その後 result を読み取ってください。生成されたメディアリンクの有効期限は 24 時間です。