Search...
/
Contact us
Join our Discord
Home
Guides and concepts
API Reference
SDK Docs
Home
Guides and concepts
API Reference
SDK Docs
API Reference
GET
Check API Health
GET
List Chat Models
POST
Chat Completions
POST
Chat Completions Streaming
POST
Chat Completions Vision
GET
List Completions Models
POST
Completions
GET
List Embeddings Models
POST
Embeddings
POST
Factuality
POST
Injection
POST
Replace Personal Information
POST
Toxicity
POST
Translate
SDK Reference
Chat
Chat SSE (Streaming)
Chat Vision
Completions
Embeddings
Factuality
Injection
PII
Toxicity
Translate
Contact us
Join our Discord
API Reference
Chat Completions Vision
POST
https://
api.predictionguard.com
/
chat
/
completions - Vision Version
Generate chat completions based on text and images.
Request
This endpoint expects an object.
model
string
Required
The chat model to use for generating completions.
messages
list of objects
Required
An array of messages used for generating completions.
Show 2 properties
max_tokens
integer
Optional
The maximum number of tokens in the generated completion.
temperature
double
Optional
The temperature parameter for controlling randomness in completions.
top_p
double
Optional
The diversity of the generated text based on nucleus sampling.
top_k
integer
Optional
The diversity of the generated text based on top-k sampling.
output
object
Optional
Options to affect the output of the response.
Show 2 properties
input
object
Optional
Options to affect the input of the request.
Show 3 properties
Response
This endpoint returns an object.
id
string
Optional
Unique ID for the chat completion.
object
string
Optional
Type of object (chat completion).
created
integer
Optional
Timestamp of when the chat completion was created.
model
string
Optional
The chat model used for generating completions.
choices
list of objects
Optional
The set of result choices.
Show 3 properties
Errors
400
Bad Request
403
Forbidden
Built with