POST /talk-to-gpt

Changed on

Legacy endpoint for chat interactions with the GPT model

Request

  • Base URL
    https://nano-gpt.com/api
  • URL
    https://nano-gpt.com/api/talk-to-gpt
  • Auth
    API key in header x-api-key

Request body

promptstring

The text prompt to send to GPT (optional)

modelstring required

The model to use for generation. The legacy endpoint supports the same model suffix parser for web search and provider routing, including ':caching', ':cache', and ':cached', as Chat Completions.

Example request

{
  "prompt": "Please explain the concept of artificial intelligence.",
  "model": "minimax/minimax-m2.7"
}

Response

Talk to GPT response

Changes