model, requests route to the project’s default model, or to a model in an active A/B test.
Every interaction (prompt + completion pair) is logged automatically. See Interactions for details.
Chat completions
- SDK
- OpenAI client
- HTTP
Streaming
Completion ID
Usecompletion_id to log Metrics against the response:Multimodal chat completions
Models with the Multimodal tag accept images alongside text. In the UI, attach images directly in the Chat view. For multimodal requests,content is a list of content fragments instead of a plain string. Each fragment has a type field:
text: a text fragment:{"type": "text", "text": "..."}image_url: an image fragment:{"type": "image_url", "image_url": {"url": "data:image/png;base64,..."}}
data: URIs (PNG, JPEG, GIF, or WebP, up to 10MB). HTTP URLs are not supported. You can combine multiple text and image fragments in a single message.
- SDK
- OpenAI client
- HTTP
Image format difference
Image format difference
The Adaptive SDK also accepts a flat string for
image_url:
