/generate
Generate
Generate a response using Contextual’s Grounded Language Model (GLM), an LLM engineered specifically to prioritize faithfulness to in-context retrievals over parametric knowledge to reduce hallucinations in Retrieval-Augmented Generation and agentic use cases.
The total request cannot exceed 32,000 tokens.
See our blog post and code examples. Email glm-feedback@contextual.ai with any feedback or questions.
POST
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
/generate input request object.
Response
200
application/json
Successful Response
/generate result object.