Skip to navigation

Post Chat Completions

Authentication

fg-api-keystring
API Key authentication via header

Request

This endpoint expects an object.
modelstringRequired

The model to use, for example gpt-4o-mini.

messageslist of objectsRequired
streambooleanOptional

Set to true to stream the response.

Response

OK

Errors

500
Internal Server Error