Chat

Create chat completion

OpenAI-compatible chat. Optional features depend on the model/provider.

post/chat/completions

Request

  • Base URL: https://api.voidai.app/v1
  • URL: https://api.voidai.app/v1/chat/completions
  • Auth: one of:
    • HTTP bearer
    • API key in header x-api-key

Request body

modelstring required

Exact model ID from GET /models. Endpoint support and account eligibility are required.

streamboolean
temperaturenumber
max_tokensnumber
max_completion_tokensnumber
toolsobject[]

Response

Successful response.

idstring
object'chat.completion'
modelstring
choicesobject[]
usageobject

Changes

No recorded changes to this operation across all 1 revision of this API.