Submit an asynchronous LLM answer-engine query (ChatGPT / Gemini / Perplexity).
post_oxylabs_llmSubmit 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 until terminal; output then carries results[] with the parsed answer text and cited sources. Billed a flat $0.00145 per successful job — pricing.billingMode is fixed_request. A queued job can be cancelled with POST /oxylabs/llm/{jobId}/cancel, which releases the hold; failed and cancelled jobs are never billed. Google sources (google_search, google_ai_mode) are synchronous and stay on post_oxylabs_ai_search. Send a fresh Idempotency-Key per distinct query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parse | No | Return structured, parsed results instead of raw output. Recommended. | |
| locale | No | Optional locale for the query, e.g. "en-US". | |
| prompt | Yes | The natural-language prompt. Max length per source: chatgpt 4000, gemini 8000, perplexity 8000 characters. | |
| render | No | Optional rendering mode passed through to Oxylabs. | |
| source | Yes | The LLM answer engine to query. | |
| context | No | Optional source-specific context object passed through to Oxylabs. | |
| geo_location | No | Country-level geo-location for the query, e.g. "United States". | |
| Idempotency-Key | Yes | Unique key (1 to 191 characters) that makes the submit idempotent. Re-submitting with the same key and request fingerprint returns the original job. | |
| user_agent_type | No | Optional Oxylabs user-agent type. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||