Image Embedding (CLIP)
studio-embed-imageSingle image → 512-dim CLIP vector.
POST
/v1/proxy/studio-embed-imageEncode image with CLIP ViT-B/32
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
imageUrl | string | required | Public URL of the source image |
curl -X POST https://api.cn8.io/v1/proxy/studio-embed-image \
-H "X-API-Key: <cn8_api_key>" \
-H "Content-Type: application/json" \
-d '{"imageUrl":"https://example.com/file"}'Response
{
"status": "success",
"data": {
"status": "success",
"embedding": [0.023, -0.045, 0.198, ...],
"dim": 512
},
"cost": { "units": 1, "unit_price": 0.005, "tokens": 0.005, "balance": 99.99 },
"gateway": { "request_id": "req_abc", "service": "studio-embed-image" }
}
Billing: 0.5 credits per image. Synchronous.