---
title: "POST /ai/advice"
method: POST
path: "/ai/advice"
tags: ["ai"]
---

# POST /ai/advice

`POST /ai/advice`

Get a recommendation from the AI.

## Request body

- object
  - `messages` object[], required — Messages to send for completion generation
    - `role` 'assistant' | 'user', required
    - `content` string, required
  - `model` 'gpt-35-turbo' | 'gpt-4' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1-mini' | 'gpt-5.1' — The model to use for completion generation
  - `temperature` number — The temperature of the generated completions

## Response `200`

Answer from the AI.

- object
  - `choices` string[], required
  - `creditsCost` integer, required

---

[API](https://skmtc.dev/phantombuster/apis/phantombuster-api-v2.md) · [All operations](https://skmtc.dev/phantombuster/apis/phantombuster-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/phantombuster/phantombuster-api-v2/revisions/acf0049d7c7f/schema)
