Skip to content
Get an API key

Reference

Updated

Extensions

Everything the helping.io API adds beyond the Open Responses specification rides a namespaced prefix, and what you may see come back under it.

The Open Responses specification lets an implementer add fields under a namespaced prefix without changing any enum, union, or required field. This API’s prefix is helpingio:. A client that does not know the prefix can strip every helpingio: key and still parse the result. A client that does know it gets a strict superset.

Responses, output items and function calls may carry helpingio: keys, or names under the prefix. Ignore any you do not recognize: they never change the shape of the object they sit on, so stripping the prefix always leaves a result your client can parse.

These output names are documented:

  • helpingio:context sits on every response on a stored conversation and says how full it is: stored_tokens, an estimate of what the next turn would read, and window_tokens, the model’s context window. The estimate reads about four characters per token, the same estimate that decides whether a turn fits (see How truncation differs). The key is absent on a response with no stored conversation, on one whose model states no window, and when the measurement itself fails.
  • helpingio:context_omissions sits on a response whose model read only part of its input. It is a list with one line per item: a reason, the item’s type and id, and an estimate of the input_tokens the model did not read. The key is absent when nothing was left out. See Long tool results.
  • helpingio:error sits on a function_call_output that reports a call this API refused or a tool that failed, and carries a code and a message. See When this API refuses a call.
  • helpingio:unreadable sits on a list of conversation items. It names each item on the page that is stored but could not be read, with its id, the code item_unreadable and a message. The other items are returned as usual, and the key is absent when every item was read. See List items.
  • helpingio:tool_calls_dropped sits on a response that runs under a max_tool_calls. It is the number of tool calls cut from that response, past your max_tool_calls or past your organization’s limit for one turn, which were neither returned nor run. The key is absent when nothing was cut. See Compatibility.
  • helpingio:cost sits on every finished response and says what it cost your organization, at your organization’s own prices: an object whose credits key holds the amount in credits as a decimal string, such as {"credits": "0.004215"}. One credit is one US dollar. On a conversation that runs through tool rounds it is the running total of the exchange, as usage is, so the last one is what the exchange cost. A response charged nothing says "0". It also sits next to helpingio:usage on the error bodies that carry it, and it is absent while a response is still running. See Credits.
  • helpingio:usage sits next to error on the 502 a non-streaming request answers when the model provider failed partway through its reply. The failed reply is not billed; the field is what the response’s earlier, completed model calls were billed, in the same shape as a response’s usage, and it is absent when nothing was billed. See Errors.
  • helpingio:replacement sits next to error on the 404 model_not_found a request for a retired model answers. It is the id of the model to use instead, and it is absent when no replacement is named. See Model lifecycle.
  • helpingio:warnings sits on a response that accepted a request field and did not apply it, or applied it in place of another. It is a list; each entry has a type (unsupported or compatibility), the param it is about, and a message for a person to read. Switch on type and param. A top-level field this API does not define is an unsupported entry naming it; when a name is not repeated (it is not shaped like a field name, or the response already names the most it will), one entry with a null param stands for the rest. The key is absent when there is nothing to report. The shape follows the call warnings of the Vercel AI SDK.

The helpingio: names that are public today:

  • helpingio:context
  • helpingio:context_management
  • helpingio:context_omissions
  • helpingio:context_window
  • helpingio:cost
  • helpingio:error
  • helpingio:memory
  • helpingio:memory_id
  • helpingio:pricing
  • helpingio:replacement
  • helpingio:schema_source
  • helpingio:supported_parameters
  • helpingio:tool_calls_dropped
  • helpingio:unreadable
  • helpingio:usage
  • helpingio:warnings

New extensions are added under the helpingio: prefix and nowhere else. A new field is a compatible change; renaming or removing one is a breaking change and would require a new API prefix. The full policy is on Versioning.