Netwrck logo Netwrck
Netwrck > Tools > API Documentation > RA2 Art Generator

RA2 Image Editor API

Edit an existing image from a text prompt with one POST request. Upload a file or pass a base64 image, then copy code or agent instructions into your codebase.

httpPOST /api/ra2-image-editor payments$0.04 per successful edit (4 credits) verifiedNo charge on failed requests
brushOpen Tool
Sign in to fill your API key automatically.

API Tester

Production endpoint
Status: idle
{}

Pricing & Credits

Cost Per Edit

$0.04 USD

4 credits per successful edit

Billing Policy

Success: Charged $0.04 (4 credits)

Failed: No charge

Only pay for successful edits

API Reference

POST /api/ra2-image-editor

Edit an image from a source image and a text description. Alias: /api/ra2-image-edit

Request Format

Send a POST request as multipart/form-data with these fields:

FieldTypeRequiredDescription
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.
prompt string Required Text description of the edit to apply to the source image. Max 1000 characters.
size string Optional Output size preset key. Default: "square". Supported presets:
  • square (1024x1024)
  • landscape (1152x768)
  • portrait (768x1152)
  • landscape43 (1152x864)
  • portrait43 (864x1152)
  • widescreen (1360x768)
  • tall (768x1360)
Ignored when resolution is supplied.
resolution string Optional Explicit output size in widthxheight format. Both values must be multiples of 32, between 256 and 2048.
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:

FieldTypeRequiredDescription
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, size or resolution, and seed work the same way as in the multipart form.

{
  "api_key": "YOUR_API_KEY",
  "prompt": "Turn the background into a sunset beach",
  "image_url": "https://example.com/source.png",
  "size": "square",
  "seed": 42
}

Response Examples

Success Response (200 OK)

When your image is successfully edited, you'll receive:

{
  "success": true,
  "request_id": "ra2edit_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": "Turn the background into a sunset beach",
  "final_prompt": "Turn the background into a sunset beach",
  "credits_charged": 4,
  "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: 4, Available: 0",
  "status": 402
}

Add more credits to your account

400 Bad Request

{
  "error": "Prompt is required",
  "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

  • Describe the change, not the whole scene
  • Name the region: "replace the sky with a sunset"
  • Include style keywords like "watercolor", "oil painting"
  • Mention lighting: "golden hour", "studio lighting"

Source Images

  • PNG, JPEG, or WebP up to 10 MB
  • Pass public images with image_url instead of uploading
  • Keep the source at or above the target size for sharper output
  • Match size to the source aspect ratio when possible

Example Great Edits

"Turn the background into a sunset beach with palm trees, keep the subject unchanged"

"Convert this photo into a watercolor painting, soft edges, visible brush strokes"

"Replace the cloudy sky with a starry night, add a soft moon glow"

Welcome Back to EBank



Forgot password?

Don't have an account? Sign up here

Join EBank

Make wonderful Art and videos - 2k upscaling and photo editing.



Already have an account? Login here

eBank Art Generator Unlimited

Unlimited local image generation plus 500 monthly video credits


Art Generator Settings


Resolution
Aesthetic Elf Styles
Anime Anime
Photographic Photographic
Digital Art Digital Art
Comic Book Comic Book
Fantasy Art Fantasy Art
Neon Punk Neon Punk
Knight Knight
Ethereal Ethereal
Low Poly Low Poly
Stunning Stunning
Line Art Line Art
Cinematic Cinematic
Wanderer Wanderer
Beggar Beggar
Seductive Seductive
Warrior Warrior
Steampunk Steampunk
Japanese Japanese
Western Western
Handsome Handsome
Pop art Pop art
Abstract Abstract
Impressionist Impressionist
Fauvist Fauvist
Beauty grace Beauty grace
Evil Evil
God God
Demon Demon
Masculine Masculine
Feminine Feminine
Majestic Majestic
Mage Mage
Princess Princess
King King
Sweet Sweet
Fantasy Fantasy

AI Generated Images


Community Images


New AI

person
This is what your AI will say when someone first chats with them
Help others understand what your AI character is about

AI Settings

Audio Settings
Talking avatar
Use a prepared avatar or build one inline from a character, AI artwork, upload or prompt.
Character calls

Local is free (browser speech + your chat model + on-device TTS). Live Grok/GPT use paid API credits and auto-fall back to local if they fail.

1.0x

Translation

For Chinese: hanzi + pinyin per word, tap any word to hear it spoken locally.


Art Generation

When enabled, AI can automatically generate art based on conversations

Prepended to art prompts when Make Art runs.
Only applies when GPT Image 2 is selected. GPT Image 2 chat art consumes credits.

High Resolution

LTX 2.3 Image to Video

Selected image
Pick any generated image and turn it into a video.
$0.58 ยท 58 credits
Your latest request will appear here.

Saved Requests

Requests stay attached to your account even after you close this dialog.
No video requests yet.

Find an AI to chat with

No AI characters found.

Help Everyone Know You

person

Share Image

Consider our affiliate program to earn!

Copy

Reddit

X

Facebook

LinkedIn

NETW Coin is live!

AI should be owned by everyone.
So we are building a new AI economy together.
Thank you for being on this journey with us!
Read More

Netwrck Android App

Our Android App Is Available Now - Please Check it out!

New Post

Add Netwrck Credits

Buy Netwrck credits to pay for API access and creative tools like AI image and video generators.

Current Balance: $0.00
Custom:

Sign in to keep chatting

You have used your messages. Sign in to continue this conversation and keep your chat history.

No card required.

Characters in this room

Remove a current character, add an existing one, or create a new character for this room.

Add an existing character