{
 "spec_version": 1,
 "model": "tripo/p1",
 "type": "3d",
 "input_modalities": [],
 "output_modalities": [],
 "context_window": null,
 "max_output_tokens": null,
 "endpoint": {
  "method": "POST",
  "path": "/v1/3d/generations"
 },
 "parameters": [
  {
   "name": "model",
   "type": "string",
   "required": true,
   "description": "This model's ID."
  },
  {
   "name": "prompt",
   "type": "string",
   "description": "What to model, for text to 3D."
  },
  {
   "name": "image_url",
   "type": "string",
   "description": "One image to model from."
  },
  {
   "name": "image_urls",
   "type": "array",
   "maxItems": 4,
   "description": "Front, left, back and right views."
  },
  {
   "name": "texture",
   "type": "boolean",
   "default": true,
   "description": "Generate a textured model."
  },
  {
   "name": "pbr",
   "type": "boolean",
   "description": "Physically based materials."
  },
  {
   "name": "face_limit",
   "type": "integer",
   "description": "Upper bound on the face count."
  }
 ],
 "async": {
  "poll": "GET /v1/3d/generations/{generation_id}"
 },
 "response": {
  "fields": [
   {
    "name": "id",
    "type": "string",
    "description": "The job's ID; poll it."
   },
   {
    "name": "status",
    "type": "string",
    "description": "`queued`, `in_progress`, `completed` or `failed`."
   },
   {
    "name": "model_url",
    "type": "string",
    "description": "Once completed: the model file."
   }
  ],
  "example": {
   "id": "3d_...",
   "status": "completed",
   "model_url": "https://..."
  }
 },
 "examples": [
  {
   "title": "Basic",
   "request": {
    "model": "tripo/p1",
    "prompt": "A small wooden chair"
   }
  }
 ],
 "input_schema": {
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "required": [
   "model"
  ],
  "properties": {
   "model": {
    "type": "string",
    "description": "This model's ID."
   },
   "prompt": {
    "type": "string",
    "description": "What to model, for text to 3D."
   },
   "image_url": {
    "type": "string",
    "description": "One image to model from."
   },
   "image_urls": {
    "type": "array",
    "description": "Front, left, back and right views.",
    "maxItems": 4
   },
   "texture": {
    "type": "boolean",
    "description": "Generate a textured model.",
    "default": true
   },
   "pbr": {
    "type": "boolean",
    "description": "Physically based materials."
   },
   "face_limit": {
    "type": "integer",
    "description": "Upper bound on the face count."
   }
  }
 }
}
