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.006 per request):online/linkup-deep
- Deep web search ($0.06 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 model to use for generation. Append ':online' for web search ($0.005/request) or ':online/linkup-deep' for deep web search ($0.05/request)
Examples:
"chatgpt-4o-latest"
"chatgpt-4o-latest:online"
"claude-3-5-sonnet-20241022:online/linkup-deep"
The text prompt to send to GPT (optional)
Example:
"Please explain the concept of artificial intelligence."
Array of previous message objects for context (optional)
Response
Talk to GPT response
Text response followed by metadata in <NanoGPT> tags