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

# Midjourney 最佳实践

> Midjourney 输入、重试和任务处理建议

* 图片必须是公开可访问 URL, 单张不超过 12 MiB.
* 先上传图片再提交 `image_urls` 或 `mask_url`, 不要直接提交 base64.
* `MODAL` 状态继续调用 `modal`, 不要当作失败重试.
* 网络错误和 5xx 可以指数退避重试; 参数错误、审核拒绝和缺少父任务不要重试.
* 任务结果 URL 可能过期, 应保存本系统返回的 URL.
* 视频 `batch_size` 为 2 或 4 时, 费用按批量数量计算.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.