Chat 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
Request
- Base URLhttps://api.bytez.com
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Authorizationstring required
Token for authentication
Request body
Response
Successful model completion
Changes
No recorded changes to this operation across all 1 revision of this API.