> For the complete documentation index, see [llms.txt](https://docs.eyepop.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eyepop.ai/sdks/python/data-endpoint.md). Agents can also search and read this documentation through its [MCP server](https://docs.eyepop.ai/~gitbook/mcp).

# Data Endpoint

Datasets, VLM inference, and batch evaluation

The Data API manages datasets and runs VLM inference and evaluation over them.

```python
import asyncio
from eyepop import EyePopSdk

async def main():
    async with EyePopSdk.async_data() as endpoint:
        datasets = await endpoint.list_datasets()
        print(datasets)

asyncio.run(main())
```

Some Data API calls need an account: set `EYEPOP_ACCOUNT_UUID`. See [Configuration](https://docs.eyepop.ai/sdks/python/configuration.md).

{% hint style="warning" %}
`infer_asset` and `evaluate_dataset` are marked experimental in the SDK and may change.
{% endhint %}

### VLM inference on one asset

```python
import asyncio

from eyepop.data.data_types import InferRequest, TranscodeMode

async def main():
    async with EyePopSdk.async_data() as endpoint:
        job = await endpoint.infer_asset(
            asset_uuid="your-asset-uuid",
            infer_request=InferRequest(text_prompt="Describe this image."),
            transcode_mode=TranscodeMode.image_cover_1024,
        )
        while result := await job.predict():
            print(result)

asyncio.run(main())
```

### Batch dataset evaluation

```python
import asyncio

from eyepop.data.data_types import EvaluateRequest, InferRequest

request = EvaluateRequest(
    dataset_uuid="your-dataset-uuid",
    infer=InferRequest(text_prompt="How many people are in this image?"),
)

async def main():
    async with EyePopSdk.async_data(job_queue_length=4) as endpoint:
        job = await endpoint.evaluate_dataset(evaluate_request=request)
        response = await job.response
        print(response.model_dump_json(indent=2))

asyncio.run(main())
```

### Next steps

* [Composable Pops](https://docs.eyepop.ai/sdks/python/composable-pops.md) — chain models into an inference pipeline for the worker endpoint
* [Running Inference](https://docs.eyepop.ai/sdks/python/inference.md) — process media directly instead


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.eyepop.ai/sdks/python/data-endpoint.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
