CohereImageUrlV2

class oci.generative_ai_inference.models.CohereImageUrlV2(**kwargs)

Bases: object

Provide a base64 encoded image or an image uri if it’s supported.

Attributes

DETAIL_AUTO A constant which can be used with the detail property of a CohereImageUrlV2.
DETAIL_HIGH A constant which can be used with the detail property of a CohereImageUrlV2.
DETAIL_LOW A constant which can be used with the detail property of a CohereImageUrlV2.
detail Gets the detail of this CohereImageUrlV2.
url [Required] Gets the url of this CohereImageUrlV2.

Methods

__init__(**kwargs) Initializes a new CohereImageUrlV2 object with values from keyword arguments.
DETAIL_AUTO = 'AUTO'

A constant which can be used with the detail property of a CohereImageUrlV2. This constant has a value of “AUTO”

DETAIL_HIGH = 'HIGH'

A constant which can be used with the detail property of a CohereImageUrlV2. This constant has a value of “HIGH”

DETAIL_LOW = 'LOW'

A constant which can be used with the detail property of a CohereImageUrlV2. This constant has a value of “LOW”

__init__(**kwargs)

Initializes a new CohereImageUrlV2 object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • url (str) – The value to assign to the url property of this CohereImageUrlV2.
  • detail (str) – The value to assign to the detail property of this CohereImageUrlV2. Allowed values for this property are: “AUTO”, “HIGH”, “LOW”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
detail

Gets the detail of this CohereImageUrlV2. Controls the level of detail in image processing. “auto” is the default and lets the system choose, “low” is faster but less detailed, and “high” preserves maximum detail. You can save tokens and speed up responses by using detail “low”.

Allowed values for this property are: “AUTO”, “HIGH”, “LOW”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The detail of this CohereImageUrlV2.
Return type:str
url

[Required] Gets the url of this CohereImageUrlV2. URL of an image. Can be either a base64 data URI or a web URL (type can be either image_url or text).

Returns:The url of this CohereImageUrlV2.
Return type:str