OpenClaw で Recraft を使う。
Recraft は、アーティファクトなしで細部を復元する鮮明なニューラル画像高画質化と、髪の毛や透明なエッジを保持する精密な背景除去を提供します。OpenClaw agent は、チャットで使うのと同じ RunAPI キーで両方のエンドポイントを呼び出します——ソース画像 URL を送信し、高画質化または背景除去を選び、処理結果をポーリングします。
RunAPI を使って Recraft crisp upscale で画像を高画質化します。
要件:
- 認証には RUNAPI_API_KEY 環境変数を使用します。
- https://runapi.ai/api/v1/recraft/upscale_image の RunAPI upscale_image エンドポイントを呼び出します。
- model を "recraft-crisp-upscale" に設定します。
- source_image_url にソース画像 URL を渡します。
- レスポンスは task_id を返します。タスクが完了するまでタスクステータスエンドポイントをポーリングし、結果から高画質化された画像 URL を取得します。
- 背景除去の場合は、代わりに /api/v1/recraft/remove_background を model "recraft-remove-background" で呼び出します。
curl -X POST https://runapi.ai/api/v1/recraft/upscale_image \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "recraft-crisp-upscale",
"source_image_url": "https://example.com/product-photo.jpg"
}'
{
"task_id": "tsk_abc123",
"status": "pending",
"model": "recraft-crisp-upscale"
}
OpenClaw で Recraft を使う3ステップ
Configure RunAPI
If you have not set up RunAPI in OpenClaw yet, follow the OpenClaw setup guide. Set the RUNAPI_API_KEY environment variable and add RunAPI as an OpenAI-compatible provider with baseUrl https://runapi.ai/v1.
export RUNAPI_API_KEY=runapi_xxx
Call Recraft upscale or remove background
Send a POST request to the upscale_image endpoint with model set to recraft-crisp-upscale and provide the source_image_url. For background removal, POST to the remove_background endpoint with model recraft-remove-background instead. Both require only source_image_url.
POST /api/v1/recraft/upscale_image
Poll for the result
Both endpoints return a task_id with status pending. Poll the task status endpoint until the status changes to completed, then retrieve the processed image URL from the response. RunAPI SDKs and the CLI handle polling automatically.
GET /api/v1/recraft/upscale_image/tsk_abc123
Recraft API パラメータ
| パラメータ | 型 | 説明 |
|---|---|---|
model |
string |
Required. recraft-crisp-upscale for upscaling, recraft-remove-background for background removal. |
source_image_url |
string |
Required. URL of the source image to process. |
callback_url |
string |
Optional. Webhook URL for async completion notification. |
OpenClaw上のRecraftとは?
Recraft はRunAPIで2種類の後処理機能を提供します——細部を復元するクリアなニューラルアップスケーリングと、髪の毛や透明な端を綺麗に処理する背景除去です。OpenClaw agentは同じRunAPIキーで両方のエンドポイントを呼び出します。
Recraftの活用例
デザインアセットのニューラルアップスケーリング
商品画像・ロゴ・デザインアセットをアップスケールして細部を復元し、Topazより低コストで行います——価格に敏感なポストプロダクションワークフローに適しています。
EC商品の背景除去
ECサイトの白背景リストや合成アプリケーション向けに商品写真の背景を除去します。Recraftは髪の毛・透明な素材・小さな物体を含む微妙な端を処理します。
画像後処理のバッチ処理
OpenClaw agentワークフローで生成ステップにRecraftを連結し、大量の商品画像のアップスケーリングと背景除去を自動化します。
Recraft + OpenClaw のよくある質問
Yes. Both endpoints are stateless and accept standard image URLs. Instruct the OpenClaw agent to first call remove_background with the original image, then pass the output URL to upscale_image. The same RUNAPI_API_KEY handles both calls.
Recraft accepts JPEG, PNG, and WebP inputs. Background removal outputs PNG with alpha transparency. Upscale output matches the input format.
Both use neural networks, but Recraft crisp upscale is optimized for clean edge recovery on design assets and product photos with lower per-task cost. Topaz offers configurable 2x/4x/8x scale factors and is better suited for photographic detail at extreme enlargements. Both are async and share the same RunAPI key.
Both Recraft endpoints are async. The API returns a task_id immediately. Poll the task status endpoint until the result is ready. RunAPI SDKs and the CLI handle polling automatically.
Recraft uses per-task billing — upscaling and background removal are priced separately per image processed. Check the RunAPI pricing page for current rates. No subscription or minimum spend required.
今すぐ OpenClaw で Recraft を試す。
無料の RunAPI キーを取得し、プロンプトを OpenClaw に貼り付けて、Recraft で画像の高画質化と背景除去を始めましょう。