POST /v1/responses
Changed onCreate a response with the OpenAI-compatible Responses API. Compatible models can use the Responses-only hosted tool-search pilot by adding a nanogpt:tool_search or tool_search entry and marking function tools with defer_loading: true. The NanoGPT Advisor extension is available for non-streaming, foreground, platform-billed pay-as-you-go API-key requests that do not use client tools, structured output, inline moderation, BYOK, accountless payment, memory, or server-side content enhancements.
Request
- Base URLhttps://nano-gpt.com/api
- URLhttps://nano-gpt.com/api/v1/responses
- Auth
- HTTP bearer
- or API key in header x-api-key
- or none
Headers
Optional explicit provider override for supported open-source models (case-insensitive). Explicit provider selection is billed pay-as-you-go at the selected provider's price, including provider-selection markup; for subscription users it bypasses subscription coverage for that request.
Optional billing override to force pay-as-you-go without an explicit provider, or to apply saved provider preferences to subscription-included traffic (e.g., paygo). Header name is case-insensitive.
Optional team context override for API-key requests. If provided, it must reference a team the caller belongs to.
Set to true on unauthenticated accountless x402 quote requests. Without this header, unauthenticated requests return 401 missing_api_key.
Request body
Response
Response created
Changes
- breaking
the
//request property type changed fromobjectto no type - breaking
the
/request property type changed fromobjectto no type - info
added
subschema #3to the/request propertyanyOflist - info
added
subschema #1subschema #2to the//request propertyanyOflist - info
added the new
fastenum value to the request property
- breaking