# VGGT-1B API

> அதிகபட்சம் 48 படங்கள் அல்லது ஒரு வீடியோவிலிருந்து 3D காட்சியை மறுகட்டமைத்து, ஆழ வரைபடங்கள், கேமரா நிலைகள் மற்றும் புள்ளி மேகத்தைத் திருப்பி அளிக்கிறது

பல காட்சிகளிலிருந்து வடிவியலை மதிப்பிடுகிறது. `image_urls`-இல் அதிகபட்சம் 48 படங்களை வழங்கலாம்; விருப்பத்திற்கேற்ப ஒவ்வொரு `frame_sampling_rate` ஃப்ரேம்களுக்கும் மாதிரியாக்கப்பட்ட `video_url`-ஐச் சேர்க்கலாம். இது ஒவ்வொரு ஃப்ரேமுக்குமான ஆழ வரைபடங்கள், கேமரா வெளிப்புற மற்றும் உள்புற அளவுருக்கள், மூலக் கணிப்பு கோப்புகள், கேமரா கூம்புகளுடன் கூடிய GLB புள்ளி மேகம் ஆகியவற்றைத் திருப்பி வழங்குகிறது. புள்ளி மேகத்தின் அடர்த்தியை `confidence_percentile` மற்றும் `max_points` கட்டுப்படுத்தும்.

- Model id: `vggt-1b`
- Made by: Meta
- Category: Vision
- Output: json
- Charged by usage (up to $1.755 per run, typical $0.04; the rest of the hold is refunded): $0.000975 / second of processing time (cheapest run $0.04 (40 API credits))
- Run: `POST https://api.doitong.ru/v1/run/vggt-1b`
- Quote: `POST https://api.doitong.ru/v1/quote/vggt-1b`
- Docs page: https://doitong.com/ta/developers/models/vggt-1b

## Pricing

Price: **$0.000975 / second of processing time**. Charged by actual usage at $0.000975 / second of processing time: up to $1.755 per run (the quote gives the maximum for your input), the rest is refunded automatically after the run. A typical run costs $0.04.

The full example input below holds up to $1.755 = 1755 API credits (up to 1800 s of processing time × $0.000975) when it starts; a typical run costs $0.04 (40 API credits).

Prices are the upstream price in USD, paid from the API balance in API credits (1000 API credits = 1 USD). This model is charged by usage: `POST https://api.doitong.ru/v1/quote/vggt-1b` with the same JSON body returns the most the run can cost for that input (`credits`, debited when the run starts); after the run you pay the usage the model reports and the rest is refunded automatically. An input whose maximum would exceed the per-run limit is refused with 422. Invalid input is never charged and failed or canceled requests are refunded automatically.

## Input parameters

Send either the canonical name or the native field name (not both). Canonical names are the same across models.

| Parameter | Canonical name | Type | Required | Default | Allowed values / range | Description |
|---|---|---|---|---|---|---|
| `image_urls` | `images` | array of image URL | no |  | ≤ 48 items | மறுகட்டமைப்புக்கான மூலப் படங்கள்; ஒவ்வொன்றும் சதுரமாக நிரப்பப்பட்டு, அதிகபட்ச பரிமாணம் 518 பிக்சல்களாக மாற்றப்படும். JPEG, PNG, WEBP மற்றும் Pillow மூலம் டிகோடு செய்யக்கூடிய கூடுதல் பட வடிவங்கள் ஏற்கப்படும். |
| `video_url` | `video` | string (video URL) \| null | no |  |  | ஒருங்கிணைந்த உள்ளீட்டில் image_urls க்குப் பின் மாதிரியாக்கப்பட்ட ஃப்ரேம்கள் வரும் விருப்ப மூல வீடியோ. ஒவ்வொரு `frame_sampling_rate`-வது ஃப்ரேமும் மாதிரியாக்கப்படும்; முதல் மற்றும் கடைசி ஃப்ரேம்கள் எப்போதும் சேர்க்கப்படும். |
| `frame_sampling_rate` |  | integer | no | `24` | 1 – 1,000 | `video_url` வழியாக வீடியோ வழங்கப்படும்போது மட்டுமே பயன்படுத்தப்படும் ஃப்ரேம் இடைவெளி; இல்லையெனில் எந்த விளைவும் இல்லை. இடைவெளியைப் பொருட்படுத்தாமல் இரு எல்லை ஃப்ரேம்களும் தக்கவைக்கப்படும்; இடையில் ஒவ்வொரு n-வது ஃப்ரேமும் மாதிரியாக்கப்படும். |
| `alpha_blend_onto` |  | enum (string) | no | `white` | `keep`, `white`, `black`, `mean` | Alpha-சேனல் கையாளுதலில் நான்கு தேர்வுகள் உள்ளன: 'keep' அசல் பிக்சல் மதிப்புகளை மாற்றாமல் alpha ஐ நீக்கும்; 'mean' ImageNet சராசரி RGB க்கு எதிராகக் கலக்கும். ஒரேநிறப் பின்னணிக்கு, தொடர்புடைய நிறத்துக்கு எதிராகக் கலக்க 'white' அல்லது 'black' ஐத் தேர்ந்தெடுக்கவும். |
| `export_prediction_data` |  | boolean | no | `true` |  | தனிப்பட்ட ஃப்ரேம்களுக்கான மூல முன்னறிவிப்புகளைத் தனித்தனி JSON கோப்புகளாக ஏற்றுமதி செய்யவும். ஒவ்வொரு கோப்பிலும் ஆழமும் அதன் நம்பிக்கையும், ஒரு முகமூடியும், குறியிடப்பட்ட கேமரா நிலையும் அடங்கும். |
| `export_depth_maps` |  | boolean | no | `true` |  | `depth_range` ஐ 0–65535 பிக்சல் மதிப்புகளாக நேரியல் முறையில் மாற்றியமைத்து ஆழ ராஸ்டர்களை ஏற்றுமதி செய்யவும். ஒவ்வொரு ஃப்ரேமுக்கும் 16-bit துல்லியத்துடன் தனித்தனி grayscale PNG கிடைக்கும். |
| `export_point_cloud` |  | boolean | no | `true` |  | இணைக்கப்பட்ட வண்ணப் புள்ளி மேகத்தை GLB வடிவில் ஏற்றுமதி செய்யவும்; மதிப்பிடப்பட்ட கேமராக்கள் காட்சியில் தனித்தனி கூம்பு மெஷ்களாகக் குறிப்பிடப்படும். |
| `array_encoding` |  | enum (string) | no | `base64` | `base64`, `list` | prediction JSON கோப்புகளுக்கான வரிசை சேமிப்பு வடிவம்; 'list' ஆனது 'base64' விட அதிக இடத்தைப் பயன்படுத்தும். உள்ளமை JSON பட்டியல்களுக்கு 'list' அல்லது {data, shape, dtype} கொண்ட பொருட்களுக்கு 'base64' என்பதைத் தேர்ந்தெடுக்கவும். |
| `exclude_keys` |  | array of enum (string) | no |  |  | ஒவ்வொரு prediction JSON கோப்பிலிருந்தும் விலக்கப்படும் விசைகள். |
| `confidence_percentile` |  | number | no | `50` | 0 – 100 | புள்ளித் தொகுப்பு உருவாக்கத்திற்கான நம்பகத்தன்மை அடிப்படையிலான வடிகட்டல் சதவீதம்: 0 வடிகட்டலை முடக்கும்; பிற மதிப்புகள் குறைந்த நம்பகத்தன்மையுள்ள புள்ளிகளில் தொடங்கி, அந்தச் சதவீதப் புள்ளிகளை விலக்கும். |
| `max_points` |  | integer | no | `250000` | 1,000 – 5,000,000 | GLB புள்ளி எண்ணிக்கை வரம்பு, இயல்புநிலை 250,000. வரிசைப்படுத்தல் மற்றும் பதிவேற்ற தாமதத்தைக் குறைக்க, தொகுப்பை மேககம் மீறும்போது சமமாகத் துணைமாதிரியாகத் தேர்ந்தெடுக்கப்பட்ட பகுதி எழுதப்படும். |
| `enable_safety_checker` |  | boolean | no | `true` |  | உள்ளீடு படங்கள் மற்றும் வீடியோவுக்கான பாதுகாப்புச் சரிபார்ப்பு மாற்றி. |

File parameters (`images`, `video`) take a public `https://` URL, a `data:` URI up to 10 MB, or the `file_url` of an upload from `POST /files`.

## Example input

Required parameters only:

```json
{}
```

A fuller example:

```json
{}
```

## Run it

Set `DOITONG_API_KEY` to a key from https://doitong.com/developers/dashboard#keys. `?wait=20` returns the finished request in the same call when it is ready within 20 seconds; otherwise poll `GET /requests/{id}` (it also accepts `?wait=`), or pass `webhook_url`.

### curl

```bash
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/vggt-1b?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"
```

### JavaScript

```javascript
const API = "https://api.doitong.ru/v1";
const headers = {
  "Authorization": "Bearer " + process.env.DOITONG_API_KEY,
  "Content-Type": "application/json",
};

// Run the model; wait up to 20 s for the finished result in the same call
let res = await fetch(API + "/run/vggt-1b?wait=20", {
  method: "POST",
  headers,
  body: JSON.stringify({}),
});
let request = await res.json();
if (!res.ok) throw new Error(request.error.code + ": " + request.error.message);

// Not finished yet: long-poll until it is
while (request.status === "queued" || request.status === "running") {
  res = await fetch(API + "/requests/" + request.id + "?wait=20", { headers });
  request = await res.json();
}
if (request.status !== "succeeded") throw new Error(JSON.stringify(request.error));
console.log(request.outputs.map((o) => o.url), request.cost.credits + " API credits ($" + request.cost.usd + ")");
```

### Python

```python
import os
import requests

API = "https://api.doitong.ru/v1"
headers = {"Authorization": "Bearer " + os.environ["DOITONG_API_KEY"]}

payload = {}

# Run the model; wait up to 20 s for the finished result in the same call
r = requests.post(API + "/run/vggt-1b", params={"wait": 20}, json=payload, headers=headers)
request = r.json()
if not r.ok:
    raise RuntimeError(request["error"]["code"] + ": " + request["error"]["message"])

# Not finished yet: long-poll until it is
while request["status"] in ("queued", "running"):
    request = requests.get(API + "/requests/" + request["id"], params={"wait": 20}, headers=headers).json()
if request["status"] != "succeeded":
    raise RuntimeError(request["error"])
print([o["url"] for o in request["outputs"]], request["cost"]["credits"], "API credits", "$" + request["cost"]["usd"])
```

### MCP

The MCP server at `https://api.doitong.ru/v1/mcp` exposes the tools `search_models`, `get_model`, `quote`, `run`, `get_request`, `cancel_request`, `list_requests`, `create_upload` and `get_account`. A `run` call for this model:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "run",
    "arguments": {
      "model_id": "vggt-1b",
      "input": {},
      "wait_seconds": 20
    }
  }
}
```

## Response

Every call returns a request object. `status` is one of `queued`, `running`, `succeeded`, `failed`, `canceled`. `outputs` lists the generated files with URLs on our storage (kept forever, or 7 days with `?storage=temporary`; `storage` says which); `output` is the model's own result object with the same URLs.

```json
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "vggt-1b",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 1755,
    "usd": "1.755",
    "charged": 1755,
    "refunded": 0
  },
  "input": {},
  "output": {
    "point_cloud": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    },
    "depth_maps": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ],
    "prediction_data": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200
      }
    ],
    "num_frames": 1,
    "depth_range": [
      1.0
    ],
    "extrinsics": [
      [
        [
          1.0
        ]
      ]
    ],
    "intrinsics": [
      [
        [
          1.0
        ]
      ]
    ],
    "timings": {}
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
```

### Output fields (`output`)

| Field | Type | Description |
|---|---|---|
| `point_cloud` | object {url, content_type, file_name, file_size} \| null | `export_point_cloud` true ஆக இருக்கும்போது வழங்கப்படும் புள்ளித் தொகுப்பு ஏற்றுமதி; அதன் GLB காட்சி, இணைக்கப்பட்ட மேககத்தையும் கேமரா கூம்புகளையும் ஒருங்கிணைக்கிறது. |
| `depth_maps` | array of object {url, content_type, file_name, file_size, width, height} | `export_depth_maps` true ஆக இருக்கும்போது கிடைக்கும் ஆழ வரைபட ஏற்றுமதி. பதிவுகள் மூல ஃப்ரேம் வரிசையைப் பின்பற்றும்; ஒவ்வொரு ஃப்ரேமும் 16-bit ஆழமுள்ள சாம்பல் நிற PNG ராஸ்டராகக் குறிக்கப்படும். |
| `prediction_data` | array of object {url, content_type, file_name, file_size} | மூல prediction ஏற்றுமதி: `export_prediction_data` true ஆக இருக்கும்போது, ஒவ்வொரு ஃப்ரேமுக்கும் தனித்த JSON கோப்பு இருக்கும்; கோப்புகள் ஃப்ரேம் வரிசையைப் பின்பற்றும். |
| `num_frames` | integer | படங்கள் மற்றும் வீடியோவிலிருந்து மாதிரியாக்கப்பட்ட ஃப்ரேம்கள் உட்பட, மறுகட்டமைக்கப்பட்ட மொத்த ஃப்ரேம் எண்ணிக்கை. |
| `depth_range` | array of number | `depth_maps` அளவாக்கத்திற்குப் பயன்படுத்தப்படும் ஆழ வரம்புகள் [min, max]. ஆழத்தை min + pixel * (max - min) / 65535 என மீட்டெடுக்கவும். |
| `extrinsics` | array of array of array of number | ஒவ்வொரு ஃப்ரேமுக்குமான 3x4 அளவுள்ள, உலகிலிருந்து கேமராவுக்கான வெளிப்புற அணிகள்; OpenCV அச்சுகள் x வழியாக வலப்புறமும், y வழியாகக் கீழ்ப்புறமும், z வழியாக முன்னோக்கியும் சுட்டுகின்றன. |
| `intrinsics` | array of array of array of number | ஒவ்வொரு ஃப்ரேமுக்குமான 3x3 அளவுள்ள பின்ஹோல் உள்புற அணிகள்; மாதிரியின் 518x518 ஃப்ரேமின் பிக்சல் ஒருங்கிணைப்புகளில் வெளிப்படுத்தப்படுகின்றன. |
| `timings` | object | ஒவ்வொரு கட்டத்திற்கும் கடந்த மொத்த நேரம், வினாடிகளில். |

## Related models

- [Sam 3 · Image · Embed](https://doitong.com/developers/models/sam-3/image/embed.md) (`sam-3/image/embed`): $0.005 / run
- [Bagel · Understand](https://doitong.com/developers/models/bagel/understand.md) (`bagel/understand`): $0.05 / request
- [Bria Ad Delayer](https://doitong.com/developers/models/bria/ad-delayer.md) (`bria/ad-delayer`): $0.30 / request
- [Florence 2 Large Caption](https://doitong.com/developers/models/florence-2-large/caption.md) (`florence-2-large/caption`): $0.003 / run
- [Florence 2 Large Detailed Caption](https://doitong.com/developers/models/florence-2-large/detailed-caption.md) (`florence-2-large/detailed-caption`): $0.004 / run
- [Florence 2 Large OCR](https://doitong.com/developers/models/florence-2-large/ocr.md) (`florence-2-large/ocr`): $0.003 / run
- [Florence 2 Large Region To Category](https://doitong.com/developers/models/florence-2-large/region-to-category.md) (`florence-2-large/region-to-category`): $0.003 / run
- [Florence-2 Large · More Detailed Caption](https://doitong.com/developers/models/florence-2-large/more-detailed-caption.md) (`florence-2-large/more-detailed-caption`): $0.004 / run

## Links

- HTML page: https://doitong.com/developers/models/vggt-1b
- All models and guides for AI agents: https://doitong.com/developers/llms.txt
- OpenAPI 3.1 with this model's typed request body: https://doitong.com/developers/openapi.json?model=vggt-1b
- Errors: https://doitong.com/developers/docs/errors
- Model details as JSON: https://api.doitong.ru/v1/models/vggt-1b
