> 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/readme.md). Agents can also search and read this documentation through its [MCP server](https://docs.eyepop.ai/~gitbook/mcp).

# Quickstart

Get your first EyePop.ai inference running in minutes

The shortest path from zero to a structured prediction. Pick Python, Node, the CLI or plain HTTP with curl, install, run.

### 1. Sign up and pick your plan

[Sign up for an account](https://dashboard.eyepop.ai/auth/sign-up) and choose a plan. You will need an active plan before you can run anything.

### 2. Get an API key

Create one in the [dashboard](https://dashboard.eyepop.ai) under **API Keys** (details in [API Keys](https://docs.eyepop.ai/api-keys.md)), then put it in your environment:

```bash
export EYEPOP_API_KEY=eyp_...
```

### 3. Install

{% tabs %}
{% tab title="Python" %}

```bash
pip install eyepop
```

{% endtab %}

{% tab title="Node" %}

```bash
npm install --save @eyepop.ai/eyepop
```

{% endtab %}

{% tab title="CLI" %}

```bash
# macOS and Linux, with Homebrew
brew tap eyepop-ai/eyepop
brew trust eyepop-ai/eyepop
brew install eyepop

# Or, without Homebrew, on Linux and macOS:
curl -fsSL https://raw.githubusercontent.com/eyepop-ai/homebrew-eyepop/main/install.sh | sh
```

Full install options are in the [CLI](https://docs.eyepop.ai/cli.md) documentation.
{% endtab %}

{% tab title="curl" %}
Nothing to install beyond `curl` and [`jq`](https://jqlang.org/download/), which the next step uses to read the answer.
{% endtab %}
{% endtabs %}

### 4. Run your first inference

{% tabs %}
{% tab title="Python" %}

```python
from eyepop import EyePopSdk
from eyepop.worker.worker_types import InferenceComponent, Pop

pop = Pop(components=[
    InferenceComponent(ability="eyepop.person:latest")
])

with EyePopSdk.sync_worker(pop=pop) as endpoint:
    result = endpoint.upload("image.jpg").predict()
    print(result)
```

{% endtab %}

{% tab title="Node" %}

```typescript
import { EyePop, PopComponentType } from '@eyepop.ai/eyepop'

async function main() {
    const endpoint = await EyePop.workerEndpoint({
        pop: {
            components: [
                {
                    type: PopComponentType.INFERENCE,
                    ability: 'eyepop.person:latest',
                },
            ],
        },
    }).connect()

    try {
        const results = await endpoint.process({ source: { path: 'image.jpg' } })
        for await (const result of results) {
            console.log(result)
        }
    } finally {
        await endpoint.disconnect()
    }
}

main().catch(console.error)
```

{% endtab %}

{% tab title="CLI" %}

```bash
eyepop run --model eyepop.person:latest --media-path image.jpg
```

The CLI uses `EYEPOP_API_KEY` from step 2; `eyepop auth login` signs in with your account instead. Everything on `run` is a flag: the target with `--model`, `--pop` or `--session`, and the media with `--media-path`, a file, a folder or a url. The [CLI](https://docs.eyepop.ai/cli.md) documentation covers the rest.
{% endtab %}

{% tab title="curl" %}
Start a session that runs the pop, then send it the image:

```bash
curl -s -X POST "https://compute.eyepop.ai/v1/sessions?wait=true&transient=true" \
  -H "Authorization: Bearer $EYEPOP_API_KEY" -H "Content-Type: application/json" \
  -d '{"pop": {"components": [{"type": "inference", "ability": "eyepop.person:latest"}]}}' \
  > session.json

SESSION=$(jq -r '.[0].session_endpoint' session.json)
PIPELINE=$(jq -r '.[0].pipelines[0].pipeline_id' session.json)
TOKEN=$(jq -r '.[0].access_token' session.json)

curl -s -X POST "$SESSION/pipelines/$PIPELINE/source?mode=queue&processing=sync" \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: image/jpeg" \
  --data-binary @image.jpg
```

The first call waits until the session is ready, which takes a few seconds, and answers with the session's address, its pipeline and a token for it. Send as many images as you like to the same pipeline; the session ends by itself a few minutes after the last one, or at once with `curl -X DELETE "$(jq -r '.[0].status_url' session.json)" -H "Authorization: Bearer $TOKEN"`.
{% endtab %}
{% endtabs %}

### What you get back

Structured JSON — one prediction per image (or per frame for video):

```json
{
  "source_width": 1920,
  "source_height": 1080,
  "objects": [
    { "classLabel": "person", "confidence": 0.95, "x": 100, "y": 50, "width": 80, "height": 200 }
  ]
}
```

### Using an agent harness?

Install the [eyepop skill](https://docs.eyepop.ai/agent-skills.md), then give your agent this prompt and it takes over from here:

```bash
npx skills add eyepop-ai/eyepop-skills
```

> Use your eyepop skill to install the eyepop cli on this system and walk the user through their first inference

[View on GitHub](https://github.com/eyepop-ai/eyepop-skills)

### Next steps

* [Python SDK](https://docs.eyepop.ai/sdks/python.md) and [Node SDK](https://docs.eyepop.ai/sdks/node.md) — video, streaming, and visualization guides
* [CLI](https://docs.eyepop.ai/cli.md) — install, authenticate, run inference, and manage resources
* [Pops](https://docs.eyepop.ai/platform/pop.md) — what you just ran, and how to chain abilities into a pipeline (detect → crop → OCR)
* [Abilities](https://docs.eyepop.ai/platform/abilities.md) — the catalog of vision tasks you can run
* [Agent Skills](https://docs.eyepop.ai/agent-skills.md) — give your coding agent the CLI and both SDKs


---

# 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/readme.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.
