v1
latestOpenAPI 3.0.32026-07-26451985.7 KBChat Completions
Sends a prompt to an OpenAI compatible chat completion model and returns a completion. Provides completions for open source models that are text-generation, chat, audio-text-to-text, image-text-to-text, video-text-to-text, and also supports closed source providers openai, anthropic, mistral, cohere, and google. To send a request to a closed source provider, prefix your model with their provider name, e.g. openai/gpt-4.
post/models/v2/openai/v1/chat/completions
Headers
Authorizationstring required
Token for authentication
Request body
Response
Successful model completion