Conceptual
Login

Making a First Language Model API Call

Send a single request to a hosted language model over HTTP and read the response body: the endpoint, the required headers, the messages array, and where the generated text actually sits in the JSON that comes back.