ViT Age Classifier
ViT Age Classifier is an image classification model that predicts the age category of a person based on a facial image. It uses a Vision Transformer architecture fine-tuned for age estimation to analyze facial features and output structured age predictions.

API Reference
INTEGRATE
Complete technical specification for integration
RequestResponse
Examples4
CODE
Ready-to-use code snippets for common workflows
caption
Oral History Age Cohort Tag$0.0006~3s{
"taskType": "imageCaption",
"taskUUID": "b4b675b8-a2c4-4b98-acdf-9d323beee101",
"cost": 0.0006,
"structuredData": {
"ageGroup": "60-69",
"confidence": 0.6245
}
}import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:153@1',
inputs: {
image: 'https://assets.runware.ai/assets/inputs/93389581-decc-4991-beb9-6f75fee36e0a.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:153@1",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/93389581-decc-4991-beb9-6f75fee36e0a.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "caption",
"taskUUID": "b4b675b8-a2c4-4b98-acdf-9d323beee101",
"model": "runware:153@1",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/93389581-decc-4991-beb9-6f75fee36e0a.jpg"
}
}
]'runware run runware:153@1 \
inputs.image=https://assets.runware.ai/assets/inputs/93389581-decc-4991-beb9-6f75fee36e0a.jpg{
"taskType": "caption",
"taskUUID": "b4b675b8-a2c4-4b98-acdf-9d323beee101",
"model": "runware:153@1",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/93389581-decc-4991-beb9-6f75fee36e0a.jpg"
}
}Response
{
"taskType": "imageCaption",
"taskUUID": "b4b675b8-a2c4-4b98-acdf-9d323beee101",
"cost": 0.0006,
"structuredData": {
"ageGroup": "60-69",
"confidence": 0.6245
}
}caption
Museum Visitor Age-Segment Audit$0.0006~4s{
"taskType": "imageCaption",
"taskUUID": "c2a86bf1-0ef1-416a-8b69-ac4c96242da9",
"cost": 0.0006,
"structuredData": {
"ageGroup": "60-69",
"confidence": 0.561
}
}import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:153@1',
inputs: {
image: 'https://assets.runware.ai/assets/inputs/95238017-bcd7-4c3a-9188-bc5e10e4a1ef.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:153@1",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/95238017-bcd7-4c3a-9188-bc5e10e4a1ef.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "caption",
"taskUUID": "c2a86bf1-0ef1-416a-8b69-ac4c96242da9",
"model": "runware:153@1",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/95238017-bcd7-4c3a-9188-bc5e10e4a1ef.jpg"
}
}
]'runware run runware:153@1 \
inputs.image=https://assets.runware.ai/assets/inputs/95238017-bcd7-4c3a-9188-bc5e10e4a1ef.jpg{
"taskType": "caption",
"taskUUID": "c2a86bf1-0ef1-416a-8b69-ac4c96242da9",
"model": "runware:153@1",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/95238017-bcd7-4c3a-9188-bc5e10e4a1ef.jpg"
}
}Response
{
"taskType": "imageCaption",
"taskUUID": "c2a86bf1-0ef1-416a-8b69-ac4c96242da9",
"cost": 0.0006,
"structuredData": {
"ageGroup": "60-69",
"confidence": 0.561
}
}caption
Documentary Casting Age Cohort Check$0.0006~4s{
"taskType": "imageCaption",
"taskUUID": "138713ee-4605-4ed3-ba89-da1df2ff1a73",
"cost": 0.0006,
"structuredData": {
"ageGroup": "50-59",
"confidence": 0.5337
}
}import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:153@1',
inputs: {
image: 'https://assets.runware.ai/assets/inputs/b66f0c56-41d0-4240-ad5f-a8a5b0adf604.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:153@1",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/b66f0c56-41d0-4240-ad5f-a8a5b0adf604.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "caption",
"taskUUID": "138713ee-4605-4ed3-ba89-da1df2ff1a73",
"model": "runware:153@1",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/b66f0c56-41d0-4240-ad5f-a8a5b0adf604.jpg"
}
}
]'runware run runware:153@1 \
inputs.image=https://assets.runware.ai/assets/inputs/b66f0c56-41d0-4240-ad5f-a8a5b0adf604.jpg{
"taskType": "caption",
"taskUUID": "138713ee-4605-4ed3-ba89-da1df2ff1a73",
"model": "runware:153@1",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/b66f0c56-41d0-4240-ad5f-a8a5b0adf604.jpg"
}
}Response
{
"taskType": "imageCaption",
"taskUUID": "138713ee-4605-4ed3-ba89-da1df2ff1a73",
"cost": 0.0006,
"structuredData": {
"ageGroup": "50-59",
"confidence": 0.5337
}
}caption
Stock Portrait Age Metadata Tag$0.0006~3s{
"taskType": "imageCaption",
"taskUUID": "b0d77c3c-6b8d-4381-bd98-a69c283c71cb",
"cost": 0.0006,
"structuredData": {
"ageGroup": "60-69",
"confidence": 0.6069
}
}import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'runware:153@1',
inputs: {
image: 'https://assets.runware.ai/assets/inputs/fc0e4ac4-e0ba-49b8-93a3-0a5a3fc14b5b.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "runware:153@1",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/fc0e4ac4-e0ba-49b8-93a3-0a5a3fc14b5b.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "caption",
"taskUUID": "b0d77c3c-6b8d-4381-bd98-a69c283c71cb",
"model": "runware:153@1",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/fc0e4ac4-e0ba-49b8-93a3-0a5a3fc14b5b.jpg"
}
}
]'runware run runware:153@1 \
inputs.image=https://assets.runware.ai/assets/inputs/fc0e4ac4-e0ba-49b8-93a3-0a5a3fc14b5b.jpg{
"taskType": "caption",
"taskUUID": "b0d77c3c-6b8d-4381-bd98-a69c283c71cb",
"model": "runware:153@1",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/fc0e4ac4-e0ba-49b8-93a3-0a5a3fc14b5b.jpg"
}
}Response
{
"taskType": "imageCaption",
"taskUUID": "b0d77c3c-6b8d-4381-bd98-a69c283c71cb",
"cost": 0.0006,
"structuredData": {
"ageGroup": "60-69",
"confidence": 0.6069
}
}