Generate completion

View as MarkdownOpen in Claude
Generates a text completion from the model. Supports streaming.

Path parameters

cortexIdstringRequired

Request

This endpoint expects an object.
promptstringRequired
systemPromptstringOptional
maxTokensintegerOptionalDefaults to 256
temperaturedoubleOptionalDefaults to 0.7
streambooleanOptionalDefaults to false
jsonSchemaobjectOptional
JSON schema for structured output

Response

Completion generated
textstring or null
usageobject or null