ChatGPT LLM Responses: Live
/v1/ai/chat_gpt/llm_responses/liveChatGPT LLM Responses: modes
On this page
Price
- Live
- $0.00054
Base fee per answer. The model's token and search cost is added at its list price (see the table in the description).
Description
Send up to 100 tasks, one prompt each. Each task calls the model once and returns its answer in result[0].items[0].sections[0].text, with citations in annotations when web search is on.
Use message_chain to continue a conversation, and web_search_country_iso_code or web_search_city to localize the search.
Billing. Each answer costs our base fee for the mode plus the model's token and search cost at the model's published list price, reported as money_spent. A failed, empty or refused answer costs $0. Before the call, the wallet check reserves the base fee plus a conservative token estimate (or your max_cost).
Token prices for ChatGPT models:
| Model | Input per 1M tokens | Output per 1M tokens | Web search per 1,000 | Reasoning |
|---|---|---|---|---|
gpt-5 | $1.25 | $10.0 | $10.0 | yes |
gpt-5-mini | $0.25 | $2.0 | $10.0 | yes |
gpt-5-nano | $0.05 | $0.4 | $10.0 | yes |
gpt-4.1 | $2.0 | $8.0 | $25.0 | no |
gpt-4.1-mini | $0.4 | $1.6 | $25.0 | no |
gpt-4o | $2.5 | $10.0 | $25.0 | no |
gpt-4o-mini | $0.15 | $0.6 | $25.0 | no |
Answers aren't cached: each call is a new sample. Prompts and answers are added to the AI-answer dataset unless your organization has opted out.
Request
- Endpoint
- POST https://api.dataforgaio.com/v1/ai/chat_gpt/llm_responses/live
- Authentication
- HTTP Basic auth: any login, with your
dg_API key as the password. ABearerheader with the key also works. Create a key. - Body
- JSON array of task objects, up to 100 tasks per requestMode: Live
Fields (per task)
- The prompt, up to 500 characters.Max
500ExampleWhich running shoe brands are best for wide feet? - A model id from
/v1/ai/chat_gpt/llm_responses/models. Dated ids such asgpt-4.1-2025-04-14resolve to their base model. Leave it out to use the default model.Defaultgpt-5One ofgpt-5gpt-5-minigpt-5-nanogpt-4.1gpt-4.1-minigpt-4ogpt-4o-miniExamplegpt-4o-mini - Instructions sent before the prompt, up to 500 characters.Max
500ExampleAnswer in two sentences. - Earlier turns of the conversation, up to 10. They alternate
userandai, start withuserand end withai; each message is up to 500 characters.Max10 - Most tokens the answer may use, up to 4,096. The minimum is 16, or 1,024 for reasoning models.Default
2048Min16Max4096Example1024 - Sampling temperature, 0.0 to 2.0. Send this or
top_p, not both. Ignored by reasoning models.Min0Max2Example0.4 - Nucleus sampling, 0 to 1. Send this or
temperature, not both.Min0Max1Example0.9 - Let the model search the web before answering. Search fees are added to
money_spent.DefaultfalseExampletrue - Require a web search before answering. Needs
web_search: true.DefaultfalseExamplefalse - Two-letter country the web search should favor.Min
2Max2ExampleUS - City the web search should favor, up to 100 characters.Max
100ExampleDenver - The most this task may be charged, in USD. The wallet check reserves this amount instead of our token estimate, and the charge is capped at it. Before the model is called,
max_output_tokensis lowered (and web search turned off, unless forced or always on) so the most the answer can cost fits; when even the prompt can't fit, the task returns 40501 at $0.Min0Example0.01
Response
Shape: v3 task envelope. Expand a field to see its children; every field has a link anchor.
- versionstringResponse format version, for example
0.1.20261203.Example0.1.20261203 - status_codeintegerStatus of the request as a whole. 20000 when it was accepted; each task has its own
status_code.Example20000 - status_messagestringPlain-language request status.Example
Ok. - timestringTime the whole request took, for example
1.8410 sec.Example0.4210 sec. - costnumberSum of every task's
cost, in USD.Example0.0259732 - tasks_countintegerNumber of tasks in
tasks.Example1 - tasks_errorintegerTasks whose
status_codeis 40000 or higher.Example0 - tasksarray<object>One entry per task you sent, in the order you sent them.
Show 38 child fieldsHide child fields
- idstringTask id (a UUID). For task_post, use it with task_get.Example
8cbb5b5c-8e15-5c82-9959-45f93cdad009 - status_codeintegerOutcome of this task. 20000 means data came back; 20100 means queued. See the status codes table.Example
20000 - status_messagestringPlain-language status. For 40501 it names the field that failed.Example
Ok. - timestringTime this task took on our side, for example
1.8203 sec.Example0.4210 sec. - costnumberWhat this task was charged, in USD. 0 when it returned no data.Example
0.0259732 - result_countintegerNumber of entries in
result.Example1 - patharray<string>The route this task ran on, split into segments, starting with
v1.Example["v1","ai","chat_gpt"] - dataobjectThe task you sent, echoed back. Utility routes echo their query parameters.Example
{"user_prompt":"Which running shoe brands are best for wide feet?","model_name":"gpt-4o-mini","web_search":true,"web_search_country_iso_code":"US"} - resultarray<object>|nullOne answer.
Show 24 child fieldsHide child fields
- model_namestringThe model that answered.Example
gpt-4o-mini - input_tokensintegerPrompt tokens the model read, including search results it was given.Example
1240 - output_tokensintegerTokens in the answer.Example
412 - reasoning_tokensintegerReasoning tokens, for reasoning models; 0 otherwise.Example
0 - web_searchbooleanWhether the model was allowed to search the web.Example
true - money_spentnumberToken and search cost at the model's list price, in USD. The task's
costis this plus our base fee.Example0.0254332 - datetimestringWhen the answer was produced,
YYYY-MM-DD HH:MM:SS +00:00.Example2026-12-03 10:42:18 +00:00 - itemsarray<object>The answer. One
messageitem.Show 10 child fieldsHide child fields
- typestringAlways
message.Examplemessage - sectionsarray<object>Parts of the message. One
textsection.Show 8 child fieldsHide child fields
- typestringAlways
text.Exampletext - textstringThe answer text, as the model wrote it (often Markdown).Example
For wide feet, look at brands that make most models in a wide (2E) fit, such as Summit Trail and Ridgeway. Try shoes on late in the day, when your feet are l... - annotationsarray<object>|nullSources the answer cited. Null when web search was off.
Show 5 child fieldsHide child fields
- titlestring|nullTitle of the cited page.Example
Best running shoes for wide feet - urlstring|nullURL of the cited page.Example
https://www.example-reviews.com/gear/wide-running-shoes - start_indexinteger|nullStart of the cited span in
text, when the model reports it.Example0 - end_indexinteger|nullEnd of the cited span in
text.Example98 - textstring|nullThe cited passage, when the model reports it.Example
brands that make most models in a wide (2E) fit
- fan_out_queriesarray<string>|nullSearch queries the model ran. Null when web search was off.Example
["best running shoes for wide feet"] - search_resultsarray<object>|nullPages the searches returned, cited or not. Null when web search was off.
Show 4 child fieldsHide child fields
- titlestring|nullPage title.Example
Best running shoes for wide feet - urlstring|nullPage URL.Example
https://www.example-reviews.com/gear/wide-running-shoes - datestring|nullPublication date, when reported.Example
2026-11-20 - snippetstring|nullSnippet, when reported.Example
We measured toe-box width on 40 shoes.
- receipt_idstring|nullId of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks.Example
744695e7-dd8a-5016-bb2b-2d314ea9ef81 - fetch_levelstring|nullThe fetch level that delivered the data:
standard,renderedorprotected. Null when the route doesn't fetch pages or nothing was fetched.One ofstandardrenderedprotected - upgradedbooleanTrue when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that.Example
false - upgrade_reasonstring|nullWhy the request upgraded, in our level names and HTTP facts, for example
403 at standard; challenge page at rendered. Null when it didn't upgrade. - cache_hitbooleanTrue when the data came from the shared result cache instead of a new fetch.Example
false
Errors
| Code | When |
|---|---|
| 40100 | No credentials were sent (HTTP 401). |
| 40101 | The API key is missing, malformed or revoked (HTTP 401). |
| 40202 | Too many requests for this key (HTTP 429, with Retry-After). |
| 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). |
| 40006 | More than 100 tasks in one POST (HTTP 400). |
| 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). |
| 40501 | A task field failed validation. Returned per task; other tasks still run. |
| 50000 | The task returned no data because of an error on our side or upstream. $0. |
| 40501 | user_prompt missing or too long, unknown model_name, temperature and top_p both sent, a value out of range, or a malformed message_chain. |
| 50000 | The model returned no answer, or the engine isn't available right now. $0. |
Migrating
Replaces DataForSEO /v3/ai_optimization/chat_gpt/llm_responses/live. The request body and response envelope match: change the base URL to https://api.dataforgaio.com/v1 and use your dg_ key as the password.
Related endpoints
- POSTChatGPT LLM Responses: Task PostQueue prompts for a ChatGPT model at the lower queued base fee, then collect the answers.
- GETChatGPT LLM Responses: Tasks ReadyList finished answers you haven't collected yet.
- GETChatGPT LLM Responses: Tasks FixedSame list as tasks_ready, kept for clients that call tasks_fixed.
- GETChatGPT LLM Responses: Task GetRead one queued answer.
- GETChatGPT LLM Responses: ModelsThe ChatGPT model ids you can send as `model_name`.