> For the complete documentation index, see [llms.txt](https://developer.parvenu.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.parvenu.io/enrichments/personalize-with-ai/individual-lookup.md).

# Individual Lookup

Generate one personalized snippet from a single prompt. Synchronous, returns the text directly.

<mark style="color:green;">`POST`</mark> `/personalize_with_ai`

{% hint style="info" %}
Costs **0.5 credits** — the same rate a row of [List Lookup](/enrichments/personalize-with-ai/list-lookup.md) costs. Returns the generated text directly in the response, no list and no polling.
{% endhint %}

Pass a complete, self-contained prompt describing the personalization you want. The response contains the generated text in `ai_generated_text`.

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |

**Body**

| Name      | Type   | Description                                            |
| --------- | ------ | ------------------------------------------------------ |
| `api_key` | string | Your API Key.                                          |
| `prompt`  | string | The prompt describing the personalization to generate. |

**Response**

| Field               | Type   | Description                                              |
| ------------------- | ------ | -------------------------------------------------------- |
| `ai_generated_text` | string | The copy the model wrote. `null` when nothing came back. |

This is the same name as the list column the [List Lookup](/enrichments/personalize-with-ai/list-lookup.md) route writes to, so the same field works on both routes.

The record is under `data`. See [Response Format](/getting-started/response-format.md) for the fields every endpoint returns.

**Example**

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

```json
{
  "api_key": "your_api_key",
  "prompt": "Write a one-sentence cold email icebreaker for Sam Altman, CEO of OpenAI."
}
```

{% endtab %}

{% tab title="Output" %}

```json
{
  "status": "success",
  "data": {
    "ai_generated_text": "Sam, as someone building the future of AI, I thought you'd appreciate a quick note from one curious mind to another."
  },
  "credits_used": 0.5,
  "credits_remaining": 4822.5,
  "success": true
}
```

{% endtab %}

{% tab title="Error" %}

```json
{
  "status": "error",
  "error": {
    "code": "validation_error",
    "message": "prompt: Field required"
  },
  "success": false
}
```

{% endtab %}
{% endtabs %}

To personalize every contact in a list in one call instead, use [List Lookup](/enrichments/personalize-with-ai/list-lookup.md).
