> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usegoro.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Seedream 5.0 Pro image

> Generate an original image from a text prompt using ByteDance Seedream 5.0 Pro, or EDIT one image you supply. Send image_handles, image_urls or image_base64 wit

Generate an original image from a text prompt using ByteDance Seedream 5.0 Pro, or EDIT one image you supply. Send image\_handles, image\_urls or image\_base64 with a single reference to restyle or retouch it; send none and it generates from the prompt alone. Editing costs exactly what generating costs. Returns the URL of the generated image. That URL is temporary: Goro holds a run's results for 24 hours and nothing guarantees the file outlives that, so collect what you need within 24 hours.

<Note>Use for controlled, realistic generation with strong portraits, dense information graphics and multilingual text in the image, one step up from image.seedream (the Lite model). quality basic is a 1K image, high is 2K. One reference image only: this model bills extra input images, so a second one is refused rather than quoted wrong.</Note>

## Price

**$0.07 per call at `basic`.** A flat price, and the only thing that changes it is `quality`: `basic` costs **$0.07**, `high` costs **\$0.14**.

Every one of those is exact and known before the call, so the hold and the charge are the same number and there is no ceiling to reconcile. Omit `quality` and you are billed the `basic` price. A call that fails, times out or is stopped releases its hold in full and costs nothing.

## Input

| Field           | Type                                                      | Required | Notes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| --------------- | --------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `prompt`        | `string`                                                  | yes      | What to draw, or what to change. Describe subject, composition, style, lighting and mood; the more specific, the closer the result.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `quality`       | `basic`, `high`                                           |          | Output tier, and the only thing that changes the price: basic is a 1K image at $0.07, high is a 2K image at $0.14. Defaults to `"basic"`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `image_urls`    | `array`                                                   |          | Optional. Public http or https links to the images to edit, combine or use as reference (JPEG, PNG or WEBP, up to 10 MB each, up to 1 of them). Use this when the images are ALREADY published somewhere; the output URL of any image endpoint works directly, which is what makes generate-then-edit a two-call sequence with nothing to upload in between. Nothing is copied or re-hosted, we pass the links on. For files that are not already public, use image\_handles instead and they never have to be published anywhere. Send one of the three, never two.                                                                                                                                                                                                                                                                                                                                                                             |
| `aspect_ratio`  | `1:1`, `4:3`, `3:4`, `16:9`, `9:16`, `2:3`, `3:2`, `21:9` |          | Shape of the output image. Defaults to `"1:1"`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `image_base64`  | `string`                                                  |          | Optional, and only for ONE small image (under 3 MB) when you cannot run a shell command AND cannot ask the user to open a link. The image inline, as base64 of the file's own bytes; a data:image/png;base64, prefix is accepted and its declared type ignored. Only one image can arrive this way, because every inline image shares one request body. Understand the cost before choosing it: on an MCP call the request IS the tool arguments, which pass through the model's context window. A 3 MB photograph is 4 MB of base64, on the order of a million tokens, and in practice it is truncated and the run fails looking like file corruption. Do not downscale an image to fit here: use image\_handles, which takes up to 10 MB per file and keeps them out of the conversation entirely. JPEG, PNG or WEBP, checked against the file's own leading bytes rather than against any type you declare. Send one of the three, never two. |
| `image_handles` | `array`                                                   |          | Optional, and the RIGHT WAY to send local or private images to edit. Upload each file first with POST /v1/uploads (or the create\_upload MCP tool, which also hands back a link a PERSON can open to pick the file on their own device, for when you have no shell) and put the short handles it returns here, in order. The files go straight from you to a private bucket: they never pass through a tool call, so they never pass through a model's context window, and up to 10 MB each is fine. Nothing is published. A handle is usable for 10 minutes after its upload lands and the file is deleted 30 minutes after that. Supplying any image makes this an edit rather than a generation, at exactly the same price. Up to 1 image. Send one of image\_handles, image\_urls and image\_base64, never two.                                                                                                                              |
| `output_format` | `png`, `jpeg`                                             |          | File format of the generated image. Defaults to `"png"`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |

<Note>
  These are all the fields this endpoint accepts. Anything else is rejected as
  a `validation_error` rather than forwarded to the provider.
</Note>

## Example

```bash theme={null}
curl -X POST https://api.usegoro.ai/v1/run \
  -H "Authorization: Bearer $GORO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"image.seedream_pro","input":{"prompt":"A street market in Lisbon at dusk, tiled facades, warm lanterns, documentary photograph."}}'
```

## Response

The full response. Values are illustrative.

```json theme={null}
[
  "https://example.com/goro/generated-image-1.png"
]
```
