Skip to main content

Request

Response


Vision (Image to Text)

You can also pass images to the model for image-to-text generation.

Request

Response


Parameters

string
required
The model that will complete your prompt.
array
required
Input messages.
integer
required
The maximum number of tokens to generate before stopping.
string
System prompt.
number
Amount of randomness injected into the response.
number
Use nucleus sampling.
integer
Only sample from the top K options for each subsequent token.
array
Custom text sequences that will cause the model to stop generating.
boolean
Whether to incrementally stream the response using server-sent events.
object
An object describing metadata about the request.
array
How the model should use the provided tools.
object
Forces the model to use a specific tool.
object
Configuration for extended thinking.
string
The service tier for the request.

Params to Avoid