# StableMesh Retexture

> StableMesh Retexture is a paid API for AI agents from stablemesh.dev, paid per call via x402, $0.4/call, status unknown (last checked 2026-09-14).

Applies a UV-mapped texture image to a 3D GLB model, returning a retextured version of the model

## Facts

- Endpoint: POST https://stablemesh.dev/api/retexture
- Price: $0.4/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stablemesh-retexture-92567150
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C7l8Wn-Vcj7qxbyLX_QbY

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability stablemesh-retexture-92567150 -d '<json body>'
```

Example prompt: Can you retexture this GLB character model at https://assets.example.com/character.glb using the UV-unwrapped texture PNG at https://assets.example.com/skin.png? The character is about 1.8 meters tall.

## When to prefer this

Use this endpoint when you have a 3D GLB model and a pre-made UV-unwrapped texture PNG and want to apply that texture to the model via a pay-per-request API without managing subscriptions or API keys. Ideal for game asset pipelines, character customization, or automated 3D content workflows.

## Known failure modes

- Invalid or inaccessible GLB URL returns an error
- Texture image URL is not a valid PNG or is inaccessible
- Task ID not found or not yet completed
- Model is not UV-unwrapped, causing incorrect texture application
- Payment of 0.4 USDC not received, request rejected
- Malformed request body missing required fields

## How this service works

Pay-per-request AI 3D model generation. No API keys, no subscriptions.

## Output

A JSON response containing the result of the retexture operation, likely including a URL or data for the retextured GLB model or a task ID to poll for completion.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ai_model": {
   "enum": [
    "meshy-5",
    "meshy-6",
    "latest"
   ],
   "type": "string",
   "default": "latest"
  },
  "model_url": {
   "type": "string",
   "description": "Public URL or data URI (.glb/.gltf/.obj/.fbx/.stl)"
  },
  "enable_pbr": {
   "type": "boolean",
   "default": false
  },
  "input_task_id": {
   "type": "string",
   "description": "ID of completed task"
  },
  "target_formats": {
   "type": "array",
   "items": {
    "enum": [
     "glb",
     "obj",
     "fbx",
     "stl",
     "usdz"
    ],
    "type": "string"
   }
  },
  "image_style_url": {
   "type": "string",
   "description": "URL or data URI for style reference"
  },
  "remove_lighting": {
   "type": "boolean",
   "default": true
  },
  "text_style_prompt": {
   "type": "string",
   "maxLength": 600,
   "description": "Text description for texture style"
  },
  "enable_original_uv": {
   "type": "boolean",
   "default": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stablemesh-retexture-92567150/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stablemesh.dev](https://www.zero.xyz/host/stablemesh.dev/llms.txt)
