> For the complete documentation index, see [llms.txt](https://docs.degirum.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.degirum.com/axelera/basics/first-inference.md).

# First inference

*Estimated read time: 1 minute*

## Run this first

Don’t worry about the details yet. Just run this to see something work—we’ll explain what it does after.

{% code overflow="wrap" %}

```python
# Quick start: one image → inference → overlay
from degirum_tools import ModelSpec, remote_assets, Display

model_spec = ModelSpec(
    model_name="yolov8n_coco--640x640_quant_axelera_metis_1",
    zoo_url="degirum/axelera",
    inference_host_address="@local",
    model_properties={"device_type": ["AXELERA/METIS"]},
)
model = model_spec.load_model()

img = remote_assets.three_persons
res = model(img)

with Display("AI Camera") as output_display:
    output_display.show_image(res.image_overlay)
```

{% endcode %}

You should see an image with object detections overlayed:

<figure><img src="/files/bDesbhWxtgtuJGsnccot" alt="Three people at a crosswalk labeled person."><figcaption><p>Three people at a crosswalk labeled person.</p></figcaption></figure>

## What just happened

* You specified a model (name and source)
* Loaded it into an inference runtime
* Ran inference on a test image
* Displayed the output using `image_overlay`


---

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

```
GET https://docs.degirum.com/axelera/basics/first-inference.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.
