
参照画像を使う
オフにするとテキストから画像を生成します。オンにすると最大 16 枚の参照画像をアップロードまたは貼り付けできます。
Output size. Use auto, a W:H ratio, or a valid WIDTHxHEIGHT value; explicit pixels are preserved and must match the selected resolution tier.
Output resolution tier. It is independent from rendering quality.
Rendering effort. Auto lets the selected provider choose an appropriate tier.
Number of images to generate. Credits and upstream cost scale with n.
Background handling. Transparent output requires a compatible route.
Requested image output format when supported by the selected provider.
USD 見積 $0.045-$0.09:最大チャージパックは $1 = 2,000 クレジットで換算。スターターパックは $1 = 1,000 クレジットで換算。

履歴
このブラウザ内にローカル保存
0 件実行中 · 0 件完了
課金ルール
認証
すべてのリクエストで Authorization ヘッダーに Bearer トークンを含める必要があります。コンソールで API Key を作成してください。
Authorization: Bearer YOUR_API_KEYhttps://apiany.ai/v1/images/generationsリクエストパラメータ
| パラメータ | タイプ | 必須 | 説明 |
|---|---|---|---|
model | 文字列 | 必須 | 呼び出すモデル識別子。このモデルの ID を使用します。 |
prompt | 文字列 | 必須 | 生成したい内容を説明するテキストプロンプト。 |
size | 文字列 | 任意 | Output size. Use auto, a W:H ratio, or a valid WIDTHxHEIGHT value; explicit pixels are preserved and must match the selected resolution tier. · 選択肢: auto, 1:1, 1:2, 2:1, 1:3, 3:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, 9:21 · デフォルト: auto |
resolution | 文字列 | 任意 | Output resolution tier. It is independent from rendering quality. · 選択肢: 1K, 2K, 4K · デフォルト: 1K |
quality | 文字列 | 任意 | Rendering effort. Auto lets the selected provider choose an appropriate tier. · 選択肢: auto, low, medium, high, xhigh, max · デフォルト: auto |
n | 数値 | 任意 | Number of images to generate. Credits and upstream cost scale with n. · 範囲: 1–10 · デフォルト: 1 |
background | 文字列 | 任意 | Background handling. Transparent output requires a compatible route. · 選択肢: auto, opaque, transparent · デフォルト: auto |
output_format | 文字列 | 任意 | Requested image output format when supported by the selected provider. · 選択肢: png, jpeg, webp · デフォルト: png |
output_compression | 数値 | 任意 | Compression level for JPEG or WebP output. · 範囲: 0–100 · デフォルト: 100 |
callback_url | 文字列 | 任意 | 任意のコールバック URL。非同期タスク完了後に呼び出されます。 |
リクエスト例
curl "https://apiany.ai/v1/images/generations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2.5-sunburst",
"prompt": "Precisely edit a premium product campaign image while preserving layout and typography",
"size": "auto",
"resolution": "1K",
"quality": "auto",
"n": 1
}'レスポンス例
{
"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 時間です。
APIAny© 2026 APIAny。無断転載を禁じます。