> For the complete documentation index, see [llms.txt](https://saptiva.gitbook.io/saptiva-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://saptiva.gitbook.io/saptiva-docs/basicos/markdown.md).

# Códigos de Error

Esta guía incluye una descripción general de los errores a los que te puedes enfrentar al usar nuestra **Saptiva API**.

| Código                                                                                                                   | Descripción                                                                                                                                                                                                                                                                                                                     |
| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <mark style="color:red;">404 - Modelo no disponible</mark>                                                               | <p><strong>Causa:</strong> El modelo seleccionado no está disponible.   </p><p>   </p><p><strong>Solución:</strong> Elije un <a href="/pages/cEHgDv7NGBquDGHeLyQ4">modelo dentro de los disponibles</a>.</p>                                                                                                                    |
| <mark style="color:red;">402 - Créditos insuficientes</mark>                                                             | <p><strong>Causa:</strong> Te has quedado sin créditos.</p><p> </p><p><strong>Solución:</strong> <a href="/pages/DSQqnsAqJPnIRyPgQJ1S">Adquiere más créditos</a> o aprende a aumentar tu límite.</p>                                                                                                                            |
| <mark style="color:red;">400 - Error al crear mensaje</mark>                                                             | <p><strong>Causa:</strong> No pudimos procesar tu petición.</p><p></p><p><strong>Solución:</strong> Intenta de nuevo, comuníquese con el soporte si el problema persiste.</p>                                                                                                                                                   |
| <mark style="color:red;">422 - Parámetros proporcionados no válidos</mark>                                               | <p><strong>Causa:</strong> Algún parámetro obligatorio no fue proporcionado.</p><p></p><p><strong>Solución:</strong> <a href="/pages/brJhAEC962N3vzGEE0pK">Comprueba parámetros </a>y formato de la solicitud.</p>                                                                                                              |
| <mark style="color:red;">401 - Autenticación inválida</mark>                                                             | <p><strong>Causa:</strong>  No pudimos autenticar tu petición.</p><p></p><p><strong>Solución:</strong> Asegúrese de que se utilicen la <a href="https://lab.saptiva.com/lab/api-keys">API Key</a> solicitante correcta.</p>                                                                                                     |
| <mark style="color:red;">408 - Tiempo de espera superado para procesar la solicitud</mark>                               | <p><strong>Causa:</strong> Superaste el tiempo de espera para la solicitud.</p><p></p><p><strong>Solución:</strong> Intenta de nuevo o simplifica tu prompt.</p>                                                                                                                                                                |
| <mark style="color:red;">422 - Campos vacíos</mark>                                                                      | <p><strong>Causa:</strong> La solicitud que hiciste tiene parámetros vacíos no permitidos.</p><p></p><p><strong>Solución:</strong> Asegúrese de llenar los campos obligatorios para la API.</p>                                                                                                                                 |
| <mark style="color:red;">429 - Has excedido el límite de «N» solicitudes/tokens/imágenes enviadas por minuto/día.</mark> | <p><strong>Causa:</strong> Superaste el <a href="/pages/FsKGdF4GbN8rZTqmf2y8">límite de inferencias</a> para tu plan.</p><p></p><p><strong>Solución:</strong> Espera hasta que el bloqueo se cancele o dirígete a <a href="/pages/DSQqnsAqJPnIRyPgQJ1S">Formas de Pago</a> para más información sobre cómo mejorar tu plan.</p> |
| <mark style="color:red;">500 - Error en la generación de respuesta del modelo</mark>                                     | <p><strong>Causa:</strong>  Hubo un problema al procesar tu respuesta.</p><p></p><p><strong>Solución:</strong> Intenta de nuevo, comuníquese con el soporte si el problema persiste.</p>                                                                                                                                        |
| <mark style="color:red;">500 - Error al crear respuesta</mark>                                                           | <p><strong>Causa:</strong> No pudimos procesar tu petición.</p><p></p><p><strong>Solución:</strong> Intenta de nuevo, comuníquese con el soporte si el problema persiste.</p>                                                                                                                                                   |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://saptiva.gitbook.io/saptiva-docs/basicos/markdown.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
