Try in playground
Test Cogito 671B v2.1 in the Runpod Hub playground.
This endpoint is fully compatible with the OpenAI API. See the OpenAI compatibility examples below.
Request
All parameters are passed within theinput object in the request body.
string
required
Prompt for text generation.
integer
default:"512"
Maximum number of tokens to output.
float
default:"0.7"
Randomness of the output. Lower values make output more predictable and deterministic. Range: 0.0-1.0.
float
Nucleus sampling threshold. Samples from the smallest set of words whose cumulative probability exceeds this threshold.
integer
Restricts sampling to the top K most probable words.
string
Stops generation if the given string is encountered.
Response
string
Unique identifier for the request.
string
Request status. Returns
COMPLETED on success, FAILED on error.integer
Time in milliseconds the request spent in queue before processing began.
integer
Time in milliseconds the model took to generate the response.
object
OpenAI API compatibility
Cogito 671B v2.1 is fully compatible with the OpenAI API format. You can use the OpenAI Python client to interact with this endpoint.Python (OpenAI SDK)
stream=True:
Python (Streaming)