Roboflow Owlv2 API
The Owlv2 API from Roboflow — 1 operation(s) for owlv2.
The Owlv2 API from Roboflow — 1 operation(s) for owlv2.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/roboflow-owlv2-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Roboflow Owlv2 API
version: 1.3.8
contact:
name: Roboflow Inc.
url: https://roboflow.com/contact
email: help@roboflow.com
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
termsOfService: https://roboflow.com/terms
description: 'Operations tagged Owlv2 across 2 of this provider''s published API definitions: roboflow-inference-openapi.json, roboflow-owlv2-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://serverless.roboflow.com
description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: Owlv2
paths:
/owlv2/infer:
post:
summary: Owlv2 image prompting
description: Run the google owlv2 model to few-shot object detect
operationId: owlv2_infer_owlv2_infer_post
parameters:
- name: api_key
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Roboflow API Key that will be passed to the model during initialization for artifact retrieval
title: Api Key
description: Roboflow API Key that will be passed to the model during initialization for artifact retrieval
- name: countinference
in: query
required: false
schema:
anyOf:
- type: boolean
- type: 'null'
title: Countinference
- name: service_secret
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Service Secret
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/OwlV2InferenceRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ObjectDetectionInferenceResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Owlv2
components:
schemas:
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
InferenceRequestImage:
properties:
type:
type: string
title: Type
description: The type of image data provided, one of 'url', 'base64', or 'numpy'
examples:
- url
value:
anyOf:
- {}
- type: 'null'
title: Value
description: Image data corresponding to the image type, if type = 'url' then value is a string containing the url of an image, else if type = 'base64' then value is a string containing base64 encoded image data, else if type = 'numpy' then value is binary numpy data serialized using pickle.dumps(); array should 3 dimensions, channels last, with values in the range [0,255].
examples:
- http://www.example-image-url.com
type: object
required:
- type
title: InferenceRequestImage
description: "Image data for inference request.\n\nAttributes:\n type (str): The type of image data provided, one of 'url', 'base64', or 'numpy'.\n value (Optional[Any]): Image data corresponding to the image type."
InferenceResponseImage:
properties:
width:
type: integer
title: Width
description: The original width of the image used in inference
height:
type: integer
title: Height
description: The original height of the image used in inference
type: object
required:
- width
- height
title: InferenceResponseImage
description: "Inference response image information.\n\nAttributes:\n width (int): The original width of the image used in inference.\n height (int): The original height of the image used in inference."
ObjectDetectionPrediction:
properties:
x:
type: number
title: X
description: The center x-axis pixel coordinate of the prediction
y:
type: number
title: Y
description: The center y-axis pixel coordinate of the prediction
width:
type: number
title: Width
description: The width of the prediction bounding box in number of pixels
height:
type: number
title: Height
description: The height of the prediction bounding box in number of pixels
confidence:
type: number
title: Confidence
description: The detection confidence as a fraction between 0 and 1
class:
type: string
title: Class
description: The predicted class label
class_confidence:
anyOf:
- type: number
- type: 'null'
title: Class Confidence
description: The class label confidence as a fraction between 0 and 1
class_id:
type: integer
title: Class Id
description: The class id of the prediction
tracker_id:
anyOf:
- type: integer
- type: 'null'
title: Tracker Id
description: The tracker id of the prediction if tracking is enabled
detection_id:
type: string
title: Detection Id
description: Unique identifier of detection
parent_id:
anyOf:
- type: string
- type: 'null'
title: Parent Id
description: Identifier of parent image region. Useful when stack of detection-models is in use to refer the RoI being the input to inference
type: object
required:
- x
- y
- width
- height
- confidence
- class
- class_id
title: ObjectDetectionPrediction
description: "Object Detection prediction.\n\nAttributes:\n x (float): The center x-axis pixel coordinate of the prediction.\n y (float): The center y-axis pixel coordinate of the prediction.\n width (float): The width of the prediction bounding box in number of pixels.\n height (float): The height of the prediction bounding box in number of pixels.\n confidence (float): The detection confidence as a fraction between 0 and 1.\n class_name (str): The predicted class label.\n class_confidence (Union[float, None]): The class label confidence as a fraction between 0 and 1.\n class_id (int): The class id of the prediction"
TrainingImage:
properties:
boxes:
items:
$ref: '#/components/schemas/TrainBox'
type: array
title: Boxes
description: List of boxes and corresponding classes of examples for the model to learn from
image:
$ref: '#/components/schemas/InferenceRequestImage'
description: Image data that `boxes` describes
type: object
required:
- boxes
- image
title: TrainingImage
ObjectDetectionInferenceResponse:
properties:
visualization:
anyOf:
- type: string
- type: 'null'
title: Visualization
description: Base64 encoded string containing prediction visualization image data
inference_id:
anyOf:
- type: string
- type: 'null'
title: Inference Id
description: Unique identifier of inference
frame_id:
anyOf:
- type: integer
- type: 'null'
title: Frame Id
description: The frame id of the image used in inference if the input was a video
time:
anyOf:
- type: number
- type: 'null'
title: Time
description: The time in seconds it took to produce the predictions including image preprocessing
image:
anyOf:
- items:
$ref: '#/components/schemas/InferenceResponseImage'
type: array
- $ref: '#/components/schemas/InferenceResponseImage'
title: Image
predictions:
items:
$ref: '#/components/schemas/ObjectDetectionPrediction'
type: array
title: Predictions
type: object
required:
- image
- predictions
title: ObjectDetectionInferenceResponse
description: "Object Detection inference response.\n\nAttributes:\n predictions (List[inference.core.entities.responses.inference.ObjectDetectionPrediction]): List of object detection predictions."
OwlV2InferenceRequest:
properties:
id:
type: string
title: Id
api_key:
anyOf:
- type: string
- type: 'null'
title: Api Key
description: Roboflow API Key that will be passed to the model during initialization for artifact retrieval
usage_billable:
type: boolean
title: Usage Billable
default: true
start:
anyOf:
- type: number
- type: 'null'
title: Start
source:
anyOf:
- type: string
- type: 'null'
title: Source
source_info:
anyOf:
- type: string
- type: 'null'
title: Source Info
stream_pipeline_context_id:
anyOf:
- type: string
- type: 'null'
title: Stream Pipeline Context Id
description: Internal stream-pipeline frame pairing id. Not part of the public API.
disable_model_monitoring:
anyOf:
- type: boolean
- type: 'null'
title: Disable Model Monitoring
description: If true, disables model monitoring for this request
default: false
owlv2_version_id:
anyOf:
- type: string
- type: 'null'
title: Owlv2 Version Id
description: The version ID of owlv2 to be used for this request.
default: owlv2-large-patch14-ensemble
examples:
- owlv2-base-patch16-ensemble
model_id:
anyOf:
- type: string
- type: 'null'
title: Model Id
description: Model id to be used in the request.
image:
anyOf:
- items:
$ref: '#/components/schemas/InferenceRequestImage'
type: array
- $ref: '#/components/schemas/InferenceRequestImage'
title: Image
description: Images to run the model on
training_data:
items:
$ref: '#/components/schemas/TrainingImage'
type: array
title: Training Data
description: Training images for the owlvit model to learn form
confidence:
anyOf:
- type: number
- type: 'null'
title: Confidence
description: Default confidence threshold for owlvit predictions. Needs to be much higher than you're used to, probably 0.99 - 0.9999
default: 0.99
examples:
- 0.99
visualize_predictions:
anyOf:
- type: boolean
- type: 'null'
title: Visualize Predictions
description: If true, the predictions will be drawn on the original image and returned as a base64 string
default: false
examples:
- false
visualization_labels:
anyOf:
- type: boolean
- type: 'null'
title: Visualization Labels
description: If true, labels will be rendered on prediction visualizations
default: false
examples:
- false
visualization_stroke_width:
anyOf:
- type: integer
- type: 'null'
title: Visualization Stroke Width
description: The stroke width used when visualizing predictions
default: 1
examples:
- 1
type: object
required:
- id
- image
- training_data
title: OwlV2InferenceRequest
description: "Request for OwlV2 inference.\n\nAttributes:\n api_key (Optional[str]): Roboflow API Key.\n owlv2_version_id (Optional[str]): The version ID of OwlV2 to be used for this request.\n image (Union[List[InferenceRequestImage], InferenceRequestImage]): Image(s) for inference.\n training_data (List[TrainingImage]): Training data to ground the model on\n confidence (float): Confidence threshold to filter predictions by"
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
TrainBox:
properties:
x:
type: integer
title: X
description: Center x coordinate in pixels of train box
y:
type: integer
title: Y
description: Center y coordinate in pixels of train box
w:
type: integer
title: W
description: Width in pixels of train box
h:
type: integer
title: H
description: Height in pixels of train box
cls:
type: string
title: Cls
description: Class name of object this box encloses
negative:
type: boolean
title: Negative
description: Whether this object is a positive or negative example for this class
default: false
type: object
required:
- x
- y
- w
- h
- cls
title: TrainBox
x-refined-from:
- roboflow-inference-openapi.json
- roboflow-owlv2-api-openapi.yml