← Back to Massive Web
GET/ai

AI Completion

Retrieve an LLM completion. Supports ChatGPT, Gemini, Perplexity, and Copilot with geotargeting.

Massive Web·$0.0625 per call

Example code

// Using @orth/sdk - The simplest way to call APIs // Install: npm install @orth/sdk import Orthogonal from "@orth/sdk"; const orthogonal = new Orthogonal({ apiKey: process.env.ORTHOGONAL_API_KEY, }); const output = await orthogonal.run({ api: "joinmassive", path: "/ai", query: { "prompt": "example" } }); console.log(output);

Query parameters

promptrequired
string

Question or instruction (max 2047 chars)

model
string

AI model: chatgpt, gemini, perplexity, copilot

device
string

Device name to emulate

country
string

Two-letter ISO country code

subdivision
string

Subdivision code

city
string

City name

language
string

Language name or ISO code (planned)

format
string

Output format: json or rendered

expiration
integer

Cache expiration in days (0 disables)

callback
string

Encoded callback URL or SQS queue URL/ARN for async notification

mode
string

sync or async mode

    Orthogonal - Giving AI agents the tools they need.