{
  "openapi": "3.1.0",
  "info": {
    "title": "Runware API - Qwen2.5-VL-7B Age Detector",
    "summary": "Vision-language age estimation model",
    "description": "Qwen2.5-VL-7B Age Detector is a multimodal model that analyzes a facial image to estimate age. It uses the vision encoder from Qwen2.5-VL-7B and its instruction-tuned language backbone to interpret visual features and output age predictions or age categories.",
    "version": "1.0.0",
    "x-model-id": "qwen2-5-vl-7b-age-detector",
    "x-air-id": "qwen2-5-vl-7b-age-detector",
    "x-status": "live",
    "x-creator": {
      "id": "alibaba",
      "name": "Alibaba",
      "logo": "https://assets.runware.ai/cd72ed4c-ef94-4962-a44b-cbe38b3bf6ea.png"
    },
    "x-capabilities": [
      "image-to-text",
      "age-classification",
      "checkpoint"
    ],
    "x-modes": [
      {
        "id": "image",
        "inputs": [
          "image"
        ]
      }
    ],
    "x-released-at": "2025-04-06T00:00:00Z",
    "x-cover-image": "https://assets.runware.ai/covers/qwen2-5-vl-7b-age-detector.jpg",
    "x-examples": "https://runware.ai/docs/models/qwen2-5-vl-7b-age-detector/examples.json",
    "x-pricing": {
      "currency": "USD",
      "docs": "https://runware.ai/docs/models-api/pricing",
      "measured": [
        {
          "configuration": "1024×1024 input",
          "price": 0.0015,
          "latencyMs": 3651
        }
      ],
      "examples": [
        {
          "id": "clinical-trial-age-cohort-review",
          "configuration": "caption",
          "price": 0.0006,
          "latencyMs": 4693
        },
        {
          "id": "culinary-talent-age-band-assessment",
          "configuration": "caption",
          "price": 0.0006,
          "latencyMs": 4566
        },
        {
          "id": "alcohol-delivery-age-triage",
          "configuration": "caption",
          "price": 0.0006,
          "latencyMs": 13150
        },
        {
          "id": "insurance-spokesperson-casting-age-review",
          "configuration": "caption",
          "price": 0.0006,
          "latencyMs": 4649
        }
      ]
    }
  },
  "externalDocs": {
    "description": "Qwen2.5-VL-7B Age Detector on Runware",
    "url": "https://runware.ai/docs/models/qwen2-5-vl-7b-age-detector"
  },
  "servers": [
    {
      "url": "https://api.runware.ai/v1",
      "description": "Runware REST API"
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Runware API Key (e.g., Bearer <your-key>)"
      }
    },
    "schemas": {
      "AuthenticationTask": {
        "title": "Authentication",
        "description": "Authenticates a connection using an API key. Can be sent as the first element of the request array as an alternative to using the Authorization header.",
        "type": "object",
        "x-response-schema": "https://schemas.runware.ai/responses/utilities/authentication.json",
        "properties": {
          "taskType": {
            "title": "Task Type",
            "description": "Identifier for the type of task being performed.",
            "type": "string",
            "const": "authentication"
          },
          "apiKey": {
            "title": "API Key",
            "description": "Your Runware API key.",
            "type": "string"
          },
          "connectionSessionUUID": {
            "title": "Connection Session UUID",
            "description": "Optional session UUID to resume a previous connection and receive any buffered results.",
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "taskType",
          "apiKey"
        ],
        "additionalProperties": false
      },
      "RequestBody": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "model": {
              "title": "Model",
              "description": "Send `auto` instead of an AIR identifier to have the model router choose the model for this task. The rest of the request is unchanged, every value you send is kept, and only the parameters you leave out are filled in. See [Model Router](https://runware.ai/docs/models-api/model-router).\n\n[Read full documentation](https://runware.ai/docs/models/qwen2-5-vl-7b-age-detector#model)",
              "type": "string",
              "const": "runware:152@50"
            },
            "taskType": {
              "title": "Task Type",
              "description": "Identifier for the type of task being performed.",
              "type": "string",
              "const": "caption"
            },
            "taskUUID": {
              "title": "Task UUID",
              "description": "UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.",
              "type": "string",
              "format": "uuid"
            },
            "webhookURL": {
              "title": "Webhook URL",
              "description": "Webhook URL that receives JSON responses via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.",
              "type": "string",
              "format": "uri"
            },
            "includeCost": {
              "title": "Include Cost",
              "description": "Include task cost in the response.",
              "type": "boolean"
            },
            "deliveryMethod": {
              "title": "Delivery Method",
              "description": "Determines how the API delivers task results.",
              "type": "string",
              "oneOf": [
                {
                  "const": "sync",
                  "description": "Returns results directly in the API response. Over HTTP, a task still running after 120 seconds continues as an async task and comes back with status 'processing'. Poll for its results using getResponse."
                },
                {
                  "const": "async",
                  "description": "Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse."
                }
              ],
              "default": "sync"
            },
            "inputs": {
              "title": "Inputs",
              "description": "Input assets for the task.",
              "type": "object",
              "properties": {
                "image": {
                  "title": "Image",
                  "description": "Image input (UUID, URL, Data URI, or Base64).",
                  "type": "string",
                  "anyOf": [
                    {
                      "format": "uuid"
                    },
                    {
                      "format": "uri"
                    },
                    {
                      "pattern": "^data:image\\/[a-zA-Z]+;base64,[a-zA-Z0-9+/=]+$"
                    },
                    {
                      "pattern": "^[a-zA-Z0-9+/=]+$"
                    }
                  ]
                }
              },
              "required": [
                "image"
              ],
              "additionalProperties": false
            }
          },
          "additionalProperties": false,
          "required": [
            "taskType",
            "taskUUID",
            "model",
            "inputs"
          ]
        },
        "description": "You must always POST an array of task objects."
      },
      "ResponseBody": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "title": "Age Classification Response",
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "taskType": {
                  "title": "Task Type",
                  "description": "Identifier for the type of task this response belongs to.",
                  "type": "string",
                  "const": "caption"
                },
                "taskUUID": {
                  "title": "Task UUID",
                  "description": "UUID v4 identifier echoed from the original request, used to match async responses to their tasks.",
                  "type": "string",
                  "format": "uuid"
                },
                "cost": {
                  "title": "Cost",
                  "description": "Task cost in USD. Present when `includeCost` is set to `true` in the request.",
                  "type": "number"
                },
                "structuredData": {
                  "type": "object",
                  "description": "Machine-readable age classification data.",
                  "properties": {
                    "ageGroup": {
                      "type": "string",
                      "description": "Predicted age range of the subject (e.g. `13-20`)."
                    },
                    "confidence": {
                      "type": "number",
                      "description": "Confidence score as a percentage.",
                      "minimum": 0,
                      "maximum": 100
                    }
                  },
                  "required": [
                    "ageGroup",
                    "confidence"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "taskType",
                "taskUUID",
                "structuredData"
              ]
            }
          }
        }
      },
      "ErrorResponse": {
        "title": "Error Response",
        "description": "Standard error response returned by the Runware API.",
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "code",
                "message"
              ],
              "additionalProperties": true,
              "properties": {
                "code": {
                  "type": "string",
                  "description": "A short identifier for the error (e.g., invalidApiKey, timeoutProvider)."
                },
                "message": {
                  "type": "string",
                  "description": "A human-readable explanation of what went wrong."
                },
                "parameter": {
                  "type": "string",
                  "description": "The request parameter related to the error, if applicable."
                },
                "taskType": {
                  "type": "string",
                  "description": "The task type of the request that failed."
                },
                "taskUUID": {
                  "type": "string",
                  "description": "The unique identifier of the failed request."
                },
                "documentation": {
                  "type": "string",
                  "description": "A link to relevant documentation."
                }
              }
            }
          }
        },
        "required": [
          "errors"
        ],
        "additionalProperties": false
      }
    }
  },
  "paths": {
    "/": {
      "post": {
        "summary": "Run Qwen2.5-VL-7B Age Detector",
        "description": "Qwen2.5-VL-7B Age Detector is a multimodal model that analyzes a facial image to estimate age. It uses the vision encoder from Qwen2.5-VL-7B and its instruction-tuned language backbone to interpret visual features and output age predictions or age categories.",
        "operationId": "run_qwen2_5_vl_7b_age_detector",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequestBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request — Missing or invalid parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized — No valid API key provided.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required — Insufficient account balance.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden — The API key lacks permissions for this request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests — Rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error — Something went wrong on Runware's end.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable — Temporarily unavailable (maintenance or capacity).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "apiKeyAuth": []
    }
  ]
}