Endpoint Examples
Talk to GPT (Legacy)
Legacy endpoint for chat interactions with the GPT model
POST
Overview
The Talk to GPT endpoint is our legacy text generation API that also supports web search capabilities through LinkUp integration.
Web Search
Enable web search by appending suffixes to the model name:
:online
- Standard web search ($0.005 per request):online/linkup-deep
- Deep web search ($0.05 per request)
Example with Web Search
Important Notes
- Web search works with all models - simply append the suffix
- Increases input token count which affects total cost
- Provides access to real-time information
- For new projects, consider using the OpenAI-compatible
/v1/chat/completions
endpoint instead
Authorizations
Body
application/json
Parameters for talking to GPT
The body is of type object
.
Response
200
text/plain
Talk to GPT response
Text response followed by metadata in <NanoGPT> tags