Quote a job
See the most a job could cost, using the same parameters. No job is created and nothing is held.
Price
- Price
- Free
This endpoint is free, so it does not accept Idempotency-Key or X-Max-Price; sending either returns invalid_params.
Parameters
Send these in the JSON body, not in the URL.
promptsarray of stringsRequired
The questions to ask. 1–100 items, each up to 2,000 characters, no duplicates.
enginesarray of stringsRequired
Platform IDs to collect from, such as chatgpt.web. The website, app and official API of one AI have separate IDs. At least 1 item, no duplicates.
samplesinteger, default 1
How many times to ask each question on each platform. Questions × platforms × runs can be at most 500. Range 1–100.
countrystring
Two-letter country code, such as US. Only countries tested for every selected platform are accepted.
regionstring
A province or city. Only regions tested for every selected platform are accepted. Up to 50 characters.
tierbasic or full, default basic
Basic or full tier. Every selected platform has to offer it.
screenshottrue or false, default false
Save a screenshot. Every selected platform has to support it. Charged extra, and only when a screenshot is captured.
thinkingtrue or false, default false
Turn on thinking mode. Every selected platform has to support it. Charged extra, and only when it was used.
fallbacktrue or false, default true
Allow a backup route with the same surface and login state when a capture fails. The price is the same, and channel.fallback is true in the result.
prompt_setobject
A name and version for this set of questions. Two jobs can be compared only when the set, version and questions all match.
prompt_set.namestring
Name of the question set. Up to 100 characters.
prompt_set.versionstring
Version of the set. Change it whenever the questions change. Up to 50 characters.
tagsarray of strings
Your own labels, such as a campaign ID. Up to 10 items, each up to 100 characters, no duplicates.
Headers
AuthorizationRequired
Bearer followed by your API key.
Response
A successful call returns HTTP 200 with the data in data.item, one Quote object. Every field is always present: [] means none this time and null means not available or unknown.
| Field | Type | Description |
|---|---|---|
answers | integer | Total number of answers |
max_charge | string | The most the job could cost, which is what would be held at submission |
currency | "USD" | Currency |
engines | { engine: string, answers: integer, price: string }[] | For each platform: the number of answers and the most each can cost, add-ons included |
Common errors
An error means nothing was charged, except settlement_unknown: it means billing is not known yet, so ask again with the same Idempotency-Key. See every error code.
| Error | HTTP | Meaning | Charged? |
|---|---|---|---|
invalid_params | 400 | A parameter is invalid | Not charged |
engine_unavailable | 400 | This engine is not available now | Not charged |
parameter_not_supported | 400 | This engine does not support that parameter | Not charged |
trial_not_available | 403 | Trial credit cannot be used with this engine; it is available after a top-up | Not charged |
key_scope_denied | 403 | This key may not use that endpoint or engine | Not charged |
unauthorized | 401 | No credential was sent, or it is invalid, disabled or expired | Not charged |