CoreViz
API

Vision API

Raw HTTP endpoints for AI image analysis, tagging, embeddings, and editing

Vision API

Raw HTTP endpoints for CoreViz's AI vision capabilities. If you're using JavaScript or TypeScript, the @coreviz/sdk npm package is the recommended way to access these endpoints — it handles authentication, retries, and TypeScript types.

Base URL

https://lab.coreviz.io/api/ai

Authentication

All Vision API endpoints require an API key:

-H "x-api-key: YOUR_API_KEY"

Get your key from Your Account → API Keys on lab.coreviz.io.

Endpoints

MethodEndpointSDK MethodDescription
POST/api/ai/describesdk.describe()Generate image description
POST/api/ai/tagsdk.tag()Tag / classify image
POST/api/ai/embeddingssdk.embed()Generate CLIP embedding
POST/api/ai/editsdk.edit()Edit image with prompt
POST/api/ai/generatesdk.generate()Generate image from text

Supported Image Formats

  • JPEG, PNG, WebP, GIF
  • Images must be publicly accessible via HTTPS
  • Maximum file size applies (check your plan)

Error Handling

StatusDescription
400Invalid request (missing fields, invalid image URL)
401Invalid or missing API key
422Image could not be processed
429Rate limit exceeded
500Server error