PicDefense Labels API
Detect labels in an image. Consumes 0.03 credits on success.
Detect labels in an image. Consumes 0.03 credits on success.
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/picdefense-io:picdefense-io-labels-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. 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: PicDefense.io APIv2 Labels API
description: 'API Documentation for PicDefense.io
All endpoints require an API TOKEN in header ''X-API-TOKEN''.
Your X-API-TOKEN is user id and api key seperated by a colon. Example: USERID:APIKEY
Please visit the Settings page for these details.'
termsOfService: https://picdefense.io/terms-conditions/
contact:
name: API Support
url: https://help.picdefense.io/
version: '2'
servers:
- url: https://app.picdefense.io/api/v2
tags:
- name: Labels
description: Detect labels in an image. Consumes 0.03 credits on success.
paths:
/labels:
post:
tags:
- Labels
summary: detect labels in image
description: Returns detected labels and their confidence scores from the image. Consumes 0.03 credits on success.
operationId: labels
requestBody:
description: image URL
content:
application/json:
schema:
type: object
properties:
url:
type: string
format: url
example: http://example.com/image.jpg
description: The URL of the image to check. Must be publicly accessible.
required: true
responses:
'200':
description: succeeded
content:
application/json:
schema:
type: object
properties:
status:
type: integer
format: int32
example: 1
message:
type: string
example: succeeded
error:
type: string
example: none
data:
type: object
properties:
labels:
type: object
properties:
labelsOnly:
type: array
items:
type: string
example:
- nature
- mountain
- sky
- landscape
description: List of detected labels without confidence scores
labelsWithScore:
type: array
items:
type: string
example:
- nature:0.98
- mountain:0.95
- sky:0.92
- landscape:0.89
description: List of detected labels with their confidence scores
'401':
description: failed - unauthorized
content:
application/json:
schema:
type: object
properties:
status:
type: integer
format: int32
example: -1
message:
type: string
example: failed
error:
type: string
example: unauthorized
data:
type: object
properties: {}
'403':
description: failed - insufficient credits
content:
application/json:
schema:
type: object
properties:
status:
type: integer
format: int32
example: -1
message:
type: string
example: failed
error:
type: string
example: insufficient credits
data:
type: object
properties: {}
'500':
description: failed - unknown server error
content:
application/json:
schema:
type: object
properties:
status:
type: integer
format: int32
example: -1
message:
type: string
example: failed
error:
type: string
example: unknown server error
data:
type: object
properties: {}
security:
- apiAuth: []
components:
securitySchemes:
apiAuth:
type: apiKey
description: 'Your X-API-TOKEN is user id and api key seperated by a colon. Example: USERID:APIKEY'
name: X-API-TOKEN
in: header
externalDocs:
description: Find out more about PicDefense.io
url: http://picdefense.io