---
title: &quot;RunAPI 経由で OpenClaw で Recraft を使う — 高画質化と背景除去&quot;
url: &quot;https://runapi.ai/ja/openclaw-recraft.md&quot;
canonical: &quot;https://runapi.ai/ja/openclaw-recraft&quot;
locale: &quot;ja&quot;
model: &quot;recraft&quot;
---

# OpenClaw で Recraft を使う。

Recraft は、アーティファクトなしで細部を復元する鮮明なニューラル画像高画質化と、髪の毛や透明なエッジを保持する精密な背景除去を提供します。OpenClaw agent は、チャットで使うのと同じ RunAPI キーで両方のエンドポイントを呼び出します——ソース画像 URL を送信し、高画質化または背景除去を選び、処理結果をポーリングします。

## API example

```bash
curl -X POST https://runapi.ai/api/v1/recraft/upscale_image \
  -H &quot;Authorization: Bearer $RUNAPI_API_KEY&quot; \
  -H &quot;Content-Type: application/json&quot; \
  -d &#39;{
    &quot;model&quot;: &quot;recraft-crisp-upscale&quot;,
    &quot;source_image_url&quot;: &quot;https://example.com/product-photo.jpg&quot;
  }&#39;

```

### Response

```json
{
  &quot;task_id&quot;: &quot;tsk_abc123&quot;,
  &quot;status&quot;: &quot;pending&quot;,
  &quot;model&quot;: &quot;recraft-crisp-upscale&quot;
}

```

## How it works

1. **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.
2. **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.
3. **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.

## Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `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. |

## FAQ

### Can I chain Recraft background removal and upscaling in one OpenClaw workflow?

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.

### What image formats does Recraft accept and output?

Recraft accepts JPEG, PNG, and WebP inputs. Background removal outputs PNG with alpha transparency. Upscale output matches the input format.

### How does Recraft crisp upscale differ from Topaz upscale on RunAPI?

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.

### Is Recraft processing async or sync?

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.

### What does Recraft cost on RunAPI?

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.


## Links

- [OpenClaw セットアップガイド →](https://runapi.ai/ja/openclaw)
- [Recraft モデル →](https://runapi.ai/ja/models/recraft)
- [Model catalog](https://runapi.ai/ja/models)
- [API docs](https://runapi.ai/ja/docs)
