> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Oxylabs LLM (Push-Pull async) submit

> Submit a ChatGPT, Gemini, or Perplexity answer-engine query to Oxylabs and get back the AI answer plus cited sources, as a background job.

Submit an asynchronous query to a major LLM answer engine — ChatGPT, Gemini, or Perplexity — via Oxylabs Push-Pull. Pick the engine with `source`, send the `prompt` (required), and a unique `Idempotency-Key` header (required). These sources take \~40–90s, so they run as background jobs. Submitting returns HTTP 202 and a job envelope — `id`, `object`, `endpoint`, `status`, `createdAt`, `completedAt`, `pricing`, `output`, `error` — with `output` still null. Poll [`get_oxylabs_llm_job`](https://aisa.one/docs/api-reference/search/get_oxylabs-llm-job) until terminal; `output` then carries `results[]` with the parsed answer text and cited sources. Billed at a flat rate per successful job — `pricing.billingMode` is `fixed_request`. A still-queued job can be cancelled with `POST /oxylabs/llm/{jobId}/cancel`, which releases the hold; failed and cancelled jobs are never billed. Send a fresh `Idempotency-Key` per distinct query.

> [!NOTE]
>
> For the **Google** sources — Google AI Overviews (`google_search`) and Google AI Mode (`google_ai_mode`) — use the synchronous [`post_oxylabs_ai_search`](https://aisa.one/docs/api-reference/oxylabs/post_oxylabs_ai_search) endpoint instead; they return in \~4–8s in the same response.

> [!NOTE]
>
> **First time?** Point any MCP client at `https://mcp.aisa.one/mcp` — Claude
> Code, Codex, Cursor, VS Code and the rest. Authorization is OAuth: the client
> opens a browser, you click Allow once, and there is no key to paste. Your
> agent then reaches every endpoint through a few meta tools: `search`,
> `list_categories`, `get_details` and `batch_quote` are free, `batch_use` is
> billed per call. Setup per client is in
> [Connect via MCP](https://aisa.one/docs/agent-quickstart.md); the live tool list and what each call
> costs are on [aisa.one/mcp](https://aisa.one/mcp#connect).

[Set this endpoint up in your agent →](https://aisa.one/mcp?from=/api-reference/search/post_oxylabs-llm)

## Request contract

* **Method and path:** POST /apis/v1/oxylabs/llm
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/oxylabs/llm`
* **Idempotency-Key:** header; required
* **X-AISA-Max-Price-USD:** header; optional
* **X-AISA-Cost-Mode:** header; optional

[Complete OpenAPI definition](https://aisa.one/docs/openapi/oxylabs-llm-async.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "post_oxylabs_llm",
  "method": "POST",
  "path": "/apis/v1/oxylabs/llm",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "description": "Trimmed UTF-8 length must be 1 through 191 bytes.",
      "in": "header",
      "name": "Idempotency-Key",
      "required": true,
      "schema": {
        "pattern": "\\S",
        "type": "string"
      }
    },
    {
      "description": "Optional maximum customer authorization in USD, validated by the runtime price parser.",
      "in": "header",
      "name": "X-AISA-Max-Price-USD",
      "schema": {
        "type": "string"
      }
    },
    {
      "description": "Return a read-only cost quote instead of submitting a job.",
      "in": "header",
      "name": "X-AISA-Cost-Mode",
      "schema": {
        "enum": [
          "quote"
        ],
        "type": "string"
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "example": {
          "prompt": "What is the capital of France?",
          "source": "chatgpt"
        },
        "schema": {
          "additionalProperties": false,
          "properties": {
            "context": {},
            "geo_location": {
              "type": [
                "string",
                "null"
              ]
            },
            "locale": {
              "type": [
                "string",
                "null"
              ]
            },
            "parse": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "prompt": {
              "description": "Non-empty after trimming. The trimmed UTF-8 byte limit is selected by source; this is a byte limit, not a JSON Schema character limit.",
              "pattern": "\\S",
              "type": "string",
              "x-aisa-max-trimmed-utf8-bytes-by-source": {
                "chatgpt": 4000,
                "gemini": 8000,
                "perplexity": 8000
              }
            },
            "render": {
              "type": [
                "string",
                "null"
              ]
            },
            "source": {
              "description": "Supported LLM source; surrounding whitespace is accepted by the runtime validator.",
              "pattern": "^\\s*(chatgpt|gemini|perplexity)\\s*$",
              "type": "string"
            },
            "user_agent_type": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "source",
            "prompt"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Published reference price: \$0.00145 USD per completed job. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/oxylabs-llm-async.json POST /apis/v1/oxylabs/llm
openapi: 3.1.0
info:
  description: ''
  title: Oxylabs Web Scraper — Push-Pull async (LLM sources)
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    oxylabs-llm-async:
      description: ''
      title: Oxylabs Web Scraper — Push-Pull async (LLM sources)
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: df77e123e16d48685eba9e2f027571414007ba33f75e01e9650d1abec4d11004
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/oxylabs/llm
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:6b8613ac2462962dad5d8a2baec7ffb17e973e9574d63665e4ecdbec5610d9f7
    facts_hash: df77e123e16d48685eba9e2f027571414007ba33f75e01e9650d1abec4d11004
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: oxylabs-llm-async
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/oxylabs/llm:
    post:
      summary: Oxylabs LLM (Push-Pull async) submit
      description: >-
        Owner-scoped local asynchronous job lifecycle. Disabling new admission
        does not disable existing job reads or cancellation. Runtime
        availability and access policy also apply.
      operationId: post_oxylabs_llm
      parameters:
        - description: Trimmed UTF-8 length must be 1 through 191 bytes.
          in: header
          name: Idempotency-Key
          required: true
          schema:
            pattern: \S
            type: string
        - description: >-
            Optional maximum customer authorization in USD, validated by the
            runtime price parser.
          in: header
          name: X-AISA-Max-Price-USD
          schema:
            type: string
        - description: Return a read-only cost quote instead of submitting a job.
          in: header
          name: X-AISA-Cost-Mode
          schema:
            enum:
              - quote
            type: string
      requestBody:
        content:
          application/json:
            example:
              prompt: What is the capital of France?
              source: chatgpt
            schema:
              additionalProperties: false
              properties:
                context: {}
                geo_location:
                  type:
                    - string
                    - 'null'
                locale:
                  type:
                    - string
                    - 'null'
                parse:
                  type:
                    - boolean
                    - 'null'
                prompt:
                  description: >-
                    Non-empty after trimming. The trimmed UTF-8 byte limit is
                    selected by source; this is a byte limit, not a JSON Schema
                    character limit.
                  pattern: \S
                  type: string
                  x-aisa-max-trimmed-utf8-bytes-by-source:
                    chatgpt: 4000
                    gemini: 8000
                    perplexity: 8000
                render:
                  type:
                    - string
                    - 'null'
                source:
                  description: >-
                    Supported LLM source; surrounding whitespace is accepted by
                    the runtime validator.
                  pattern: ^\s*(chatgpt|gemini|perplexity)\s*$
                  type: string
                user_agent_type:
                  type:
                    - string
                    - 'null'
              required:
                - source
                - prompt
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  currency:
                    type:
                      - string
                      - 'null'
                  estimate_kind:
                    type:
                      - string
                      - 'null'
                  estimated_at:
                    format: date-time
                    type:
                      - string
                      - 'null'
                  estimated_cost_micros_usd:
                    type:
                      - integer
                      - 'null'
                  max_cost_micros_usd:
                    type:
                      - integer
                      - 'null'
                  may_exceed_estimate:
                    type:
                      - boolean
                      - 'null'
                  metadata:
                    additionalProperties: {}
                    type:
                      - object
                      - 'null'
                  object:
                    type:
                      - string
                      - 'null'
                  pricing_version:
                    type:
                      - string
                      - 'null'
                required:
                  - currency
                  - estimate_kind
                  - estimated_at
                  - estimated_cost_micros_usd
                  - may_exceed_estimate
                  - object
                type: object
          description: >-
            Read-only cost quote when X-AISA-Cost-Mode is quote; no job is
            created.
        '202':
          content:
            application/json:
              schema:
                properties:
                  completedAt:
                    format: date-time
                    type:
                      - string
                      - 'null'
                  createdAt:
                    format: date-time
                    type:
                      - string
                      - 'null'
                  endpoint:
                    type:
                      - string
                      - 'null'
                  error:
                    properties:
                      code:
                        type:
                          - string
                          - 'null'
                      message:
                        type:
                          - string
                          - 'null'
                    type:
                      - object
                      - 'null'
                  id:
                    type:
                      - string
                      - 'null'
                  object:
                    const: integration_async_job
                    type: string
                  output: {}
                  outputExpired:
                    type:
                      - boolean
                      - 'null'
                  pricing:
                    properties:
                      authorizedMicrosUSD:
                        type:
                          - integer
                          - 'null'
                      billingMode:
                        type:
                          - string
                          - 'null'
                      currency:
                        type:
                          - string
                          - 'null'
                      finalMicrosUSD:
                        type:
                          - integer
                          - 'null'
                    type:
                      - object
                      - 'null'
                  status:
                    enum:
                      - queued
                      - running
                      - completed
                      - failed
                      - cancelled
                    type: string
                required:
                  - completedAt
                  - createdAt
                  - endpoint
                  - error
                  - id
                  - object
                  - output
                  - pricing
                  - status
                type: object
          description: Success
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.