Skip to main content
Vision-style requests send a user message whose content mixes text with image parts (URL or base64). SUPA follows the same message shapes as OpenAI Chat Completions.

OpenAI SDK

Use content as an array of parts. For a remote image, use image_url with an https URL. For a local file, read bytes and send a data:image/...;base64,... URL.
You can use a public URL instead of base64:

Vercel AI SDK

Pass multimodal UserModelMessage content: text and image parts. Images accept URLs, base64 data, or Uint8Array depending on the AI SDK version; URLs are the simplest.

TanStack AI

Use ImagePart with a url or data source alongside TextPart entries.
For inline data, use a data source with base64 and mimeType: