Generate text and vision (image+text) responses using state-of-the-art language models. To use vision, provide a vision-capable model and include an image in the messages array as shown in the code samples.
API key authentication. Get your API key from the Gravix Layer Dashboard.
Model identifier
"meta-llama/llama-3.1-8b-instruct"
Messages to generate the completion from
Sampling temperature
0 <= x <= 2Nucleus sampling
0 <= x <= 1Number of completions to generate
Whether to stream the response
Stop sequences
Maximum tokens to generate
Presence penalty
-2 <= x <= 2Frequency penalty
-2 <= x <= 2Modify token probabilities
User identifier
Chat completion response