シンプルなRESTful統合
2つのエンドポイント、Bearerトークン認証、JSON入出力。cURL、JavaScript、Pythonで数分で開始。SDKは不要です。
1モデル、一律 $0.05/リクエスト。テキスト→画像も画像→画像も同一料金。
text-to-imageテキストから画像を生成。欲しい画像を言葉で記述するとAIが作成します。
image-to-imageテキスト指示で既存画像を編集。写真をアップロードし変更内容を記述します。
1:116:99:16カスタムサイズ1K2K310 MBJPEG, PNG, WebP2,000 chars{ "aspect_ratio": "1:1" // 1:1, 16:9, 9:16 "resolution": "2K" // 1K, 2K "width": 1024 // custom width "height": 1024 // custom height "sub_scene": "watermark_removal" }
AI画像編集をプロダクトに統合するために必要なすべて。シンプルなAPIと透明な料金体系。
2つのエンドポイント、Bearerトークン認証、JSON入出力。cURL、JavaScript、Pythonで数分で開始。SDKは不要です。
透明な従量課金。月額最低料金なし、隠れた費用なし。プロトタイプから本番までシームレスにスケール。
編集タスクを送信し、結果をポーリング。平均応答10秒以内。自動リトライ機能搭載、本番環境向け設計。
APIキー認証、レート制限、CORS保護、リクエスト検証。データは安全に処理され、保存されません。
背景除去、スタイル変換、バーチャル試着、写真修復、オブジェクト除去、ポートレート補正など——すべて1つのAPIエンドポイントから。
編集タスクを送信し、結果をポーリング。それだけです。
FireRed Image Editモデルを使用してAI画像編集タスクを作成します。
| Parameter | Type | Required | Description |
|---|---|---|---|
| mediaType | string | optional | メディアタイプ(デフォルト: image) |
| model | string | optional | モデル名(デフォルト: firered-image-edit) |
| prompt | string | required | 編集指示(例: remove the background, change hair color) |
| scene | string | required | シーンタイプ: image-to-image または text-to-image |
| options | object | optional | 追加オプション: resolution, aspect_ratio など |
mediaTypestringメディアタイプ(デフォルト: image)
modelstringモデル名(デフォルト: firered-image-edit)
promptstringrequired編集指示(例: remove the background, change hair color)
scenestringrequiredシーンタイプ: image-to-image または text-to-image
optionsobject追加オプション: resolution, aspect_ratio など
成功レスポンス
{ "code": 0, "data": { "taskId": "..." } }コピー&ペーストですぐ使えるサンプルコード。APIキーを差し替えるだけで実行できます。
| 1 | curl -X POST https://firered-image.com/api/v1/generate \ |
| 2 | -H "Authorization: Bearer sk-xxxxx" \ |
| 3 | -H "Content-Type: application/json" \ |
| 4 | -d '{ |
| 5 | "mediaType": "image", |
| 6 | "model": "firered-image-edit", |
| 7 | "prompt": "remove the background and replace with a sunset beach", |
| 8 | "scene": "image-to-image", |
| 9 | "options": { "aspect_ratio": "1:1", "resolution": "2K" } |
| 10 | }' |
| 11 | |
| 12 | # Poll result |
| 13 | curl https://firered-image.com/api/v1/task/{taskId}?refresh=1 \ |
| 14 | -H "Authorization: Bearer sk-xxxxx" |
APIキーを作成して構築を開始。ボリューム料金やご質問はお気軽にお問い合わせください。
ご利用シーンをお聞かせください。APIアクセスを設定いたします。