Riverflow V2.6 Pro API
SourcefulのRiverflow V2.6 Proは、パッケージモックアップやマーケティング資料など、構造化された商用ビジュアルを生成する画像モデルです。
SourcefulのRiverflow V2.6 Proは、テキストから画像を生成する機能と画像編集機能を備えたモデルです。構造化された商用ビジュアルの生成に特化しており、パッケージのモックアップやマーケティング資料、製品プレゼンテーション、デザインシステムなどの制作を支援します。
このモデルは、クリーンなジオメトリとレイアウトの論理を重視し、空間的な一貫性と正確なテキストレンダリングを維持する点が特徴です。そのため、視覚的な秩序と整合性が求められる商用デザインのタスクに適しています。
なお、V2.6 Proバージョンに関する公式の詳細情報は確認されていません。RiverflowファミリーにはRiverflow 1、Riverflow 2.0、Riverflow 2.0 Pro、Riverflow 2.0 Fast、Riverflow 2.5、Riverflow 2.5 Pro、Riverflow V2.5 Proが含まれています。
更新日時:
モデル ID
riverflow-v2.6-pro- 入力
- text / image
- 出力
- image
ハイライト
- 構造化された商用ビジュアルの生成
- クリーンなジオメトリとレイアウトの論理
- 空間的な一貫性の維持
- 正確なテキストレンダリング
プロバイダー
プロバイダーごとの API 料金を比較できます。プロバイダーを選択すると、すべての料金と適用条件を確認できます。
| 稼働率 | ||
|---|---|---|
| $0.13 |
過去の統計はリアルタイムの稼働確認ではありません。データの欠損は障害を意味しません。
Quick Start
画像タスクを送信し、状態を確認してから画像を保存します。curl と Python 3 の標準ライブラリのみを使用します。
POST https://openapi.felo.ai/api/v1/images/generations
1API key を設定
Felo API Platform アカウントで key を作成し、環境変数として設定します。
export FELO_API_KEY="YOUR_API_KEY"2最初のリクエスト
任意パラメーターの値はモデルによって異なるため、例では指定しません。追加前に Playground で確認してください。各フィールドは model・prompt と同じ階層に置き、input で囲みません。
curl --fail-with-body --max-time 60 "https://openapi.felo.ai/api/v1/images/generations" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-o created.json \
-d '{
"prompt": "A studio product photo of a ceramic coffee cup on warm linen, soft morning light",
"model": "riverflow-v2.6-pro"
}'3タスクをポーリング
送信後に task_id が返ります。queued・running の間は3秒ごとに確認し、succeeded・failed・interrupted で終了します。待機は最大30分です。created.json を保存すると、再送信せず同じタスクの確認を再開できます。
python3 - <<'PY'
import json, os, time
from pathlib import Path
from urllib.parse import quote
from urllib.request import Request, urlopen
task = json.loads(Path("created.json").read_text())
task_id = task["task_id"]
url = "https://openapi.felo.ai/api/v1/images/generations/" + quote(task_id, safe="")
headers = {"Authorization": "Bearer " + os.environ["FELO_API_KEY"]}
deadline = time.monotonic() + 1800
while task["status"] in ("queued", "running"):
if time.monotonic() >= deadline:
raise TimeoutError(f"Keep task_id={task_id} to resume polling")
time.sleep(3)
with urlopen(Request(url, headers=headers), timeout=60) as response:
task = json.load(response)
if task.get("task_id") != task_id or task.get("kind") != "image":
raise ValueError("Unexpected task response")
print(task["status"])
if task["status"] != "succeeded":
raise RuntimeError(task.get("error") or task["status"])
if not task.get("outputs"):
raise ValueError("Task succeeded without image outputs")
Path("task.json").write_text(json.dumps(task))
print("Saved task.json")
PY4出力をダウンロード
成功後、task.json の outputs を保存します。HTTPS URL、URL オブジェクト、b64_json に対応しています。署名付き URL は早めにダウンロードしてください。画像の取得に API キーは不要です。
python3 - <<'PY'
import base64, json
from pathlib import Path
from urllib.request import urlopen
task = json.loads(Path("task.json").read_text())
if task.get("status") != "succeeded" or not task.get("outputs"):
raise ValueError("No completed image outputs")
extensions = {"image/png": ".png", "image/jpeg": ".jpg", "image/webp": ".webp", "image/gif": ".gif", "image/avif": ".avif"}
for index, output in enumerate(task["outputs"], 1):
item = output if isinstance(output, dict) else {}
url = output if isinstance(output, str) else item.get("url") or item.get("unsigned_url")
mime = item.get("media_type") or "image/png"
if url and url.startswith("https://"):
with urlopen(url, timeout=60) as response:
data = response.read()
mime = response.headers.get_content_type()
elif url and url.startswith("data:image/") and ";base64," in url:
header, encoded = url.split(",", 1)
mime = header[5:].split(";", 1)[0]
data = base64.b64decode(encoded, validate=True)
elif item.get("b64_json"):
data = base64.b64decode(item["b64_json"], validate=True)
else:
raise ValueError("Unrecognized image output")
path = Path(f"image-{index}" + extensions.get(mime, ".bin"))
path.write_bytes(data)
print(path)
PYinput_references
画像編集では、例の URL を自分の HTTPS 画像 URL または base64 画像 data URL に置き換えます。一度送信した後、同じ確認・保存手順を使います。
curl --fail-with-body --max-time 60 "https://openapi.felo.ai/api/v1/images/generations" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-o created.json \
-d '{
"prompt": "Keep the product and framing. Replace the background with a sunlit marble countertop.",
"model": "riverflow-v2.6-pro",
"input_references": [
{
"type": "image_url",
"image_url": {
"url": "https://example.com/product.png"
}
}
]
}'対応パラメータ
- n
- size
- background
- resolution
- aspect_ratio
- output_format
- input_references
完全なリファレンスが必要ですか?
API リファレンス →よくある質問
モデルについて: Riverflow V2.6 Pro?
SourcefulのRiverflow V2.6 Proは、テキストから画像を生成する機能と画像編集機能を備えたモデルです。構造化された商用ビジュアルの生成に特化しており、パッケージのモックアップやマーケティング資料、製品プレゼンテーション、デザインシステムなどの制作を支援します。 このモデルは、クリーンなジオメトリとレイアウトの論理を重視し、空間的な一貫性と正確なテキストレンダリングを維持する点が特徴です。そのため、視覚的な秩序と整合性が求められる商用デザインのタスクに適しています。 なお、V2.6 Proバージョンに関する公式の詳細情報は確認されていません。RiverflowファミリーにはRiverflow 1、Riverflow 2.0、Riverflow 2.0 Pro、Riverflow 2.0 Fast、Riverflow 2.5、Riverflow 2.5 Pro、Riverflow V2.5 Proが含まれています。
利用料金はどのように計算されますか?
料金は利用するプロバイダーと実際の使用量により決まります。長い入力などは料金が異なる場合があります。内訳をご確認ください。
どのような入力に対応していますか?
テキストからの画像生成と画像編集に対応しています。
どのようなタスクに適していますか?
パッケージのモックアップ、マーケティング資料、製品プレゼンテーション、デザインシステムの制作に適しています。
このモデルの強みは何ですか?
クリーンなジオメトリとレイアウトの論理、空間的な一貫性、正確なテキストレンダリングを重視しています。
Riverflowファミリーにはどのようなモデルがありますか?
Riverflow 1、Riverflow 2.0、Riverflow 2.0 Pro、Riverflow 2.0 Fast、Riverflow 2.5、Riverflow 2.5 Pro、Riverflow V2.5 Proが含まれています。
V2.6 Proバージョンについての公式情報はありますか?
V2.6 Proバージョンに関する公式の詳細情報は確認されていません。