Phantombuster AI API

The ai API from Phantombuster — 2 operation(s) for ai.

GitHub OpenAPI

Operations 2

POST /ai/advice Create ai advice #
POST /ai/completions Create ai completions #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/phantombuster:phantombuster-ai-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

phantombuster-ai-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Phantombuster API v2. Swagger api specification is located at https://github.com/phantombuster/public-gists/blob/master/swagger-api-v2.json
  version: 2.0.0
  title: Phantombuster API v2 AI API
  contact:
    email: contact@phantombuster.com
  license:
    name: ISC
    url: https://opensource.org/licenses/ISC
servers:
- description: Phantombuster api
  url: https://api.phantombuster.com/api/v2
- description: SwaggerHub API Auto Mocking
  url: https://virtserver.swaggerhub.com/Phantombuster/Phantombuster-v2/2.0.0
security:
- apiKeyAuth: []
tags:
- name: AI
paths:
  /ai/advice:
    post:
      description: Get a recommendation from the AI.
      tags:
      - AI
      responses:
        '200':
          description: Answer from the AI.
          content:
            application/json:
              schema:
                type: object
                properties:
                  choices:
                    type: array
                    items:
                      type: string
                  creditsCost:
                    type: integer
                additionalProperties: false
                required:
                - choices
                - creditsCost
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                messages:
                  type: array
                  description: Messages to send for completion generation
                  items:
                    type: object
                    properties:
                      role:
                        type: string
                        enum:
                        - assistant
                        - user
                      content:
                        type: string
                    additionalProperties: false
                    required:
                    - role
                    - content
                  minItems: 1
                model:
                  description: The model to use for completion generation
                  type: string
                  enum:
                  - gpt-35-turbo
                  - gpt-4
                  - gpt-4o
                  - gpt-4o-mini
                  - gpt-4.1-mini
                  - gpt-5.1
                temperature:
                  type: number
                  description: The temperature of the generated completions
                  minimum: 0
                  maximum: 2
              additionalProperties: false
              required:
              - messages
      summary: Create ai advice
      x-summary-source: derived
      operationId: postAiAdvice
      x-operation-id-source: derived
  /ai/completions:
    post:
      description: Get a completion from the AI.
      tags:
      - AI
      responses:
        '200':
          description: Answer from the AI.
          content:
            application/json:
              schema:
                type: object
                properties:
                  choices:
                    type: array
                    items:
                      type: string
                  creditsCost:
                    type: integer
                additionalProperties: false
                required:
                - choices
                - creditsCost
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                messages:
                  type: array
                  description: Messages to send for completion generation
                  items:
                    type: object
                    properties:
                      role:
                        type: string
                        enum:
                        - system
                        - assistant
                        - user
                      content:
                        type: string
                    additionalProperties: false
                    required:
                    - role
                    - content
                  minItems: 1
                model:
                  description: The model to use for completion generation
                  type: string
                  enum:
                  - gpt-35-turbo
                  - gpt-4
                  - gpt-4o
                  - gpt-4o-mini
                  - gpt-4.1-mini
                  - gpt-5.1
                temperature:
                  type: number
                  description: The temperature of the generated completions
                  minimum: 0
                  maximum: 2
                responseSchema:
                  type: object
                  description: A JSON schema to describe the expected structured output as JSON
                  properties:
                    type:
                      type: string
                      enum:
                      - object
                    properties:
                      type: object
                    additionalProperties:
                      type: boolean
                    required:
                      type: array
                      items:
                        type: string
                  required:
                  - type
                  - properties
                  - additionalProperties
                  - required
                  additionalProperties: false
                shouldBeFreeForPhantombusterScriptAgent:
                  type: boolean
                  description: Whether the request should deduct AI credits from the user or not
                  default: false
              additionalProperties: false
              required:
              - messages
      summary: Create ai completions
      x-summary-source: derived
      operationId: postAiCompletions
      x-operation-id-source: derived
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-Phantombuster-Key
x-provenance:
  method: searched
  source: https://hub.phantombuster.com/reference
  harvested: '2026-11-15'
  tool: harvest-readme-openapi.py
  note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored.
  assembled_from:
  - https://hub.phantombuster.com/reference/get_agents-fetch-all.md
  - https://hub.phantombuster.com/reference/get_agents-fetch-deleted.md
  - https://hub.phantombuster.com/reference/get_agents-fetch-output.md
  - https://hub.phantombuster.com/reference/get_agents-fetch.md
  - https://hub.phantombuster.com/reference/get_branches-diff.md
  - https://hub.phantombuster.com/reference/get_branches-fetch-all.md
  - https://hub.phantombuster.com/reference/get_brightdata-serp.md
  - https://hub.phantombuster.com/reference/get_buyers-personas-fetch-all.md
  - https://hub.phantombuster.com/reference/get_containers-attach.md
  - https://hub.phantombuster.com/reference/get_containers-fetch-all.md
  - https://hub.phantombuster.com/reference/get_containers-fetch-output.md
  - https://hub.phantombuster.com/reference/get_containers-fetch-result-object.md
  - https://hub.phantombuster.com/reference/get_containers-fetch.md
  - https://hub.phantombuster.com/reference/get_icps-fetch-all.md
  - https://hub.phantombuster.com/reference/get_location-ip.md
  - https://hub.phantombuster.com/reference/get_org-storage-lists-fetch-all.md
  - https://hub.phantombuster.com/reference/get_org-storage-lists-fetch.md
  - https://hub.phantombuster.com/reference/get_orgs-export-agent-usage-1.md
  - https://hub.phantombuster.com/reference/get_orgs-export-container-usage-1.md
  - https://hub.phantombuster.com/reference/get_orgs-fetch-agent-groups.md
  - https://hub.phantombuster.com/reference/get_orgs-fetch-crm-access.md
  - https://hub.phantombuster.com/reference/get_orgs-fetch-crm-resources.md
  - https://hub.phantombuster.com/reference/get_orgs-fetch-resources.md
  - https://hub.phantombuster.com/reference/get_orgs-fetch-running-containers.md
  - https://hub.phantombuster.com/reference/get_orgs-fetch.md
  - https://hub.phantombuster.com/reference/get_scoring-fetch-all.md
  - https://hub.phantombuster.com/reference/get_scoring-fetch-id.md
  - https://hub.phantombuster.com/reference/get_scripts-code.md
  - https://hub.phantombuster.com/reference/get_scripts-fetch-all.md
  - https://hub.phantombuster.com/reference/get_scripts-fetch.md
  - https://hub.phantombuster.com/reference/get_users-fetch-me.md
  - https://hub.phantombuster.com/reference/post_agents-delete.md
  - https://hub.phantombuster.com/reference/post_agents-launch-soon.md
  - https://hub.phantombuster.com/reference/post_agents-launch-sync.md
  - https://hub.phantombuster.com/reference/post_agents-launch.md
  - https://hub.phantombuster.com/reference/post_agents-save.md
  - https://hub.phantombuster.com/reference/post_agents-stop.md
  - https://hub.phantombuster.com/reference/post_agents-unschedule-all.md
  - https://hub.phantombuster.com/reference/post_ai-advice.md
  - https://hub.phantombuster.com/reference/post_ai-completions.md
  - https://hub.phantombuster.com/reference/post_branches-create.md
  - https://hub.phantombuster.com/reference/post_branches-delete.md
  - https://hub.phantombuster.com/reference/post_branches-release.md
  - https://hub.phantombuster.com/reference/post_hcaptcha.md
  - https://hub.phantombuster.com/reference/post_identities-events-save.md
  - https://hub.phantombuster.com/reference/post_identities-generate-token.md
  - https://hub.phantombuster.com/reference/post_identities-save-with-token.md
  - https://hub.phantombuster.com/reference/post_identities-save.md
  - https://hub.phantombuster.com/reference/post_identities-search.md
  - https://hub.phantombuster.com/reference/post_org-storage-companies-objects-save-many.md
  - https://hub.phantombuster.com/reference/post_org-storage-companies-objects-save.md
  - https://hub.phantombuster.com/reference/post_org-storage-companies-objects-search.md
  - https://hub.phantombuster.com/reference/post_org-storage-leads-by-list-listid.md
  - https://hub.phantombuster.com/reference/post_org-storage-leads-delete-many.md
  - https://hub.phantombuster.com/reference/post_org-storage-leads-objects-delete.md
  - https://hub.phantombuster.com/reference/post_org-storage-leads-objects-save-many.md
  - https://hub.phantombuster.com/reference/post_org-storage-leads-objects-save.md
  - https://hub.phantombuster.com/reference/post_org-storage-leads-objects-search.md
  - https://hub.phantombuster.com/reference/post_org-storage-leads-save-many.md
  - https://hub.phantombuster.com/reference/post_org-storage-leads-save.md
  - https://hub.phantombuster.com/reference/post_org-storage-lists-delete.md
  - https://hub.phantombuster.com/reference/post_org-storage-lists-save.md
  - https://hub.phantombuster.com/reference/post_orgs-save-agent-groups.md
  - https://hub.phantombuster.com/reference/post_orgs-save-crm-contact.md
  - https://hub.phantombuster.com/reference/post_orgs-save.md
  - https://hub.phantombuster.com/reference/post_recaptcha.md
  - https://hub.phantombuster.com/reference/post_scripts-access-list.md
  - https://hub.phantombuster.com/reference/post_scripts-delete.md
  - https://hub.phantombuster.com/reference/post_scripts-save.md
  - https://hub.phantombuster.com/reference/post_scripts-visibility.md
  - https://hub.phantombuster.com/reference/post_users-update-me.md
  merge:
    pages: 71
    deduped: 70
    conflicts_kept_first: 0