seedream-5-5-261028, switch to response_format: "b64_json" when downloads of the returned URL are slow or time out
url is a direct provider link (official relay): the image is stored in BytePlus ap-southeast-1 temporary storage and the client downloads it directly, not through the APIYI gateway. Mainland China servers downloading these Singapore-hosted links can be very slow, or time out mid-download.
With b64_json, the image bytes return with the API response through the APIYI gateway, whose path is accelerated for this transfer. The trade-off is a base64 body of about 2 MB (roughly a third larger than the original); set the timeout to cover generation plus transfer, and decode the string on the client.
Documented on the Seedream overview and in the Playground parameter notes on Text-to-Image and Image Editing.
← Back to Live Updates · 📚 Monthly archive