Chat Vision
You can get vision text completions from any of the vision enabled
models using the /chat/completions
REST API endpoint
or any of the official SDKs (Python, Go, Rust, JS, or cURL).
Generate a Vision Text Completion
To generate a vision text completion, you can use the following code examples. Depending on your preference or requirements, select the appropriate method for your application. Streaming is not currently supported when generating a vision text completion. For image inputs, this endpoint supports image file, url, and base 64 encoded inputs in the python client, while the Go API only supports images that are base64 encoded represented by a data uri.
The output will look something like:
This approach presents a straightforward way for readers to choose and apply the code example that best suits their needs for generating text completions using either Python, Go, Rust, JS, or cURL.