SeDream Image Editor API
The SeDream Image Editor API uses ByteDance's SeDream v4.5 model to edit images with natural language instructions. Provide a source image and describe the changes you want for high-quality AI-powered edits.
Quick Start
Edit your first image in 30 seconds
Get Your API Key
Sign in to your account to get your API key and see it automatically filled in all code examples.
Don't have an account? Sign up for free
import requests
response = requests.post(
"https://netwrck.com/fal",
json={
"api_key": "YOUR_API_KEY",
"model_name": "fal-ai/bytedance/seedream/v4.5/edit",
"image_url": "https://example.com/photo.jpg",
"prompt": "Replace the background with a tropical beach scene"
}
)
result = response.json()
print(f"Edited image: {result['images'][0]['url']}")
fetch('https://netwrck.com/fal', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
api_key: 'YOUR_API_KEY',
model_name: 'fal-ai/bytedance/seedream/v4.5/edit',
image_url: 'https://example.com/photo.jpg',
prompt: 'Replace the background with a tropical beach scene'
})
})
.then(res => res.json())
.then(result => {
console.log('Edited image:', result.images[0].url);
})
.catch(error => console.error('Error:', error));
curl -X POST https://netwrck.com/fal \
-H 'Content-Type: application/json' \
-d '{
"api_key": "YOUR_API_KEY",
"model_name": "fal-ai/bytedance/seedream/v4.5/edit",
"image_url": "https://example.com/photo.jpg",
"prompt": "Replace the background with a tropical beach scene"
}'
Interactive API Tester
Pricing & Credits
Cost Per Edit
$0.30 USD
30 credits per successful edit
Billing Policy
Success: Charged 30 credits
Failed: No charge
Only pay for successful edits
API Reference
POST /fal
Edit images using natural language instructions with ByteDance SeDream v4.5
Request Format
Send a POST request with a JSON body containing these parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | Required | Your API key for authentication. |
| model_name | string | Required | Must be "fal-ai/bytedance/seedream/v4.5/edit". |
| image_url | string | Required | URL of the image to edit. Supports JPG, PNG, WEBP formats. |
| prompt | string | Required | Natural language instruction describing the edit to apply. |
Response Examples
Success Response (200 OK)
{
"images": [
{
"url": "https://fal.media/files/example/edited-image.png"
}
]
}
Error Responses
401 Unauthorized
{
"error": "Invalid API key",
"status": 401
}
402 Payment Required
{
"error": "Insufficient credits",
"status": 402
}
Netwrck