> 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/platform/abilities/user-defined-vlm-tasks/free-form-prompt.md). Agents can also search and read this documentation through its [MCP server](https://docs.eyepop.ai/~gitbook/mcp).

# Free-form prompt

Ask a vision-language ability in your own words and get its answer as text

The model answers your prompt in its own words, and the answer comes back as text. The example runs on a street photo, 810 x 1080, of a blue electric minibus with four people walking past it. The output was captured from production.

Create an ability that counts people:

```bash
eyepop create ability --name <your-namespace>.describe.count-people \
  --prompt "How many people are in the image? Answer with a single number." \
  --new-group --publish
```

It runs on `qwen3`, the default model. To ask `gemini_4_argon` or `gpt_6_astra` instead, create it with the Python or Node SDK and set `model`; see [Choosing a model](https://docs.eyepop.ai/platform/abilities/user-defined-vlm-tasks.md#choosing-a-model).

Then run it in a Pop:

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

```json
{
  "components": [
    { "type": "inference", "ability": "<your-namespace>.describe.count-people:latest" }
  ]
}
```

{% endtab %}

{% tab title="Python" %}

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

pop = Pop(components=[
    InferenceComponent(ability="<your-namespace>.describe.count-people:latest"),
])

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

for text in result.get("texts", []):
    print(text["text"])
```

{% endtab %}

{% tab title="Node" %}

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

const endpoint = await EyePop.workerEndpoint({
    pop: {
        components: [
            {
                type: PopComponentType.INFERENCE,
                ability: '<your-namespace>.describe.count-people:latest',
            },
        ],
    },
}).connect()

try {
    const results = await endpoint.process({ source: { path: 'street.jpg' } })
    for await (const result of results) {
        for (const text of result.texts ?? []) {
            console.log(text.text)
        }
    }
} finally {
    await endpoint.disconnect()
}
```

{% endtab %}
{% endtabs %}

```
4
```

The prediction carries the answer in `texts`:

```json
"texts": [{ "text": "4" }]
```

<figure><img src="https://1072321683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDoCvfjveqiJFmk0cnXCp%2Fuploads%2Fgit-blob-bceada1fddb156c7099edee15228dfa5e98590bf%2Fabilities-free-form.jpg?alt=media" alt="The street photo with the answer below it: texts, 4" width="400"><figcaption><p>The answer to "How many people are in the image?" is the text <code>4</code>.</p></figcaption></figure>

Say in the prompt what form the answer should take — here, a single number. Without it, the answer may be a sentence your code has to parse.

### Next steps

* [User defined VLM tasks](https://docs.eyepop.ai/platform/abilities/user-defined-vlm-tasks.md) — the three ways to ask, and the fields of an ability
* [Free-form prompt with a response schema](https://docs.eyepop.ai/platform/abilities/user-defined-vlm-tasks/response-schema.md) — the same, with a typed JSON answer

Questions about building a Pop? Reach us at <help@eyepop.ai>.


---

# 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/platform/abilities/user-defined-vlm-tasks/free-form-prompt.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.
