Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Parameters for text completion
The model to use for completion. 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"
"chatgpt-4o-latest:online/linkup-deep"
"claude-3-5-sonnet-20241022:online"
The text prompt to complete
Maximum number of tokens to generate
Controls randomness (0-2)
Nucleus sampling parameter (0-1)
Whether to stream the response
Up to 4 sequences where the API will stop generating
Penalty for frequency of tokens (-2 to 2)
Penalty for presence of tokens (-2 to 2)