# Bytedance

> SeedEdit 3.0 is an image editing model independently developed by ByteDance. It excels in accurately following editing instructions and effectively preserving image content, especially excelling in handling real images


## Overview

- **Endpoint**: `https://fal.run/fal-ai/bytedance/seededit/v3/edit-image`
- **Model ID**: `fal-ai/bytedance/seededit/v3/edit-image`
- **Category**: image-to-image
- **Kind**: inference
**Tags**: image-editing, image-to-image



## Pricing

- **Price**: $0.03 per images

For more details, see [fal.ai pricing](https://fal.ai/pricing).

## API Information

This model can be used via our HTTP API or more conveniently via our client libraries.
See the input and output schema below, as well as the usage examples.


### Input Schema

The API accepts the following input parameters:


- **`prompt`** (`string`, _required_):
  The text prompt used to edit the image
  - Examples: "Make it a realistic, highly detailed  photograph with a winter wonderland background. Then give her a bowler hat."

- **`image_url`** (`string`, _required_):
  URL of the image to be edited.
  - Examples: "https://storage.googleapis.com/falserverless/example_inputs/seededit.jpg"

- **`guidance_scale`** (`float`, _optional_):
  Controls how closely the output image aligns with the input prompt. Higher values mean stronger prompt correlation. Default value: `0.5`
  - Default: `0.5`
  - Range: `0` to `1`

- **`seed`** (`integer`, _optional_):
  Random seed to control the stochasticity of image generation.

- **`enable_safety_checker`** (`boolean`, _optional_):
  If set to true, the safety checker will be enabled. Disabling it requires account authorization; unauthorized requests are always checked. Default value: `true`
  - Default: `true`
  - Examples: true

- **`sync_mode`** (`boolean`, _optional_):
  If `True`, the media will be returned as a data URI and the output data won't be available in the request history.
  - Default: `false`



**Required Parameters Example**:

```json
{
  "prompt": "Make it a realistic, highly detailed  photograph with a winter wonderland background. Then give her a bowler hat.",
  "image_url": "https://storage.googleapis.com/falserverless/example_inputs/seededit.jpg"
}
```

**Full Example**:

```json
{
  "prompt": "Make it a realistic, highly detailed  photograph with a winter wonderland background. Then give her a bowler hat.",
  "image_url": "https://storage.googleapis.com/falserverless/example_inputs/seededit.jpg",
  "guidance_scale": 0.5,
  "enable_safety_checker": true
}
```


### Output Schema

The API returns the following output format:

- **`image`** (`Image`, _required_):
  Generated image
  - Examples: [{"url":"https://storage.googleapis.com/falserverless/example_outputs/seededit_output.png"}]

- **`seed`** (`integer`, _required_):
  Seed used for generation
  - Examples: 42



**Example Response**:

```json
{
  "image": [
    {
      "url": "https://storage.googleapis.com/falserverless/example_outputs/seededit_output.png"
    }
  ],
  "seed": 42
}
```


## Usage Examples

### cURL

```bash
curl --request POST \
  --url https://fal.run/fal-ai/bytedance/seededit/v3/edit-image \
  --header "Authorization: Key $FAL_KEY" \
  --header "Content-Type: application/json" \
  --data '{
     "prompt": "Make it a realistic, highly detailed  photograph with a winter wonderland background. Then give her a bowler hat.",
     "image_url": "https://storage.googleapis.com/falserverless/example_inputs/seededit.jpg"
   }'
```

### Python

Ensure you have the Python client installed:

```bash
pip install fal-client
```

Then use the API client to make requests:

```python
import fal_client

def on_queue_update(update):
    if isinstance(update, fal_client.InProgress):
        for log in update.logs:
           print(log["message"])

result = fal_client.subscribe(
    "fal-ai/bytedance/seededit/v3/edit-image",
    arguments={
        "prompt": "Make it a realistic, highly detailed  photograph with a winter wonderland background. Then give her a bowler hat.",
        "image_url": "https://storage.googleapis.com/falserverless/example_inputs/seededit.jpg"
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)
```

### JavaScript

Ensure you have the JavaScript client installed:

```bash
npm install --save @fal-ai/client
```

Then use the API client to make requests:

```javascript
import { fal } from "@fal-ai/client";

const result = await fal.subscribe("fal-ai/bytedance/seededit/v3/edit-image", {
  input: {
    prompt: "Make it a realistic, highly detailed  photograph with a winter wonderland background. Then give her a bowler hat.",
    image_url: "https://storage.googleapis.com/falserverless/example_inputs/seededit.jpg"
  },
  logs: true,
  onQueueUpdate: (update) => {
    if (update.status === "IN_PROGRESS") {
      update.logs.map((log) => log.message).forEach(console.log);
    }
  },
});
console.log(result.data);
console.log(result.requestId);
```


## Additional Resources

### Documentation

- [Model Playground](https://fal.ai/models/fal-ai/bytedance/seededit/v3/edit-image)
- [API Documentation](https://fal.ai/models/fal-ai/bytedance/seededit/v3/edit-image/api)
- [OpenAPI Schema](https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=fal-ai/bytedance/seededit/v3/edit-image)

### fal.ai Platform

- [Platform Documentation](https://fal.ai/docs/documentation)
- [Python Client](https://fal.ai/docs/api-reference/client-libraries/python)
- [JavaScript Client](https://fal.ai/docs/api-reference/client-libraries/javascript)

### Other agent-readable surfaces

This file covers one model. To find anything else:

- [Platform overview](https://fal.ai/llms.txt): Entry points and representative endpoint IDs
- [Documentation index](https://fal.ai/docs/llms.txt): Every documentation page
- [Full documentation text](https://fal.ai/docs/llms-full.txt): The whole documentation inlined
- Any other model: `https://fal.ai/models/<endpoint-id>/llms.txt`
