Skip to main content
POST
Prompt-based completion

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
messages
object

The input prompt

generation_config
object

Model to use (e.g., gpt-4)

Response

200

The response is of type object.