Dola-Seedream-5.0-pro
Dola-Seedream-5.0-pro is available on LLM API.
Pricing
Served by BytePlus, the only provider.
| Output | $0.003 | per 1M tokens |
|---|
Specifications
- ModesGenerate, Edit
- Output formatsPNG, JPEG
- Input imagesUp to 10, 30 MB each
- Sizes23 sizes
- 1024×1024
- 1152×864
- 864×1152
- 1424×800
- 800×1424
- 1248×832
- 832×1248
- 1568×672
- 1536×1536
- 1792×1344
- 1344×1792
- 2048×1792
- 1152×2048
- 1872×1248
- 1248×1872
- 2352×1008
- 2048×2048
- 2368×1776
- 2816×1584
- 1584×2816
- 2496×1664
- 1664×2496
- 3136×1344
Call Dola-Seedream-5.0-pro
POST /v1/images/generationsSet LLMAPI_KEY to your LLM API key.Generate docs
import base64
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.llmapi.ai/v1",
api_key=os.environ["LLMAPI_KEY"],
)
result = client.images.generate(
model="dola-seedream-5-0-pro-260628",
prompt="A lighthouse at dawn, watercolor",
response_format="b64_json",
)
with open(f"image.{result.output_format}", "wb") as f:
f.write(base64.b64decode(result.data[0].b64_json))import fs from "node:fs";
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.llmapi.ai/v1",
apiKey: process.env.LLMAPI_KEY,
});
const result = await client.images.generate({
model: "dola-seedream-5-0-pro-260628",
prompt: "A lighthouse at dawn, watercolor",
response_format: "b64_json",
});
fs.writeFileSync(`image.${result.output_format}`, Buffer.from(result.data![0].b64_json!, "base64"));curl https://api.llmapi.ai/v1/images/generations \
-H "Authorization: Bearer $LLMAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "dola-seedream-5-0-pro-260628",
"prompt": "A lighthouse at dawn, watercolor",
"response_format": "b64_json"
}'POST /v1/images/editsSet LLMAPI_KEY to your LLM API key.Edit docs
import base64
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.llmapi.ai/v1",
api_key=os.environ["LLMAPI_KEY"],
)
result = client.images.edit(
model="dola-seedream-5-0-pro-260628",
image=open("photo.png", "rb"),
prompt="Replace the sky with a sunset",
response_format="b64_json",
)
with open(f"edited.{result.output_format}", "wb") as f:
f.write(base64.b64decode(result.data[0].b64_json))import fs from "node:fs";
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.llmapi.ai/v1",
apiKey: process.env.LLMAPI_KEY,
});
const result = await client.images.edit({
model: "dola-seedream-5-0-pro-260628",
image: fs.createReadStream("photo.png"),
prompt: "Replace the sky with a sunset",
response_format: "b64_json",
});
fs.writeFileSync(`edited.${result.output_format}`, Buffer.from(result.data![0].b64_json!, "base64"));curl https://api.llmapi.ai/v1/images/edits \
-H "Authorization: Bearer $LLMAPI_KEY" \
-F model="dola-seedream-5-0-pro-260628" \
-F image="@photo.png" \
-F prompt="Replace the sky with a sunset" \
-F response_format="b64_json"