Imagild の画像・動画モデルをご自身のアプリから利用できます。
API Key はサーバー側の環境変数で保管し、コードやブラウザーに公開しないでください。
権限を確認中…
| 名前 | API Key | 状態 | 操作 |
|---|---|---|---|
| 履歴なし | |||
https://imagild.com/api/relay/v1Authorization: Bearer YOUR_API_KEYAPI は有効会員限定です。送信時にポイントを予約し、失敗確定時に返却します。 画像マーケットと同じ料金です。1K は10、2K は15、4K は20ポイント/枚。動画は従来料金、送信済みタスクは元の見積もりを保持します。
使い方以下は Bash / zsh 用の cURL 例です。YOUR_API_KEY を保存したキーに置き換えてください。
export IMAGILD_API_KEY='YOUR_API_KEY'curl 'https://imagild.com/api/relay/v1/images/generations' \
-H "Authorization: Bearer $IMAGILD_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: image-demo-0001' \
-d '{"model":"gpt-image-2.5","prompt":"A blue paper boat on calm water","resolution":"1K"}'TASK_ID を data.id に置き換え、5 秒ごとに確認します。data.status が succeeded になったらダウンロードしてください。画像のファイル名は result.png に変更します。
curl 'https://imagild.com/api/relay/v1/tasks/TASK_ID' \
-H "Authorization: Bearer $IMAGILD_API_KEY"curl 'https://imagild.com/api/relay/v1/tasks/TASK_ID/content' \
-H "Authorization: Bearer $IMAGILD_API_KEY" \
-o result.pngUpload an image with multipart field photo (up to 20 MB). Use the returned file_id in image or video generation. A completed image task can instead be referenced using image_task_id; never provide both.
curl 'https://imagild.com/api/relay/v1/files' \
-H "Authorization: Bearer $IMAGILD_API_KEY" \
-F 'photo=@reference.jpg'Generation is asynchronous: POST returns a task ID, then query it every 5 seconds. Download output_url with the same Bearer key once status is succeeded.
Set a new Idempotency-Key for each new generation. Retry the same generation with the same key and identical parameters; this reuses the task. Changed parameters return 409. Never create a new key to retry an unknown upstream result.
Up to 5 active keys. Per account: 10 generation/upload requests and 120 read requests per minute. Exceeded limits return 429. Keys stop working immediately when revoked, expired, or membership ends.
If status is unknown, do not resubmit: contact support to reconcile the original task. Failed jobs release reserved points under the website billing rules.
These are asynchronous HTTP APIs; the synchronous OpenAI SDK image response format is not supported.