RA3 Image Editor API
Clean up (remove text, lettering and watermarks) or colorize an existing image with one POST request. Upload a file or pass a base64 image, then copy code or agent instructions into your codebase.
API Tester
Production endpoint{}
Pricing & Credits
Cost Per Edit
$0.12 USD
12 credits per successful edit
Billing Policy
Success: Charged $0.12 (12 credits)
Failed: No charge
Only pay for successful edits
API Reference
POST /api/ra3-image-editor
Edit an image from a source image and a text description. Alias: /api/ra3-image-edit
Request Format
Send a POST request as multipart/form-data with these fields:
| Field | Type | Required | Description |
|---|---|---|---|
| api_key | string | Required | Your API key for authentication. The X-API-Key header is also accepted. |
| image | file | Required | Source image upload. PNG, JPEG, or WebP. Max 10 MB. The result is rendered at up to about 0.6 megapixels (long side up to 1024 px) in the source aspect ratio. |
| prompt | string | Optional | Optional hint for the edit, for example the colour scheme when colorizing. Max 200 characters. |
| task | string | Required | "clean" removes text, speech-bubble lettering, sound effects and watermarks while keeping the rest of the image. "colorize" adds full colour to line art or black and white images. Aliases: cleanup, colorise. |
| seed | integer | Optional | Fixes edit randomness for reproducible results. Omit for a random seed. |
JSON Requests
Send Content-Type: application/json instead of a file upload, replacing image with one of these fields:
| Field | Type | Required | Description |
|---|---|---|---|
| image_base64 | string | Either | Base64 encoded source image. Data URL prefixes are stripped automatically. |
| image_url | string | Either | Public URL of the source image. Max 10 MB. |
prompt, api_key, task and seed work the same way as in the multipart form.
{
"api_key": "YOUR_API_KEY",
"prompt": "soft pastel palette, warm skin tones",
"image_url": "https://example.com/source.png",
"task": "colorize",
"seed": 42
}
Response Examples
Success Response (200 OK)
When your image is successfully edited, you'll receive:
{
"success": true,
"request_id": "ra3edit_1758500000_ab12cd34",
"image_url": "https://netwrckstatic.netwrck.com/static/uploads/ai/tools/cutout-studio-sample.webp",
"images": [
"https://netwrckstatic.netwrck.com/static/uploads/ai/tools/cutout-studio-sample.webp"
],
"prompt_used": "soft pastel palette, warm skin tones",
"final_prompt": "soft pastel palette, warm skin tones",
"credits_charged": 12,
"price_cents": 4
}
Error Responses
If something goes wrong, you'll receive one of these error responses:
401 Unauthorized
{
"error": "Authentication failed",
"status": 401
}
Check your API key is correct
402 Payment Required
{
"error": "Insufficient credits. Required: 12, Available: 0",
"status": 402
}
Add more credits to your account
400 Bad Request
{
"error": "Unsupported task",
"status": 400
}
Check your request fields, including the source image
502 Generation Error
{
"success": false,
"error": "Image generation failed. Please try again."
}
Try again in a moment
Pro Tips for Better Edits
Prompt Writing
- The prompt is an optional hint;
cleanneeds none - For
colorize, name the palette or key colours - Keep it short (max 200 characters)
Source Images
- PNG, JPEG, or WebP up to 10 MB
- Pass public images with
image_urlinstead of uploading - Larger sources are scaled down to about 0.6 megapixels
- Edits take 30 to 60 seconds; keep the connection open (timeout 180 s)
Example Hints
colorize: "soft pastel palette, warm skin tones"
colorize: "autumn colours, teal jacket"
clean: (no prompt needed)
Netwrck