# Seedream 5.0 Pro · Images API

Group #186「【Seedream 生图】Seedream 5.0 Pro · 按量」, model seedream-5-pro, OpenAI Images format: POST https://yyds.seqnode.com/v1/images/generations; the response links to our image domain.

## Price

| size | Output | Tokens | Per image |
|---|---|---|---|
| omit size (default 1.5K) | 1536 × 1536 | ≈ 76,500 | ≈ $0.23 |
| "2K" | 2048 × 2048 | ≈ 153,000 | ≈ $0.46 |

## Parameters

| Field | Required | Notes |
|---|---|---|
| model | required | seedream-5-pro |
| prompt | required | Image description |
| size | optional | Omit for 1.5K; "2K" gives 2048 × 2048. Higher resolution uses more tokens |
| n | optional | Must be 1: one image per request |

## Examples

```bash
curl --fail-with-body 'https://yyds.seqnode.com/v1/images/generations' \
  -H 'Authorization: Bearer YOUR_GROUP_186_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "seedream-5-pro",
  "prompt": "A rainy alley in a water town, wet stone path reflecting light, ink-wash style",
  "size": "2K",
  "n": 1
}'
```

```python
import requests

r = requests.post("https://yyds.seqnode.com/v1/images/generations",
    headers={"Authorization": "Bearer YOUR_GROUP_186_API_KEY"},
    json={"model": "seedream-5-pro", "prompt": "A rainy alley in a water town, ink-wash style", "size": "2K", "n": 1},
    timeout=300)
r.raise_for_status()
url = r.json()["data"][0]["url"]
open("seedream.png", "wb").write(requests.get(url, timeout=120).content)   # links expire after about 1 hour
print(url)
```

