Skip to main content
GET
cURL
ChatGPT endpoints require a paid plan (Starter or higher). Without one, this endpoint returns 402 plan_upgrade_required. See Pricing for details.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

prompt
string
required

The prompt sent to ChatGPT

Required string length: 1 - 4000

Activate ChatGPT's web search functionality for this prompt

geo
string

Country to use when submitting the prompt

Required string length: 2 - 64

Response

Structured ChatGPT response.

provider
enum<string>
required
Available options:
chatgpt
request_id
string
required
prompt
string
required
model
string | null
required
response_text
string | null
required
markdown_text
string | null
required
search_queries
string[]
required
citations
object[]
required