> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gizmo.antimlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Export an asset

> Download one asset in MJCF, USD, USDZ, or SDF format. Pass the required `format` as a query parameter; no request body is needed. MJCF, USD, and SDF return a ZIP archive. USDZ returns a .usdz file. The response is binary data, not a download URL. GLB export is available in the editor.



## OpenAPI

````yaml /openapi.json post /v1/assets/{asset_id}/export
openapi: 3.1.0
info:
  title: Gizmo Asset API
  description: >-
    Generate and export individual 3D assets from text and reference images.


    Export to USD / USDZ (Isaac Sim), MJCF (MuJoCo), and SDF (Gazebo). GLB is
    only available via the editor UI.


    ## Authentication


    All endpoints require an API key passed via the `Authorization` header:


    ```

    Authorization: Bearer gzm_k1_<your-key>

    ```


    Create API keys in the [Gizmo
    Settings](https://gizmo.antimlabs.com/settings#api-keys) page.


    ## Rate Limiting


    Rate limits are per-key. Rate-limited API-key responses include:

    - `X-RateLimit-Limit` — requests allowed per minute

    - `X-RateLimit-Remaining` — requests remaining in current window

    - `X-RateLimit-Reset` — Unix timestamp when the window resets


    ## Async Generation


    Asset generation is asynchronous. `POST /v1/assets` returns `202 Accepted`
    with a `job_id`. Use `GET /v1/jobs/{id}` to poll or `GET
    /v1/jobs/{id}/events` for real-time SSE streaming.


    ## Errors


    Application errors normally use `detail.error`; request validation errors
    use an array in `detail`. Some authentication or service errors use a string
    in `detail`.

    ```json

    {"detail": {"error": {"code": "asset_not_found", "message": "Asset not
    found", "status": 404}}}

    ```
  version: 1.0.0
servers:
  - url: https://api.gizmo.antimlabs.com
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Assets
    description: >-
      Manage individual 3D assets (articulated objects, furniture, equipment).
      Generate from a prompt and optional reference images, then retrieve or
      export the result.
  - name: Jobs
    description: >-
      Monitor and control async generation jobs. Poll with `GET /v1/jobs/{id}`,
      stream real-time progress via `GET /v1/jobs/{id}/events` (SSE), or cancel
      with `POST /v1/jobs/{id}/cancel`.
  - name: Catalog
    description: >-
      Browse the premade asset library — thousands of physics-ready 3D objects
      organized by category. Download GLB/USDZ directly.
  - name: Account
    description: View your identity and API usage statistics.
paths:
  /v1/assets/{asset_id}/export:
    post:
      tags:
        - Assets
      summary: Export an asset
      description: >-
        Download one asset in MJCF, USD, USDZ, or SDF format. Pass the required
        `format` as a query parameter; no request body is needed. MJCF, USD, and
        SDF return a ZIP archive. USDZ returns a .usdz file. The response is
        binary data, not a download URL. GLB export is available in the editor.
      operationId: export_asset_v1_assets__asset_id__export_post
      parameters:
        - name: asset_id
          in: path
          required: true
          schema:
            type: string
            title: Asset Id
        - name: format
          in: query
          required: true
          schema:
            enum:
              - mjcf
              - usd
              - usdz
              - sdf
            type: string
            description: 'Export format: mjcf, usd, usdz, or sdf'
            title: Format
          description: 'Export format: mjcf, usd, usdz, or sdf'
      responses:
        '200':
          description: Exported asset file
          content:
            application/zip:
              schema:
                type: string
                format: binary
            model/vnd.usdz+zip:
              schema:
                type: string
                format: binary
        '401':
          description: Missing, invalid, or revoked API key
          content:
            application/json:
              example:
                detail:
                  error:
                    code: invalid_api_key
                    message: Invalid or revoked API key
                    status: 401
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: Asset not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              example:
                detail:
                  error:
                    code: rate_limit_exceeded
                    message: 'Rate limit exceeded: 60 requests per minute'
                    status: 429
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '500':
          description: Export processing error
components:
  schemas:
    ApiErrorResponse:
      properties:
        detail:
          anyOf:
            - $ref: '#/components/schemas/ApiErrorPayload'
            - type: string
          title: Detail
      type: object
      required:
        - detail
      title: ApiErrorResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ApiErrorPayload:
      properties:
        error:
          $ref: '#/components/schemas/ApiErrorDetail'
      type: object
      required:
        - error
      title: ApiErrorPayload
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ApiErrorDetail:
      properties:
        code:
          type: string
          title: Code
          description: Machine-readable error code
          examples:
            - asset_not_found
        message:
          type: string
          title: Message
          description: Human-readable description
          examples:
            - Asset ast_abc123 not found
        status:
          type: integer
          title: Status
          description: HTTP status code
          examples:
            - 404
      type: object
      required:
        - code
        - message
        - status
      title: ApiErrorDetail
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: gzm_k1_<hex>
      description: API key created in Gizmo Settings → API Keys

````