POST /v1/intelligence/profile/visual-enrich
Instagram visual analysis API: AI read of a profile's post grid
Send an Instagram username and get a vision model's read of its stored profile header and recent post grid: entity type, account role, niche, country, language, commercial intent, brand safety, and the grid's format mix, aesthetic, palette and content pillars. The answer also carries the JPEG the model saw and the token counts, and the result is not stored. An account we do not store is a 404 and is not billed.
- Price
- $0.0500 per call
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl -X POST 'https://api.virev.ai/v1/intelligence/profile/visual-enrich' \
-H "Authorization: Bearer $VIREV_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"username":"natgeo","limit":4}'import os
import requests
response = requests.request(
"POST",
"https://api.virev.ai/v1/intelligence/profile/visual-enrich",
json={
"username": "natgeo",
"limit": 4,
},
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Request body
{
"username": "natgeo",
"limit": 4
}Example response
The example response of the API reference, with lists cut to their first 3 items and long text shortened.
{
"data": {
"username": "natgeo",
"missing_cdn": 0,
"result": {
"entity_type": "media",
"account_role": "media",
"primary_niche": "outdoors",
"sub_niches": [
"wildlife",
"nature documentary",
"conservation"
],
"gender": "unknown",
"age_range": null,
"country": "United States",
"primary_language": "English",
"tagline": "Step into wonder and find your inner explorer with National Geographic.",
"bio_summary": "National Geographic’s official media account, sharing exploration, wildlife, nature, science, culture, and conservation stories.",
"content_summary": "Professional documentary photography and video focused on wildlife behavior, endangered species, conservation projects, natural phenomena, global traditions, health science, and promotion of National Geographic programming.",
"commercial_intent": "fully_commercial",
"brand_safety": "safe",
"visual": {
"content_format_mix": "mixed",
"visual_aesthetic": [
"nature-documentary",
"cinematic",
"editorial"
],
"face_presence": "mixed",
"production_quality": "professional",
"grid_consistency_score": 8,
"grid_consistency_note": "The grid is unified by polished documentary imagery and close, story-driven framing, while subjects and colors vary across wildlife and culture.",
"dominant_palette": [
"#151816",
"#785E44",
"#6E7A69"
],
"content_pillars": [
"wildlife encounters",
"animal conservation",
"cultural traditions"
],
"brand_collab_evidence": false,
"visual_hook_style": "Dramatic animal close-ups, action moments, vivid cultural imagery, and human-animal interaction, with occasional short headline overlays.",
"thumbnail_text_usage": "some"
}
},
"input_tokens": 3602,
"output_tokens": 701,
"duration_ms": 23200,
"image_base64": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUV..."
},
"meta": {
"cost": "$0.0500",
"balance": "$9.9995",
"request_id": "req_4cf60b0b3436e5075ca6078201c8f6c0"
}
}How it works
Renders an Instagram account’s stored profile header and recent post grid as one JPEG and classifies it with a vision model: entity type, account role, niche and sub-niches, country, language, commercial intent, brand safety, and a visual read of the grid (format mix, aesthetic, palette, content pillars). The answer also carries the JPEG the model saw in data.image_base64 and the token counts. The result is returned, not stored. An account we do not store is a 404 and is not billed. The example image is truncated.
Errors
| Status | When |
|---|---|
400 | The request parameters are invalid. |
401 | Missing, malformed, or revoked API key. |
402 | Balance is too low for this request. |
404 | The account is not in the tracked corpus. |
429 | Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged. |
502 | The upstream fetch failed. You are not charged. |
503 | Billing could not be confirmed, so no upstream data was returned. |
504 | The upstream request timed out. You are not charged. |