# Uso sin interfaz (Headless)

Esta sección cubre la ejecución de AugeLab Studio **sin la interfaz de escritorio** a través de la clase pública de la API `studio.StudioScenario`.

{% hint style="info" %}
Headless API ofrece grandes mejoras de rendimiento en comparación con la interfaz de escritorio, especialmente al ejecutarse en servidores sin GPUs. También permite una integración sencilla en otras aplicaciones/servicios Python.
{% endhint %}

***

## Flujos a Código

Tus escenarios programados visualmente (archivos `.pmod`) pueden ejecutarse en modo headless mediante código Python:

<figure><img src="/files/E6rMMdWlL2xIZlNLhicc" alt="Flows to Code" width="400"><figcaption><p>Flujos a Código</p></figcaption></figure>

```python
from studio import StudioScenario
scenario = StudioScenario(verification_code="YOUR_CODE_HERE")
scenario.load_scenario("your_scenario.pmod")

while True:
    try:
        scenario.run()
    except KeyboardInterrupt:
        break
scenario.cleanup()
```

Ejecutar los archivos .pmod guardados con scripts Python te brinda varios beneficios:

* Implementar tus propios dashboards e interfaces de usuario
* Integrar escenarios en aplicaciones más grandes
* Conectar con el sistema de logging en el runtime de AugeLab
* Ejecutar escenarios en contenedores Docker (CPU/CUDA)
* Procesamiento por lotes de múltiples entradas
* Automatizar ejecuciones y programación

¡y muchos más!


---

# Agent Instructions: 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:

```
GET https://docs.augelab.com/spanish/caracteristicas-clave/headless.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
