Prompt-based completion

Sends a raw prompt for direct completion using a selected model.

Generate completions for a list of messages.

This endpoint uses the language model to generate completions for the provided messages. The generation process can be customized using the generation_config parameter.

The messages list should contain alternating user and assistant messages, with an optional system message at the start. Each message should have a ‘role’ and ‘content’.

Language
Credentials
OAuth2