---
search:
  tags:
    - 3D
    - POST
seo:
  description: >-
    Generates one 3D model as a glb file from text, one image or several…
    Reference for the POST /v1/3d/generations endpoint in the Yir Standard Async
    AIGC API.
sidebar:
  label: Submit a 3D job
  badge: POST
title: Submit a 3D job
type: openapi-operation
---
Generates one 3D model as a glb file from text, one image or several views. Texture, PBR maps, face count and topology follow parameters within the model contract; the result file reports the measured face count.

`POST /v1/3d/generations`

**Request body** (`application/json`, required)

- `billing_mode` (ActualBillingMode) — Legacy compatibility field. Omit for new requests. When retrying an existing idempotency key, preserve its original request including this field. Explicit consent to the authoritative actual cost of every upstream-billed attempt of the Job, without a max\_cost cap. Eligible channels must provide authoritative task-level charges. Automatic routing is supported; routing.only is optional and, when supplied, remains binding. Cannot be combined with max\_cost. Insufficient wallet funds become Job debt repaid by future manual recharge; outstanding debt blocks new Jobs. Every attempt the upstream actually billed is charged to the user, including failed and non-winning ones; attempts the upstream did not bill, and Yir's own delivery failures or outcome timeouts, are not charged. Omit for the default contract: balance is not frozen, each attempt checks the live balance against its route estimate, each upstream-billed attempt is charged at the authoritative upstream amount after the managed discount, and an explicit max\_cost caps the Job's total charge.
- `max_cost` (MaxCost) — Optional cap on the Job's total charge in USD, with up to 6 decimal places. Balance is not frozen: admission and every attempt submission check the live available balance against that route's estimate (catalog price for fixed routes, output estimate for usage-based routes). Every attempt the upstream actually billed is charged at the authoritative upstream amount after the managed discount, whether it succeeded, failed, or was followed by a fallback; attempts the upstream never billed cost nothing, and Yir absorbs its own delivery failures and outcome timeouts. A result the upstream billed that Yir rejects as \`YIR\_CONTENT\_REJECTED\` is charged the same way but not delivered. Any part the balance cannot cover becomes a negative balance that blocks new jobs until a top-up. With max\_cost, routes whose estimate exceeds it are skipped, and the Job's total charge across all attempts never exceeds it; Yir absorbs any excess. If no route fits, the request is rejected with 422 \`YIR\_BUDGET\_EXCEEDED\` naming the lowest current estimate. Estimates are not locked: channel availability, routing defaults and catalog prices can change them, so a tight cap can start rejecting requests that used to pass. Leave headroom over the quote, and on \`YIR\_BUDGET\_EXCEEDED\` quote again before deciding to raise the cap. Historical jobs retain their recorded billing terms.
- `model` (string, required) — 3D model ID or alias listed by GET /v1/models. An unknown or retired model returns 400 YIR\_INVALID\_REQUEST with retryable false.
- `input` (Standard3DTextInput | Standard3DImageInput | Standard3DMultiviewInput, required)
- `routing` (RoutingOverride) — Request-scoped routing intent. only is an unordered Provider allowlist; selection and fallback stay within this set and within any channel restrictions on the API Key's routing profile. 'official' is accepted as an alias for the model's official provider channel in both only and variants (normalized before execution). A single item supports targeted testing. Custom order is not supported. preference and fallback remain optional.
- `webhook_url` (string<uri>)
- `parameters` (Standard3DParameters) — Optional 3D parameters; omitted fields take the model defaults and a model accepts only the values its contract declares. Every Job delivers one glb file.

Request body example:

```json
{
  "model": "tripo/tripo-h3.1",
  "input": {
    "type": "text",
    "prompt": "A weathered wooden armchair with a woven seat"
  },
  "parameters": {
    "texture": "standard",
    "pbr": true
  },
  "webhook_url": "https://example.com/webhooks/yir"
}
```

**Responses**

- `202` — Job accepted
- `400`
- `401`
- `402`
- `403` — The API key reached its monthly spend limit (YIR\_SPEND\_LIMIT\_EXCEEDED), or the account is restricted from submitting new Jobs (YIR\_ACCOUNT\_RESTRICTED), for example paused after repeated content safety rejections. Neither is retried automatically.
- `409`
- `422` — No route can execute the request within its constraints (YIR\_NO\_EXECUTABLE\_ROUTE). When every channel that supports the request is temporarily down, the error is retryable and carries Retry-After.
- `429` — Too many Jobs are in progress, or the API key exceeded its per-minute request rate (YIR\_RATE\_LIMITED).
- `503`

Response example, 202:

```json
{
  "parameter_notices": [
    {
      "name": "string",
      "disposition": "ignored",
      "reason": "channel_parameter_unsupported",
      "message": "string"
    }
  ],
  "id": "string",
  "object": "job",
  "final_provider": "string",
  "status": "queued",
  "model": "string",
  "parameters": {
    "size": "string",
    "quality": "string",
    "fps": 1,
    "duration": 1,
    "resolution": "string",
    "aspect_ratio": "string",
    "generate_audio": true,
    "dynamic_range": "hdr",
    "instrumental": true,
    "lyrics_optimizer": true,
    "voice": "string",
    "n": 1,
    "max_images": 2
  },
  "urls": {
    "get": "string",
    "cancel": "string"
  },
  "result": {
    "availability": "available",
    "files": [
      {
        "url": "http://example.com",
        "media_type": "string",
        "width": 0,
        "height": 0,
        "duration_ms": 1,
        "faces": 1,
        "swap_checks": {
          "threshold": 0,
          "all_swapped": true,
          "passes": 0,
          "slots": [
            {
              "id": "string",
              "similarity_to_original": 0,
              "swapped": true
            }
          ]
        },
        "layer": {
          "z_index": 0,
          "bounding_box": {
            "absolute": [
              0,
              0,
              0,
              0
            ],
            "normalized": [
              0,
              0,
              0,
              0
            ]
          }
        },
        "expires_at": 1,
        "fidelity": {
          "grade": "original",
          "reason": "string"
        }
      }
    ],
    "warnings": [
      "additional_results_unavailable"
    ],
    "content_safety": {
      "status": "passed",
      "checked_by": "provider"
    }
  },
  "usage": {
    "outputs": 0
  },
  "billing": {
    "billing_mode": "actual",
    "currency": "USD",
    "compute_charges": [
      {
        "supply_type": "managed",
        "billed_by": "yir",
        "amount": "string",
        "amount_basis": "yir_price_rule",
        "usage": [
          {
            "metric": "string",
            "quantity": "string",
            "unit": "string"
          }
        ],
        "status": "settled"
      }
    ],
    "gateway_fee": {
      "amount": "string",
      "status": "settled"
    },
    "status": "pending",
    "total_charged_by_yir": "string",
    "max_cost": "string",
    "official_comparison": {
      "baseline_amount": "string",
      "savings_amount": "string",
      "source_url": "http://example.com"
    }
  },
  "error": {
    "code": "YIR_INVALID_REQUEST",
    "message": "string",
    "retryable": true,
    "action": "fix_request",
    "provider_error": {
      "provider": "string",
      "message": "string"
    },
    "details": [
      {
        "field": "string",
        "reason": "invalid_body",
        "allowed": [
          "string"
        ],
        "expected": "string"
      }
    ]
  },
  "cancellation": {
    "status": "cancelled",
    "effect": "stop_future_attempts",
    "requested_at": 1
  },
  "created_at": 1,
  "completed_at": 1
}
```
