SeDream Image Generator API
The SeDream Image Generator API uses ByteDance's SeDream v4.5 model to generate images from text prompts. Create stunning images from text descriptions with high-quality AI generation.
Quick Start
Generate 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/bytedance/seedream/v4.5/text-to-image",
"prompt": "A majestic dragon flying over a crystal lake at sunset",
"prompt": "A majestic dragon flying over a crystal lake at sunset"
}
)
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/bytedance/seedream/v4.5/text-to-image',
prompt": "A majestic dragon flying over a crystal lake at sunset',
prompt: 'A majestic dragon flying over a crystal lake at sunset'
})
})
.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/bytedance/seedream/v4.5/text-to-image",
"prompt": "A majestic dragon flying over a crystal lake at sunset",
"prompt": "A majestic dragon flying over a crystal lake at sunset"
}'
Interactive API Tester
Pricing & Credits
Cost Per Image
$0.30 USD
30 credits per successful generation
Billing Policy
Success: Charged 30 credits
Failed: No charge
Only pay for successful generations
API Reference
POST /fal
Generate images from text prompts 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/bytedance/seedream/v4.5/text-to-image". |
| 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