> For the complete documentation index, see [llms.txt](https://docs.eyepop.ai/developer-documentation/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/developer-documentation/quickstart.md). Agents can also search and read this documentation through its [MCP server](https://docs.eyepop.ai/developer-documentation/~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/developer-documentation/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/developer-documentation/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/developer-documentation/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/developer-documentation/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/developer-documentation/sdks/python.md) and [Node SDK](https://docs.eyepop.ai/developer-documentation/sdks/node.md) — video, streaming, and visualization guides
* [CLI](https://docs.eyepop.ai/developer-documentation/cli.md) — install, authenticate, run inference, and manage resources
* [Pops](https://docs.eyepop.ai/developer-documentation/platform/pop.md) — what you just ran, and how to chain abilities into a pipeline (detect → crop → OCR)
* [Abilities](https://docs.eyepop.ai/developer-documentation/platform/abilities.md) — the catalog of vision tasks you can run
* [Agent Skills](https://docs.eyepop.ai/developer-documentation/agent-skills.md) — give your coding agent the CLI and both SDKs
