> This is a page from the ElevenLabs documentation. For a complete page index, fetch https://elevenlabs.io/docs/llms.txt. For the full documentation in a single file, fetch https://elevenlabs.io/docs/llms-full.txt.

# API - 错误代码 422

### value_error：未提供必填值或格式不正确

> 请查看 [https://api.elevenlabs.io/docs#/](https://api.elevenlabs.io/docs#/)，了解所用端点需要哪些参数。请确保参数设置正确。

### cors 错误

> 在 JavaScript 中使用 fetch() 时，如果未对请求正文使用 JSON.stringify()，最常会出现类型为“cors”的 422 错误。如果从前端调用某个 API，也可能出现此错误。

对于任何未成功的 API 响应，请务必检查响应正文，其中包含 JSON 格式的错误详情。