# Headless Usage

Bu bölüm, AugeLab Studio'yu masaüstü UI'sı olmadan, public API sınıfı `studio.StudioScenario` üzerinden nasıl çalıştıracağınızı açıklar.

Headless API, özellikle GPU olmayan sunucularda masaüstü UI'a kıyasla büyük performans artışları sağlar. Ayrıca diğer Python uygulama/servislerine kolay entegrasyon imkanı sunar. { % endhint %}

***

## Flows to Code

Görsel olarak programladığınız senaryolar (`.pmod` dosyaları), Python kodu ile arayüzsüz şekilde çalıştırılabilir:

<figure><img src="/files/TfigmBtunnR4Vl1BhD1d" alt="Flows to Code" width="400"><figcaption><p>Akıştan Koda</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()
```

Kaydedilmiş .pmod dosyalarını Python scriptleri ile çalıştırmanın sağladığı bazı avantajlar:

* Kendi panellerinizi ve kullanıcı arayüzlerinizi (UIs) oluşturma
* Senaryoları daha büyük uygulamalara entegre etme
* AugeLab runtime içindeki günlükleme (logging) sistemine bağlanma
* Senaryoları Docker konteynerlerinde (CPU/CUDA) çalıştırma
* Birden çok girdiyi toplu işleme (batch processing)
* Çalıştırmaları otomatikleştirme ve zamanlama (scheduling)

ve daha fazlası!


---

# 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/turkish/one-cikan-ozellikler/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.
