ai

POST /ai/completions

Get a completion from the AI.

Request

Request body

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

temperaturenumber

The temperature of the generated completions

shouldBeFreeForPhantombusterScriptAgentboolean

Whether the request should deduct AI credits from the user or not

Response

Answer from the AI.

choicesstring[] required
creditsCostinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.