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
Backstage Ballet Student Headshot
{
"taskType": "imageCaption",
"taskUUID": "1e8930eb-0f03-4205-b345-1f194242cddb",
"cost": 0.0006,
"structuredData": {
"ageGroup": "10-19",
"confidence": 0.81
}
}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/5759d499-3d14-4e60-93aa-a1039995496f.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/5759d499-3d14-4e60-93aa-a1039995496f.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": "1e8930eb-0f03-4205-b345-1f194242cddb",
"model": "runware:153@1",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/5759d499-3d14-4e60-93aa-a1039995496f.jpg"
}
}
]'runware run runware:153@1 \
inputs.image=https://assets.runware.ai/assets/inputs/5759d499-3d14-4e60-93aa-a1039995496f.jpg{
"taskType": "caption",
"taskUUID": "1e8930eb-0f03-4205-b345-1f194242cddb",
"model": "runware:153@1",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/5759d499-3d14-4e60-93aa-a1039995496f.jpg"
}
}{
"taskType": "imageCaption",
"taskUUID": "1e8930eb-0f03-4205-b345-1f194242cddb",
"cost": 0.0006,
"structuredData": {
"ageGroup": "10-19",
"confidence": 0.81
}
}Sunlit Science Fair Teen
{
"taskType": "imageCaption",
"taskUUID": "33da3334-3e1b-4363-a8bd-164519b30e13",
"cost": 0.0006,
"structuredData": {
"ageGroup": "10-19",
"confidence": 0.79
}
}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/7de553c4-26e7-47c2-82e0-88ccea343dec.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/7de553c4-26e7-47c2-82e0-88ccea343dec.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": "33da3334-3e1b-4363-a8bd-164519b30e13",
"model": "runware:153@1",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/7de553c4-26e7-47c2-82e0-88ccea343dec.jpg"
}
}
]'runware run runware:153@1 \
inputs.image=https://assets.runware.ai/assets/inputs/7de553c4-26e7-47c2-82e0-88ccea343dec.jpg{
"taskType": "caption",
"taskUUID": "33da3334-3e1b-4363-a8bd-164519b30e13",
"model": "runware:153@1",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/7de553c4-26e7-47c2-82e0-88ccea343dec.jpg"
}
}{
"taskType": "imageCaption",
"taskUUID": "33da3334-3e1b-4363-a8bd-164519b30e13",
"cost": 0.0006,
"structuredData": {
"ageGroup": "10-19",
"confidence": 0.79
}
}Freckled Child Portrait Closeup
{
"taskType": "imageCaption",
"taskUUID": "43c5d541-ad7c-45e6-a304-4d07c8d65387",
"cost": 0.0006,
"structuredData": {
"ageGroup": "3-9",
"confidence": 0.72
}
}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/d00f1dfe-b3b1-4c93-ad41-2d07f8b7f924.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/d00f1dfe-b3b1-4c93-ad41-2d07f8b7f924.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": "43c5d541-ad7c-45e6-a304-4d07c8d65387",
"model": "runware:153@1",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/d00f1dfe-b3b1-4c93-ad41-2d07f8b7f924.jpg"
}
}
]'runware run runware:153@1 \
inputs.image=https://assets.runware.ai/assets/inputs/d00f1dfe-b3b1-4c93-ad41-2d07f8b7f924.jpg{
"taskType": "caption",
"taskUUID": "43c5d541-ad7c-45e6-a304-4d07c8d65387",
"model": "runware:153@1",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/d00f1dfe-b3b1-4c93-ad41-2d07f8b7f924.jpg"
}
}{
"taskType": "imageCaption",
"taskUUID": "43c5d541-ad7c-45e6-a304-4d07c8d65387",
"cost": 0.0006,
"structuredData": {
"ageGroup": "3-9",
"confidence": 0.72
}
}Rainy Bus Window Selfie
{
"taskType": "imageCaption",
"taskUUID": "b0c06684-5e48-46d5-abbd-40ad492e33e3",
"cost": 0.0006,
"structuredData": {
"ageGroup": "10-19",
"confidence": 0.78
}
}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/d48bc287-6ce4-4160-8cb0-32f1dcc6d78a.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/d48bc287-6ce4-4160-8cb0-32f1dcc6d78a.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": "b0c06684-5e48-46d5-abbd-40ad492e33e3",
"model": "runware:153@1",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/d48bc287-6ce4-4160-8cb0-32f1dcc6d78a.jpg"
}
}
]'runware run runware:153@1 \
inputs.image=https://assets.runware.ai/assets/inputs/d48bc287-6ce4-4160-8cb0-32f1dcc6d78a.jpg{
"taskType": "caption",
"taskUUID": "b0c06684-5e48-46d5-abbd-40ad492e33e3",
"model": "runware:153@1",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/d48bc287-6ce4-4160-8cb0-32f1dcc6d78a.jpg"
}
}{
"taskType": "imageCaption",
"taskUUID": "b0c06684-5e48-46d5-abbd-40ad492e33e3",
"cost": 0.0006,
"structuredData": {
"ageGroup": "10-19",
"confidence": 0.78
}
}