oneAI icon

oneAI

Interact with the oneAI API

Chat → Get Blob URL

AI-generated

Summary

Retrieve a direct URL to access a specific blob in a chat, optionally returning a thumbnail URL instead of the full-size blob.

Inputs

  • Chat ID (required) — The unique identifier of the chat containing the blob.
  • Blob ID (required) — The unique identifier of the blob within the chat. Obtain this from the parts of assistant messages whose type is blob.
  • Thumbnail — Boolean flag to indicate if the URL should point to a small preview thumbnail rather than the full-size blob.

Output shape

A JSON object containing the direct URL string to the blob resource, either full-size or thumbnail depending on input.

The output includes the URL in JSON format; no pagination applies. Ensure to provide valid Chat ID and Blob ID as required inputs.

Examples

Example 1: Retrieving a full-size blob URL for a given chat and blob ID.

Provide Chat ID and Blob ID; Thumbnail set to false or omitted.

Example 2: Retrieving a thumbnail preview URL for a blob.

Provide Chat ID and Blob ID; set Thumbnail to true.

Links

Discussion