Skip to content

Countries and locations

Ask an AI engine from a chosen country, US state, city or map point, check which countries each engine serves, and run location grids of up to 9 by 9.

View as Markdown

Answers change by market. Every task takes a country, and some engines take a finer location.

Country

Pass an ISO 3166-1 alpha-2 code as payload.country (default US). The browser's locale, timezone and language follow the country.

Countries depend on availability:

QuestionRequest
Which countries are served now?GET /v1/countries
Which countries is one engine served from?GET /v1/countries?taskType=CHATGPT

A country the engine is not served from answers 422 REGION_UNSUPPORTED. It is not retryable: pick a listed country.

Finer locations

Send at most one of these per task.

FieldWhat it doesCost
payload.stateOne US state, by its two-letter code. The list is at GET /v1/states?country=US.+1 credit
payload.locationA point: { "lat": 30.27, "lng": -97.74 }.+1 credit
payload.cityA city name, for Google engines.none
payload.uuleA Google location value, for Google engines.none

An engine that does not take the field answers 422 LOCATION_UNSUPPORTED.

Location grids

A grid asks the same prompt from every point of a grid around a place, up to 9 by 9 points. Each point is one task with its own location.

ActionRequest
Create a gridPOST /v1/grids
List your gridsGET /v1/grids

What the result says

result.location reports where the task ran: country, locale, timezone and, when they apply, state, city, lat, lng. approximate is true when a finer location had to be approximated.

Last updated